2 # From configure.in Revision: 77197 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='3.1'
579 PACKAGE_STRING
='python 3.1'
580 PACKAGE_BUGREPORT
='http://bugs.python.org/'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
738 ac_precious_vars
='build_alias
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
761 program_transform_name
=s
,x
,x
,
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir
='${exec_prefix}/bin'
776 sbindir
='${exec_prefix}/sbin'
777 libexecdir
='${exec_prefix}/libexec'
778 datarootdir
='${prefix}/share'
779 datadir
='${datarootdir}'
780 sysconfdir
='${prefix}/etc'
781 sharedstatedir
='${prefix}/com'
782 localstatedir
='${prefix}/var'
783 includedir
='${prefix}/include'
784 oldincludedir
='/usr/include'
785 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir
='${datarootdir}/info'
791 libdir
='${exec_prefix}/lib'
792 localedir
='${datarootdir}/locale'
793 mandir
='${datarootdir}/man'
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\
$ac_option
807 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
817 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
819 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
822 -build |
--build |
--buil |
--bui |
--bu)
823 ac_prev
=build_alias
;;
824 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
825 build_alias
=$ac_optarg ;;
827 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
828 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
829 ac_prev
=cache_file
;;
830 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
831 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
832 cache_file
=$ac_optarg ;;
835 cache_file
=config.cache
;;
837 -datadir |
--datadir |
--datadi |
--datad)
839 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
840 datadir
=$ac_optarg ;;
842 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
843 |
--dataroo |
--dataro |
--datar)
844 ac_prev
=datarootdir
;;
845 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
846 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
847 datarootdir
=$ac_optarg ;;
849 -disable-* |
--disable-*)
850 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_
$ac_feature=no
;;
858 -docdir |
--docdir |
--docdi |
--doc |
--do)
860 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
863 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
865 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
868 -enable-* |
--enable-*)
869 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_
$ac_feature=\
$ac_optarg ;;
877 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
878 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
879 |
--exec |
--exe |
--ex)
880 ac_prev
=exec_prefix
;;
881 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
882 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
883 |
--exec=* |
--exe=* |
--ex=*)
884 exec_prefix
=$ac_optarg ;;
886 -gas |
--gas |
--ga |
--g)
887 # Obsolete; use --with-gas.
890 -help |
--help |
--hel |
--he |
-h)
892 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
893 ac_init_help
=recursive
;;
894 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
895 ac_init_help
=short
;;
897 -host |
--host |
--hos |
--ho)
898 ac_prev
=host_alias
;;
899 -host=* |
--host=* |
--hos=* |
--ho=*)
900 host_alias
=$ac_optarg ;;
902 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
904 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
906 htmldir
=$ac_optarg ;;
908 -includedir |
--includedir |
--includedi |
--included |
--include \
909 |
--includ |
--inclu |
--incl |
--inc)
910 ac_prev
=includedir
;;
911 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
912 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
913 includedir
=$ac_optarg ;;
915 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
917 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
918 infodir
=$ac_optarg ;;
920 -libdir |
--libdir |
--libdi |
--libd)
922 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
925 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
926 |
--libexe |
--libex |
--libe)
927 ac_prev
=libexecdir
;;
928 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
929 |
--libexe=* |
--libex=* |
--libe=*)
930 libexecdir
=$ac_optarg ;;
932 -localedir |
--localedir |
--localedi |
--localed |
--locale)
934 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
935 localedir
=$ac_optarg ;;
937 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
938 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
939 ac_prev
=localstatedir
;;
940 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
941 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
942 localstatedir
=$ac_optarg ;;
944 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
946 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
950 # Obsolete; use --without-fp.
953 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
954 |
--no-cr |
--no-c |
-n)
957 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
958 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
961 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
962 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
963 |
--oldin |
--oldi |
--old |
--ol |
--o)
964 ac_prev
=oldincludedir
;;
965 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
966 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
967 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
968 oldincludedir
=$ac_optarg ;;
970 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
972 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
975 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
976 |
--program-pre |
--program-pr |
--program-p)
977 ac_prev
=program_prefix
;;
978 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
979 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
980 program_prefix
=$ac_optarg ;;
982 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
983 |
--program-suf |
--program-su |
--program-s)
984 ac_prev
=program_suffix
;;
985 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
986 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
987 program_suffix
=$ac_optarg ;;
989 -program-transform-name |
--program-transform-name \
990 |
--program-transform-nam |
--program-transform-na \
991 |
--program-transform-n |
--program-transform- \
992 |
--program-transform |
--program-transfor \
993 |
--program-transfo |
--program-transf \
994 |
--program-trans |
--program-tran \
995 |
--progr-tra |
--program-tr |
--program-t)
996 ac_prev
=program_transform_name
;;
997 -program-transform-name=* |
--program-transform-name=* \
998 |
--program-transform-nam=* |
--program-transform-na=* \
999 |
--program-transform-n=* |
--program-transform-=* \
1000 |
--program-transform=* |
--program-transfor=* \
1001 |
--program-transfo=* |
--program-transf=* \
1002 |
--program-trans=* |
--program-tran=* \
1003 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1004 program_transform_name
=$ac_optarg ;;
1006 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1008 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1009 pdfdir
=$ac_optarg ;;
1011 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1013 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1016 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1017 |
-silent |
--silent |
--silen |
--sile |
--sil)
1020 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1022 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1024 sbindir
=$ac_optarg ;;
1026 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1027 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1028 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1030 ac_prev
=sharedstatedir
;;
1031 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1032 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1033 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1035 sharedstatedir
=$ac_optarg ;;
1037 -site |
--site |
--sit)
1039 -site=* |
--site=* |
--sit=*)
1042 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1044 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1045 srcdir
=$ac_optarg ;;
1047 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1048 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1049 ac_prev
=sysconfdir
;;
1050 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1051 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1052 sysconfdir
=$ac_optarg ;;
1054 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1055 ac_prev
=target_alias
;;
1056 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1057 target_alias
=$ac_optarg ;;
1059 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1062 -version |
--version |
--versio |
--versi |
--vers |
-V)
1063 ac_init_version
=: ;;
1066 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_
$ac_package=\
$ac_optarg ;;
1074 -without-* |
--without-*)
1075 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_
$ac_package=no
;;
1084 # Obsolete; use --with-x.
1087 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1088 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1089 ac_prev
=x_includes
;;
1090 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1091 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1092 x_includes
=$ac_optarg ;;
1094 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1095 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1096 ac_prev
=x_libraries
;;
1097 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1098 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1099 x_libraries
=$ac_optarg ;;
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1107 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\
$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1132 # Be sure to have absolute directory names.
1133 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val
=\$
$ac_var
1140 [\\/$
]* | ?
:[\\/]* ) continue;;
1141 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1152 target
=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x
; then
1156 if test "x$build_alias" = x
; then
1157 cross_compiling
=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1166 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1168 test "$silent" = yes && exec 6>/dev
/null
1171 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di
=`ls -di .` &&
1173 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted
=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir
=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1213 ac_srcdir_defaulted
=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1220 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1233 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 for ac_var
in $ac_precious_vars; do
1236 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1238 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1249 \`configure' configures python 3.1 to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive
) echo "Configuration of python 3.1:";;
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-universalsdk[=SDKDIR
]
1318 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1319 --enable-framework[=INSTALLDIR
]
1320 Build
(MacOSX|Darwin
) framework
1321 --enable-shared disable
/enable building shared python library
1322 --enable-profiling enable C-level code profiling
1323 --enable-ipv6 Enable ipv6
(with ipv4
) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-big-digits[=BITS
]
1326 use big digits
for Python longs
[BITS
=30]
1329 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1330 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1331 --with-universal-archs=ARCH
1332 select architectures
for universal build
("32-bit",
1333 "64-bit", "3-way", "intel" or
"all")
1334 --with-framework-name=FRAMEWORK
1335 specify an alternate name of the framework built
1336 with
--enable-framework
1337 --without-gcc never use gcc
1338 --with-cxx-main=<compiler
>
1339 compile main
() and link python executable with C
++
1341 --with-suffix=.exe
set executable suffix
1342 --with-pydebug build with Py_DEBUG defined
1343 --with-libs='lib1 ...' link against additional libs
1344 --with-system-ffi build _ctypes module using an installed ffi library
1345 --with-dbmliborder=db1
:db2
:...
1346 order to check db backends
for dbm. Valid value is a
1347 colon separated string with the backend names
1348 `ndbm', `gdbm
' and `bdb'.
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
1363 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1364 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1365 loop
(not available on all compilers
)
1367 Some influential environment variables
:
1368 CC C compiler
command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1371 nonstandard directory
<lib dir
>
1372 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1373 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1374 you have headers
in a nonstandard directory
<include dir
>
1377 Use these variables to override the choices made by
`configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to <http://bugs.python.org/>.
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1408 .) # We are building in place.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1441 python configure 3.1
1442 generated by GNU Autoconf 2.61
1444 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1445 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1455 It was created by python $as_me 3.1, which was
1456 generated by GNU Autoconf 2.61. Invocation command line was
1468 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1469 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1470 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1471 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1472 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1475 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1477 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1478 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1479 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1480 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1481 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1482 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1483 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_must_keep_next=false
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1527 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 -* ) ac_must_keep_next=true ;;
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log. We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1567 ## ---------------- ##
1568 ## Cache variables. ##
1569 ## ---------------- ##
1572 # The following way of writing the cache mishandles newlines in values,
1574 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1575 eval ac_val=\$$ac_var
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1589 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 echo "$ac_var='\''$ac_val'\''"
1619 if test -n "$ac_subst_files"; then
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1630 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 echo "$ac_var='\''$ac_val'\''"
1637 if test -s confdefs.h; then
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694 elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705 echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1711 if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716 echo "$as_me: loading cache $cache_file" >&6;}
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724 echo "$as_me: creating cache $cache_file" >&6;}
1728 # Check that the precious variables saved in the cache have kept the same
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1739 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1743 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1750 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1751 echo "$as_me: former value
: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1753 echo "$as_me: current value
: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1771 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1772 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers pyconfig.h"
1813 if test "$prefix" != "/"; then
1814 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1822 # We don't use PACKAGE_ variables, and they cause conflicts
1823 # with other autoconf-based packages that include Python.h
1824 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1826 mv confdefs.h.new confdefs.h
1834 # The later defininition of _XOPEN_SOURCE disables certain features
1835 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1837 cat >>confdefs.h <<\_ACEOF
1838 #define _GNU_SOURCE 1
1842 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1843 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _NETBSD_SOURCE 1
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD_VISIBLE 1
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1863 cat >>confdefs.h <<\_ACEOF
1864 #define _BSD_TYPES 1
1868 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1869 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _DARWIN_C_SOURCE 1
1878 define_xopen_source=yes
1880 # Arguments passed to configure.
1882 CONFIG_ARGS="$ac_configure_args"
1884 # Check whether --enable-universalsdk was given.
1885 if test "${enable_universalsdk+set}" = set; then
1886 enableval=$enable_universalsdk;
1889 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1895 enable_universalsdk=
1898 UNIVERSALSDK=$enableval
1905 enable_universalsdk=
1913 UNIVERSAL_ARCHS="32-bit"
1914 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1915 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1917 # Check whether --with-universal-archs was given.
1918 if test "${with_universal_archs+set}" = set; then
1919 withval=$with_universal_archs;
1920 { echo "$as_me:$LINENO: result: $withval" >&5
1921 echo "${ECHO_T}$withval" >&6; }
1922 UNIVERSAL_ARCHS="$withval"
1926 { echo "$as_me:$LINENO: result: 32-bit" >&5
1927 echo "${ECHO_T}32-bit" >&6; }
1935 # Check whether --with-framework-name was given.
1936 if test "${with_framework_name+set}" = set; then
1937 withval=$with_framework_name;
1938 PYTHONFRAMEWORK=${withval}
1939 PYTHONFRAMEWORKDIR=${withval}.framework
1940 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1944 PYTHONFRAMEWORK=Python
1945 PYTHONFRAMEWORKDIR=Python.framework
1946 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1950 # Check whether --enable-framework was given.
1951 if test "${enable_framework+set}" = set; then
1952 enableval=$enable_framework;
1955 enableval=/Library/Frameworks
1960 PYTHONFRAMEWORKDIR=no-framework
1961 PYTHONFRAMEWORKPREFIX=
1962 PYTHONFRAMEWORKINSTALLDIR=
1963 FRAMEWORKINSTALLFIRST=
1964 FRAMEWORKINSTALLLAST=
1965 FRAMEWORKALTINSTALLFIRST=
1966 FRAMEWORKALTINSTALLLAST=
1967 if test "x${prefix}" = "xNONE"; then
1968 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1970 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1975 PYTHONFRAMEWORKPREFIX=$enableval
1976 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1977 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1978 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
1979 if test "$UNIVERSAL_ARCHS" = "all"
1981 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1982 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1984 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1985 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1988 if test "x${prefix}" = "xNONE" ; then
1989 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1991 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1993 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1995 # Add files for Mac specific code to the list of output
1997 ac_config_files="$ac_config_files Mac/Makefile"
1999 ac_config_files="$ac_config_files Mac/PythonLauncher/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" \
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 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2217 # it may influence the way we can build extensions, so distutils
2221 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2222 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2224 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2225 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2226 ac_sys_machine=`uname
-m`
2227 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2228 echo "${ECHO_T}$ac_sys_machine" >&6; }
2230 # checks for alternative programs
2232 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2233 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2234 # just to get things to compile and link. Users are free to override OPT
2235 # when running configure or make. The build should not break if they do.
2236 # BASECFLAGS should generally not be messed with, however.
2238 # XXX shouldn't some/most/all of this code be merged with the stuff later
2239 # on that fiddles with OPT and BASECFLAGS?
2240 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2241 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2243 # Check whether --with-gcc was given.
2244 if test "${with_gcc+set}" = set; then
2252 without_gcc=$withval;;
2256 case $ac_sys_system in
2263 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2264 echo "${ECHO_T}$without_gcc" >&6; }
2266 # If the user switches compilers, we can't believe the cache
2267 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2269 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2270 (it is also a good idea to do 'make clean' before compiling)" >&5
2271 echo "$as_me: error: cached CC is different -- throw away $cache_file
2272 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2273 { (exit 1); exit 1; }; }
2277 ac_cpp='$CPP $CPPFLAGS'
2278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 if test -n "$CC"; then
2311 { echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2320 if test -z "$ac_cv_prog_CC"; then
2322 # Extract the first word of "gcc", so it can be a program name with args.
2323 set dummy gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$ac_ct_CC"; then
2330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_ac_ct_CC="gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2350 if test -n "$ac_ct_CC"; then
2351 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2352 echo "${ECHO_T}$ac_ct_CC" >&6; }
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2358 if test "x$ac_ct_CC" = x; then
2361 case $cross_compiling:$ac_tool_warned in
2363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet. If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&5
2366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2369 ac_tool_warned=yes ;;
2377 if test -z "$CC"; then
2378 if test -n "$ac_tool_prefix"; then
2379 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2380 set dummy ${ac_tool_prefix}cc; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_CC="${ac_tool_prefix}cc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 if test -n "$CC"; then
2408 { echo "$as_me:$LINENO: result: $CC" >&5
2409 echo "${ECHO_T}$CC" >&6; }
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2418 if test -z "$CC"; then
2419 # Extract the first word of "cc", so it can be a program name with args.
2420 set dummy cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2438 ac_prog_rejected=yes
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 if test $ac_prog_rejected = yes; then
2450 # We found a bogon in the path, so make sure we never use it.
2451 set dummy $ac_cv_prog_CC
2453 if test $# != 0; then
2454 # We chose a different compiler from the bogus one.
2455 # However, it has the same basename, so the bogon will be chosen
2456 # first if we set CC to just the basename; use the full file name.
2458 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$CC"; then
2475 if test -n "$ac_tool_prefix"; then
2476 for ac_prog in cl.exe
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2515 test -n "$CC" && break
2518 if test -z "$CC"; then
2520 for ac_prog in cl.exe
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy $ac_prog; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_ac_ct_CC="$ac_prog"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2552 echo "${ECHO_T}$ac_ct_CC" >&6; }
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2559 test -n "$ac_ct_CC" && break
2562 if test "x$ac_ct_CC" = x; then
2565 case $cross_compiling:$ac_tool_warned in
2567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2568 whose name does not start with the host triplet. If you think this
2569 configuration is useful to you, please write to autoconf@gnu.org." >&5
2570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2571 whose name does not start with the host triplet. If you think this
2572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2573 ac_tool_warned=yes ;;
2582 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2583 See \`config.log
' for more details." >&5
2584 echo "$as_me: error: no acceptable C compiler found in \$PATH
2585 See \`config.log' for more details.
" >&2;}
2586 { (exit 1); exit 1; }; }
2588 # Provide some information about the compiler.
2589 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2590 ac_compiler=`set X $ac_compile; echo $2`
2591 { (ac_try="$ac_compiler --version >&5"
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_compiler --version >&5") 2>&5
2599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2600 (exit $ac_status); }
2601 { (ac_try="$ac_compiler -v >&5"
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_compiler -v >&5") 2>&5
2609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2610 (exit $ac_status); }
2611 { (ac_try="$ac_compiler -V >&5"
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_compiler -V >&5") 2>&5
2619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2620 (exit $ac_status); }
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 ac_clean_files_save=$ac_clean_files
2638 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2639 # Try to create an executable without -o first, disregard a.out.
2640 # It will help us diagnose broken compilers, and finding out an intuition
2642 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2643 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2644 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2646 # List of possible output files, starting from the most likely.
2647 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2648 # only as a last resort. b.out is created by i960 compilers.
2649 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2651 # The IRIX 6 linker writes into existing files which may not be
2652 # executable, retaining their permissions. Remove them first so a
2653 # subsequent execution test works.
2655 for ac_file in $ac_files
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2664 if { (ac_try="$ac_link_default"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_link_default") 2>&5
2672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2673 (exit $ac_status); }; then
2674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2675 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2676 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2677 # so that the user can short-circuit this test for compilers unknown to
2679 for ac_file in $ac_files ''
2681 test -f "$ac_file" || continue
2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2686 # We found the default executable, but exeext='' is most
2690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 # We set ac_cv_exeext here because the later test for it is not
2695 # safe: cross compilers may not add the suffix if given an `-o'
2696 # argument, so we may need to know it at that point already.
2697 # Even if this section looks crufty: it has the advantage of
2704 test "$ac_cv_exeext" = no && ac_cv_exeext=
2710 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2711 echo "${ECHO_T}$ac_file" >&6; }
2712 if test -z "$ac_file"; then
2713 echo "$as_me: failed program was
:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2717 See \
`config.log' for more details." >&5
2718 echo "$as_me: error: C compiler cannot create executables
2719 See \`config.log
' for more details." >&2;}
2720 { (exit 77); exit 77; }; }
2723 ac_exeext=$ac_cv_exeext
2725 # Check that the compiler produces executables we can run. If not, either
2726 # the compiler is broken, or we cross compile.
2727 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2728 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2729 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2730 # If not cross compiling, check that we can run a simple program.
2731 if test "$cross_compiling" != yes; then
2732 if { ac_try='.
/$ac_file'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 if test "$cross_compiling" = maybe; then
2747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2748 If you meant to cross compile, use \`--host'.
2749 See \
`config.log' for more details." >&5
2750 echo "$as_me: error: cannot run C compiled programs.
2751 If you meant to cross compile, use \`--host'.
2752 See \`config.log' for more details.
" >&2;}
2753 { (exit 1); exit 1; }; }
2757 { echo "$as_me:$LINENO: result
: yes" >&5
2758 echo "${ECHO_T}yes" >&6; }
2760 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2761 ac_clean_files=$ac_clean_files_save
2762 # Check that the compiler produces executables we can run. If not, either
2763 # the compiler is broken, or we cross compile.
2764 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2765 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2766 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2767 echo "${ECHO_T}$cross_compiling" >&6; }
2769 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2770 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2771 if { (ac_try="$ac_link"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_link") 2>&5
2779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2780 (exit $ac_status); }; then
2781 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2782 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2783 # work properly (i.e., refer to `conftest.exe'), while it won't with
2785 for ac_file in conftest.exe conftest conftest.*; do
2786 test -f "$ac_file" || continue
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2789 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2795 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2796 See \
`config.log' for more details." >&5
2797 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2798 See \`config.log
' for more details." >&2;}
2799 { (exit 1); exit 1; }; }
2802 rm -f conftest$ac_cv_exeext
2803 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2804 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2806 rm -f conftest.$ac_ext
2807 EXEEXT=$ac_cv_exeext
2809 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2810 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2811 if test "${ac_cv_objext+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 cat >conftest.$ac_ext <<_ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2829 rm -f conftest.o conftest.obj
2830 if { (ac_try="$ac_compile"
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_compile") 2>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 for ac_file in conftest.o conftest.obj conftest.*; do
2841 test -f "$ac_file" || continue;
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2844 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2849 echo "$as_me: failed program was:" >&5
2850 sed 's
/^
/|
/' conftest.$ac_ext >&5
2852 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2853 See \`config.log' for more details.
" >&5
2854 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2855 See \
`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2859 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2861 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2862 echo "${ECHO_T}$ac_cv_objext" >&6; }
2863 OBJEXT=$ac_cv_objext
2865 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2866 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2867 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2888 rm -f conftest.$ac_objext
2889 if { (ac_try="$ac_compile"
2891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2892 *) ac_try_echo
=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compile") 2>conftest.er1
2897 grep -v '^ *+' conftest.er1
>conftest.err
2899 cat conftest.err
>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } && {
2902 test -z "$ac_c_werror_flag" ||
2903 test ! -s conftest.err
2904 } && test -s conftest.
$ac_objext; then
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.
$ac_ext >&5
2913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2914 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2917 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2918 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2919 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2920 ac_test_CFLAGS
=${CFLAGS+set}
2921 ac_save_CFLAGS
=$CFLAGS
2922 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2923 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_cc_g+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 ac_save_c_werror_flag
=$ac_c_werror_flag
2928 ac_c_werror_flag
=yes
2931 cat >conftest.
$ac_ext <<_ACEOF
2934 cat confdefs.h
>>conftest.
$ac_ext
2935 cat >>conftest.
$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.
$ac_objext
2947 if { (ac_try
="$ac_compile"
2949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2969 cat >conftest.$ac_ext <<_ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2984 rm -f conftest.$ac_objext
2985 if { (ac_try="$ac_compile"
2987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2988 *) ac_try_echo
=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2993 grep -v '^ *+' conftest.er1
>conftest.err
2995 cat conftest.err
>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.
$ac_objext; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.
$ac_ext >&5
3006 ac_c_werror_flag
=$ac_save_c_werror_flag
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3023 rm -f conftest.
$ac_objext
3024 if { (ac_try
="$ac_compile"
3026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3058 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3059 if test "$ac_test_CFLAGS" = set; then
3060 CFLAGS=$ac_save_CFLAGS
3061 elif test $ac_cv_prog_cc_g = yes; then
3062 if test "$GCC" = yes; then
3068 if test "$GCC" = yes; then
3074 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3075 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cc_c89+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 ac_cv_prog_cc_c89=no
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3089 #include <sys/types.h>
3090 #include <sys/stat.h>
3091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3092 struct buf { int x; };
3093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3094 static char *e (p, i)
3100 static char *f (char * (*g) (char **, int), char **p, ...)
3105 s = g (p, va_arg (v,int));
3110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3111 function prototypes and stuff, but not '\xHH' hex character constants.
3112 These don't provoke an error unfortunately, instead are silently treated
3113 as 'x'. The following induces an error, until -std is added to get
3114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3115 array size at least. It's necessary to write '\x00'==0 to get something
3116 that's true only with -std. */
3117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3120 inside strings and character constants. */
3122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3124 int test (int i, double x);
3125 struct s1 {int (*f) (int a);};
3126 struct s2 {int (*f) (double a);};
3127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3141 CC="$ac_save_CC $ac_arg"
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3146 *) ac_try_echo
=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compile") 2>conftest.er1
3151 grep -v '^ *+' conftest.er1
>conftest.err
3153 cat conftest.err
>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } && {
3156 test -z "$ac_c_werror_flag" ||
3157 test ! -s conftest.err
3158 } && test -s conftest.
$ac_objext; then
3159 ac_cv_prog_cc_c89
=$ac_arg
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.
$ac_ext >&5
3167 rm -f core conftest.err conftest.
$ac_objext
3168 test "x$ac_cv_prog_cc_c89" != "xno" && break
3170 rm -f conftest.
$ac_ext
3175 case "x$ac_cv_prog_cc_c89" in
3177 { echo "$as_me:$LINENO: result: none needed" >&5
3178 echo "${ECHO_T}none needed" >&6; } ;;
3180 { echo "$as_me:$LINENO: result: unsupported" >&5
3181 echo "${ECHO_T}unsupported" >&6; } ;;
3183 CC
="$CC $ac_cv_prog_cc_c89"
3184 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3185 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3190 ac_cpp
='$CPP $CPPFLAGS'
3191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3198 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3199 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3201 # Check whether --with-cxx_main was given.
3202 if test "${with_cxx_main+set}" = set; then
3203 withval
=$with_cxx_main;
3206 no
) with_cxx_main
=no
3208 yes) with_cxx_main
=yes
3210 *) with_cxx_main
=yes
3224 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3225 echo "${ECHO_T}$with_cxx_main" >&6; }
3231 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3232 set dummy g
++; ac_word
=$2
3233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3235 if test "${ac_cv_path_CXX+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 for as_dir
in notfound
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_exec_ext
in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3263 if test -n "$CXX"; then
3264 { echo "$as_me:$LINENO: result: $CXX" >&5
3265 echo "${ECHO_T}$CXX" >&6; }
3267 { echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6; }
3272 cc
) # Extract the first word of "c++", so it can be a program name with args.
3273 set dummy c
++; ac_word
=$2
3274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3276 if test "${ac_cv_path_CXX+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3285 for as_dir
in notfound
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_exec_ext
in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3304 if test -n "$CXX"; then
3305 { echo "$as_me:$LINENO: result: $CXX" >&5
3306 echo "${ECHO_T}$CXX" >&6; }
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3314 if test "$CXX" = "notfound"
3321 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy
$ac_prog; ac_word
=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_CXX+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$CXX"; then
3331 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir
=.
3338 for ac_exec_ext
in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_CXX
="$ac_prog"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
3360 test -n "$CXX" && break
3362 test -n "$CXX" || CXX
="notfound"
3364 if test "$CXX" = "notfound"
3369 if test "$preset_cxx" != "$CXX"
3371 { echo "$as_me:$LINENO: WARNING:
3373 By default, distutils will build C++ extension modules with \"$CXX\".
3374 If this is not intended, then set CXX on the configure command line.
3376 echo "$as_me: WARNING:
3378 By default, distutils will build C++ extension modules with \"$CXX\".
3379 If this is not intended, then set CXX on the configure command line.
3384 # checks for UNIX variants that set C preprocessor variables
3387 ac_cpp
='$CPP $CPPFLAGS'
3388 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3391 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3393 # On Suns, sometimes $CPP names a directory.
3394 if test -n "$CPP" && test -d "$CPP"; then
3397 if test -z "$CPP"; then
3398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 # Double quotes because CPP needs to be expanded
3402 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 for ac_c_preproc_warn_flag
in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat >conftest.
$ac_ext <<_ACEOF
3416 cat confdefs.h
>>conftest.
$ac_ext
3417 cat >>conftest.
$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 # include <limits.h>
3422 # include <assert.h>
3426 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null && {
3439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Broken: fails on valid input.
3451 rm -f conftest.err conftest.$ac_ext
3453 # OK, works on sane cases. Now check whether nonexistent headers
3454 # can be detected and how.
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3463 if { (ac_try="$ac_cpp conftest.$ac_ext"
3465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3466 *) ac_try_echo
=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 grep -v '^ *+' conftest.er1
>conftest.err
3473 cat conftest.err
>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev
/null
&& {
3476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3477 test ! -s conftest.err
3479 # Broken: success on invalid input.
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.
$ac_ext >&5
3485 # Passes both tests.
3490 rm -f conftest.err conftest.
$ac_ext
3493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494 rm -f conftest.err conftest.
$ac_ext
3495 if $ac_preproc_ok; then
3507 { echo "$as_me:$LINENO: result: $CPP" >&5
3508 echo "${ECHO_T}$CPP" >&6; }
3510 for ac_c_preproc_warn_flag
in '' yes
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat >conftest.
$ac_ext <<_ACEOF
3521 cat confdefs.h
>>conftest.
$ac_ext
3522 cat >>conftest.
$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3525 # include <limits.h>
3527 # include <assert.h>
3531 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null && {
3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 # Broken: fails on valid input.
3556 rm -f conftest.err conftest.$ac_ext
3558 # OK, works on sane cases. Now check whether nonexistent headers
3559 # can be detected and how.
3560 cat >conftest.$ac_ext <<_ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <ac_nonexistent.h>
3568 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3571 *) ac_try_echo
=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1
>conftest.err
3578 cat conftest.err
>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev
/null
&& {
3581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3584 # Broken: success on invalid input.
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.
$ac_ext >&5
3590 # Passes both tests.
3595 rm -f conftest.err conftest.
$ac_ext
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.err conftest.
$ac_ext
3600 if $ac_preproc_ok; then
3603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&5
3605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3611 ac_cpp
='$CPP $CPPFLAGS'
3612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3617 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3618 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3619 if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 # Extract the first word of "grep ggrep" to use in msg output
3623 if test -z "$GREP"; then
3624 set dummy
grep ggrep
; ac_prog_name
=$2
3625 if test "${ac_cv_path_GREP+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 ac_path_GREP_found
=false
3629 # Loop through the user's path and test for each of PROGNAME-LIST
3630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3631 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3634 test -z "$as_dir" && as_dir
=.
3635 for ac_prog
in grep ggrep
; do
3636 for ac_exec_ext
in '' $ac_executable_extensions; do
3637 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3638 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3639 # Check for GNU ac_path_GREP and select it if it is found.
3640 # Check for GNU $ac_path_GREP
3641 case `"$ac_path_GREP" --version 2>&1` in
3643 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3649 cat "conftest.in" "conftest.in" >"conftest.tmp"
3650 mv "conftest.tmp" "conftest.in"
3651 cp "conftest.in" "conftest.nl"
3652 echo 'GREP' >> "conftest.nl"
3653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3654 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3655 ac_count
=`expr $ac_count + 1`
3656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3657 # Best one so far, save it but keep looking for a better one
3658 ac_cv_path_GREP
="$ac_path_GREP"
3659 ac_path_GREP_max
=$ac_count
3661 # 10*(2^10) chars as input seems more than enough
3662 test $ac_count -gt 10 && break
3664 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3668 $ac_path_GREP_found && break 3
3678 GREP
="$ac_cv_path_GREP"
3679 if test -z "$GREP"; then
3680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3682 { (exit 1); exit 1; }; }
3686 ac_cv_path_GREP
=$GREP
3691 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3692 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3693 GREP
="$ac_cv_path_GREP"
3696 { echo "$as_me:$LINENO: checking for egrep" >&5
3697 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_EGREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3702 then ac_cv_path_EGREP
="$GREP -E"
3704 # Extract the first word of "egrep" to use in msg output
3705 if test -z "$EGREP"; then
3706 set dummy
egrep; ac_prog_name
=$2
3707 if test "${ac_cv_path_EGREP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 ac_path_EGREP_found
=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3713 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3716 test -z "$as_dir" && as_dir
=.
3717 for ac_prog
in egrep; do
3718 for ac_exec_ext
in '' $ac_executable_extensions; do
3719 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3720 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3721 # Check for GNU ac_path_EGREP and select it if it is found.
3722 # Check for GNU $ac_path_EGREP
3723 case `"$ac_path_EGREP" --version 2>&1` in
3725 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 echo 'EGREP' >> "conftest.nl"
3735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3736 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3737 ac_count
=`expr $ac_count + 1`
3738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_EGREP
="$ac_path_EGREP"
3741 ac_path_EGREP_max
=$ac_count
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3746 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3750 $ac_path_EGREP_found && break 3
3760 EGREP
="$ac_cv_path_EGREP"
3761 if test -z "$EGREP"; then
3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764 { (exit 1); exit 1; }; }
3768 ac_cv_path_EGREP
=$EGREP
3774 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3775 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3776 EGREP
="$ac_cv_path_EGREP"
3780 { echo "$as_me:$LINENO: checking for AIX" >&5
3781 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3782 cat >conftest.
$ac_ext <<_ACEOF
3785 cat confdefs.h
>>conftest.
$ac_ext
3786 cat >>conftest.
$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794 $EGREP "yes" >/dev
/null
2>&1; then
3795 { echo "$as_me:$LINENO: result: yes" >&5
3796 echo "${ECHO_T}yes" >&6; }
3797 cat >>confdefs.h
<<\_ACEOF
3798 #define _ALL_SOURCE 1
3802 { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3809 # Check for unsupported systems
3810 case $ac_sys_system/$ac_sys_release in
3812 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3813 echo See README
for details.
3818 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3819 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3821 # Check whether --with-suffix was given.
3822 if test "${with_suffix+set}" = set; then
3823 withval
=$with_suffix;
3827 *) EXEEXT
=$withval;;
3831 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3832 echo "${ECHO_T}$EXEEXT" >&6; }
3834 # Test whether we're running on a non-case-sensitive system, in which
3835 # case we give a warning if no ext is given
3837 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3838 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3839 if test ! -d CaseSensitiveTestDir
; then
3840 mkdir CaseSensitiveTestDir
3843 if test -d casesensitivetestdir
3845 { echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6; }
3849 { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3853 rmdir CaseSensitiveTestDir
3858 gcc
) CC
="$CC -D_HAVE_BSDI";;
3862 case $ac_sys_system in
3865 cc|
*/cc
) CC
="$CC -Ae";;
3868 # Some functions have a prototype only with that define, e.g. confstr
3870 cat >>confdefs.h
<<\_ACEOF
3871 #define __EXTENSIONS__ 1
3879 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3880 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3881 if test -z "$LIBRARY"
3883 LIBRARY
='libpython$(VERSION).a'
3885 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3886 echo "${ECHO_T}$LIBRARY" >&6; }
3888 # LDLIBRARY is the name of the library to link against (as opposed to the
3889 # name of the library into which to insert object files). BLDLIBRARY is also
3890 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3891 # is blank as the main program is not linked directly against LDLIBRARY.
3892 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3893 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3894 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3895 # DLLLIBRARY is the shared (i.e., DLL) library.
3897 # RUNSHARED is used to run shared python without installed libraries
3899 # INSTSONAME is the name of the shared library that will be use to install
3900 # on the system - some systems like version suffix, others don't
3907 LDLIBRARY
="$LIBRARY"
3908 BLDLIBRARY
='$(LDLIBRARY)'
3909 INSTSONAME
='$(LDLIBRARY)'
3914 # LINKCC is the command that links the python executable -- default is $(CC).
3915 # If CXX is set, and if it is needed to link a main function that was
3916 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3917 # python might then depend on the C++ runtime
3918 # This is altered for AIX in order to build the export list before
3921 { echo "$as_me:$LINENO: checking LINKCC" >&5
3922 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3923 if test -z "$LINKCC"
3925 LINKCC
='$(PURIFY) $(MAINCC)'
3926 case $ac_sys_system in
3929 if test $ac_sys_release -ge 5 -o \
3930 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3933 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3935 # qcc must be used because the other compilers do not
3940 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3941 echo "${ECHO_T}$LINKCC" >&6; }
3943 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3944 # make sure we default having it set to "no": this is used by
3945 # distutils.unixccompiler to know if it should add --enable-new-dtags
3946 # to linker command lines, and failing to detect GNU ld simply results
3947 # in the same bahaviour as before.
3949 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3950 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3952 if test "$GCC" = yes; then
3953 ac_prog
=`$CC -print-prog-name=ld`
3955 case `"$ac_prog" -V 2>&1 < /dev/null` in
3961 { echo "$as_me:$LINENO: result: $GNULD" >&5
3962 echo "${ECHO_T}$GNULD" >&6; }
3964 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3965 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3966 # Check whether --enable-shared was given.
3967 if test "${enable_shared+set}" = set; then
3968 enableval
=$enable_shared;
3972 if test -z "$enable_shared"
3974 case $ac_sys_system in
3976 enable_shared
="yes";;
3978 enable_shared
="no";;
3981 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3982 echo "${ECHO_T}$enable_shared" >&6; }
3984 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3985 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3986 # Check whether --enable-profiling was given.
3987 if test "${enable_profiling+set}" = set; then
3988 enableval
=$enable_profiling; ac_save_cc
="$CC"
3990 if test "$cross_compiling" = yes; then
3991 ac_enable_profiling
="no"
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 int main() { return 0; }
4001 rm -f conftest
$ac_exeext
4002 if { (ac_try
="$ac_link"
4004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_link") 2>&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4012 { (case "(($ac_try" in
4013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4014 *) ac_try_echo
=$ac_try;;
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_try") 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_enable_profiling
="yes"
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.
$ac_ext >&5
4028 ac_enable_profiling
="no"
4030 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4037 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4038 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4040 case "$ac_enable_profiling" in
4042 BASECFLAGS
="-pg $BASECFLAGS"
4043 LDFLAGS
="-pg $LDFLAGS"
4047 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4048 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4050 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4051 # library that we build, but we do not want to link against it (we
4052 # will find it with a -framework option). For this reason there is an
4053 # extra variable BLDLIBRARY against which Python and the extension
4054 # modules are linked, BLDLIBRARY. This is normally the same as
4055 # LDLIBRARY, but empty for MacOSX framework builds.
4056 if test "$enable_framework"
4058 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4059 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4062 BLDLIBRARY
='$(LDLIBRARY)'
4065 # Other platforms follow
4066 if test $enable_shared = "yes"; then
4068 cat >>confdefs.h
<<\_ACEOF
4069 #define Py_ENABLE_SHARED 1
4072 case $ac_sys_system in
4074 LDLIBRARY
='libpython$(VERSION).dll.a'
4075 DLLLIBRARY
='libpython$(VERSION).dll'
4078 LDLIBRARY
='libpython$(VERSION).so'
4079 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4080 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4081 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4083 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4084 LDLIBRARY
='libpython$(VERSION).so'
4085 BLDLIBRARY
='-L. -lpython$(VERSION)'
4086 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4087 case $ac_sys_system in
4089 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4092 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4097 LDLIBRARY
='libpython$(VERSION).so'
4100 LDLIBRARY
='libpython$(VERSION).sl'
4103 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4104 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4107 LDLIBRARY
='libpython$(VERSION).so'
4108 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4109 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4112 LDLIBRARY
='libpython$(VERSION).so'
4113 BLDLIBRARY
='-L. -lpython$(VERSION)'
4114 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4117 LDLIBRARY
='libpython$(VERSION).dylib'
4118 BLDLIBRARY
='-L. -lpython$(VERSION)'
4119 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4123 else # shared is disabled
4124 case $ac_sys_system in
4126 BLDLIBRARY
='$(LIBRARY)'
4127 LDLIBRARY
='libpython$(VERSION).dll.a'
4132 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4133 echo "${ECHO_T}$LDLIBRARY" >&6; }
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4137 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4140 if test "${ac_cv_prog_RANLIB+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if test -n "$RANLIB"; then
4144 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 RANLIB
=$ac_cv_prog_RANLIB
4164 if test -n "$RANLIB"; then
4165 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4166 echo "${ECHO_T}$RANLIB" >&6; }
4168 { echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6; }
4174 if test -z "$ac_cv_prog_RANLIB"; then
4175 ac_ct_RANLIB
=$RANLIB
4176 # Extract the first word of "ranlib", so it can be a program name with args.
4177 set dummy ranlib
; ac_word
=$2
4178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$ac_ct_RANLIB"; then
4184 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir
=.
4191 for ac_exec_ext
in '' $ac_executable_extensions; do
4192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4193 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4204 if test -n "$ac_ct_RANLIB"; then
4205 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4206 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4208 { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4212 if test "x$ac_ct_RANLIB" = x
; then
4215 case $cross_compiling:$ac_tool_warned in
4217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4218 whose name does not start with the host triplet. If you think this
4219 configuration is useful to you, please write to autoconf@gnu.org." >&5
4220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4221 whose name does not start with the host triplet. If you think this
4222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4223 ac_tool_warned
=yes ;;
4225 RANLIB
=$ac_ct_RANLIB
4228 RANLIB
="$ac_cv_prog_RANLIB"
4232 for ac_prog
in ar aal
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy
$ac_prog; ac_word
=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_prog_AR+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test -n "$AR"; then
4242 ac_cv_prog_AR
="$AR" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_AR
="$ac_prog"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$AR"; then
4263 { echo "$as_me:$LINENO: result: $AR" >&5
4264 echo "${ECHO_T}$AR" >&6; }
4266 { echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6; }
4271 test -n "$AR" && break
4273 test -n "$AR" || AR
="ar"
4276 # tweak ARFLAGS only if the user didn't set it on the command line
4278 if test -z "$ARFLAGS"
4284 # Extract the first word of "svnversion", so it can be a program name with args.
4285 set dummy svnversion
; ac_word
=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$SVNVERSION"; then
4292 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir
=.
4299 for ac_exec_ext
in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_SVNVERSION
="found"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4312 SVNVERSION
=$ac_cv_prog_SVNVERSION
4313 if test -n "$SVNVERSION"; then
4314 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4315 echo "${ECHO_T}$SVNVERSION" >&6; }
4317 { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4322 if test $SVNVERSION = found
4324 SVNVERSION
="svnversion \$(srcdir)"
4326 SVNVERSION
="echo Unversioned directory"
4331 # install -d does not work on BSDI or HP-UX
4332 if test -z "$INSTALL"
4334 INSTALL
="${srcdir}/install-sh -c"
4338 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4339 if test -f "$ac_dir/install-sh"; then
4341 ac_install_sh
="$ac_aux_dir/install-sh -c"
4343 elif test -f "$ac_dir/install.sh"; then
4345 ac_install_sh
="$ac_aux_dir/install.sh -c"
4347 elif test -f "$ac_dir/shtool"; then
4349 ac_install_sh
="$ac_aux_dir/shtool install -c"
4353 if test -z "$ac_aux_dir"; then
4354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4355 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4356 { (exit 1); exit 1; }; }
4359 # These three variables are undocumented and unsupported,
4360 # and are intended to be withdrawn in a future Autoconf release.
4361 # They can cause serious problems if a builder's source tree is in a directory
4362 # whose full name contains unusual characters.
4363 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4364 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4365 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4368 # Find a good install program. We prefer a C program (faster),
4369 # so one script is as good as another. But avoid the broken or
4370 # incompatible versions:
4371 # SysV /etc/install, /usr/sbin/install
4372 # SunOS /usr/etc/install
4373 # IRIX /sbin/install
4375 # AmigaOS /C/install, which installs bootblocks on floppy discs
4376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4379 # OS/2's system install, which has a completely different semantic
4380 # ./install, which can be erroneously created by make from ./install.sh.
4381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4383 if test -z "$INSTALL"; then
4384 if test "${ac_cv_path_install+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir
=.
4392 # Account for people who put trailing slashes in PATH elements.
4394 .
/ | .
// |
/cC
/* | \
4395 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4396 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4399 # OSF1 and SCO ODT 3.0 have their own names for install.
4400 # Don't use installbsd from OSF since it installs stuff as root
4402 for ac_prog
in ginstall scoinst
install; do
4403 for ac_exec_ext
in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4405 if test $ac_prog = install &&
4406 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4407 # AIX install. It has an incompatible calling convention.
4409 elif test $ac_prog = install &&
4410 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4411 # program-specific install script used by HP pwplus--don't use.
4414 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4427 if test "${ac_cv_path_install+set}" = set; then
4428 INSTALL
=$ac_cv_path_install
4430 # As a last resort, use the slow shell script. Don't cache a
4431 # value for INSTALL within a source directory, because that will
4432 # break other packages using the cache if that directory is
4433 # removed, or if the value is a relative name.
4434 INSTALL
=$ac_install_sh
4437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4438 echo "${ECHO_T}$INSTALL" >&6; }
4440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4441 # It thinks the first close brace ends the variable substitution.
4442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4446 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4449 # Not every filesystem supports hard links
4451 if test -z "$LN" ; then
4452 case $ac_sys_system in
4453 CYGWIN
*) LN
="ln -s";;
4454 atheos
*) LN
="ln -s";;
4459 # Check for --with-pydebug
4460 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4461 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4463 # Check whether --with-pydebug was given.
4464 if test "${with_pydebug+set}" = set; then
4465 withval
=$with_pydebug;
4466 if test "$withval" != no
4469 cat >>confdefs.h
<<\_ACEOF
4473 { echo "$as_me:$LINENO: result: yes" >&5
4474 echo "${ECHO_T}yes" >&6; };
4476 else { echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4480 { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4485 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4486 # merged with this chunk of code?
4488 # Optimizer/debugger flags
4489 # ------------------------
4490 # (The following bit of code is complicated enough - please keep things
4491 # indented properly. Just pretend you're editing Python code. ;-)
4493 # There are two parallel sets of case statements below, one that checks to
4494 # see if OPT was set and one that does BASECFLAGS setting based upon
4495 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4498 # tweak OPT based on compiler and platform, only if the user didn't set
4499 # it on the command line
4505 if test "$CC" != 'g++' ; then
4506 STRICT_PROTO
="-Wstrict-prototypes"
4508 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4509 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4512 case $ac_cv_prog_cc_g in
4514 if test "$Py_DEBUG" = 'true' ; then
4515 # Optimization messes up debuggers, so turn it off for
4517 OPT
="-g -Wall $STRICT_PROTO"
4519 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4523 OPT
="-O3 -Wall $STRICT_PROTO"
4526 case $ac_sys_system in
4527 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4540 # The -arch flags for universal builds on OSX
4541 UNIVERSAL_ARCH_FLAGS
=
4544 # tweak BASECFLAGS based on compiler and platform
4547 # Python violates C99 rules, by casting between incompatible
4548 # pointer types. GCC may generate bad code as a result of that,
4549 # so use -fno-strict-aliasing if supported.
4550 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4551 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4553 CC
="$CC -fno-strict-aliasing"
4554 if test "$cross_compiling" = yes; then
4555 ac_cv_no_strict_aliasing_ok
=no
4557 cat >conftest.
$ac_ext <<_ACEOF
4560 cat confdefs.h
>>conftest.
$ac_ext
4561 cat >>conftest.
$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 int main() { return 0; }
4565 rm -f conftest
$ac_exeext
4566 if { (ac_try
="$ac_link"
4568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_link") 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4578 *) ac_try_echo
=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_no_strict_aliasing_ok
=yes
4587 echo "$as_me: program exited with status $ac_status" >&5
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.
$ac_ext >&5
4592 ac_cv_no_strict_aliasing_ok
=no
4594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4599 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4600 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4601 if test $ac_cv_no_strict_aliasing_ok = yes
4603 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4606 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4607 # support. Without this, treatment of subnormals doesn't follow
4609 case $ac_sys_machine in
4611 BASECFLAGS
="$BASECFLAGS -mieee"
4615 case $ac_sys_system in
4617 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4619 # is there any other compiler on Darwin besides gcc?
4621 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4622 # used to be here, but non-Apple gcc doesn't accept them.
4625 if test "${enable_universalsdk}"; then
4626 UNIVERSAL_ARCH_FLAGS
=""
4627 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4628 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4631 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4632 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4633 ARCH_RUN_32BIT
="true"
4635 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4636 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4637 ARCH_RUN_32BIT
="arch -i386 -ppc"
4639 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4640 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
4641 ARCH_RUN_32BIT
="arch -i386"
4643 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4644 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
4645 ARCH_RUN_32BIT
="arch -i386 -ppc"
4648 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4649 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4650 { (exit 1); exit 1; }; }
4655 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4656 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4657 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4658 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4662 # Calculate the right deployment target for this build.
4664 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4665 if test ${cur_target} '>' 10.2; then
4667 if test ${enable_universalsdk}; then
4668 if test "${UNIVERSAL_ARCHS}" = "all"; then
4669 # Ensure that the default platform for a
4670 # 4-way universal build is OSX 10.5,
4671 # that's the first OS release where
4672 # 4-way builds make sense.
4675 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4678 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4681 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4685 if test `arch` = "i386"; then
4686 # On Intel macs default to a deployment
4687 # target of 10.4, that's the first OSX
4688 # release with Intel support.
4693 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4695 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4696 # environment with a value that is the same as what we'll use
4697 # in the Makefile to ensure that we'll get the same compiler
4698 # environment during configure and build time.
4699 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4700 export MACOSX_DEPLOYMENT_TARGET
4701 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4705 BASECFLAGS
="$BASECFLAGS -mieee"
4711 case $ac_sys_system in
4712 OpenUNIX
*|UnixWare
*)
4713 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4716 BASECFLAGS
="$BASECFLAGS -ieee -std"
4719 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4725 if test "$Py_DEBUG" = 'true'; then
4731 if test "$ac_arch_flags"
4733 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4736 # disable check for icc since it seems to pass, but generates a warning
4739 ac_cv_opt_olimit_ok
=no
4742 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4743 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4744 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 CC
="$CC -OPT:Olimit=0"
4749 if test "$cross_compiling" = yes; then
4750 ac_cv_opt_olimit_ok
=no
4752 cat >conftest.
$ac_ext <<_ACEOF
4755 cat confdefs.h
>>conftest.
$ac_ext
4756 cat >>conftest.
$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 int main() { return 0; }
4760 rm -f conftest
$ac_exeext
4761 if { (ac_try
="$ac_link"
4763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_link") 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4771 { (case "(($ac_try" in
4772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4773 *) ac_try_echo
=$ac_try;;
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776 (eval "$ac_try") 2>&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_opt_olimit_ok
=yes
4782 echo "$as_me: program exited with status $ac_status" >&5
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.
$ac_ext >&5
4787 ac_cv_opt_olimit_ok
=no
4789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4796 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4797 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4798 if test $ac_cv_opt_olimit_ok = yes; then
4799 case $ac_sys_system in
4800 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4801 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4806 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4810 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4811 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4812 if test "${ac_cv_olimit_ok+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 CC
="$CC -Olimit 1500"
4817 if test "$cross_compiling" = yes; then
4820 cat >conftest.
$ac_ext <<_ACEOF
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 int main() { return 0; }
4828 rm -f conftest
$ac_exeext
4829 if { (ac_try
="$ac_link"
4831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_link") 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4839 { (case "(($ac_try" in
4840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4841 *) ac_try_echo
=$ac_try;;
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_try") 2>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4850 echo "$as_me: program exited with status $ac_status" >&5
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4857 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4864 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4865 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4866 if test $ac_cv_olimit_ok = yes; then
4867 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4871 # Check whether GCC supports PyArg_ParseTuple format
4872 if test "$GCC" = "yes"
4874 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4875 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4877 CFLAGS
="$CFLAGS -Werror"
4878 cat >conftest.
$ac_ext <<_ACEOF
4881 cat confdefs.h
>>conftest.
$ac_ext
4882 cat >>conftest.
$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4885 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4895 rm -f conftest.
$ac_objext
4896 if { (ac_try
="$ac_compile"
4898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4913 cat >>confdefs.h <<\_ACEOF
4914 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4917 { echo "$as_me:$LINENO: result: yes" >&5
4918 echo "${ECHO_T}yes" >&6; }
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 # On some compilers, pthreads are available without further options
4933 # (e.g. MacOS X). On some of these systems, the compiler will not
4934 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4935 # So we have to see first whether pthreads are available without
4936 # options before we can check whether -Kpthread improves anything.
4937 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4938 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4939 if test "${ac_cv_pthread_is_default+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 if test "$cross_compiling" = yes; then
4943 ac_cv_pthread_is_default=no
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4952 #include <pthread.h>
4954 void* routine(void* p){return NULL;}
4958 if(pthread_create(&p,NULL,routine,NULL)!=0)
4960 (void)pthread_detach(p);
4965 rm -f conftest$ac_exeext
4966 if { (ac_try="$ac_link"
4968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4969 *) ac_try_echo
=$ac_try;;
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_link") 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4976 { (case "(($ac_try" in
4977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_try") 2>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4986 ac_cv_pthread_is_default=yes
4991 echo "$as_me: program exited with status $ac_status" >&5
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4996 ac_cv_pthread_is_default=no
4998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5005 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5006 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5009 if test $ac_cv_pthread_is_default = yes
5013 # -Kpthread, if available, provides the right #defines
5014 # and linker options to make pthread_create available
5015 # Some compilers won't report that they do not support -Kpthread,
5016 # so we need to run a program to see whether it really made the
5017 # function available.
5018 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5019 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5020 if test "${ac_cv_kpthread+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 if test "$cross_compiling" = yes; then
5028 cat >conftest.$ac_ext <<_ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5035 #include <pthread.h>
5037 void* routine(void* p){return NULL;}
5041 if(pthread_create(&p,NULL,routine,NULL)!=0)
5043 (void)pthread_detach(p);
5048 rm -f conftest$ac_exeext
5049 if { (ac_try="$ac_link"
5051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5052 *) ac_try_echo
=$ac_try;;
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_link") 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5059 { (case "(($ac_try" in
5060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064 (eval "$ac_try") 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5070 echo "$as_me: program exited with status $ac_status" >&5
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5084 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5085 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5088 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5090 # -Kthread, if available, provides the right #defines
5091 # and linker options to make pthread_create available
5092 # Some compilers won't report that they do not support -Kthread,
5093 # so we need to run a program to see whether it really made the
5094 # function available.
5095 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5096 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5097 if test "${ac_cv_kthread+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 if test "$cross_compiling" = yes; then
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5112 #include <pthread.h>
5114 void* routine(void* p){return NULL;}
5118 if(pthread_create(&p,NULL,routine,NULL)!=0)
5120 (void)pthread_detach(p);
5125 rm -f conftest$ac_exeext
5126 if { (ac_try="$ac_link"
5128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5129 *) ac_try_echo
=$ac_try;;
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_link") 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5136 { (case "(($ac_try" in
5137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_try") 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5147 echo "$as_me: program exited with status $ac_status" >&5
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5161 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5162 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5165 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5167 # -pthread, if available, provides the right #defines
5168 # and linker options to make pthread_create available
5169 # Some compilers won't report that they do not support -pthread,
5170 # so we need to run a program to see whether it really made the
5171 # function available.
5172 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5173 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5174 if test "${ac_cv_thread+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 if test "$cross_compiling" = yes; then
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5189 #include <pthread.h>
5191 void* routine(void* p){return NULL;}
5195 if(pthread_create(&p,NULL,routine,NULL)!=0)
5197 (void)pthread_detach(p);
5202 rm -f conftest$ac_exeext
5203 if { (ac_try="$ac_link"
5205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5206 *) ac_try_echo
=$ac_try;;
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_link") 2>&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5213 { (case "(($ac_try" in
5214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_try") 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5224 echo "$as_me: program exited with status $ac_status" >&5
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5238 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5239 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5242 # If we have set a CC compiler flag for thread support then
5243 # check if it works for CXX, too.
5247 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5248 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5251 if test "$ac_cv_kpthread" = "yes"
5253 CXX="$CXX -Kpthread"
5254 ac_cv_cxx_thread=yes
5255 elif test "$ac_cv_kthread" = "yes"
5258 ac_cv_cxx_thread=yes
5259 elif test "$ac_cv_pthread" = "yes"
5262 ac_cv_cxx_thread=yes
5265 if test $ac_cv_cxx_thread = yes
5267 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5268 $CXX -c conftest.$ac_ext 2>&5
5269 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5270 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5272 ac_cv_cxx_thread=yes
5278 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5279 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5284 # checks for header files
5285 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5286 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5287 if test "${ac_cv_header_stdc+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5313 *) ac_try_echo
=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5318 grep -v '^ *+' conftest.er1
>conftest.err
5320 cat conftest.err
>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.
$ac_objext; then
5326 ac_cv_header_stdc
=yes
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.
$ac_ext >&5
5331 ac_cv_header_stdc
=no
5334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5336 if test $ac_cv_header_stdc = yes; then
5337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5338 cat >conftest.
$ac_ext <<_ACEOF
5341 cat confdefs.h
>>conftest.
$ac_ext
5342 cat >>conftest.
$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5348 $EGREP "memchr" >/dev
/null
2>&1; then
5351 ac_cv_header_stdc
=no
5357 if test $ac_cv_header_stdc = yes; then
5358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5359 cat >conftest.
$ac_ext <<_ACEOF
5362 cat confdefs.h
>>conftest.
$ac_ext
5363 cat >>conftest.
$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5369 $EGREP "free" >/dev
/null
2>&1; then
5372 ac_cv_header_stdc
=no
5378 if test $ac_cv_header_stdc = yes; then
5379 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5380 if test "$cross_compiling" = yes; then
5383 cat >conftest.
$ac_ext <<_ACEOF
5386 cat confdefs.h
>>conftest.
$ac_ext
5387 cat >>conftest.
$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5391 #if ((' ' & 0x0FF) == 0x020)
5392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5395 # define ISLOWER(c) \
5396 (('a' <= (c) && (c) <= 'i') \
5397 || ('j' <= (c) && (c) <= 'r') \
5398 || ('s' <= (c) && (c) <= 'z'))
5399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407 for (i = 0; i < 256; i++)
5408 if (XOR (islower (i), ISLOWER (i))
5409 || toupper (i) != TOUPPER (i))
5414 rm -f conftest
$ac_exeext
5415 if { (ac_try
="$ac_link"
5417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_link") 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5425 { (case "(($ac_try" in
5426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5427 *) ac_try_echo
=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_try") 2>&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5436 echo "$as_me: program exited with status $ac_status" >&5
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.
$ac_ext >&5
5441 ac_cv_header_stdc
=no
5443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5449 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5450 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5451 if test $ac_cv_header_stdc = yes; then
5453 cat >>confdefs.h
<<\_ACEOF
5454 #define STDC_HEADERS 1
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5469 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5470 inttypes.h stdint.h unistd.h
5472 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 cat >conftest.
$ac_ext <<_ACEOF
5481 cat confdefs.h
>>conftest.
$ac_ext
5482 cat >>conftest.
$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484 $ac_includes_default
5486 #include <$ac_header>
5488 rm -f conftest.
$ac_objext
5489 if { (ac_try
="$ac_compile"
5491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_c_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5505 eval "$as_ac_Header=yes"
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 eval "$as_ac_Header=no"
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 ac_res=`eval echo '${'$as_ac_Header'}'`
5516 { echo "$as_me:$LINENO: result: $ac_res" >&5
5517 echo "${ECHO_T}$ac_res" >&6; }
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5582 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5584 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5585 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5587 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5588 sys/lock.h sys/mkdev.h sys/modem.h \
5589 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5590 sys/termio.h sys/time.h \
5591 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5592 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5593 bluetooth/bluetooth.h linux/tipc.h
5595 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 ac_res=`eval echo '${'$as_ac_Header'}'`
5603 { echo "$as_me:$LINENO: result: $ac_res" >&5
5604 echo "${ECHO_T}$ac_res" >&6; }
5606 # Is the header compilable?
5607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 #include <$ac_header>
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5622 *) ac_try_echo
=$ac_try;;
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1
>conftest.err
5629 cat conftest.err
>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.
$ac_objext; then
5635 ac_header_compiler
=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.
$ac_ext >&5
5640 ac_header_compiler
=no
5643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5645 echo "${ECHO_T}$ac_header_compiler" >&6; }
5647 # Is the header present?
5648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5650 cat >conftest.
$ac_ext <<_ACEOF
5653 cat confdefs.h
>>conftest.
$ac_ext
5654 cat >>conftest.
$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 #include <$ac_header>
5658 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null && {
5671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5674 ac_header_preproc=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_header_preproc=no
5682 rm -f conftest.err conftest.$ac_ext
5683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5684 echo "${ECHO_T}$ac_header_preproc" >&6; }
5686 # So? What about this header?
5687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5693 ac_header_preproc=yes
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5709 ## -------------------------------------- ##
5710 ## Report this to http://bugs.python.org/ ##
5711 ## -------------------------------------- ##
5713 ) | sed "s/^/$as_me: WARNING: /" >&2
5716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 eval "$as_ac_Header=\$ac_header_preproc"
5723 ac_res=`eval echo '${'$as_ac_Header'}'`
5724 { echo "$as_me:$LINENO: result: $ac_res" >&5
5725 echo "${ECHO_T}$ac_res" >&6; }
5728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5729 cat >>confdefs.h <<_ACEOF
5730 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5743 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5744 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5745 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5746 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5772 *) ac_try_echo
=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5777 grep -v '^ *+' conftest.er1
>conftest.err
5779 cat conftest.err
>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.
$ac_objext; then
5785 eval "$as_ac_Header=yes"
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.
$ac_ext >&5
5790 eval "$as_ac_Header=no"
5793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5795 ac_res
=`eval echo '${'$as_ac_Header'}'`
5796 { echo "$as_me:$LINENO: result: $ac_res" >&5
5797 echo "${ECHO_T}$ac_res" >&6; }
5798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5799 cat >>confdefs.h
<<_ACEOF
5800 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5803 ac_header_dirent
=$ac_hdr; break
5807 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5808 if test $ac_header_dirent = dirent.h
; then
5809 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5810 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5811 if test "${ac_cv_search_opendir+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 ac_func_search_save_LIBS
=$LIBS
5815 cat >conftest.
$ac_ext <<_ACEOF
5818 cat confdefs.h
>>conftest.
$ac_ext
5819 cat >>conftest.
$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5822 /* Override any GCC internal prototype to avoid an error.
5823 Use char because int might match the return type of a GCC
5824 builtin and then its argument prototype would still apply. */
5837 for ac_lib
in '' dir
; do
5838 if test -z "$ac_lib"; then
5839 ac_res
="none required"
5842 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5844 rm -f conftest.
$ac_objext conftest
$ac_exeext
5845 if { (ac_try
="$ac_link"
5847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_link") 2>conftest.er1
5853 grep -v '^ *+' conftest.er1 >conftest.err
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest$ac_exeext &&
5861 $as_test_x conftest$ac_exeext; then
5862 ac_cv_search_opendir=$ac_res
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5872 if test "${ac_cv_search_opendir+set}" = set; then
5876 if test "${ac_cv_search_opendir+set}" = set; then
5879 ac_cv_search_opendir=no
5882 LIBS=$ac_func_search_save_LIBS
5884 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5885 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5886 ac_res=$ac_cv_search_opendir
5887 if test "$ac_res" != no; then
5888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5893 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5894 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5895 if test "${ac_cv_search_opendir+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 ac_func_search_save_LIBS=$LIBS
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 /* Override any GCC internal prototype to avoid an error.
5907 Use char because int might match the return type of a GCC
5908 builtin and then its argument prototype would still apply. */
5921 for ac_lib in '' x; do
5922 if test -z "$ac_lib"; then
5923 ac_res="none required"
5926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (ac_try="$ac_link"
5931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5932 *) ac_try_echo
=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_link") 2>conftest.er1
5937 grep -v '^ *+' conftest.er1
>conftest.err
5939 cat conftest.err
>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest
$ac_exeext &&
5945 $as_test_x conftest
$ac_exeext; then
5946 ac_cv_search_opendir
=$ac_res
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.
$ac_ext >&5
5954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5956 if test "${ac_cv_search_opendir+set}" = set; then
5960 if test "${ac_cv_search_opendir+set}" = set; then
5963 ac_cv_search_opendir
=no
5966 LIBS
=$ac_func_search_save_LIBS
5968 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5969 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5970 ac_res
=$ac_cv_search_opendir
5971 if test "$ac_res" != no
; then
5972 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5978 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5979 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5980 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5993 return makedev(0, 0);
5998 rm -f conftest.
$ac_objext conftest
$ac_exeext
5999 if { (ac_try
="$ac_link"
6001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_link") 2>conftest.er1
6007 grep -v '^ *+' conftest.er1 >conftest.err
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } && {
6012 test -z "$ac_c_werror_flag" ||
6013 test ! -s conftest.err
6014 } && test -s conftest$ac_exeext &&
6015 $as_test_x conftest$ac_exeext; then
6016 ac_cv_header_sys_types_h_makedev=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_cv_header_sys_types_h_makedev=no
6024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6025 conftest$ac_exeext conftest.$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6029 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6031 if test $ac_cv_header_sys_types_h_makedev = no; then
6032 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6033 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6034 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6035 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6039 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6041 # Is the header compilable?
6042 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6043 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 $ac_includes_default
6051 #include <sys/mkdev.h>
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6057 *) ac_try_echo
=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6062 grep -v '^ *+' conftest.er1
>conftest.err
6064 cat conftest.err
>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.
$ac_objext; then
6070 ac_header_compiler
=yes
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.
$ac_ext >&5
6075 ac_header_compiler
=no
6078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6080 echo "${ECHO_T}$ac_header_compiler" >&6; }
6082 # Is the header present?
6083 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6084 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6085 cat >conftest.
$ac_ext <<_ACEOF
6088 cat confdefs.h
>>conftest.
$ac_ext
6089 cat >>conftest.
$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <sys/mkdev.h>
6093 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null && {
6106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6109 ac_header_preproc=yes
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 ac_header_preproc=no
6117 rm -f conftest.err conftest.$ac_ext
6118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6119 echo "${ECHO_T}$ac_header_preproc" >&6; }
6121 # So? What about this header?
6122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6124 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6125 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6127 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6128 ac_header_preproc=yes
6131 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6132 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6134 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6136 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6138 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6140 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6142 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6144 ## -------------------------------------- ##
6145 ## Report this to http://bugs.python.org/ ##
6146 ## -------------------------------------- ##
6148 ) | sed "s/^/$as_me: WARNING: /" >&2
6151 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6152 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6153 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6158 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6159 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6162 if test $ac_cv_header_sys_mkdev_h = yes; then
6164 cat >>confdefs.h <<\_ACEOF
6165 #define MAJOR_IN_MKDEV 1
6172 if test $ac_cv_header_sys_mkdev_h = no; then
6173 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6174 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6175 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6180 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6182 # Is the header compilable?
6183 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6184 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6185 cat >conftest.$ac_ext <<_ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6192 #include <sys/sysmacros.h>
6194 rm -f conftest.$ac_objext
6195 if { (ac_try="$ac_compile"
6197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6198 *) ac_try_echo
=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1
>conftest.err
6205 cat conftest.err
>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.
$ac_objext; then
6211 ac_header_compiler
=yes
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.
$ac_ext >&5
6216 ac_header_compiler
=no
6219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 echo "${ECHO_T}$ac_header_compiler" >&6; }
6223 # Is the header present?
6224 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6225 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6226 cat >conftest.
$ac_ext <<_ACEOF
6229 cat confdefs.h
>>conftest.
$ac_ext
6230 cat >>conftest.
$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <sys/sysmacros.h>
6234 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null && {
6247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6250 ac_header_preproc=yes
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_header_preproc=no
6258 rm -f conftest.err conftest.$ac_ext
6259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6260 echo "${ECHO_T}$ac_header_preproc" >&6; }
6262 # So? What about this header?
6263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6266 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6268 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6269 ac_header_preproc=yes
6272 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6273 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6275 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6277 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6279 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6281 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6283 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6285 ## -------------------------------------- ##
6286 ## Report this to http://bugs.python.org/ ##
6287 ## -------------------------------------- ##
6289 ) | sed "s/^/$as_me: WARNING: /" >&2
6292 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6293 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6294 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6299 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6300 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6303 if test $ac_cv_header_sys_sysmacros_h = yes; then
6305 cat >>confdefs.h <<\_ACEOF
6306 #define MAJOR_IN_SYSMACROS 1
6316 # On Solaris, term.h requires curses.h
6318 for ac_header in term.h
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6333 #ifdef HAVE_CURSES_H
6338 #include <$ac_header>
6340 rm -f conftest.$ac_objext
6341 if { (ac_try="$ac_compile"
6343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6344 *) ac_try_echo
=$ac_try;;
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_compile") 2>conftest.er1
6349 grep -v '^ *+' conftest.er1
>conftest.err
6351 cat conftest.err
>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && {
6354 test -z "$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 } && test -s conftest.
$ac_objext; then
6357 eval "$as_ac_Header=yes"
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.
$ac_ext >&5
6362 eval "$as_ac_Header=no"
6365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6367 ac_res
=`eval echo '${'$as_ac_Header'}'`
6368 { echo "$as_me:$LINENO: result: $ac_res" >&5
6369 echo "${ECHO_T}$ac_res" >&6; }
6370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6371 cat >>confdefs.h
<<_ACEOF
6372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6380 # On Linux, netlink.h requires asm/types.h
6382 for ac_header
in linux
/netlink.h
6384 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 #ifdef HAVE_ASM_TYPES_H
6398 #include <asm/types.h>
6400 #ifdef HAVE_SYS_SOCKET_H
6401 #include <sys/socket.h>
6405 #include <$ac_header>
6407 rm -f conftest.
$ac_objext
6408 if { (ac_try
="$ac_compile"
6410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compile") 2>conftest.er1
6416 grep -v '^ *+' conftest.er1 >conftest.err
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_c_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
6424 eval "$as_ac_Header=yes"
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 eval "$as_ac_Header=no"
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 ac_res=`eval echo '${'$as_ac_Header'}'`
6435 { echo "$as_me:$LINENO: result: $ac_res" >&5
6436 echo "${ECHO_T}$ac_res" >&6; }
6437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6447 # checks for typedefs
6449 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6450 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6461 $EGREP "clock_t" >/dev/null 2>&1; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define clock_t long
6474 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6475 echo "${ECHO_T}$was_it_defined" >&6; }
6477 # Check whether using makedev requires defining _OSF_SOURCE
6478 { echo "$as_me:$LINENO: checking for makedev" >&5
6479 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <sys/types.h>
6495 rm -f conftest.$ac_objext conftest$ac_exeext
6496 if { (ac_try="$ac_link"
6498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6499 *) ac_try_echo
=$ac_try;;
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_link") 2>conftest.er1
6504 grep -v '^ *+' conftest.er1
>conftest.err
6506 cat conftest.err
>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest
$ac_exeext &&
6512 $as_test_x conftest
$ac_exeext; then
6513 ac_cv_has_makedev
=yes
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.
$ac_ext >&5
6518 ac_cv_has_makedev
=no
6521 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6522 conftest
$ac_exeext conftest.
$ac_ext
6523 if test "$ac_cv_has_makedev" = "no"; then
6524 # we didn't link, try if _OSF_SOURCE will allow us to link
6525 cat >conftest.
$ac_ext <<_ACEOF
6528 cat confdefs.h
>>conftest.
$ac_ext
6529 cat >>conftest.
$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 #define _OSF_SOURCE 1
6533 #include <sys/types.h>
6543 rm -f conftest.
$ac_objext conftest
$ac_exeext
6544 if { (ac_try
="$ac_link"
6546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_link") 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && {
6557 test -z "$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 } && test -s conftest$ac_exeext &&
6560 $as_test_x conftest$ac_exeext; then
6561 ac_cv_has_makedev=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_cv_has_makedev=no
6569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6570 conftest$ac_exeext conftest.$ac_ext
6571 if test "$ac_cv_has_makedev" = "yes"; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define _OSF_SOURCE 1
6579 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6580 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6581 if test "$ac_cv_has_makedev" = "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_MAKEDEV 1
6589 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6590 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6591 # defined, but the compiler does not support pragma redefine_extname,
6592 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6593 # structures (such as rlimit64) without declaring them. As a
6594 # work-around, disable LFS on such configurations
6597 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6598 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6606 #define _LARGEFILE_SOURCE 1
6607 #define _FILE_OFFSET_BITS 64
6608 #include <sys/resource.h>
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6622 *) ac_try_echo
=$ac_try;;
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_compile") 2>conftest.er1
6627 grep -v '^ *+' conftest.er1
>conftest.err
6629 cat conftest.err
>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest.
$ac_objext; then
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.
$ac_ext >&5
6643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6644 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6645 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6646 if test "$sol_lfs_bug" = "yes"; then
6650 if test "$use_lfs" = "yes"; then
6651 # Two defines needed to enable largefile support on various platforms
6652 # These may affect some typedefs
6654 cat >>confdefs.h
<<\_ACEOF
6655 #define _LARGEFILE_SOURCE 1
6659 cat >>confdefs.h
<<\_ACEOF
6660 #define _FILE_OFFSET_BITS 64
6665 # Add some code to confdefs.h so that the test for off_t works on SCO
6666 cat >> confdefs.h
<<\EOF
6672 # Type availability checks
6673 { echo "$as_me:$LINENO: checking for mode_t" >&5
6674 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6675 if test "${ac_cv_type_mode_t+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 cat >conftest.
$ac_ext <<_ACEOF
6681 cat confdefs.h
>>conftest.
$ac_ext
6682 cat >>conftest.
$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 $ac_includes_default
6685 typedef mode_t ac__type_new_;
6689 if ((ac__type_new_ *) 0)
6691 if (sizeof (ac__type_new_))
6697 rm -f conftest.
$ac_objext
6698 if { (ac_try
="$ac_compile"
6700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6706 grep -v '^ *+' conftest.er1 >conftest.err
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_type_mode_t=yes
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 ac_cv_type_mode_t=no
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6725 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6726 if test $ac_cv_type_mode_t = yes; then
6730 cat >>confdefs.h <<_ACEOF
6736 { echo "$as_me:$LINENO: checking for off_t" >&5
6737 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6738 if test "${ac_cv_type_off_t+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 cat >conftest.$ac_ext <<_ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 $ac_includes_default
6748 typedef off_t ac__type_new_;
6752 if ((ac__type_new_ *) 0)
6754 if (sizeof (ac__type_new_))
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6764 *) ac_try_echo
=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1
>conftest.err
6771 cat conftest.err
>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.
$ac_objext; then
6777 ac_cv_type_off_t
=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6787 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6788 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6789 if test $ac_cv_type_off_t = yes; then
6793 cat >>confdefs.h
<<_ACEOF
6794 #define off_t long int
6799 { echo "$as_me:$LINENO: checking for pid_t" >&5
6800 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6801 if test "${ac_cv_type_pid_t+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 cat >conftest.
$ac_ext <<_ACEOF
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6811 typedef pid_t ac__type_new_;
6815 if ((ac__type_new_ *) 0)
6817 if (sizeof (ac__type_new_))
6823 rm -f conftest.
$ac_objext
6824 if { (ac_try
="$ac_compile"
6826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_type_pid_t=yes
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6851 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6852 if test $ac_cv_type_pid_t = yes; then
6856 cat >>confdefs.h <<_ACEOF
6862 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6863 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6864 if test "${ac_cv_type_signal+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <sys/types.h>
6879 return *(signal (0, 0)) (0) == 1;
6884 rm -f conftest.$ac_objext
6885 if { (ac_try="$ac_compile"
6887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6888 *) ac_try_echo
=$ac_try;;
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1
>conftest.err
6895 cat conftest.err
>&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.
$ac_objext; then
6901 ac_cv_type_signal
=int
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.
$ac_ext >&5
6906 ac_cv_type_signal
=void
6909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6911 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6912 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6914 cat >>confdefs.h
<<_ACEOF
6915 #define RETSIGTYPE $ac_cv_type_signal
6919 { echo "$as_me:$LINENO: checking for size_t" >&5
6920 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6921 if test "${ac_cv_type_size_t+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 cat >conftest.
$ac_ext <<_ACEOF
6927 cat confdefs.h
>>conftest.
$ac_ext
6928 cat >>conftest.
$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 typedef size_t ac__type_new_;
6935 if ((ac__type_new_ *) 0)
6937 if (sizeof (ac__type_new_))
6943 rm -f conftest.
$ac_objext
6944 if { (ac_try
="$ac_compile"
6946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_compile") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 ac_cv_type_size_t=yes
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_cv_type_size_t=no
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6971 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6972 if test $ac_cv_type_size_t = yes; then
6976 cat >>confdefs.h <<_ACEOF
6977 #define size_t unsigned int
6982 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6983 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6984 if test "${ac_cv_type_uid_t+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6997 $EGREP "uid_t" >/dev/null 2>&1; then
6998 ac_cv_type_uid_t=yes
7005 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7006 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7007 if test $ac_cv_type_uid_t = no; then
7009 cat >>confdefs.h <<\_ACEOF
7014 cat >>confdefs.h <<\_ACEOF
7021 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7022 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7023 if test "${ac_cv_c_uint32_t+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7028 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7039 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7050 *) ac_try_echo
=$ac_try;;
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7055 grep -v '^ *+' conftest.er1
>conftest.err
7057 cat conftest.err
>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.
$ac_objext; then
7064 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7065 *) ac_cv_c_uint32_t
=$ac_type ;;
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.
$ac_ext >&5
7075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7076 test "$ac_cv_c_uint32_t" != no
&& break
7079 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7080 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7081 case $ac_cv_c_uint32_t in #(
7085 cat >>confdefs.h
<<\_ACEOF
7090 cat >>confdefs.h
<<_ACEOF
7091 #define uint32_t $ac_cv_c_uint32_t
7097 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7098 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7099 if test "${ac_cv_c_uint64_t+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7104 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7105 cat >conftest.
$ac_ext <<_ACEOF
7108 cat confdefs.h
>>conftest.
$ac_ext
7109 cat >>conftest.
$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 $ac_includes_default
7115 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7122 rm -f conftest.
$ac_objext
7123 if { (ac_try
="$ac_compile"
7125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1 >conftest.err
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7140 uint64_t) ac_cv_c_uint64_t=yes ;;
7141 *) ac_cv_c_uint64_t=$ac_type ;;
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 test "$ac_cv_c_uint64_t" != no && break
7155 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7156 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7157 case $ac_cv_c_uint64_t in #(
7161 cat >>confdefs.h <<\_ACEOF
7166 cat >>confdefs.h <<_ACEOF
7167 #define uint64_t $ac_cv_c_uint64_t
7173 { echo "$as_me:$LINENO: checking for int32_t" >&5
7174 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7175 if test "${ac_cv_c_int32_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 for ac_type in 'int32_t' 'int' 'long int' \
7180 'long long int' 'short int' 'signed char'; do
7181 cat >conftest.$ac_ext <<_ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 $ac_includes_default
7191 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7202 *) ac_try_echo
=$ac_try;;
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7207 grep -v '^ *+' conftest.er1
>conftest.err
7209 cat conftest.err
>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.
$ac_objext; then
7215 cat >conftest.
$ac_ext <<_ACEOF
7218 cat confdefs.h
>>conftest.
$ac_ext
7219 cat >>conftest.
$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 $ac_includes_default
7225 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7226 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7233 rm -f conftest.
$ac_objext
7234 if { (ac_try
="$ac_compile"
7236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7242 grep -v '^ *+' conftest.er1 >conftest.err
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.$ac_objext; then
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7256 int32_t) ac_cv_c_int32_t=yes ;;
7257 *) ac_cv_c_int32_t=$ac_type ;;
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 test "$ac_cv_c_int32_t" != no && break
7274 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7275 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7276 case $ac_cv_c_int32_t in #(
7280 cat >>confdefs.h <<_ACEOF
7281 #define int32_t $ac_cv_c_int32_t
7287 { echo "$as_me:$LINENO: checking for int64_t" >&5
7288 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7289 if test "${ac_cv_c_int64_t+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 for ac_type in 'int64_t' 'int' 'long int' \
7294 'long long int' 'short int' 'signed char'; do
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7305 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7316 *) ac_try_echo
=$ac_try;;
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7321 grep -v '^ *+' conftest.er1
>conftest.err
7323 cat conftest.err
>&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.
$ac_objext; then
7329 cat >conftest.
$ac_ext <<_ACEOF
7332 cat confdefs.h
>>conftest.
$ac_ext
7333 cat >>conftest.
$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7339 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7340 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7347 rm -f conftest.
$ac_objext
7348 if { (ac_try
="$ac_compile"
7350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.$ac_objext; then
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7370 int64_t) ac_cv_c_int64_t=yes ;;
7371 *) ac_cv_c_int64_t=$ac_type ;;
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 test "$ac_cv_c_int64_t" != no && break
7388 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7389 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7390 case $ac_cv_c_int64_t in #(
7394 cat >>confdefs.h <<_ACEOF
7395 #define int64_t $ac_cv_c_int64_t
7400 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7401 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7402 if test "${ac_cv_type_ssize_t+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 typedef ssize_t ac__type_new_;
7416 if ((ac__type_new_ *) 0)
7418 if (sizeof (ac__type_new_))
7424 rm -f conftest.$ac_objext
7425 if { (ac_try="$ac_compile"
7427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7428 *) ac_try_echo
=$ac_try;;
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_compile") 2>conftest.er1
7433 grep -v '^ *+' conftest.er1
>conftest.err
7435 cat conftest.err
>&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && {
7438 test -z "$ac_c_werror_flag" ||
7439 test ! -s conftest.err
7440 } && test -s conftest.
$ac_objext; then
7441 ac_cv_type_ssize_t
=yes
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.
$ac_ext >&5
7446 ac_cv_type_ssize_t
=no
7449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7451 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7452 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7453 if test $ac_cv_type_ssize_t = yes; then
7455 cat >>confdefs.h
<<\_ACEOF
7456 #define HAVE_SSIZE_T 1
7462 # Sizes of various common basic types
7463 # ANSI C requires sizeof(char) == 1, so no need to check it
7464 { echo "$as_me:$LINENO: checking for int" >&5
7465 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7466 if test "${ac_cv_type_int+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >conftest.
$ac_ext <<_ACEOF
7472 cat confdefs.h
>>conftest.
$ac_ext
7473 cat >>conftest.
$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 typedef int ac__type_new_;
7480 if ((ac__type_new_ *) 0)
7482 if (sizeof (ac__type_new_))
7488 rm -f conftest.
$ac_objext
7489 if { (ac_try
="$ac_compile"
7491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7516 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7518 # The cast to long int works around a bug in the HP C Compiler
7519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7520 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7521 # This bug is HP SR number 8606223364.
7522 { echo "$as_me:$LINENO: checking size of int" >&5
7523 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7524 if test "${ac_cv_sizeof_int+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 if test "$cross_compiling" = yes; then
7528 # Depending upon the size, compute the lo and hi bounds.
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7536 typedef int ac__type_sizeof_;
7540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7547 rm -f conftest.$ac_objext
7548 if { (ac_try="$ac_compile"
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7556 grep -v '^
*+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 $ac_includes_default
7573 typedef int ac__type_sizeof_;
7577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7593 grep -v '^
*+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 ac_hi=$ac_mid; break
7603 echo "$as_me: failed program was:" >&5
7604 sed 's
/^
/|
/' conftest.$ac_ext >&5
7606 ac_lo=`expr $ac_mid + 1`
7607 if test $ac_lo -le $ac_mid; then
7611 ac_mid=`expr 2 '*' $ac_mid + 1`
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 echo "$as_me: failed program was:" >&5
7618 sed 's
/^
/|
/' conftest.$ac_ext >&5
7620 cat >conftest.$ac_ext <<_ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 $ac_includes_default
7627 typedef int ac__type_sizeof_;
7631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_compile") 2>conftest.er1
7647 grep -v '^
*+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest.$ac_objext; then
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7664 typedef int ac__type_sizeof_;
7668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7684 grep -v '^
*+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 ac_lo=$ac_mid; break
7694 echo "$as_me: failed program was:" >&5
7695 sed 's
/^
/|
/' conftest.$ac_ext >&5
7697 ac_hi=`expr '(' $ac_mid ')' - 1`
7698 if test $ac_mid -le $ac_hi; then
7702 ac_mid=`expr 2 '*' $ac_mid`
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 echo "$as_me: failed program was:" >&5
7709 sed 's
/^
/|
/' conftest.$ac_ext >&5
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 # Binary search between lo and hi bounds.
7719 while test "x$ac_lo" != "x$ac_hi"; do
7720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 typedef int ac__type_sizeof_;
7732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7748 grep -v '^
*+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
7758 echo "$as_me: failed program was:" >&5
7759 sed 's
/^
/|
/' conftest.$ac_ext >&5
7761 ac_lo=`expr '(' $ac_mid ')' + 1`
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 ?*) ac_cv_sizeof_int=$ac_lo;;
7768 '') if test "$ac_cv_type_int" = yes; then
7769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7770 See \`config.log' for more details.
" >&5
7771 echo "$as_me: error
: cannot compute sizeof
(int
)
7772 See \
`config.log' for more details." >&2;}
7773 { (exit 77); exit 77; }; }
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 $ac_includes_default
7786 typedef int ac__type_sizeof_;
7787 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7788 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7795 FILE *f = fopen ("conftest.val", "w");
7798 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7800 long int i = longval ();
7801 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7803 fprintf (f, "%ld\n", i);
7807 unsigned long int i = ulongval ();
7808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7810 fprintf (f, "%lu\n", i);
7812 return ferror (f) || fclose (f) != 0;
7818 rm -f conftest$ac_exeext
7819 if { (ac_try="$ac_link"
7821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7822 *) ac_try_echo
=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_link") 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7829 { (case "(($ac_try" in
7830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_sizeof_int=`cat conftest.val
`
7840 echo "$as_me: program exited with status $ac_status" >&5
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7845 if test "$ac_cv_type_int" = yes; then
7846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7847 See \`config.log
' for more details." >&5
7848 echo "$as_me: error: cannot compute sizeof (int)
7849 See \`config.log' for more details.
" >&2;}
7850 { (exit 77); exit 77; }; }
7855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7859 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7860 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7864 cat >>confdefs.h <<_ACEOF
7865 #define SIZEOF_INT $ac_cv_sizeof_int
7869 { echo "$as_me:$LINENO: checking
for long
" >&5
7870 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7871 if test "${ac_cv_type_long+set}" = set; then
7872 echo $ECHO_N "(cached
) $ECHO_C" >&6
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 $ac_includes_default
7881 typedef long ac__type_new_;
7885 if ((ac__type_new_ *) 0)
7887 if (sizeof (ac__type_new_))
7893 rm -f conftest.$ac_objext
7894 if { (ac_try="$ac_compile"
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7900 (eval "$ac_compile") 2>conftest.er1
7902 grep -v '^ *+' conftest.er1 >conftest.err
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest.$ac_objext; then
7912 echo "$as_me: failed program was
:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7921 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7923 # The cast to long int works around a bug in the HP C Compiler
7924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7926 # This bug is HP SR number 8606223364.
7927 { echo "$as_me:$LINENO: checking size of long
" >&5
7928 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7929 if test "${ac_cv_sizeof_long+set}" = set; then
7930 echo $ECHO_N "(cached
) $ECHO_C" >&6
7932 if test "$cross_compiling" = yes; then
7933 # Depending upon the size, compute the lo and hi bounds.
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 typedef long ac__type_sizeof_;
7945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7952 rm -f conftest.$ac_objext
7953 if { (ac_try="$ac_compile"
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_compile") 2>conftest.er1
7961 grep -v '^ *+' conftest.er1 >conftest.err
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7965 (exit $ac_status); } && {
7966 test -z "$ac_c_werror_flag" ||
7967 test ! -s conftest.err
7968 } && test -s conftest.$ac_objext; then
7971 cat >conftest.$ac_ext <<_ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977 $ac_includes_default
7978 typedef long ac__type_sizeof_;
7982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7989 rm -f conftest.$ac_objext
7990 if { (ac_try="$ac_compile"
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_compile") 2>conftest.er1
7998 grep -v '^ *+' conftest.er1 >conftest.err
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8002 (exit $ac_status); } && {
8003 test -z "$ac_c_werror_flag" ||
8004 test ! -s conftest.err
8005 } && test -s conftest.$ac_objext; then
8006 ac_hi=$ac_mid; break
8008 echo "$as_me: failed program was
:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 ac_lo=`expr $ac_mid + 1`
8012 if test $ac_lo -le $ac_mid; then
8016 ac_mid=`expr 2 '*' $ac_mid + 1`
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 echo "$as_me: failed program was
:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 cat >conftest.$ac_ext <<_ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 $ac_includes_default
8032 typedef long ac__type_sizeof_;
8036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8062 cat >conftest.$ac_ext <<_ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8069 typedef long ac__type_sizeof_;
8073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.$ac_objext; then
8097 ac_lo=$ac_mid; break
8099 echo "$as_me: failed program was
:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 ac_hi=`expr '(' $ac_mid ')' - 1`
8103 if test $ac_mid -le $ac_hi; then
8107 ac_mid=`expr 2 '*' $ac_mid`
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 echo "$as_me: failed program was
:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 # Binary search between lo and hi bounds.
8124 while test "x
$ac_lo" != "x
$ac_hi"; do
8125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 typedef long ac__type_sizeof_;
8137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8163 echo "$as_me: failed program was
:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_lo=`expr '(' $ac_mid ')' + 1`
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 ?*) ac_cv_sizeof_long=$ac_lo;;
8173 '') if test "$ac_cv_type_long" = yes; then
8174 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8175 See \
`config.log' for more details." >&5
8176 echo "$as_me: error: cannot compute sizeof (long)
8177 See \`config.log
' for more details." >&2;}
8178 { (exit 77); exit 77; }; }
8184 cat >conftest.$ac_ext <<_ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8191 typedef long ac__type_sizeof_;
8192 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8193 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8200 FILE *f = fopen ("conftest.val", "w");
8203 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8205 long int i = longval ();
8206 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8208 fprintf (f, "%ld\n", i);
8212 unsigned long int i = ulongval ();
8213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8215 fprintf (f, "%lu\n", i);
8217 return ferror (f) || fclose (f) != 0;
8223 rm -f conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_sizeof_long=`cat conftest.val`
8245 echo "$as_me: program exited with status $ac_status" >&5
8246 echo "$as_me: failed program was:" >&5
8247 sed 's
/^
/|
/' conftest.$ac_ext >&5
8250 if test "$ac_cv_type_long" = yes; then
8251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8252 See \`config.log' for more details.
" >&5
8253 echo "$as_me: error
: cannot compute sizeof
(long
)
8254 See \
`config.log' for more details." >&2;}
8255 { (exit 77); exit 77; }; }
8260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8264 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8265 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8269 cat >>confdefs.h <<_ACEOF
8270 #define SIZEOF_LONG $ac_cv_sizeof_long
8274 { echo "$as_me:$LINENO: checking for void *" >&5
8275 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8276 if test "${ac_cv_type_void_p+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 $ac_includes_default
8286 typedef void * ac__type_new_;
8290 if ((ac__type_new_ *) 0)
8292 if (sizeof (ac__type_new_))
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8302 *) ac_try_echo
=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_compile") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1
>conftest.err
8309 cat conftest.err
>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest.
$ac_objext; then
8315 ac_cv_type_void_p
=yes
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.
$ac_ext >&5
8320 ac_cv_type_void_p
=no
8323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8325 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8326 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8328 # The cast to long int works around a bug in the HP C Compiler
8329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8331 # This bug is HP SR number 8606223364.
8332 { echo "$as_me:$LINENO: checking size of void *" >&5
8333 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8334 if test "${ac_cv_sizeof_void_p+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 if test "$cross_compiling" = yes; then
8338 # Depending upon the size, compute the lo and hi bounds.
8339 cat >conftest.
$ac_ext <<_ACEOF
8342 cat confdefs.h
>>conftest.
$ac_ext
8343 cat >>conftest.
$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 typedef void * ac__type_sizeof_;
8350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8357 rm -f conftest.
$ac_objext
8358 if { (ac_try
="$ac_compile"
8360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 typedef void * ac__type_sizeof_;
8387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8398 *) ac_try_echo
=$ac_try;;
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
8405 cat conftest.err
>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.
$ac_objext; then
8411 ac_hi
=$ac_mid; break
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8416 ac_lo
=`expr $ac_mid + 1`
8417 if test $ac_lo -le $ac_mid; then
8421 ac_mid
=`expr 2 '*' $ac_mid + 1`
8424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.
$ac_ext >&5
8430 cat >conftest.
$ac_ext <<_ACEOF
8433 cat confdefs.h
>>conftest.
$ac_ext
8434 cat >>conftest.
$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8437 typedef void * ac__type_sizeof_;
8441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8448 rm -f conftest.
$ac_objext
8449 if { (ac_try
="$ac_compile"
8451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 typedef void * ac__type_sizeof_;
8478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8489 *) ac_try_echo
=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1
>conftest.err
8496 cat conftest.err
>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.
$ac_objext; then
8502 ac_lo
=$ac_mid; break
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.
$ac_ext >&5
8507 ac_hi
=`expr '(' $ac_mid ')' - 1`
8508 if test $ac_mid -le $ac_hi; then
8512 ac_mid
=`expr 2 '*' $ac_mid`
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.
$ac_ext >&5
8524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8528 # Binary search between lo and hi bounds.
8529 while test "x$ac_lo" != "x$ac_hi"; do
8530 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8531 cat >conftest.
$ac_ext <<_ACEOF
8534 cat confdefs.h
>>conftest.
$ac_ext
8535 cat >>conftest.
$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 typedef void * ac__type_sizeof_;
8542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8549 rm -f conftest.
$ac_objext
8550 if { (ac_try
="$ac_compile"
8552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_lo=`expr '(' $ac_mid ')' + 1`
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8578 '') if test "$ac_cv_type_void_p" = yes; then
8579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8580 See \`config.log
' for more details." >&5
8581 echo "$as_me: error: cannot compute sizeof (void *)
8582 See \`config.log' for more details.
" >&2;}
8583 { (exit 77); exit 77; }; }
8585 ac_cv_sizeof_void_p=0
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 $ac_includes_default
8596 typedef void * ac__type_sizeof_;
8597 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8598 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8605 FILE *f = fopen ("conftest.val
", "w
");
8608 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8610 long int i = longval ();
8611 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8613 fprintf (f, "%ld
\n", i);
8617 unsigned long int i = ulongval ();
8618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8620 fprintf (f, "%lu
\n", i);
8622 return ferror (f) || fclose (f) != 0;
8628 rm -f conftest$ac_exeext
8629 if { (ac_try="$ac_link"
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_link") 2>&5
8637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_sizeof_void_p=`cat conftest.val`
8650 echo "$as_me: program exited with status
$ac_status" >&5
8651 echo "$as_me: failed program was
:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8655 if test "$ac_cv_type_void_p" = yes; then
8656 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8657 See \
`config.log' for more details." >&5
8658 echo "$as_me: error: cannot compute sizeof (void *)
8659 See \`config.log
' for more details." >&2;}
8660 { (exit 77); exit 77; }; }
8662 ac_cv_sizeof_void_p=0
8665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8669 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8670 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8674 cat >>confdefs.h <<_ACEOF
8675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8679 { echo "$as_me:$LINENO: checking for short" >&5
8680 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8681 if test "${ac_cv_type_short+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 cat >conftest.$ac_ext <<_ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 typedef short ac__type_new_;
8695 if ((ac__type_new_ *) 0)
8697 if (sizeof (ac__type_new_))
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^
*+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_type_short=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's
/^
/|
/' conftest.$ac_ext >&5
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8731 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8733 # The cast to long int works around a bug in the HP C Compiler
8734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8736 # This bug is HP SR number 8606223364.
8737 { echo "$as_me:$LINENO: checking size of short" >&5
8738 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8739 if test "${ac_cv_sizeof_short+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 if test "$cross_compiling" = yes; then
8743 # Depending upon the size, compute the lo and hi bounds.
8744 cat >conftest.
$ac_ext <<_ACEOF
8747 cat confdefs.h
>>conftest.
$ac_ext
8748 cat >>conftest.
$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 typedef short ac__type_sizeof_;
8755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8762 rm -f conftest.
$ac_objext
8763 if { (ac_try
="$ac_compile"
8765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_compile") 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && {
8776 test -z "$ac_c_werror_flag" ||
8777 test ! -s conftest.err
8778 } && test -s conftest.$ac_objext; then
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787 $ac_includes_default
8788 typedef short ac__type_sizeof_;
8792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8799 rm -f conftest.$ac_objext
8800 if { (ac_try="$ac_compile"
8802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8803 *) ac_try_echo
=$ac_try;;
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8808 grep -v '^ *+' conftest.er1
>conftest.err
8810 cat conftest.err
>&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.
$ac_objext; then
8816 ac_hi
=$ac_mid; break
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.
$ac_ext >&5
8821 ac_lo
=`expr $ac_mid + 1`
8822 if test $ac_lo -le $ac_mid; then
8826 ac_mid
=`expr 2 '*' $ac_mid + 1`
8829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.
$ac_ext >&5
8835 cat >conftest.
$ac_ext <<_ACEOF
8838 cat confdefs.h
>>conftest.
$ac_ext
8839 cat >>conftest.
$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 $ac_includes_default
8842 typedef short ac__type_sizeof_;
8846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8853 rm -f conftest.
$ac_objext
8854 if { (ac_try
="$ac_compile"
8856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_compile") 2>conftest.er1
8862 grep -v '^ *+' conftest.er1 >conftest.err
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest.$ac_objext; then
8872 cat >conftest.$ac_ext <<_ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 $ac_includes_default
8879 typedef short ac__type_sizeof_;
8883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8890 rm -f conftest.$ac_objext
8891 if { (ac_try="$ac_compile"
8893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8894 *) ac_try_echo
=$ac_try;;
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8899 grep -v '^ *+' conftest.er1
>conftest.err
8901 cat conftest.err
>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.
$ac_objext; then
8907 ac_lo
=$ac_mid; break
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.
$ac_ext >&5
8912 ac_hi
=`expr '(' $ac_mid ')' - 1`
8913 if test $ac_mid -le $ac_hi; then
8917 ac_mid
=`expr 2 '*' $ac_mid`
8920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.
$ac_ext >&5
8929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8933 # Binary search between lo and hi bounds.
8934 while test "x$ac_lo" != "x$ac_hi"; do
8935 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8936 cat >conftest.
$ac_ext <<_ACEOF
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 typedef short ac__type_sizeof_;
8947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8954 rm -f conftest.
$ac_objext
8955 if { (ac_try
="$ac_compile"
8957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_lo=`expr '(' $ac_mid ')' + 1`
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 ?*) ac_cv_sizeof_short=$ac_lo;;
8983 '') if test "$ac_cv_type_short" = yes; then
8984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8985 See \`config.log
' for more details." >&5
8986 echo "$as_me: error: cannot compute sizeof (short)
8987 See \`config.log' for more details.
" >&2;}
8988 { (exit 77); exit 77; }; }
8990 ac_cv_sizeof_short=0
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 $ac_includes_default
9001 typedef short ac__type_sizeof_;
9002 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9003 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9010 FILE *f = fopen ("conftest.val
", "w
");
9013 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9015 long int i = longval ();
9016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9018 fprintf (f, "%ld
\n", i);
9022 unsigned long int i = ulongval ();
9023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9025 fprintf (f, "%lu
\n", i);
9027 return ferror (f) || fclose (f) != 0;
9033 rm -f conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_link") 2>&5
9042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_sizeof_short=`cat conftest.val`
9055 echo "$as_me: program exited with status
$ac_status" >&5
9056 echo "$as_me: failed program was
:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9060 if test "$ac_cv_type_short" = yes; then
9061 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9062 See \
`config.log' for more details." >&5
9063 echo "$as_me: error: cannot compute sizeof (short)
9064 See \`config.log
' for more details." >&2;}
9065 { (exit 77); exit 77; }; }
9067 ac_cv_sizeof_short=0
9070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9074 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9075 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9079 cat >>confdefs.h <<_ACEOF
9080 #define SIZEOF_SHORT $ac_cv_sizeof_short
9084 { echo "$as_me:$LINENO: checking for float" >&5
9085 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9086 if test "${ac_cv_type_float+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 typedef float ac__type_new_;
9100 if ((ac__type_new_ *) 0)
9102 if (sizeof (ac__type_new_))
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_compile") 2>conftest.er1
9117 grep -v '^
*+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest.$ac_objext; then
9125 ac_cv_type_float=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's
/^
/|
/' conftest.$ac_ext >&5
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9135 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9136 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9138 # The cast to long int works around a bug in the HP C Compiler
9139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9141 # This bug is HP SR number 8606223364.
9142 { echo "$as_me:$LINENO: checking size of float" >&5
9143 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9144 if test "${ac_cv_sizeof_float+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 if test "$cross_compiling" = yes; then
9148 # Depending upon the size, compute the lo and hi bounds.
9149 cat >conftest.
$ac_ext <<_ACEOF
9152 cat confdefs.h
>>conftest.
$ac_ext
9153 cat >>conftest.
$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9156 typedef float ac__type_sizeof_;
9160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9167 rm -f conftest.
$ac_objext
9168 if { (ac_try
="$ac_compile"
9170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_compile") 2>conftest.er1
9176 grep -v '^ *+' conftest.er1 >conftest.err
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest.$ac_objext; then
9186 cat >conftest.$ac_ext <<_ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192 $ac_includes_default
9193 typedef float ac__type_sizeof_;
9197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9204 rm -f conftest.$ac_objext
9205 if { (ac_try="$ac_compile"
9207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9208 *) ac_try_echo
=$ac_try;;
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_compile") 2>conftest.er1
9213 grep -v '^ *+' conftest.er1
>conftest.err
9215 cat conftest.err
>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest.
$ac_objext; then
9221 ac_hi
=$ac_mid; break
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.
$ac_ext >&5
9226 ac_lo
=`expr $ac_mid + 1`
9227 if test $ac_lo -le $ac_mid; then
9231 ac_mid
=`expr 2 '*' $ac_mid + 1`
9234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.
$ac_ext >&5
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9247 typedef float ac__type_sizeof_;
9251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9258 rm -f conftest.
$ac_objext
9259 if { (ac_try
="$ac_compile"
9261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9277 cat >conftest.$ac_ext <<_ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 $ac_includes_default
9284 typedef float ac__type_sizeof_;
9288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9299 *) ac_try_echo
=$ac_try;;
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1
>conftest.err
9306 cat conftest.err
>&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest.
$ac_objext; then
9312 ac_lo
=$ac_mid; break
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.
$ac_ext >&5
9317 ac_hi
=`expr '(' $ac_mid ')' - 1`
9318 if test $ac_mid -le $ac_hi; then
9322 ac_mid
=`expr 2 '*' $ac_mid`
9325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.
$ac_ext >&5
9334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9338 # Binary search between lo and hi bounds.
9339 while test "x$ac_lo" != "x$ac_hi"; do
9340 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9341 cat >conftest.
$ac_ext <<_ACEOF
9344 cat confdefs.h
>>conftest.
$ac_ext
9345 cat >>conftest.
$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 typedef float ac__type_sizeof_;
9352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9359 rm -f conftest.
$ac_objext
9360 if { (ac_try
="$ac_compile"
9362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1 >conftest.err
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_lo=`expr '(' $ac_mid ')' + 1`
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 ?*) ac_cv_sizeof_float=$ac_lo;;
9388 '') if test "$ac_cv_type_float" = yes; then
9389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9390 See \`config.log
' for more details." >&5
9391 echo "$as_me: error: cannot compute sizeof (float)
9392 See \`config.log' for more details.
" >&2;}
9393 { (exit 77); exit 77; }; }
9395 ac_cv_sizeof_float=0
9399 cat >conftest.$ac_ext <<_ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405 $ac_includes_default
9406 typedef float ac__type_sizeof_;
9407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9415 FILE *f = fopen ("conftest.val
", "w
");
9418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9420 long int i = longval ();
9421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9423 fprintf (f, "%ld
\n", i);
9427 unsigned long int i = ulongval ();
9428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9430 fprintf (f, "%lu
\n", i);
9432 return ferror (f) || fclose (f) != 0;
9438 rm -f conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>&5
9447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_try") 2>&5
9456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 ac_cv_sizeof_float=`cat conftest.val`
9460 echo "$as_me: program exited with status
$ac_status" >&5
9461 echo "$as_me: failed program was
:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9465 if test "$ac_cv_type_float" = yes; then
9466 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9467 See \
`config.log' for more details." >&5
9468 echo "$as_me: error: cannot compute sizeof (float)
9469 See \`config.log
' for more details." >&2;}
9470 { (exit 77); exit 77; }; }
9472 ac_cv_sizeof_float=0
9475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9479 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9480 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9484 cat >>confdefs.h <<_ACEOF
9485 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9489 { echo "$as_me:$LINENO: checking for double" >&5
9490 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9491 if test "${ac_cv_type_double+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 $ac_includes_default
9501 typedef double ac__type_new_;
9505 if ((ac__type_new_ *) 0)
9507 if (sizeof (ac__type_new_))
9513 rm -f conftest.$ac_objext
9514 if { (ac_try="$ac_compile"
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_compile") 2>conftest.er1
9522 grep -v '^
*+' conftest.er1 >conftest.err
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest.$ac_objext; then
9530 ac_cv_type_double=yes
9532 echo "$as_me: failed program was:" >&5
9533 sed 's
/^
/|
/' conftest.$ac_ext >&5
9535 ac_cv_type_double=no
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9541 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9543 # The cast to long int works around a bug in the HP C Compiler
9544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9546 # This bug is HP SR number 8606223364.
9547 { echo "$as_me:$LINENO: checking size of double" >&5
9548 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9549 if test "${ac_cv_sizeof_double+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 if test "$cross_compiling" = yes; then
9553 # Depending upon the size, compute the lo and hi bounds.
9554 cat >conftest.
$ac_ext <<_ACEOF
9557 cat confdefs.h
>>conftest.
$ac_ext
9558 cat >>conftest.
$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 $ac_includes_default
9561 typedef double ac__type_sizeof_;
9565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9572 rm -f conftest.
$ac_objext
9573 if { (ac_try
="$ac_compile"
9575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_compile") 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest.$ac_objext; then
9591 cat >conftest.$ac_ext <<_ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 $ac_includes_default
9598 typedef double ac__type_sizeof_;
9602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9609 rm -f conftest.$ac_objext
9610 if { (ac_try="$ac_compile"
9612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9613 *) ac_try_echo
=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_compile") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1
>conftest.err
9620 cat conftest.err
>&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest.
$ac_objext; then
9626 ac_hi
=$ac_mid; break
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.
$ac_ext >&5
9631 ac_lo
=`expr $ac_mid + 1`
9632 if test $ac_lo -le $ac_mid; then
9636 ac_mid
=`expr 2 '*' $ac_mid + 1`
9639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 $ac_includes_default
9652 typedef double ac__type_sizeof_;
9656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9663 rm -f conftest.
$ac_objext
9664 if { (ac_try
="$ac_compile"
9666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest.$ac_objext; then
9682 cat >conftest.$ac_ext <<_ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 $ac_includes_default
9689 typedef double ac__type_sizeof_;
9693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9700 rm -f conftest.$ac_objext
9701 if { (ac_try="$ac_compile"
9703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9704 *) ac_try_echo
=$ac_try;;
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_compile") 2>conftest.er1
9709 grep -v '^ *+' conftest.er1
>conftest.err
9711 cat conftest.err
>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest.
$ac_objext; then
9717 ac_lo
=$ac_mid; break
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.
$ac_ext >&5
9722 ac_hi
=`expr '(' $ac_mid ')' - 1`
9723 if test $ac_mid -le $ac_hi; then
9727 ac_mid
=`expr 2 '*' $ac_mid`
9730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.
$ac_ext >&5
9739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9743 # Binary search between lo and hi bounds.
9744 while test "x$ac_lo" != "x$ac_hi"; do
9745 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9746 cat >conftest.
$ac_ext <<_ACEOF
9749 cat confdefs.h
>>conftest.
$ac_ext
9750 cat >>conftest.
$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 $ac_includes_default
9753 typedef double ac__type_sizeof_;
9757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9764 rm -f conftest.
$ac_objext
9765 if { (ac_try
="$ac_compile"
9767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.$ac_objext; then
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_lo=`expr '(' $ac_mid ')' + 1`
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 ?*) ac_cv_sizeof_double=$ac_lo;;
9793 '') if test "$ac_cv_type_double" = yes; then
9794 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9795 See \`config.log
' for more details." >&5
9796 echo "$as_me: error: cannot compute sizeof (double)
9797 See \`config.log' for more details.
" >&2;}
9798 { (exit 77); exit 77; }; }
9800 ac_cv_sizeof_double=0
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 typedef double ac__type_sizeof_;
9812 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9813 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9820 FILE *f = fopen ("conftest.val
", "w
");
9823 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9825 long int i = longval ();
9826 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9828 fprintf (f, "%ld
\n", i);
9832 unsigned long int i = ulongval ();
9833 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9835 fprintf (f, "%lu
\n", i);
9837 return ferror (f) || fclose (f) != 0;
9843 rm -f conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>&5
9852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_cv_sizeof_double=`cat conftest.val`
9865 echo "$as_me: program exited with status
$ac_status" >&5
9866 echo "$as_me: failed program was
:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9870 if test "$ac_cv_type_double" = yes; then
9871 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9872 See \
`config.log' for more details." >&5
9873 echo "$as_me: error: cannot compute sizeof (double)
9874 See \`config.log
' for more details." >&2;}
9875 { (exit 77); exit 77; }; }
9877 ac_cv_sizeof_double=0
9880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9884 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9885 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9889 cat >>confdefs.h <<_ACEOF
9890 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9894 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9895 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9896 if test "${ac_cv_type_fpos_t+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 cat >conftest.$ac_ext <<_ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9906 typedef fpos_t ac__type_new_;
9910 if ((ac__type_new_ *) 0)
9912 if (sizeof (ac__type_new_))
9918 rm -f conftest.$ac_objext
9919 if { (ac_try="$ac_compile"
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_compile") 2>conftest.er1
9927 grep -v '^
*+' conftest.er1 >conftest.err
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } && {
9932 test -z "$ac_c_werror_flag" ||
9933 test ! -s conftest.err
9934 } && test -s conftest.$ac_objext; then
9935 ac_cv_type_fpos_t=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's
/^
/|
/' conftest.$ac_ext >&5
9940 ac_cv_type_fpos_t=no
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9946 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9948 # The cast to long int works around a bug in the HP C Compiler
9949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9951 # This bug is HP SR number 8606223364.
9952 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9953 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9954 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 if test "$cross_compiling" = yes; then
9958 # Depending upon the size, compute the lo and hi bounds.
9959 cat >conftest.
$ac_ext <<_ACEOF
9962 cat confdefs.h
>>conftest.
$ac_ext
9963 cat >>conftest.
$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 $ac_includes_default
9966 typedef fpos_t ac__type_sizeof_;
9970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9977 rm -f conftest.
$ac_objext
9978 if { (ac_try
="$ac_compile"
9980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_compile") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest.$ac_objext; then
9996 cat >conftest.$ac_ext <<_ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 $ac_includes_default
10003 typedef fpos_t ac__type_sizeof_;
10007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10018 *) ac_try_echo
=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_compile") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1
>conftest.err
10025 cat conftest.err
>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest.
$ac_objext; then
10031 ac_hi
=$ac_mid; break
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.
$ac_ext >&5
10036 ac_lo
=`expr $ac_mid + 1`
10037 if test $ac_lo -le $ac_mid; then
10041 ac_mid
=`expr 2 '*' $ac_mid + 1`
10044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.
$ac_ext >&5
10050 cat >conftest.
$ac_ext <<_ACEOF
10053 cat confdefs.h
>>conftest.
$ac_ext
10054 cat >>conftest.
$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 typedef fpos_t ac__type_sizeof_;
10061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10068 rm -f conftest.
$ac_objext
10069 if { (ac_try
="$ac_compile"
10070 case "(($ac_try" in
10071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_compile") 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest.$ac_objext; then
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 typedef fpos_t ac__type_sizeof_;
10098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10105 rm -f conftest.$ac_objext
10106 if { (ac_try="$ac_compile"
10107 case "(($ac_try" in
10108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10109 *) ac_try_echo
=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_compile") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1
>conftest.err
10116 cat conftest.err
>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest.
$ac_objext; then
10122 ac_lo
=$ac_mid; break
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.
$ac_ext >&5
10127 ac_hi
=`expr '(' $ac_mid ')' - 1`
10128 if test $ac_mid -le $ac_hi; then
10132 ac_mid
=`expr 2 '*' $ac_mid`
10135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.
$ac_ext >&5
10144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10148 # Binary search between lo and hi bounds.
10149 while test "x$ac_lo" != "x$ac_hi"; do
10150 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10151 cat >conftest.
$ac_ext <<_ACEOF
10154 cat confdefs.h
>>conftest.
$ac_ext
10155 cat >>conftest.
$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 $ac_includes_default
10158 typedef fpos_t ac__type_sizeof_;
10162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10169 rm -f conftest.
$ac_objext
10170 if { (ac_try
="$ac_compile"
10171 case "(($ac_try" in
10172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_lo=`expr '(' $ac_mid ')' + 1`
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10198 '') if test "$ac_cv_type_fpos_t" = yes; then
10199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10200 See \`config.log
' for more details." >&5
10201 echo "$as_me: error: cannot compute sizeof (fpos_t)
10202 See \`config.log' for more details.
" >&2;}
10203 { (exit 77); exit 77; }; }
10205 ac_cv_sizeof_fpos_t=0
10209 cat >conftest.$ac_ext <<_ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10216 typedef fpos_t ac__type_sizeof_;
10217 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10218 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10220 #include <stdlib.h>
10225 FILE *f = fopen ("conftest.val
", "w
");
10228 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10230 long int i = longval ();
10231 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10233 fprintf (f, "%ld
\n", i);
10237 unsigned long int i = ulongval ();
10238 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10240 fprintf (f, "%lu
\n", i);
10242 return ferror (f) || fclose (f) != 0;
10248 rm -f conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_link") 2>&5
10257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10259 { (case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_try") 2>&5
10266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_cv_sizeof_fpos_t=`cat conftest.val`
10270 echo "$as_me: program exited with status
$ac_status" >&5
10271 echo "$as_me: failed program was
:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ( exit $ac_status )
10275 if test "$ac_cv_type_fpos_t" = yes; then
10276 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10277 See \
`config.log' for more details." >&5
10278 echo "$as_me: error: cannot compute sizeof (fpos_t)
10279 See \`config.log
' for more details." >&2;}
10280 { (exit 77); exit 77; }; }
10282 ac_cv_sizeof_fpos_t=0
10285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10289 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10290 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10294 cat >>confdefs.h <<_ACEOF
10295 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10299 { echo "$as_me:$LINENO: checking for size_t" >&5
10300 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10301 if test "${ac_cv_type_size_t+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 $ac_includes_default
10311 typedef size_t ac__type_new_;
10315 if ((ac__type_new_ *) 0)
10317 if (sizeof (ac__type_new_))
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10332 grep -v '^
*+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_cv_type_size_t=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's
/^
/|
/' conftest.$ac_ext >&5
10345 ac_cv_type_size_t=no
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10351 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10353 # The cast to long int works around a bug in the HP C Compiler
10354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10356 # This bug is HP SR number 8606223364.
10357 { echo "$as_me:$LINENO: checking size of size_t" >&5
10358 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10359 if test "${ac_cv_sizeof_size_t+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test "$cross_compiling" = yes; then
10363 # Depending upon the size, compute the lo and hi bounds.
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10371 typedef size_t ac__type_sizeof_;
10375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10382 rm -f conftest.
$ac_objext
10383 if { (ac_try
="$ac_compile"
10384 case "(($ac_try" in
10385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_compile") 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest.$ac_objext; then
10401 cat >conftest.$ac_ext <<_ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 $ac_includes_default
10408 typedef size_t ac__type_sizeof_;
10412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10419 rm -f conftest.$ac_objext
10420 if { (ac_try="$ac_compile"
10421 case "(($ac_try" in
10422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10423 *) ac_try_echo
=$ac_try;;
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_compile") 2>conftest.er1
10428 grep -v '^ *+' conftest.er1
>conftest.err
10430 cat conftest.err
>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && {
10433 test -z "$ac_c_werror_flag" ||
10434 test ! -s conftest.err
10435 } && test -s conftest.
$ac_objext; then
10436 ac_hi
=$ac_mid; break
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.
$ac_ext >&5
10441 ac_lo
=`expr $ac_mid + 1`
10442 if test $ac_lo -le $ac_mid; then
10446 ac_mid
=`expr 2 '*' $ac_mid + 1`
10449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.
$ac_ext >&5
10455 cat >conftest.
$ac_ext <<_ACEOF
10458 cat confdefs.h
>>conftest.
$ac_ext
10459 cat >>conftest.
$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 $ac_includes_default
10462 typedef size_t ac__type_sizeof_;
10466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10473 rm -f conftest.
$ac_objext
10474 if { (ac_try
="$ac_compile"
10475 case "(($ac_try" in
10476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_compile") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest.$ac_objext; then
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 $ac_includes_default
10499 typedef size_t ac__type_sizeof_;
10503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10510 rm -f conftest.$ac_objext
10511 if { (ac_try="$ac_compile"
10512 case "(($ac_try" in
10513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10514 *) ac_try_echo
=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_compile") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1
>conftest.err
10521 cat conftest.err
>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && {
10524 test -z "$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 } && test -s conftest.
$ac_objext; then
10527 ac_lo
=$ac_mid; break
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.
$ac_ext >&5
10532 ac_hi
=`expr '(' $ac_mid ')' - 1`
10533 if test $ac_mid -le $ac_hi; then
10537 ac_mid
=`expr 2 '*' $ac_mid`
10540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.
$ac_ext >&5
10549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10553 # Binary search between lo and hi bounds.
10554 while test "x$ac_lo" != "x$ac_hi"; do
10555 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10556 cat >conftest.
$ac_ext <<_ACEOF
10559 cat confdefs.h
>>conftest.
$ac_ext
10560 cat >>conftest.
$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 typedef size_t ac__type_sizeof_;
10567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10574 rm -f conftest.
$ac_objext
10575 if { (ac_try
="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_lo=`expr '(' $ac_mid ')' + 1`
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10603 '') if test "$ac_cv_type_size_t" = yes; then
10604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10605 See \`config.log
' for more details." >&5
10606 echo "$as_me: error: cannot compute sizeof (size_t)
10607 See \`config.log' for more details.
" >&2;}
10608 { (exit 77); exit 77; }; }
10610 ac_cv_sizeof_size_t=0
10614 cat >conftest.$ac_ext <<_ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10621 typedef size_t ac__type_sizeof_;
10622 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10623 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10625 #include <stdlib.h>
10630 FILE *f = fopen ("conftest.val
", "w
");
10633 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10635 long int i = longval ();
10636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10638 fprintf (f, "%ld
\n", i);
10642 unsigned long int i = ulongval ();
10643 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10645 fprintf (f, "%lu
\n", i);
10647 return ferror (f) || fclose (f) != 0;
10653 rm -f conftest$ac_exeext
10654 if { (ac_try="$ac_link"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_link") 2>&5
10662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_sizeof_size_t=`cat conftest.val`
10675 echo "$as_me: program exited with status
$ac_status" >&5
10676 echo "$as_me: failed program was
:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ( exit $ac_status )
10680 if test "$ac_cv_type_size_t" = yes; then
10681 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10682 See \
`config.log' for more details." >&5
10683 echo "$as_me: error: cannot compute sizeof (size_t)
10684 See \`config.log
' for more details." >&2;}
10685 { (exit 77); exit 77; }; }
10687 ac_cv_sizeof_size_t=0
10690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10694 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10695 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10699 cat >>confdefs.h <<_ACEOF
10700 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10704 { echo "$as_me:$LINENO: checking for pid_t" >&5
10705 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10706 if test "${ac_cv_type_pid_t+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10716 typedef pid_t ac__type_new_;
10720 if ((ac__type_new_ *) 0)
10722 if (sizeof (ac__type_new_))
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10737 grep -v '^
*+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_cv_type_pid_t=yes
10747 echo "$as_me: failed program was:" >&5
10748 sed 's
/^
/|
/' conftest.$ac_ext >&5
10750 ac_cv_type_pid_t=no
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10756 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10758 # The cast to long int works around a bug in the HP C Compiler
10759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10761 # This bug is HP SR number 8606223364.
10762 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10763 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10764 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 if test "$cross_compiling" = yes; then
10768 # Depending upon the size, compute the lo and hi bounds.
10769 cat >conftest.
$ac_ext <<_ACEOF
10772 cat confdefs.h
>>conftest.
$ac_ext
10773 cat >>conftest.
$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 $ac_includes_default
10776 typedef pid_t ac__type_sizeof_;
10780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10787 rm -f conftest.
$ac_objext
10788 if { (ac_try
="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_compile") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest.$ac_objext; then
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 $ac_includes_default
10813 typedef pid_t ac__type_sizeof_;
10817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10824 rm -f conftest.$ac_objext
10825 if { (ac_try="$ac_compile"
10826 case "(($ac_try" in
10827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10828 *) ac_try_echo
=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_compile") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1
>conftest.err
10835 cat conftest.err
>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest.
$ac_objext; then
10841 ac_hi
=$ac_mid; break
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.
$ac_ext >&5
10846 ac_lo
=`expr $ac_mid + 1`
10847 if test $ac_lo -le $ac_mid; then
10851 ac_mid
=`expr 2 '*' $ac_mid + 1`
10854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.
$ac_ext >&5
10860 cat >conftest.
$ac_ext <<_ACEOF
10863 cat confdefs.h
>>conftest.
$ac_ext
10864 cat >>conftest.
$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 $ac_includes_default
10867 typedef pid_t ac__type_sizeof_;
10871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10878 rm -f conftest.
$ac_objext
10879 if { (ac_try
="$ac_compile"
10880 case "(($ac_try" in
10881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_compile") 2>conftest.er1
10887 grep -v '^ *+' conftest.er1 >conftest.err
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } && {
10892 test -z "$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10894 } && test -s conftest.$ac_objext; then
10897 cat >conftest.$ac_ext <<_ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 $ac_includes_default
10904 typedef pid_t ac__type_sizeof_;
10908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10915 rm -f conftest.$ac_objext
10916 if { (ac_try="$ac_compile"
10917 case "(($ac_try" in
10918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10919 *) ac_try_echo
=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_compile") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1
>conftest.err
10926 cat conftest.err
>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest.
$ac_objext; then
10932 ac_lo
=$ac_mid; break
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.
$ac_ext >&5
10937 ac_hi
=`expr '(' $ac_mid ')' - 1`
10938 if test $ac_mid -le $ac_hi; then
10942 ac_mid
=`expr 2 '*' $ac_mid`
10945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.
$ac_ext >&5
10954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10958 # Binary search between lo and hi bounds.
10959 while test "x$ac_lo" != "x$ac_hi"; do
10960 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10961 cat >conftest.
$ac_ext <<_ACEOF
10964 cat confdefs.h
>>conftest.
$ac_ext
10965 cat >>conftest.
$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_includes_default
10968 typedef pid_t ac__type_sizeof_;
10972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10979 rm -f conftest.
$ac_objext
10980 if { (ac_try
="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.$ac_objext; then
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_lo=`expr '(' $ac_mid ')' + 1`
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11008 '') if test "$ac_cv_type_pid_t" = yes; then
11009 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11010 See \`config.log
' for more details." >&5
11011 echo "$as_me: error: cannot compute sizeof (pid_t)
11012 See \`config.log' for more details.
" >&2;}
11013 { (exit 77); exit 77; }; }
11015 ac_cv_sizeof_pid_t=0
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 typedef pid_t ac__type_sizeof_;
11027 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11028 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11030 #include <stdlib.h>
11035 FILE *f = fopen ("conftest.val
", "w
");
11038 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11040 long int i = longval ();
11041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11043 fprintf (f, "%ld
\n", i);
11047 unsigned long int i = ulongval ();
11048 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11050 fprintf (f, "%lu
\n", i);
11052 return ferror (f) || fclose (f) != 0;
11058 rm -f conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_link") 2>&5
11067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_sizeof_pid_t=`cat conftest.val`
11080 echo "$as_me: program exited with status
$ac_status" >&5
11081 echo "$as_me: failed program was
:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 ( exit $ac_status )
11085 if test "$ac_cv_type_pid_t" = yes; then
11086 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11087 See \
`config.log' for more details." >&5
11088 echo "$as_me: error: cannot compute sizeof (pid_t)
11089 See \`config.log
' for more details." >&2;}
11090 { (exit 77); exit 77; }; }
11092 ac_cv_sizeof_pid_t=0
11095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11099 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11100 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11104 cat >>confdefs.h <<_ACEOF
11105 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11110 { echo "$as_me:$LINENO: checking for long long support" >&5
11111 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11123 long long x; x = (long long)0;
11128 rm -f conftest.$ac_objext
11129 if { (ac_try="$ac_compile"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_compile") 2>conftest.er1
11137 grep -v '^
*+' conftest.er1 >conftest.err
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest.$ac_objext; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_LONG_LONG 1
11154 echo "$as_me: failed program was:" >&5
11155 sed 's
/^
/|
/' conftest.$ac_ext >&5
11160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11162 echo "${ECHO_T}$have_long_long" >&6; }
11163 if test "$have_long_long" = yes ; then
11164 { echo "$as_me:$LINENO: checking for long long" >&5
11165 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11166 if test "${ac_cv_type_long_long+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 cat >conftest.$ac_ext <<_ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 $ac_includes_default
11176 typedef long long ac__type_new_;
11180 if ((ac__type_new_ *) 0)
11182 if (sizeof (ac__type_new_))
11188 rm -f conftest.$ac_objext
11189 if { (ac_try="$ac_compile"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11197 grep -v '^
*+' conftest.er1 >conftest.err
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11205 ac_cv_type_long_long=yes
11207 echo "$as_me: failed program was:" >&5
11208 sed 's
/^
/|
/' conftest.$ac_ext >&5
11210 ac_cv_type_long_long=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11216 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11218 # The cast to long int works around a bug in the HP C Compiler
11219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11221 # This bug is HP SR number 8606223364.
11222 { echo "$as_me:$LINENO: checking size of long long" >&5
11223 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11224 if test "${ac_cv_sizeof_long_long+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 if test "$cross_compiling" = yes; then
11228 # Depending upon the size, compute the lo and hi bounds.
11229 cat >conftest.
$ac_ext <<_ACEOF
11232 cat confdefs.h
>>conftest.
$ac_ext
11233 cat >>conftest.
$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 typedef long long ac__type_sizeof_;
11240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11247 rm -f conftest.
$ac_objext
11248 if { (ac_try
="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest.$ac_objext; then
11266 cat >conftest.$ac_ext <<_ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11273 typedef long long ac__type_sizeof_;
11277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11288 *) ac_try_echo
=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_compile") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1
>conftest.err
11295 cat conftest.err
>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } && {
11298 test -z "$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 } && test -s conftest.
$ac_objext; then
11301 ac_hi
=$ac_mid; break
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.
$ac_ext >&5
11306 ac_lo
=`expr $ac_mid + 1`
11307 if test $ac_lo -le $ac_mid; then
11311 ac_mid
=`expr 2 '*' $ac_mid + 1`
11314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.
$ac_ext >&5
11320 cat >conftest.
$ac_ext <<_ACEOF
11323 cat confdefs.h
>>conftest.
$ac_ext
11324 cat >>conftest.
$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 typedef long long ac__type_sizeof_;
11331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11338 rm -f conftest.
$ac_objext
11339 if { (ac_try
="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_compile") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest.$ac_objext; then
11357 cat >conftest.$ac_ext <<_ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 $ac_includes_default
11364 typedef long long ac__type_sizeof_;
11368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11379 *) ac_try_echo
=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1
>conftest.err
11386 cat conftest.err
>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest.
$ac_objext; then
11392 ac_lo
=$ac_mid; break
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.
$ac_ext >&5
11397 ac_hi
=`expr '(' $ac_mid ')' - 1`
11398 if test $ac_mid -le $ac_hi; then
11402 ac_mid
=`expr 2 '*' $ac_mid`
11405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.
$ac_ext >&5
11414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11418 # Binary search between lo and hi bounds.
11419 while test "x$ac_lo" != "x$ac_hi"; do
11420 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11421 cat >conftest.
$ac_ext <<_ACEOF
11424 cat confdefs.h
>>conftest.
$ac_ext
11425 cat >>conftest.
$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 typedef long long ac__type_sizeof_;
11432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11439 rm -f conftest.
$ac_objext
11440 if { (ac_try
="$ac_compile"
11441 case "(($ac_try" in
11442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_compile") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest.$ac_objext; then
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_lo=`expr '(' $ac_mid ')' + 1`
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11468 '') if test "$ac_cv_type_long_long" = yes; then
11469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11470 See \`config.log
' for more details." >&5
11471 echo "$as_me: error: cannot compute sizeof (long long)
11472 See \`config.log' for more details.
" >&2;}
11473 { (exit 77); exit 77; }; }
11475 ac_cv_sizeof_long_long=0
11479 cat >conftest.$ac_ext <<_ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 $ac_includes_default
11486 typedef long long ac__type_sizeof_;
11487 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11488 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11490 #include <stdlib.h>
11495 FILE *f = fopen ("conftest.val
", "w
");
11498 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11500 long int i = longval ();
11501 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11503 fprintf (f, "%ld
\n", i);
11507 unsigned long int i = ulongval ();
11508 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11510 fprintf (f, "%lu
\n", i);
11512 return ferror (f) || fclose (f) != 0;
11518 rm -f conftest$ac_exeext
11519 if { (ac_try="$ac_link"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_link") 2>&5
11527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11537 (exit $ac_status); }; }; then
11538 ac_cv_sizeof_long_long=`cat conftest.val`
11540 echo "$as_me: program exited with status
$ac_status" >&5
11541 echo "$as_me: failed program was
:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ( exit $ac_status )
11545 if test "$ac_cv_type_long_long" = yes; then
11546 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11547 See \
`config.log' for more details." >&5
11548 echo "$as_me: error: cannot compute sizeof (long long)
11549 See \`config.log
' for more details." >&2;}
11550 { (exit 77); exit 77; }; }
11552 ac_cv_sizeof_long_long=0
11555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11560 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11564 cat >>confdefs.h <<_ACEOF
11565 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11571 { echo "$as_me:$LINENO: checking for long double support" >&5
11572 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11573 have_long_double=no
11574 cat >conftest.$ac_ext <<_ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11584 long double x; x = (long double)0;
11589 rm -f conftest.$ac_objext
11590 if { (ac_try="$ac_compile"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_compile") 2>conftest.er1
11598 grep -v '^
*+' conftest.er1 >conftest.err
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest.$ac_objext; then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define HAVE_LONG_DOUBLE 1
11612 have_long_double=yes
11615 echo "$as_me: failed program was:" >&5
11616 sed 's
/^
/|
/' conftest.$ac_ext >&5
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11623 echo "${ECHO_T}$have_long_double" >&6; }
11624 if test "$have_long_double" = yes ; then
11625 { echo "$as_me:$LINENO: checking for long double" >&5
11626 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11627 if test "${ac_cv_type_long_double+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 $ac_includes_default
11637 typedef long double ac__type_new_;
11641 if ((ac__type_new_ *) 0)
11643 if (sizeof (ac__type_new_))
11649 rm -f conftest.$ac_objext
11650 if { (ac_try="$ac_compile"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_compile") 2>conftest.er1
11658 grep -v '^
*+' conftest.er1 >conftest.err
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } && {
11663 test -z "$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 } && test -s conftest.$ac_objext; then
11666 ac_cv_type_long_double=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's
/^
/|
/' conftest.$ac_ext >&5
11671 ac_cv_type_long_double=no
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11677 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11679 # The cast to long int works around a bug in the HP C Compiler
11680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11682 # This bug is HP SR number 8606223364.
11683 { echo "$as_me:$LINENO: checking size of long double" >&5
11684 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11685 if test "${ac_cv_sizeof_long_double+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 if test "$cross_compiling" = yes; then
11689 # Depending upon the size, compute the lo and hi bounds.
11690 cat >conftest.
$ac_ext <<_ACEOF
11693 cat confdefs.h
>>conftest.
$ac_ext
11694 cat >>conftest.
$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11697 typedef long double ac__type_sizeof_;
11701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11708 rm -f conftest.
$ac_objext
11709 if { (ac_try
="$ac_compile"
11710 case "(($ac_try" in
11711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_compile") 2>conftest.er1
11717 grep -v '^ *+' conftest.er1 >conftest.err
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest.$ac_objext; then
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 $ac_includes_default
11734 typedef long double ac__type_sizeof_;
11738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11749 *) ac_try_echo
=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_compile") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1
>conftest.err
11756 cat conftest.err
>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest.
$ac_objext; then
11762 ac_hi
=$ac_mid; break
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.
$ac_ext >&5
11767 ac_lo
=`expr $ac_mid + 1`
11768 if test $ac_lo -le $ac_mid; then
11772 ac_mid
=`expr 2 '*' $ac_mid + 1`
11775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.
$ac_ext >&5
11781 cat >conftest.
$ac_ext <<_ACEOF
11784 cat confdefs.h
>>conftest.
$ac_ext
11785 cat >>conftest.
$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11788 typedef long double ac__type_sizeof_;
11792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11799 rm -f conftest.
$ac_objext
11800 if { (ac_try
="$ac_compile"
11801 case "(($ac_try" in
11802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_compile") 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest.$ac_objext; then
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 typedef long double ac__type_sizeof_;
11829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11836 rm -f conftest.$ac_objext
11837 if { (ac_try="$ac_compile"
11838 case "(($ac_try" in
11839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11840 *) ac_try_echo
=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1
>conftest.err
11847 cat conftest.err
>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.
$ac_objext; then
11853 ac_lo
=$ac_mid; break
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.
$ac_ext >&5
11858 ac_hi
=`expr '(' $ac_mid ')' - 1`
11859 if test $ac_mid -le $ac_hi; then
11863 ac_mid
=`expr 2 '*' $ac_mid`
11866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.
$ac_ext >&5
11875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11879 # Binary search between lo and hi bounds.
11880 while test "x$ac_lo" != "x$ac_hi"; do
11881 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11882 cat >conftest.
$ac_ext <<_ACEOF
11885 cat confdefs.h
>>conftest.
$ac_ext
11886 cat >>conftest.
$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11889 typedef long double ac__type_sizeof_;
11893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11900 rm -f conftest.
$ac_objext
11901 if { (ac_try
="$ac_compile"
11902 case "(($ac_try" in
11903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_lo=`expr '(' $ac_mid ')' + 1`
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11929 '') if test "$ac_cv_type_long_double" = yes; then
11930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11931 See \`config.log
' for more details." >&5
11932 echo "$as_me: error: cannot compute sizeof (long double)
11933 See \`config.log' for more details.
" >&2;}
11934 { (exit 77); exit 77; }; }
11936 ac_cv_sizeof_long_double=0
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 typedef long double ac__type_sizeof_;
11948 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11949 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11951 #include <stdlib.h>
11956 FILE *f = fopen ("conftest.val
", "w
");
11959 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11961 long int i = longval ();
11962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11964 fprintf (f, "%ld
\n", i);
11968 unsigned long int i = ulongval ();
11969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11971 fprintf (f, "%lu
\n", i);
11973 return ferror (f) || fclose (f) != 0;
11979 rm -f conftest$ac_exeext
11980 if { (ac_try="$ac_link"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_link") 2>&5
11988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11990 { (case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_try") 2>&5
11997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_sizeof_long_double=`cat conftest.val`
12001 echo "$as_me: program exited with status
$ac_status" >&5
12002 echo "$as_me: failed program was
:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ( exit $ac_status )
12006 if test "$ac_cv_type_long_double" = yes; then
12007 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12008 See \
`config.log' for more details." >&5
12009 echo "$as_me: error: cannot compute sizeof (long double)
12010 See \`config.log
' for more details." >&2;}
12011 { (exit 77); exit 77; }; }
12013 ac_cv_sizeof_long_double=0
12016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12021 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12025 cat >>confdefs.h <<_ACEOF
12026 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12033 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12034 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12046 _Bool x; x = (_Bool)0;
12051 rm -f conftest.$ac_objext
12052 if { (ac_try="$ac_compile"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_compile") 2>conftest.er1
12060 grep -v '^
*+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest.$ac_objext; then
12070 cat >>confdefs.h <<\_ACEOF
12071 #define HAVE_C99_BOOL 1
12077 echo "$as_me: failed program was:" >&5
12078 sed 's
/^
/|
/' conftest.$ac_ext >&5
12083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12085 echo "${ECHO_T}$have_c99_bool" >&6; }
12086 if test "$have_c99_bool" = yes ; then
12087 { echo "$as_me:$LINENO: checking for _Bool" >&5
12088 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12089 if test "${ac_cv_type__Bool+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 $ac_includes_default
12099 typedef _Bool ac__type_new_;
12103 if ((ac__type_new_ *) 0)
12105 if (sizeof (ac__type_new_))
12111 rm -f conftest.$ac_objext
12112 if { (ac_try="$ac_compile"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12120 grep -v '^
*+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 ac_cv_type__Bool=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's
/^
/|
/' conftest.$ac_ext >&5
12133 ac_cv_type__Bool=no
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12139 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12141 # The cast to long int works around a bug in the HP C Compiler
12142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12144 # This bug is HP SR number 8606223364.
12145 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12146 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12147 if test "${ac_cv_sizeof__Bool+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 if test "$cross_compiling" = yes; then
12151 # Depending upon the size, compute the lo and hi bounds.
12152 cat >conftest.
$ac_ext <<_ACEOF
12155 cat confdefs.h
>>conftest.
$ac_ext
12156 cat >>conftest.
$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 $ac_includes_default
12159 typedef _Bool ac__type_sizeof_;
12163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12170 rm -f conftest.
$ac_objext
12171 if { (ac_try
="$ac_compile"
12172 case "(($ac_try" in
12173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_compile") 2>conftest.er1
12179 grep -v '^ *+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest.$ac_objext; then
12189 cat >conftest.$ac_ext <<_ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12195 $ac_includes_default
12196 typedef _Bool ac__type_sizeof_;
12200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12207 rm -f conftest.$ac_objext
12208 if { (ac_try="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12211 *) ac_try_echo
=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12216 grep -v '^ *+' conftest.er1
>conftest.err
12218 cat conftest.err
>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest.
$ac_objext; then
12224 ac_hi
=$ac_mid; break
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.
$ac_ext >&5
12229 ac_lo
=`expr $ac_mid + 1`
12230 if test $ac_lo -le $ac_mid; then
12234 ac_mid
=`expr 2 '*' $ac_mid + 1`
12237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.
$ac_ext >&5
12243 cat >conftest.
$ac_ext <<_ACEOF
12246 cat confdefs.h
>>conftest.
$ac_ext
12247 cat >>conftest.
$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 $ac_includes_default
12250 typedef _Bool ac__type_sizeof_;
12254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12261 rm -f conftest.
$ac_objext
12262 if { (ac_try
="$ac_compile"
12263 case "(($ac_try" in
12264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_compile") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest.$ac_objext; then
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 $ac_includes_default
12287 typedef _Bool ac__type_sizeof_;
12291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12298 rm -f conftest.$ac_objext
12299 if { (ac_try="$ac_compile"
12300 case "(($ac_try" in
12301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12302 *) ac_try_echo
=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_compile") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1
>conftest.err
12309 cat conftest.err
>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.
$ac_objext; then
12315 ac_lo
=$ac_mid; break
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.
$ac_ext >&5
12320 ac_hi
=`expr '(' $ac_mid ')' - 1`
12321 if test $ac_mid -le $ac_hi; then
12325 ac_mid
=`expr 2 '*' $ac_mid`
12328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.
$ac_ext >&5
12337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12341 # Binary search between lo and hi bounds.
12342 while test "x$ac_lo" != "x$ac_hi"; do
12343 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12344 cat >conftest.
$ac_ext <<_ACEOF
12347 cat confdefs.h
>>conftest.
$ac_ext
12348 cat >>conftest.
$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12351 typedef _Bool ac__type_sizeof_;
12355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12362 rm -f conftest.
$ac_objext
12363 if { (ac_try
="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12371 grep -v '^ *+' conftest.er1 >conftest.err
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest.$ac_objext; then
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_lo=`expr '(' $ac_mid ')' + 1`
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12391 '') if test "$ac_cv_type__Bool" = yes; then
12392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12393 See \`config.log
' for more details." >&5
12394 echo "$as_me: error: cannot compute sizeof (_Bool)
12395 See \`config.log' for more details.
" >&2;}
12396 { (exit 77); exit 77; }; }
12398 ac_cv_sizeof__Bool=0
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 $ac_includes_default
12409 typedef _Bool ac__type_sizeof_;
12410 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12411 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12413 #include <stdlib.h>
12418 FILE *f = fopen ("conftest.val
", "w
");
12421 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12423 long int i = longval ();
12424 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12426 fprintf (f, "%ld
\n", i);
12430 unsigned long int i = ulongval ();
12431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12433 fprintf (f, "%lu
\n", i);
12435 return ferror (f) || fclose (f) != 0;
12441 rm -f conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>&5
12450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
12459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_sizeof__Bool=`cat conftest.val`
12463 echo "$as_me: program exited with status
$ac_status" >&5
12464 echo "$as_me: failed program was
:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ( exit $ac_status )
12468 if test "$ac_cv_type__Bool" = yes; then
12469 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12470 See \
`config.log' for more details." >&5
12471 echo "$as_me: error: cannot compute sizeof (_Bool)
12472 See \`config.log
' for more details." >&2;}
12473 { (exit 77); exit 77; }; }
12475 ac_cv_sizeof__Bool=0
12478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12482 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12483 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12487 cat >>confdefs.h <<_ACEOF
12488 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12494 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12495 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12496 if test "${ac_cv_type_uintptr_t+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #ifdef HAVE_STDINT_H
12506 #include <stdint.h>
12509 typedef uintptr_t ac__type_new_;
12513 if ((ac__type_new_ *) 0)
12515 if (sizeof (ac__type_new_))
12521 rm -f conftest.$ac_objext
12522 if { (ac_try="$ac_compile"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_compile") 2>conftest.er1
12530 grep -v '^
*+' conftest.er1 >conftest.err
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest.$ac_objext; then
12538 ac_cv_type_uintptr_t=yes
12540 echo "$as_me: failed program was:" >&5
12541 sed 's
/^
/|
/' conftest.$ac_ext >&5
12543 ac_cv_type_uintptr_t=no
12546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12549 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12550 if test $ac_cv_type_uintptr_t = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553 #define HAVE_UINTPTR_T 1
12556 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12557 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12558 if test "${ac_cv_type_uintptr_t+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12568 typedef uintptr_t ac__type_new_;
12572 if ((ac__type_new_ *) 0)
12574 if (sizeof (ac__type_new_))
12580 rm -f conftest.$ac_objext
12581 if { (ac_try="$ac_compile"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_compile") 2>conftest.er1
12589 grep -v '^
*+' conftest.er1 >conftest.err
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && {
12594 test -z "$ac_c_werror_flag" ||
12595 test ! -s conftest.err
12596 } && test -s conftest.$ac_objext; then
12597 ac_cv_type_uintptr_t=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's
/^
/|
/' conftest.$ac_ext >&5
12602 ac_cv_type_uintptr_t=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12608 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12610 # The cast to long int works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12615 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12616 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 if test "$cross_compiling" = yes; then
12620 # Depending upon the size, compute the lo and hi bounds.
12621 cat >conftest.
$ac_ext <<_ACEOF
12624 cat confdefs.h
>>conftest.
$ac_ext
12625 cat >>conftest.
$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 $ac_includes_default
12628 typedef uintptr_t ac__type_sizeof_;
12632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12639 rm -f conftest.
$ac_objext
12640 if { (ac_try
="$ac_compile"
12641 case "(($ac_try" in
12642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12648 grep -v '^ *+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 $ac_includes_default
12665 typedef uintptr_t ac__type_sizeof_;
12669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12676 rm -f conftest.$ac_objext
12677 if { (ac_try="$ac_compile"
12678 case "(($ac_try" in
12679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12680 *) ac_try_echo
=$ac_try;;
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_compile") 2>conftest.er1
12685 grep -v '^ *+' conftest.er1
>conftest.err
12687 cat conftest.err
>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && {
12690 test -z "$ac_c_werror_flag" ||
12691 test ! -s conftest.err
12692 } && test -s conftest.
$ac_objext; then
12693 ac_hi
=$ac_mid; break
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.
$ac_ext >&5
12698 ac_lo
=`expr $ac_mid + 1`
12699 if test $ac_lo -le $ac_mid; then
12703 ac_mid
=`expr 2 '*' $ac_mid + 1`
12706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.
$ac_ext >&5
12712 cat >conftest.
$ac_ext <<_ACEOF
12715 cat confdefs.h
>>conftest.
$ac_ext
12716 cat >>conftest.
$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 $ac_includes_default
12719 typedef uintptr_t ac__type_sizeof_;
12723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12730 rm -f conftest.
$ac_objext
12731 if { (ac_try
="$ac_compile"
12732 case "(($ac_try" in
12733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_compile") 2>conftest.er1
12739 grep -v '^ *+' conftest.er1 >conftest.err
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest.$ac_objext; then
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 $ac_includes_default
12756 typedef uintptr_t ac__type_sizeof_;
12760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12767 rm -f conftest.$ac_objext
12768 if { (ac_try="$ac_compile"
12769 case "(($ac_try" in
12770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12771 *) ac_try_echo
=$ac_try;;
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_compile") 2>conftest.er1
12776 grep -v '^ *+' conftest.er1
>conftest.err
12778 cat conftest.err
>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && {
12781 test -z "$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 } && test -s conftest.
$ac_objext; then
12784 ac_lo
=$ac_mid; break
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.
$ac_ext >&5
12789 ac_hi
=`expr '(' $ac_mid ')' - 1`
12790 if test $ac_mid -le $ac_hi; then
12794 ac_mid
=`expr 2 '*' $ac_mid`
12797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.
$ac_ext >&5
12806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12810 # Binary search between lo and hi bounds.
12811 while test "x$ac_lo" != "x$ac_hi"; do
12812 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12813 cat >conftest.
$ac_ext <<_ACEOF
12816 cat confdefs.h
>>conftest.
$ac_ext
12817 cat >>conftest.
$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 $ac_includes_default
12820 typedef uintptr_t ac__type_sizeof_;
12824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12831 rm -f conftest.
$ac_objext
12832 if { (ac_try
="$ac_compile"
12833 case "(($ac_try" in
12834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_compile") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest.$ac_objext; then
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_lo=`expr '(' $ac_mid ')' + 1`
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12860 '') if test "$ac_cv_type_uintptr_t" = yes; then
12861 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12862 See \`config.log
' for more details." >&5
12863 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12864 See \`config.log' for more details.
" >&2;}
12865 { (exit 77); exit 77; }; }
12867 ac_cv_sizeof_uintptr_t=0
12871 cat >conftest.$ac_ext <<_ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877 $ac_includes_default
12878 typedef uintptr_t ac__type_sizeof_;
12879 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12880 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12882 #include <stdlib.h>
12887 FILE *f = fopen ("conftest.val
", "w
");
12890 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12892 long int i = longval ();
12893 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12895 fprintf (f, "%ld
\n", i);
12899 unsigned long int i = ulongval ();
12900 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12902 fprintf (f, "%lu
\n", i);
12904 return ferror (f) || fclose (f) != 0;
12910 rm -f conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>&5
12919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
12928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12932 echo "$as_me: program exited with status
$ac_status" >&5
12933 echo "$as_me: failed program was
:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ( exit $ac_status )
12937 if test "$ac_cv_type_uintptr_t" = yes; then
12938 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12939 See \
`config.log' for more details." >&5
12940 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12941 See \`config.log
' for more details." >&2;}
12942 { (exit 77); exit 77; }; }
12944 ac_cv_sizeof_uintptr_t=0
12947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12951 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12952 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12956 cat >>confdefs.h <<_ACEOF
12957 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12965 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12966 { echo "$as_me:$LINENO: checking size of off_t" >&5
12967 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12968 if test "${ac_cv_sizeof_off_t+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 if test "$cross_compiling" = yes; then
12972 ac_cv_sizeof_off_t
=4
12974 cat >conftest.
$ac_ext <<_ACEOF
12977 cat confdefs.h
>>conftest.
$ac_ext
12978 cat >>conftest.
$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12981 #include <sys/types.h>
12984 FILE *f=fopen("conftestval", "w");
12986 fprintf(f, "%d\n", sizeof(off_t));
12990 rm -f conftest
$ac_exeext
12991 if { (ac_try
="$ac_link"
12992 case "(($ac_try" in
12993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_link") 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_sizeof_off_t
=`cat conftestval`
13012 echo "$as_me: program exited with status $ac_status" >&5
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.
$ac_ext >&5
13016 ( exit $ac_status )
13017 ac_cv_sizeof_off_t
=0
13019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13027 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13029 cat >>confdefs.h
<<_ACEOF
13030 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13034 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13035 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13036 if test "$have_long_long" = yes
13038 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13039 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13041 cat >>confdefs.h
<<\_ACEOF
13042 #define HAVE_LARGEFILE_SUPPORT 1
13045 { echo "$as_me:$LINENO: result: yes" >&5
13046 echo "${ECHO_T}yes" >&6; }
13048 { echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6; }
13052 { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13056 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13057 { echo "$as_me:$LINENO: checking size of time_t" >&5
13058 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13059 if test "${ac_cv_sizeof_time_t+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 if test "$cross_compiling" = yes; then
13063 ac_cv_sizeof_time_t
=4
13065 cat >conftest.
$ac_ext <<_ACEOF
13068 cat confdefs.h
>>conftest.
$ac_ext
13069 cat >>conftest.
$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13075 FILE *f=fopen("conftestval", "w");
13077 fprintf(f, "%d\n", sizeof(time_t));
13081 rm -f conftest
$ac_exeext
13082 if { (ac_try
="$ac_link"
13083 case "(($ac_try" in
13084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_link") 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13094 *) ac_try_echo
=$ac_try;;
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_sizeof_time_t
=`cat conftestval`
13103 echo "$as_me: program exited with status $ac_status" >&5
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.
$ac_ext >&5
13107 ( exit $ac_status )
13108 ac_cv_sizeof_time_t
=0
13110 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13118 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13120 cat >>confdefs.h
<<_ACEOF
13121 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13126 # if have pthread_t then define SIZEOF_PTHREAD_T
13128 if test "$ac_cv_kpthread" = "yes"
13129 then CC
="$CC -Kpthread"
13130 elif test "$ac_cv_kthread" = "yes"
13131 then CC
="$CC -Kthread"
13132 elif test "$ac_cv_pthread" = "yes"
13133 then CC
="$CC -pthread"
13135 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13136 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13138 cat >conftest.
$ac_ext <<_ACEOF
13141 cat confdefs.h
>>conftest.
$ac_ext
13142 cat >>conftest.
$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 #include <pthread.h>
13148 pthread_t x; x = *(pthread_t*)0;
13153 rm -f conftest.
$ac_objext
13154 if { (ac_try
="$ac_compile"
13155 case "(($ac_try" in
13156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_compile") 2>conftest.er1
13162 grep -v '^ *+' conftest.er1 >conftest.err
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } && {
13167 test -z "$ac_c_werror_flag" ||
13168 test ! -s conftest.err
13169 } && test -s conftest.$ac_objext; then
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13180 echo "${ECHO_T}$have_pthread_t" >&6; }
13181 if test "$have_pthread_t" = yes ; then
13182 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13183 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13184 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13185 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 if test "$cross_compiling" = yes; then
13189 ac_cv_sizeof_pthread_t=4
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13198 #include <pthread.h>
13201 FILE *f=fopen("conftestval", "w");
13203 fprintf(f, "%d\n", sizeof(pthread_t));
13207 rm -f conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13211 *) ac_try_echo
=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_sizeof_pthread_t=`cat conftestval
`
13229 echo "$as_me: program exited with status $ac_status" >&5
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ( exit $ac_status )
13234 ac_cv_sizeof_pthread_t=0
13236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13243 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13244 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13246 cat >>confdefs.h <<_ACEOF
13247 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13256 case $ac_sys_system/$ac_sys_release in
13257 Darwin/[01567]\..*)
13258 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13261 OTHER_LIBTOOL_OPT=""
13268 case $ac_sys_system/$ac_sys_release in
13269 Darwin/[01567]\..*)
13270 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13271 if test "${enable_universalsdk}"; then
13274 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13276 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13277 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13279 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13280 if test ${gcc_version} '<' 4.0
13282 LIBTOOL_CRUFT="-lcc_dynamic"
13286 if test "$cross_compiling" = yes; then
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13296 #include <unistd.h>
13297 int main(int argc, char*argv[])
13299 if (sizeof(long) == 4) {
13307 rm -f conftest$ac_exeext
13308 if { (ac_try="$ac_link"
13309 case "(($ac_try" in
13310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13311 *) ac_try_echo
=$ac_try;;
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_link") 2>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13318 { (case "(($ac_try" in
13319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13329 echo "$as_me: program exited with status $ac_status" >&5
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 ( exit $ac_status )
13336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13341 if test "${ac_osx_32bit}" = "yes"; then
13344 MACOSX_DEFAULT_ARCH="i386"
13347 MACOSX_DEFAULT_ARCH="ppc"
13350 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13351 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13352 { (exit 1); exit 1; }; }
13358 MACOSX_DEFAULT_ARCH="x86_64"
13361 MACOSX_DEFAULT_ARCH="ppc64"
13364 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13365 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13366 { (exit 1); exit 1; }; }
13370 #ARCH_RUN_32BIT="true"
13373 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13374 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13375 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13378 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13379 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13380 if test "$enable_framework"
13382 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13383 # -F. is needed to allow linking to the framework while
13384 # in the build location.
13386 cat >>confdefs.h <<\_ACEOF
13387 #define WITH_NEXT_FRAMEWORK 1
13390 { echo "$as_me:$LINENO: result: yes" >&5
13391 echo "${ECHO_T}yes" >&6; }
13392 if test $enable_shared = "yes"
13394 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13395 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13396 { (exit 1); exit 1; }; }
13399 { echo "$as_me:$LINENO: result: no" >&5
13400 echo "${ECHO_T}no" >&6; }
13403 { echo "$as_me:$LINENO: checking for dyld" >&5
13404 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13405 case $ac_sys_system/$ac_sys_release in
13408 cat >>confdefs.h <<\_ACEOF
13409 #define WITH_DYLD 1
13412 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13413 echo "${ECHO_T}always on for Darwin" >&6; }
13416 { echo "$as_me:$LINENO: result: no" >&5
13417 echo "${ECHO_T}no" >&6; }
13421 # Set info about shared libraries.
13427 # SO is the extension of shared libraries `(including the dot
!)
13428 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13429 { echo "$as_me:$LINENO: checking SO" >&5
13430 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13433 case $ac_sys_system in
13444 # this might also be a termcap variable, see #610332
13446 echo '====================================================================='
13448 echo '+ WARNING: You have set SO in your environment. +'
13449 echo '+ Do you really mean to change the extension for shared libraries? +'
13450 echo '+ Continuing in 10 seconds to let you to ponder. +'
13452 echo '====================================================================='
13455 { echo "$as_me:$LINENO: result: $SO" >&5
13456 echo "${ECHO_T}$SO" >&6; }
13459 cat >>confdefs.h
<<_ACEOF
13460 #define SHLIB_EXT "$SO"
13463 # LDSHARED is the ld *command* used to create shared library
13464 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13465 # (Shared libraries in this instance are shared modules to be loaded into
13466 # Python, as opposed to building Python itself as a shared library.)
13467 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13468 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13469 if test -z "$LDSHARED"
13471 case $ac_sys_system/$ac_sys_release in
13473 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13474 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13476 IRIX
/5*) LDSHARED
="ld -shared";;
13477 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13479 if test "$GCC" = "yes"
13480 then LDSHARED
='$(CC) -shared'
13481 else LDSHARED
='$(CC) -G';
13484 if test "$GCC" = "yes"
13485 then LDSHARED
='$(CC) -shared'
13486 else LDSHARED
='ld -b';
13488 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13490 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13491 if test "$enable_framework" ; then
13492 # Link against the framework. All externals should be defined.
13493 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13494 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13496 # No framework. Ignore undefined symbols, assuming they come from Python
13497 LDSHARED
="$LDSHARED -undefined suppress"
13499 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13500 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13501 if test "$enable_framework" ; then
13502 # Link against the framework. All externals should be defined.
13503 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13504 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13506 # No framework, use the Python app as bundle-loader
13507 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13508 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13511 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13512 # This allows an extension to be used in any Python
13514 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13516 if test "${enable_universalsdk}"; then
13517 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13519 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13520 BLDSHARED
="$LDSHARED"
13522 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13523 if test "$enable_framework" ; then
13524 # Link against the framework. All externals should be defined.
13525 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13526 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13528 # No framework, use the Python app as bundle-loader
13529 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13530 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13534 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13535 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13537 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13539 LDSHARED
="$CC -shared ${LDFLAGS}"
13541 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13544 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13546 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13549 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13550 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13553 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13557 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13558 OpenUNIX
*|UnixWare
*)
13559 if test "$GCC" = "yes"
13560 then LDSHARED
='$(CC) -shared'
13561 else LDSHARED
='$(CC) -G'
13563 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13564 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13565 atheos
*) LDSHARED
="gcc -shared";;
13569 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13570 echo "${ECHO_T}$LDSHARED" >&6; }
13571 BLDSHARED
=${BLDSHARED-$LDSHARED}
13572 # CCSHARED are the C *flags* used to create objects to go into a shared
13573 # library (module) -- this is only needed for a few systems
13574 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13575 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13576 if test -z "$CCSHARED"
13578 case $ac_sys_system/$ac_sys_release in
13579 SunOS
*) if test "$GCC" = yes;
13580 then CCSHARED
="-fPIC";
13581 elif test `uname -p` = sparc
;
13582 then CCSHARED
="-xcode=pic32";
13583 else CCSHARED
="-Kpic";
13585 hp
*|HP
*) if test "$GCC" = yes;
13586 then CCSHARED
="-fPIC";
13587 else CCSHARED
="+z";
13589 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13590 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13591 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13592 OpenUNIX
*|UnixWare
*)
13593 if test "$GCC" = "yes"
13594 then CCSHARED
="-fPIC"
13595 else CCSHARED
="-KPIC"
13598 if test "$GCC" = "yes"
13599 then CCSHARED
="-fPIC"
13600 else CCSHARED
="-Kpic -belf"
13602 IRIX
*/6*) case $CC in
13603 *gcc
*) CCSHARED
="-shared";;
13606 atheos
*) CCSHARED
="-fPIC";;
13609 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13610 echo "${ECHO_T}$CCSHARED" >&6; }
13611 # LINKFORSHARED are the flags passed to the $(CC) command that links
13612 # the python executable -- this is only needed for a few systems
13613 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13614 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13615 if test -z "$LINKFORSHARED"
13617 case $ac_sys_system/$ac_sys_release in
13618 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13620 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13621 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13622 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13623 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13624 # -u libsys_s pulls in all symbols in libsys
13626 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13627 if test "$enable_framework"
13629 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13631 LINKFORSHARED
="$LINKFORSHARED";;
13632 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13633 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13634 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13635 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13636 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13638 LINKFORSHARED
="-Wl,--export-dynamic"
13640 SunOS
/5*) case $CC in
13642 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13644 LINKFORSHARED
="-Xlinker --export-dynamic"
13648 if test $enable_shared = "no"
13650 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13653 # -Wl,-E causes the symbols to be added to the dynamic
13654 # symbol table so that they can be found when a module
13655 # is loaded. -N 2048K causes the stack size to be set
13656 # to 2048 kilobytes so that the stack doesn't overflow
13657 # when running test_compile.py.
13658 LINKFORSHARED
='-Wl,-E -N 2048K';;
13661 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13662 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13666 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13667 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13668 if test ! "$LIBRARY" = "$LDLIBRARY"
13670 case $ac_sys_system in
13672 # Cygwin needs CCSHARED when building extension DLLs
13673 # but not when building the interpreter DLL.
13674 CFLAGSFORSHARED
='';;
13676 CFLAGSFORSHARED
='$(CCSHARED)'
13679 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13680 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13682 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13683 # library (with --enable-shared).
13684 # For platforms on which shared libraries are not allowed to have unresolved
13685 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13686 # if it is not required, since it creates a dependency of the shared library
13687 # to LIBS. This, in turn, means that applications linking the shared libpython
13688 # don't need to link LIBS explicitly. The default should be only changed
13689 # on systems where this approach causes problems.
13691 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13692 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13693 case "$ac_sys_system" in
13697 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13698 echo "${ECHO_T}$SHLIBS" >&6; }
13701 # checks for libraries
13703 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13704 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13705 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 ac_check_lib_save_LIBS
=$LIBS
13710 cat >conftest.
$ac_ext <<_ACEOF
13713 cat confdefs.h
>>conftest.
$ac_ext
13714 cat >>conftest.
$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13732 rm -f conftest.
$ac_objext conftest
$ac_exeext
13733 if { (ac_try
="$ac_link"
13734 case "(($ac_try" in
13735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13741 grep -v '^ *+' conftest.er1 >conftest.err
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest$ac_exeext &&
13749 $as_test_x conftest$ac_exeext; then
13750 ac_cv_lib_dl_dlopen=yes
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_lib_dl_dlopen=no
13758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13759 conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13764 if test $ac_cv_lib_dl_dlopen = yes; then
13765 cat >>confdefs.h <<_ACEOF
13766 #define HAVE_LIBDL 1
13772 # Dynamic linking for SunOS/Solaris and SYSV
13774 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13775 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13776 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 ac_check_lib_save_LIBS=$LIBS
13781 cat >conftest.$ac_ext <<_ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13798 return shl_load ();
13803 rm -f conftest.$ac_objext conftest$ac_exeext
13804 if { (ac_try="$ac_link"
13805 case "(($ac_try" in
13806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13807 *) ac_try_echo
=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_link") 2>conftest.er1
13812 grep -v '^ *+' conftest.er1
>conftest.err
13814 cat conftest.err
>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest
$ac_exeext &&
13820 $as_test_x conftest
$ac_exeext; then
13821 ac_cv_lib_dld_shl_load
=yes
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.
$ac_ext >&5
13826 ac_cv_lib_dld_shl_load
=no
13829 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13830 conftest
$ac_exeext conftest.
$ac_ext
13831 LIBS
=$ac_check_lib_save_LIBS
13833 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13834 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13835 if test $ac_cv_lib_dld_shl_load = yes; then
13836 cat >>confdefs.h
<<_ACEOF
13837 #define HAVE_LIBDLD 1
13843 # Dynamic linking for HP-UX
13845 # only check for sem_init if thread support is requested
13846 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13847 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13848 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13849 if test "${ac_cv_search_sem_init+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 ac_func_search_save_LIBS
=$LIBS
13853 cat >conftest.
$ac_ext <<_ACEOF
13856 cat confdefs.h
>>conftest.
$ac_ext
13857 cat >>conftest.
$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13860 /* Override any GCC internal prototype to avoid an error.
13861 Use char because int might match the return type of a GCC
13862 builtin and then its argument prototype would still apply. */
13870 return sem_init ();
13875 for ac_lib
in '' pthread rt posix4
; do
13876 if test -z "$ac_lib"; then
13877 ac_res
="none required"
13880 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13882 rm -f conftest.
$ac_objext conftest
$ac_exeext
13883 if { (ac_try
="$ac_link"
13884 case "(($ac_try" in
13885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_link") 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest$ac_exeext &&
13899 $as_test_x conftest$ac_exeext; then
13900 ac_cv_search_sem_init=$ac_res
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13910 if test "${ac_cv_search_sem_init+set}" = set; then
13914 if test "${ac_cv_search_sem_init+set}" = set; then
13917 ac_cv_search_sem_init=no
13919 rm conftest.$ac_ext
13920 LIBS=$ac_func_search_save_LIBS
13922 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13923 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13924 ac_res=$ac_cv_search_sem_init
13925 if test "$ac_res" != no; then
13926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929 # 'Real Time' functions on Solaris
13930 # posix4 on Solaris 2.6
13931 # pthread (first!) on Linux
13934 # check if we need libintl for locale functions
13935 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13936 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13937 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lintl $LIBS"
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13955 char textdomain ();
13959 return textdomain ();
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13968 *) ac_try_echo
=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13973 grep -v '^ *+' conftest.er1
>conftest.err
13975 cat conftest.err
>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } && {
13978 test -z "$ac_c_werror_flag" ||
13979 test ! -s conftest.err
13980 } && test -s conftest
$ac_exeext &&
13981 $as_test_x conftest
$ac_exeext; then
13982 ac_cv_lib_intl_textdomain
=yes
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.
$ac_ext >&5
13987 ac_cv_lib_intl_textdomain
=no
13990 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13991 conftest
$ac_exeext conftest.
$ac_ext
13992 LIBS
=$ac_check_lib_save_LIBS
13994 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13995 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13996 if test $ac_cv_lib_intl_textdomain = yes; then
13998 cat >>confdefs.h
<<\_ACEOF
13999 #define WITH_LIBINTL 1
14002 LIBS
="-lintl $LIBS"
14006 # checks for system dependent C++ extensions support
14007 case "$ac_sys_system" in
14008 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14009 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14010 cat >conftest.
$ac_ext <<_ACEOF
14013 cat confdefs.h
>>conftest.
$ac_ext
14014 cat >>conftest.
$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include "/usr/lpp/xlC/include/load.h"
14020 loadAndInit("", 0, "")
14025 rm -f conftest.
$ac_objext conftest
$ac_exeext
14026 if { (ac_try
="$ac_link"
14027 case "(($ac_try" in
14028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_link") 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest$ac_exeext &&
14042 $as_test_x conftest$ac_exeext; then
14044 cat >>confdefs.h <<\_ACEOF
14045 #define AIX_GENUINE_CPLUSPLUS 1
14048 { echo "$as_me:$LINENO: result: yes" >&5
14049 echo "${ECHO_T}yes" >&6; }
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 { echo "$as_me:$LINENO: result: no" >&5
14055 echo "${ECHO_T}no" >&6; }
14058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14059 conftest$ac_exeext conftest.$ac_ext;;
14063 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14064 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14065 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14066 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_check_lib_save_LIBS=$LIBS
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (ac_try="$ac_link"
14095 case "(($ac_try" in
14096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14097 *) ac_try_echo
=$ac_try;;
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_link") 2>conftest.er1
14102 grep -v '^ *+' conftest.er1
>conftest.err
14104 cat conftest.err
>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest
$ac_exeext &&
14110 $as_test_x conftest
$ac_exeext; then
14111 ac_cv_lib_nsl_t_open
=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.
$ac_ext >&5
14116 ac_cv_lib_nsl_t_open
=no
14119 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14120 conftest
$ac_exeext conftest.
$ac_ext
14121 LIBS
=$ac_check_lib_save_LIBS
14123 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14124 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14125 if test $ac_cv_lib_nsl_t_open = yes; then
14129 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14130 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14131 if test "${ac_cv_lib_socket_socket+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 ac_check_lib_save_LIBS
=$LIBS
14135 LIBS
="-lsocket $LIBS $LIBS"
14136 cat >conftest.
$ac_ext <<_ACEOF
14139 cat confdefs.h
>>conftest.
$ac_ext
14140 cat >>conftest.
$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14158 rm -f conftest.
$ac_objext conftest
$ac_exeext
14159 if { (ac_try
="$ac_link"
14160 case "(($ac_try" in
14161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_link") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest$ac_exeext &&
14175 $as_test_x conftest$ac_exeext; then
14176 ac_cv_lib_socket_socket=yes
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ac_cv_lib_socket_socket=no
14184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14189 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14190 if test $ac_cv_lib_socket_socket = yes; then
14191 LIBS="-lsocket $LIBS"
14195 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14196 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14198 # Check whether --with-libs was given.
14199 if test "${with_libs+set}" = set; then
14200 withval=$with_libs;
14201 { echo "$as_me:$LINENO: result: $withval" >&5
14202 echo "${ECHO_T}$withval" >&6; }
14203 LIBS="$withval $LIBS"
14206 { echo "$as_me:$LINENO: result: no" >&5
14207 echo "${ECHO_T}no" >&6; }
14211 # Check for use of the system libffi library
14212 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14213 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14215 # Check whether --with-system_ffi was given.
14216 if test "${with_system_ffi+set}" = set; then
14217 withval=$with_system_ffi;
14221 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14222 echo "${ECHO_T}$with_system_ffi" >&6; }
14224 # Check for --with-dbmliborder
14225 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14226 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14228 # Check whether --with-dbmliborder was given.
14229 if test "${with_dbmliborder+set}" = set; then
14230 withval=$with_dbmliborder;
14231 if test x$with_dbmliborder = xyes
14233 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14234 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14235 { (exit 1); exit 1; }; }
14237 for db in `echo $with_dbmliborder |
sed 's/:/ /g'`; do
14238 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14240 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14241 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14242 { (exit 1); exit 1; }; }
14248 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14249 echo "${ECHO_T}$with_dbmliborder" >&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://bugs.python.org/ ##
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://bugs.python.org/ ##
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://bugs.python.org/ ##
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 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15035 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15036 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 ac_check_lib_save_LIBS=$LIBS
15040 LIBS="-lpthreads $LIBS"
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15048 /* Override any GCC internal prototype to avoid an error.
15049 Use char because int might match the return type of a GCC
15050 builtin and then its argument prototype would still apply. */
15054 char pthread_create ();
15058 return pthread_create ();
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (ac_try="$ac_link"
15065 case "(($ac_try" in
15066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15067 *) ac_try_echo
=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_link") 2>conftest.er1
15072 grep -v '^ *+' conftest.er1
>conftest.err
15074 cat conftest.err
>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest
$ac_exeext &&
15080 $as_test_x conftest
$ac_exeext; then
15081 ac_cv_lib_pthreads_pthread_create
=yes
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.
$ac_ext >&5
15086 ac_cv_lib_pthreads_pthread_create
=no
15089 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15090 conftest
$ac_exeext conftest.
$ac_ext
15091 LIBS
=$ac_check_lib_save_LIBS
15093 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15094 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15095 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15096 cat >>confdefs.h
<<\_ACEOF
15097 #define WITH_THREAD 1
15101 LIBS
="$LIBS -lpthreads"
15102 THREADOBJ
="Python/thread.o"
15105 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15106 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15107 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 ac_check_lib_save_LIBS
=$LIBS
15112 cat >conftest.
$ac_ext <<_ACEOF
15115 cat confdefs.h
>>conftest.
$ac_ext
15116 cat >>conftest.
$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15119 /* Override any GCC internal prototype to avoid an error.
15120 Use char because int might match the return type of a GCC
15121 builtin and then its argument prototype would still apply. */
15125 char pthread_create ();
15129 return pthread_create ();
15134 rm -f conftest.
$ac_objext conftest
$ac_exeext
15135 if { (ac_try
="$ac_link"
15136 case "(($ac_try" in
15137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_link") 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && {
15148 test -z "$ac_c_werror_flag" ||
15149 test ! -s conftest.err
15150 } && test -s conftest$ac_exeext &&
15151 $as_test_x conftest$ac_exeext; then
15152 ac_cv_lib_c_r_pthread_create=yes
15154 echo "$as_me: failed program was:" >&5
15155 sed 's/^/| /' conftest.$ac_ext >&5
15157 ac_cv_lib_c_r_pthread_create=no
15160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15161 conftest$ac_exeext conftest.$ac_ext
15162 LIBS=$ac_check_lib_save_LIBS
15164 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15165 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15166 if test $ac_cv_lib_c_r_pthread_create = yes; then
15167 cat >>confdefs.h <<\_ACEOF
15168 #define WITH_THREAD 1
15173 THREADOBJ="Python/thread.o"
15176 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15177 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15178 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lpthread $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15190 /* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */
15196 char __pthread_create_system ();
15200 return __pthread_create_system ();
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15209 *) ac_try_echo
=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1
>conftest.err
15216 cat conftest.err
>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest
$ac_exeext &&
15222 $as_test_x conftest
$ac_exeext; then
15223 ac_cv_lib_pthread___pthread_create_system
=yes
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.
$ac_ext >&5
15228 ac_cv_lib_pthread___pthread_create_system
=no
15231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15232 conftest
$ac_exeext conftest.
$ac_ext
15233 LIBS
=$ac_check_lib_save_LIBS
15235 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15236 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15237 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15238 cat >>confdefs.h
<<\_ACEOF
15239 #define WITH_THREAD 1
15243 LIBS
="$LIBS -lpthread"
15244 THREADOBJ
="Python/thread.o"
15247 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15248 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15249 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 ac_check_lib_save_LIBS
=$LIBS
15254 cat >conftest.
$ac_ext <<_ACEOF
15257 cat confdefs.h
>>conftest.
$ac_ext
15258 cat >>conftest.
$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15261 /* Override any GCC internal prototype to avoid an error.
15262 Use char because int might match the return type of a GCC
15263 builtin and then its argument prototype would still apply. */
15267 char pthread_create ();
15271 return pthread_create ();
15276 rm -f conftest.
$ac_objext conftest
$ac_exeext
15277 if { (ac_try
="$ac_link"
15278 case "(($ac_try" in
15279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_link") 2>conftest.er1
15285 grep -v '^ *+' conftest.er1 >conftest.err
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext &&
15293 $as_test_x conftest$ac_exeext; then
15294 ac_cv_lib_cma_pthread_create=yes
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 ac_cv_lib_cma_pthread_create=no
15302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303 conftest$ac_exeext conftest.$ac_ext
15304 LIBS=$ac_check_lib_save_LIBS
15306 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15307 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15308 if test $ac_cv_lib_cma_pthread_create = yes; then
15309 cat >>confdefs.h <<\_ACEOF
15310 #define WITH_THREAD 1
15315 THREADOBJ="Python/thread.o"
15318 USE_THREAD_MODULE="#"
15335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15336 conftest$ac_exeext conftest.$ac_ext
15346 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15347 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15348 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 ac_check_lib_save_LIBS=$LIBS
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15360 /* Override any GCC internal prototype to avoid an error.
15361 Use char because int might match the return type of a GCC
15362 builtin and then its argument prototype would still apply. */
15370 return usconfig ();
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (ac_try="$ac_link"
15377 case "(($ac_try" in
15378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15379 *) ac_try_echo
=$ac_try;;
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_link") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1
>conftest.err
15386 cat conftest.err
>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } && {
15389 test -z "$ac_c_werror_flag" ||
15390 test ! -s conftest.err
15391 } && test -s conftest
$ac_exeext &&
15392 $as_test_x conftest
$ac_exeext; then
15393 ac_cv_lib_mpc_usconfig
=yes
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.
$ac_ext >&5
15398 ac_cv_lib_mpc_usconfig
=no
15401 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15402 conftest
$ac_exeext conftest.
$ac_ext
15403 LIBS
=$ac_check_lib_save_LIBS
15405 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15406 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15407 if test $ac_cv_lib_mpc_usconfig = yes; then
15408 cat >>confdefs.h
<<\_ACEOF
15409 #define WITH_THREAD 1
15413 THREADOBJ
="Python/thread.o"
15414 USE_THREAD_MODULE
=""
15418 if test "$posix_threads" != "yes"; then
15419 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15420 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15421 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 ac_check_lib_save_LIBS
=$LIBS
15425 LIBS
="-lthread $LIBS"
15426 cat >conftest.
$ac_ext <<_ACEOF
15429 cat confdefs.h
>>conftest.
$ac_ext
15430 cat >>conftest.
$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15433 /* Override any GCC internal prototype to avoid an error.
15434 Use char because int might match the return type of a GCC
15435 builtin and then its argument prototype would still apply. */
15439 char thr_create ();
15443 return thr_create ();
15448 rm -f conftest.
$ac_objext conftest
$ac_exeext
15449 if { (ac_try
="$ac_link"
15450 case "(($ac_try" in
15451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_link") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest$ac_exeext &&
15465 $as_test_x conftest$ac_exeext; then
15466 ac_cv_lib_thread_thr_create=yes
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_cv_lib_thread_thr_create=no
15474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15475 conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15478 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15479 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15480 if test $ac_cv_lib_thread_thr_create = yes; then
15481 cat >>confdefs.h <<\_ACEOF
15482 #define WITH_THREAD 1
15485 LIBS="$LIBS -lthread"
15486 THREADOBJ="Python/thread.o"
15487 USE_THREAD_MODULE=""
15492 if test "$USE_THREAD_MODULE" != "#"
15494 # If the above checks didn't disable threads, (at least) OSF1
15495 # needs this '-threads' argument during linking.
15496 case $ac_sys_system in
15497 OSF1) LDLAST=-threads;;
15502 if test "$posix_threads" = "yes"; then
15503 if test "$unistd_defines_pthreads" = "no"; then
15505 cat >>confdefs.h <<\_ACEOF
15506 #define _POSIX_THREADS 1
15511 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15512 case $ac_sys_system/$ac_sys_release in
15514 cat >>confdefs.h <<\_ACEOF
15515 #define HAVE_PTHREAD_DESTRUCTOR 1
15520 cat >>confdefs.h <<\_ACEOF
15521 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15526 cat >>confdefs.h <<\_ACEOF
15527 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15533 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15534 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15535 if test "${ac_cv_pthread_system_supported+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 if test "$cross_compiling" = yes; then
15539 ac_cv_pthread_system_supported=no
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <pthread.h>
15548 void *foo(void *parm) {
15552 pthread_attr_t attr;
15554 if (pthread_attr_init(&attr)) exit(-1);
15555 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15556 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15560 rm -f conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15564 *) ac_try_echo
=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_link") 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15571 { (case "(($ac_try" in
15572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_try") 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_cv_pthread_system_supported=yes
15582 echo "$as_me: program exited with status $ac_status" >&5
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ( exit $ac_status )
15587 ac_cv_pthread_system_supported=no
15589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15596 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15597 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15598 if test "$ac_cv_pthread_system_supported" = "yes"; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15606 for ac_func in pthread_sigmask
15608 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 cat >conftest.$ac_ext <<_ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15622 #define $ac_func innocuous_$ac_func
15624 /* System header to define __stub macros and hopefully few prototypes,
15625 which can conflict with char $ac_func (); below.
15626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15627 <limits.h> exists even on freestanding compilers. */
15630 # include <limits.h>
15632 # include <assert.h>
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined __stub_$ac_func || defined __stub___$ac_func
15654 return $ac_func ();
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15663 *) ac_try_echo
=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_link") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1
>conftest.err
15670 cat conftest.err
>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest
$ac_exeext &&
15676 $as_test_x conftest
$ac_exeext; then
15677 eval "$as_ac_var=yes"
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.
$ac_ext >&5
15682 eval "$as_ac_var=no"
15685 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15686 conftest
$ac_exeext conftest.
$ac_ext
15688 ac_res
=`eval echo '${'$as_ac_var'}'`
15689 { echo "$as_me:$LINENO: result: $ac_res" >&5
15690 echo "${ECHO_T}$ac_res" >&6; }
15691 if test `eval echo '${'$as_ac_var'}'` = yes; then
15692 cat >>confdefs.h
<<_ACEOF
15693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15695 case $ac_sys_system in
15698 cat >>confdefs.h
<<\_ACEOF
15699 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15710 # Check for enable-ipv6
15713 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15714 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15715 # Check whether --enable-ipv6 was given.
15716 if test "${enable_ipv6+set}" = set; then
15717 enableval
=$enable_ipv6; case "$enableval" in
15719 { echo "$as_me:$LINENO: result: no" >&5
15720 echo "${ECHO_T}no" >&6; }
15723 *) { echo "$as_me:$LINENO: result: yes" >&5
15724 echo "${ECHO_T}yes" >&6; }
15725 cat >>confdefs.h
<<\_ACEOF
15726 #define ENABLE_IPV6 1
15734 if test "$cross_compiling" = yes; then
15735 { echo "$as_me:$LINENO: result: no" >&5
15736 echo "${ECHO_T}no" >&6; }
15740 cat >conftest.
$ac_ext <<_ACEOF
15743 cat confdefs.h
>>conftest.
$ac_ext
15744 cat >>conftest.
$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 /* AF_INET6 available check */
15747 #include <sys/types.h>
15748 #include <sys/socket.h>
15751 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15758 rm -f conftest
$ac_exeext
15759 if { (ac_try
="$ac_link"
15760 case "(($ac_try" in
15761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_link") 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15771 *) ac_try_echo
=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 { echo "$as_me:$LINENO: result: yes" >&5
15779 echo "${ECHO_T}yes" >&6; }
15782 echo "$as_me: program exited with status $ac_status" >&5
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.
$ac_ext >&5
15786 ( exit $ac_status )
15787 { echo "$as_me:$LINENO: result: no" >&5
15788 echo "${ECHO_T}no" >&6; }
15791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15796 if test "$ipv6" = "yes"; then
15797 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15798 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15799 cat >conftest.
$ac_ext <<_ACEOF
15802 cat confdefs.h
>>conftest.
$ac_ext
15803 cat >>conftest.
$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 #include <sys/types.h>
15806 #include <netinet/in.h>
15810 struct sockaddr_in6 x;
15816 rm -f conftest.
$ac_objext
15817 if { (ac_try
="$ac_compile"
15818 case "(($ac_try" in
15819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_compile") 2>conftest.er1
15825 grep -v '^ *+' conftest.er1 >conftest.err
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest.$ac_objext; then
15833 { echo "$as_me:$LINENO: result: yes" >&5
15834 echo "${ECHO_T}yes" >&6; }
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 { echo "$as_me:$LINENO: result: no" >&5
15841 echo "${ECHO_T}no" >&6; }
15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 if test "$ipv6" = "yes"; then
15849 cat >>confdefs.h <<\_ACEOF
15850 #define ENABLE_IPV6 1
15862 if test "$ipv6" = "yes"; then
15863 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15864 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15865 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15876 #include <netinet/in.h>
15877 #ifdef IPV6_INRIA_VERSION
15881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15882 $EGREP "yes" >/dev/null 2>&1; then
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15896 #include <netinet/in.h>
15901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15902 $EGREP "yes" >/dev/null 2>&1; then
15905 ipv6libdir=/usr/local/v6/lib
15912 cat >conftest.$ac_ext <<_ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15919 #include <features.h>
15920 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15925 $EGREP "yes" >/dev/null 2>&1; then
15933 if test -d /usr/inet6; then
15936 ipv6libdir=/usr/inet6/lib
15937 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15941 if test -f /etc/netconfig; then
15942 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15949 cat >conftest.$ac_ext <<_ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15956 #include <sys/param.h>
15957 #ifdef _TOSHIBA_INET6
15961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15962 $EGREP "yes" >/dev/null 2>&1; then
15965 ipv6libdir=/usr/local/v6/lib
15971 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15978 #include </usr/local/v6/include/sys/v6config.h>
15983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15984 $EGREP "yes" >/dev/null 2>&1; then
15987 ipv6libdir=/usr/local/v6/lib;
15988 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15994 cat >conftest.$ac_ext <<_ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16001 #include <sys/param.h>
16002 #ifdef _ZETA_MINAMI_INET6
16006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16007 $EGREP "yes" >/dev/null 2>&1; then
16010 ipv6libdir=/usr/local/v6/lib
16016 if test "$ipv6type" != "unknown"; then
16020 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16021 echo "${ECHO_T}$ipv6type" >&6; }
16024 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16025 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16026 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16027 echo "using lib$ipv6lib"
16029 if test $ipv6trylibc = "yes"; then
16032 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16033 echo "You need to fetch lib$ipv6lib.a from appropriate"
16034 echo 'ipv6 kit and compile beforehand.'
16040 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16041 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16042 cat >conftest.$ac_ext <<_ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 #include <Carbon/Carbon.h>
16052 FSIORefNum fRef = 0
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16061 *) ac_try_echo
=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1
>conftest.err
16068 cat conftest.err
>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.
$ac_objext; then
16075 cat >>confdefs.h
<<\_ACEOF
16076 #define HAVE_OSX105_SDK 1
16079 { echo "$as_me:$LINENO: result: yes" >&5
16080 echo "${ECHO_T}yes" >&6; }
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.
$ac_ext >&5
16085 { echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6; }
16090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16092 # Check for --with-doc-strings
16093 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16094 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16096 # Check whether --with-doc-strings was given.
16097 if test "${with_doc_strings+set}" = set; then
16098 withval
=$with_doc_strings;
16102 if test -z "$with_doc_strings"
16103 then with_doc_strings
="yes"
16105 if test "$with_doc_strings" != "no"
16108 cat >>confdefs.h
<<\_ACEOF
16109 #define WITH_DOC_STRINGS 1
16113 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16114 echo "${ECHO_T}$with_doc_strings" >&6; }
16116 # Check for Python-specific malloc support
16117 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16118 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16120 # Check whether --with-tsc was given.
16121 if test "${with_tsc+set}" = set; then
16123 if test "$withval" != no
16126 cat >>confdefs.h
<<\_ACEOF
16130 { echo "$as_me:$LINENO: result: yes" >&5
16131 echo "${ECHO_T}yes" >&6; }
16132 else { echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6; }
16136 { echo "$as_me:$LINENO: result: no" >&5
16137 echo "${ECHO_T}no" >&6; }
16141 # Check for Python-specific malloc support
16142 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16143 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16145 # Check whether --with-pymalloc was given.
16146 if test "${with_pymalloc+set}" = set; then
16147 withval
=$with_pymalloc;
16151 if test -z "$with_pymalloc"
16152 then with_pymalloc
="yes"
16154 if test "$with_pymalloc" != "no"
16157 cat >>confdefs.h
<<\_ACEOF
16158 #define WITH_PYMALLOC 1
16162 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16163 echo "${ECHO_T}$with_pymalloc" >&6; }
16165 # Check for --with-wctype-functions
16166 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16167 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16169 # Check whether --with-wctype-functions was given.
16170 if test "${with_wctype_functions+set}" = set; then
16171 withval
=$with_wctype_functions;
16172 if test "$withval" != no
16175 cat >>confdefs.h
<<\_ACEOF
16176 #define WANT_WCTYPE_FUNCTIONS 1
16179 { echo "$as_me:$LINENO: result: yes" >&5
16180 echo "${ECHO_T}yes" >&6; }
16181 else { echo "$as_me:$LINENO: result: no" >&5
16182 echo "${ECHO_T}no" >&6; }
16185 { echo "$as_me:$LINENO: result: no" >&5
16186 echo "${ECHO_T}no" >&6; }
16190 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16194 # the dlopen() function means we might want to use dynload_shlib.o. some
16195 # platforms, such as AIX, have dlopen(), but don't want to use it.
16197 for ac_func
in dlopen
16199 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16202 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 cat >conftest.
$ac_ext <<_ACEOF
16208 cat confdefs.h
>>conftest.
$ac_ext
16209 cat >>conftest.
$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16213 #define $ac_func innocuous_$ac_func
16215 /* System header to define __stub macros and hopefully few prototypes,
16216 which can conflict with char $ac_func (); below.
16217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16218 <limits.h> exists even on freestanding compilers. */
16221 # include <limits.h>
16223 # include <assert.h>
16228 /* Override any GCC internal prototype to avoid an error.
16229 Use char because int might match the return type of a GCC
16230 builtin and then its argument prototype would still apply. */
16235 /* The GNU C library defines this for functions which it implements
16236 to always fail with ENOSYS. Some functions are actually named
16237 something starting with __ and the normal name is an alias. */
16238 #if defined __stub_$ac_func || defined __stub___$ac_func
16245 return $ac_func ();
16250 rm -f conftest.
$ac_objext conftest
$ac_exeext
16251 if { (ac_try
="$ac_link"
16252 case "(($ac_try" in
16253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_link") 2>conftest.er1
16259 grep -v '^ *+' conftest.er1 >conftest.err
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } && {
16264 test -z "$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16266 } && test -s conftest$ac_exeext &&
16267 $as_test_x conftest$ac_exeext; then
16268 eval "$as_ac_var=yes"
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 eval "$as_ac_var=no"
16276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16277 conftest$ac_exeext conftest.$ac_ext
16279 ac_res=`eval echo '${'$as_ac_var'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16282 if test `eval echo '${'$as_ac_var'}'` = yes; then
16283 cat >>confdefs.h <<_ACEOF
16284 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16291 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16292 # loading of modules.
16294 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16295 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16296 if test -z "$DYNLOADFILE"
16298 case $ac_sys_system/$ac_sys_release in
16299 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16300 if test "$ac_cv_func_dlopen" = yes
16301 then DYNLOADFILE="dynload_shlib.o"
16302 else DYNLOADFILE="dynload_aix.o"
16305 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16306 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16307 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16308 atheos*) DYNLOADFILE="dynload_atheos.o";;
16310 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16311 # out any dynamic loading
16312 if test "$ac_cv_func_dlopen" = yes
16313 then DYNLOADFILE="dynload_shlib.o"
16314 else DYNLOADFILE="dynload_stub.o"
16319 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16320 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16321 if test "$DYNLOADFILE" != "dynload_stub.o"
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_DYNAMIC_LOADING 1
16330 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16333 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16334 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16335 if test -z "$MACHDEP_OBJS"
16337 MACHDEP_OBJS=$extra_machdep_objs
16339 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16341 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16342 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16344 # checks for library functions
16434 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16435 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16436 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16437 getpriority getpwent getspnam getspent getsid getwd \
16438 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16439 mremap nice pathconf pause plock poll pthread_init \
16440 putenv readlink realpath \
16441 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16443 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16444 sigaction siginterrupt sigrelse strftime strlcpy \
16445 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16446 truncate uname unsetenv utimes waitpid wait3 wait4 \
16447 wcscoll wcsftime wcsxfrm _getpty
16449 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16463 #define $ac_func innocuous_$ac_func
16465 /* System header to define __stub macros and hopefully few prototypes,
16466 which can conflict with char $ac_func (); below.
16467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16468 <limits.h> exists even on freestanding compilers. */
16471 # include <limits.h>
16473 # include <assert.h>
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16485 /* The GNU C library defines this for functions which it implements
16486 to always fail with ENOSYS. Some functions are actually named
16487 something starting with __ and the normal name is an alias. */
16488 #if defined __stub_$ac_func || defined __stub___$ac_func
16495 return $ac_func ();
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16504 *) ac_try_echo
=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1
>conftest.err
16511 cat conftest.err
>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest
$ac_exeext &&
16517 $as_test_x conftest
$ac_exeext; then
16518 eval "$as_ac_var=yes"
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.
$ac_ext >&5
16523 eval "$as_ac_var=no"
16526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16527 conftest
$ac_exeext conftest.
$ac_ext
16529 ac_res
=`eval echo '${'$as_ac_var'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16532 if test `eval echo '${'$as_ac_var'}'` = yes; then
16533 cat >>confdefs.h
<<_ACEOF
16534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16541 # For some functions, having a definition is not sufficient, since
16542 # we want to take their address.
16543 { echo "$as_me:$LINENO: checking for chroot" >&5
16544 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16545 cat >conftest.
$ac_ext <<_ACEOF
16548 cat confdefs.h
>>conftest.
$ac_ext
16549 cat >>conftest.
$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 #include <unistd.h>
16560 rm -f conftest.
$ac_objext
16561 if { (ac_try
="$ac_compile"
16562 case "(($ac_try" in
16563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_compile") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest.$ac_objext; then
16578 cat >>confdefs.h <<\_ACEOF
16579 #define HAVE_CHROOT 1
16582 { echo "$as_me:$LINENO: result: yes" >&5
16583 echo "${ECHO_T}yes" >&6; }
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 { echo "$as_me:$LINENO: result: no" >&5
16589 echo "${ECHO_T}no" >&6; }
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 { echo "$as_me:$LINENO: checking for link" >&5
16595 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include <unistd.h>
16611 rm -f conftest.$ac_objext
16612 if { (ac_try="$ac_compile"
16613 case "(($ac_try" in
16614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16615 *) ac_try_echo
=$ac_try;;
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_compile") 2>conftest.er1
16620 grep -v '^ *+' conftest.er1
>conftest.err
16622 cat conftest.err
>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && {
16625 test -z "$ac_c_werror_flag" ||
16626 test ! -s conftest.err
16627 } && test -s conftest.
$ac_objext; then
16629 cat >>confdefs.h
<<\_ACEOF
16630 #define HAVE_LINK 1
16633 { echo "$as_me:$LINENO: result: yes" >&5
16634 echo "${ECHO_T}yes" >&6; }
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.
$ac_ext >&5
16639 { echo "$as_me:$LINENO: result: no" >&5
16640 echo "${ECHO_T}no" >&6; }
16644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16645 { echo "$as_me:$LINENO: checking for symlink" >&5
16646 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16647 cat >conftest.
$ac_ext <<_ACEOF
16650 cat confdefs.h
>>conftest.
$ac_ext
16651 cat >>conftest.
$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 #include <unistd.h>
16662 rm -f conftest.
$ac_objext
16663 if { (ac_try
="$ac_compile"
16664 case "(($ac_try" in
16665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_compile") 2>conftest.er1
16671 grep -v '^ *+' conftest.er1 >conftest.err
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && {
16676 test -z "$ac_c_werror_flag" ||
16677 test ! -s conftest.err
16678 } && test -s conftest.$ac_objext; then
16680 cat >>confdefs.h <<\_ACEOF
16681 #define HAVE_SYMLINK 1
16684 { echo "$as_me:$LINENO: result: yes" >&5
16685 echo "${ECHO_T}yes" >&6; }
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 { echo "$as_me:$LINENO: result: no" >&5
16691 echo "${ECHO_T}no" >&6; }
16695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16696 { echo "$as_me:$LINENO: checking for fchdir" >&5
16697 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <unistd.h>
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16717 *) ac_try_echo
=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16722 grep -v '^ *+' conftest.er1
>conftest.err
16724 cat conftest.err
>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && {
16727 test -z "$ac_c_werror_flag" ||
16728 test ! -s conftest.err
16729 } && test -s conftest.
$ac_objext; then
16731 cat >>confdefs.h
<<\_ACEOF
16732 #define HAVE_FCHDIR 1
16735 { echo "$as_me:$LINENO: result: yes" >&5
16736 echo "${ECHO_T}yes" >&6; }
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.
$ac_ext >&5
16741 { echo "$as_me:$LINENO: result: no" >&5
16742 echo "${ECHO_T}no" >&6; }
16746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16747 { echo "$as_me:$LINENO: checking for fsync" >&5
16748 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16749 cat >conftest.
$ac_ext <<_ACEOF
16752 cat confdefs.h
>>conftest.
$ac_ext
16753 cat >>conftest.
$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 #include <unistd.h>
16764 rm -f conftest.
$ac_objext
16765 if { (ac_try
="$ac_compile"
16766 case "(($ac_try" in
16767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_compile") 2>conftest.er1
16773 grep -v '^ *+' conftest.er1 >conftest.err
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } && {
16778 test -z "$ac_c_werror_flag" ||
16779 test ! -s conftest.err
16780 } && test -s conftest.$ac_objext; then
16782 cat >>confdefs.h <<\_ACEOF
16783 #define HAVE_FSYNC 1
16786 { echo "$as_me:$LINENO: result: yes" >&5
16787 echo "${ECHO_T}yes" >&6; }
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 { echo "$as_me:$LINENO: result: no" >&5
16793 echo "${ECHO_T}no" >&6; }
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16799 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 #include <unistd.h>
16815 rm -f conftest.$ac_objext
16816 if { (ac_try="$ac_compile"
16817 case "(($ac_try" in
16818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16819 *) ac_try_echo
=$ac_try;;
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_compile") 2>conftest.er1
16824 grep -v '^ *+' conftest.er1
>conftest.err
16826 cat conftest.err
>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } && {
16829 test -z "$ac_c_werror_flag" ||
16830 test ! -s conftest.err
16831 } && test -s conftest.
$ac_objext; then
16833 cat >>confdefs.h
<<\_ACEOF
16834 #define HAVE_FDATASYNC 1
16837 { echo "$as_me:$LINENO: result: yes" >&5
16838 echo "${ECHO_T}yes" >&6; }
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.
$ac_ext >&5
16843 { echo "$as_me:$LINENO: result: no" >&5
16844 echo "${ECHO_T}no" >&6; }
16848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16849 { echo "$as_me:$LINENO: checking for epoll" >&5
16850 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16851 cat >conftest.
$ac_ext <<_ACEOF
16854 cat confdefs.h
>>conftest.
$ac_ext
16855 cat >>conftest.
$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/epoll.h>
16861 void *x=epoll_create
16866 rm -f conftest.
$ac_objext
16867 if { (ac_try
="$ac_compile"
16868 case "(($ac_try" in
16869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_compile") 2>conftest.er1
16875 grep -v '^ *+' conftest.er1 >conftest.err
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } && {
16880 test -z "$ac_c_werror_flag" ||
16881 test ! -s conftest.err
16882 } && test -s conftest.$ac_objext; then
16884 cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_EPOLL 1
16888 { echo "$as_me:$LINENO: result: yes" >&5
16889 echo "${ECHO_T}yes" >&6; }
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 { echo "$as_me:$LINENO: result: no" >&5
16895 echo "${ECHO_T}no" >&6; }
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900 { echo "$as_me:$LINENO: checking for kqueue" >&5
16901 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16902 cat >conftest.$ac_ext <<_ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16909 #include <sys/types.h>
16910 #include <sys/event.h>
16920 rm -f conftest.$ac_objext
16921 if { (ac_try="$ac_compile"
16922 case "(($ac_try" in
16923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16924 *) ac_try_echo
=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_compile") 2>conftest.er1
16929 grep -v '^ *+' conftest.er1
>conftest.err
16931 cat conftest.err
>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest.
$ac_objext; then
16938 cat >>confdefs.h
<<\_ACEOF
16939 #define HAVE_KQUEUE 1
16942 { echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6; }
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.
$ac_ext >&5
16948 { echo "$as_me:$LINENO: result: no" >&5
16949 echo "${ECHO_T}no" >&6; }
16953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16954 # On some systems (eg. FreeBSD 5), we would find a definition of the
16955 # functions ctermid_r, setgroups in the library, but no prototype
16956 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16957 # address to avoid compiler warnings and potential miscompilations
16958 # because of the missing prototypes.
16960 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16961 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16962 cat >conftest.
$ac_ext <<_ACEOF
16965 cat confdefs.h
>>conftest.
$ac_ext
16966 cat >>conftest.
$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 #include "confdefs.h"
16975 void* p = ctermid_r
16980 rm -f conftest.
$ac_objext
16981 if { (ac_try
="$ac_compile"
16982 case "(($ac_try" in
16983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } && {
16994 test -z "$ac_c_werror_flag" ||
16995 test ! -s conftest.err
16996 } && test -s conftest.$ac_objext; then
16998 cat >>confdefs.h <<\_ACEOF
16999 #define HAVE_CTERMID_R 1
17002 { echo "$as_me:$LINENO: result: yes" >&5
17003 echo "${ECHO_T}yes" >&6; }
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 { echo "$as_me:$LINENO: result: no" >&5
17009 echo "${ECHO_T}no" >&6; }
17013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17015 { echo "$as_me:$LINENO: checking for flock" >&5
17016 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17024 #include "confdefs.h"
17025 #include <sys/file.h>
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17039 *) ac_try_echo
=$ac_try;;
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_compile") 2>conftest.er1
17044 grep -v '^ *+' conftest.er1
>conftest.err
17046 cat conftest.err
>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest.
$ac_objext; then
17053 cat >>confdefs.h
<<\_ACEOF
17054 #define HAVE_FLOCK 1
17057 { echo "$as_me:$LINENO: result: yes" >&5
17058 echo "${ECHO_T}yes" >&6; }
17060 echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.
$ac_ext >&5
17063 { echo "$as_me:$LINENO: result: no" >&5
17064 echo "${ECHO_T}no" >&6; }
17068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17070 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17071 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17072 cat >conftest.
$ac_ext <<_ACEOF
17075 cat confdefs.h
>>conftest.
$ac_ext
17076 cat >>conftest.
$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17079 #include "confdefs.h"
17080 #include <unistd.h>
17085 void* p = getpagesize
17090 rm -f conftest.
$ac_objext
17091 if { (ac_try
="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest.$ac_objext; then
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_GETPAGESIZE 1
17112 { echo "$as_me:$LINENO: result: yes" >&5
17113 echo "${ECHO_T}yes" >&6; }
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 { echo "$as_me:$LINENO: result: no" >&5
17119 echo "${ECHO_T}no" >&6; }
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 for ac_prog in true
17127 # Extract the first word of "$ac_prog", so it can be a program name with args.
17128 set dummy $ac_prog; ac_word=$2
17129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17131 if test "${ac_cv_prog_TRUE+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 if test -n "$TRUE"; then
17135 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138 for as_dir in $PATH
17141 test -z "$as_dir" && as_dir=.
17142 for ac_exec_ext in '' $ac_executable_extensions; do
17143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17144 ac_cv_prog_TRUE="$ac_prog"
17145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17154 TRUE=$ac_cv_prog_TRUE
17155 if test -n "$TRUE"; then
17156 { echo "$as_me:$LINENO: result: $TRUE" >&5
17157 echo "${ECHO_T}$TRUE" >&6; }
17159 { echo "$as_me:$LINENO: result: no" >&5
17160 echo "${ECHO_T}no" >&6; }
17164 test -n "$TRUE" && break
17166 test -n "$TRUE" || TRUE="/bin/true"
17169 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17170 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17171 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 ac_check_lib_save_LIBS=$LIBS
17176 cat >conftest.$ac_ext <<_ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17193 return inet_aton ();
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17202 *) ac_try_echo
=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17207 grep -v '^ *+' conftest.er1
>conftest.err
17209 cat conftest.err
>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && {
17212 test -z "$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 } && test -s conftest
$ac_exeext &&
17215 $as_test_x conftest
$ac_exeext; then
17216 ac_cv_lib_c_inet_aton
=yes
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.
$ac_ext >&5
17221 ac_cv_lib_c_inet_aton
=no
17224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17225 conftest
$ac_exeext conftest.
$ac_ext
17226 LIBS
=$ac_check_lib_save_LIBS
17228 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17229 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17230 if test $ac_cv_lib_c_inet_aton = yes; then
17234 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17235 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17236 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 ac_check_lib_save_LIBS
=$LIBS
17240 LIBS
="-lresolv $LIBS"
17241 cat >conftest.
$ac_ext <<_ACEOF
17244 cat confdefs.h
>>conftest.
$ac_ext
17245 cat >>conftest.
$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17258 return inet_aton ();
17263 rm -f conftest.
$ac_objext conftest
$ac_exeext
17264 if { (ac_try
="$ac_link"
17265 case "(($ac_try" in
17266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17281 ac_cv_lib_resolv_inet_aton=yes
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_lib_resolv_inet_aton=no
17289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17290 conftest$ac_exeext conftest.$ac_ext
17291 LIBS=$ac_check_lib_save_LIBS
17293 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17294 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17295 if test $ac_cv_lib_resolv_inet_aton = yes; then
17296 cat >>confdefs.h <<_ACEOF
17297 #define HAVE_LIBRESOLV 1
17300 LIBS="-lresolv $LIBS"
17308 # On Tru64, chflags seems to be present, but calling it will
17310 { echo "$as_me:$LINENO: checking for chflags" >&5
17311 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17312 if test "${ac_cv_have_chflags+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 if test "$cross_compiling" = yes; then
17316 ac_cv_have_chflags=cross
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 #include <sys/stat.h>
17326 #include <unistd.h>
17327 int main(int argc, char*argv[])
17329 if(chflags(argv[0], 0) != 0)
17335 rm -f conftest$ac_exeext
17336 if { (ac_try="$ac_link"
17337 case "(($ac_try" in
17338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17339 *) ac_try_echo
=$ac_try;;
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_link") 2>&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17346 { (case "(($ac_try" in
17347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_have_chflags=yes
17357 echo "$as_me: program exited with status $ac_status" >&5
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 ( exit $ac_status )
17362 ac_cv_have_chflags=no
17364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17370 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17371 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17372 if test "$ac_cv_have_chflags" = cross ; then
17373 { echo "$as_me:$LINENO: checking for chflags" >&5
17374 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17375 if test "${ac_cv_func_chflags+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17386 #define chflags innocuous_chflags
17388 /* System header to define __stub macros and hopefully few prototypes,
17389 which can conflict with char chflags (); below.
17390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17391 <limits.h> exists even on freestanding compilers. */
17394 # include <limits.h>
17396 # include <assert.h>
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined __stub_chflags || defined __stub___chflags
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17427 *) ac_try_echo
=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1
>conftest.err
17434 cat conftest.err
>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest
$ac_exeext &&
17440 $as_test_x conftest
$ac_exeext; then
17441 ac_cv_func_chflags
=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.
$ac_ext >&5
17446 ac_cv_func_chflags
=no
17449 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17450 conftest
$ac_exeext conftest.
$ac_ext
17452 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17453 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17454 if test $ac_cv_func_chflags = yes; then
17455 ac_cv_have_chflags
="yes"
17457 ac_cv_have_chflags
="no"
17461 if test "$ac_cv_have_chflags" = yes ; then
17463 cat >>confdefs.h
<<\_ACEOF
17464 #define HAVE_CHFLAGS 1
17469 { echo "$as_me:$LINENO: checking for lchflags" >&5
17470 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17471 if test "${ac_cv_have_lchflags+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 if test "$cross_compiling" = yes; then
17475 ac_cv_have_lchflags
=cross
17477 cat >conftest.
$ac_ext <<_ACEOF
17480 cat confdefs.h
>>conftest.
$ac_ext
17481 cat >>conftest.
$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 #include <sys/stat.h>
17485 #include <unistd.h>
17486 int main(int argc, char*argv[])
17488 if(lchflags(argv[0], 0) != 0)
17494 rm -f conftest
$ac_exeext
17495 if { (ac_try
="$ac_link"
17496 case "(($ac_try" in
17497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_link") 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17507 *) ac_try_echo
=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_cv_have_lchflags
=yes
17516 echo "$as_me: program exited with status $ac_status" >&5
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.
$ac_ext >&5
17520 ( exit $ac_status )
17521 ac_cv_have_lchflags
=no
17523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17529 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17530 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17531 if test "$ac_cv_have_lchflags" = cross
; then
17532 { echo "$as_me:$LINENO: checking for lchflags" >&5
17533 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17534 if test "${ac_cv_func_lchflags+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 cat >conftest.
$ac_ext <<_ACEOF
17540 cat confdefs.h
>>conftest.
$ac_ext
17541 cat >>conftest.
$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17543 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17545 #define lchflags innocuous_lchflags
17547 /* System header to define __stub macros and hopefully few prototypes,
17548 which can conflict with char lchflags (); below.
17549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17550 <limits.h> exists even on freestanding compilers. */
17553 # include <limits.h>
17555 # include <assert.h>
17560 /* Override any GCC internal prototype to avoid an error.
17561 Use char because int might match the return type of a GCC
17562 builtin and then its argument prototype would still apply. */
17567 /* The GNU C library defines this for functions which it implements
17568 to always fail with ENOSYS. Some functions are actually named
17569 something starting with __ and the normal name is an alias. */
17570 #if defined __stub_lchflags || defined __stub___lchflags
17577 return lchflags ();
17582 rm -f conftest.
$ac_objext conftest
$ac_exeext
17583 if { (ac_try
="$ac_link"
17584 case "(($ac_try" in
17585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_link") 2>conftest.er1
17591 grep -v '^ *+' conftest.er1 >conftest.err
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && {
17596 test -z "$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 } && test -s conftest$ac_exeext &&
17599 $as_test_x conftest$ac_exeext; then
17600 ac_cv_func_lchflags=yes
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ac_cv_func_lchflags=no
17608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609 conftest$ac_exeext conftest.$ac_ext
17611 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17612 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17613 if test $ac_cv_func_lchflags = yes; then
17614 ac_cv_have_lchflags="yes"
17616 ac_cv_have_lchflags="no"
17620 if test "$ac_cv_have_lchflags" = yes ; then
17622 cat >>confdefs.h <<\_ACEOF
17623 #define HAVE_LCHFLAGS 1
17628 case $ac_sys_system/$ac_sys_release in
17630 _CUR_CFLAGS="${CFLAGS}"
17631 _CUR_LDFLAGS="${LDFLAGS}"
17632 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17633 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17637 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17638 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17639 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 ac_check_lib_save_LIBS=$LIBS
17644 cat >conftest.$ac_ext <<_ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17651 /* Override any GCC internal prototype to avoid an error.
17652 Use char because int might match the return type of a GCC
17653 builtin and then its argument prototype would still apply. */
17657 char inflateCopy ();
17661 return inflateCopy ();
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17670 *) ac_try_echo
=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1
>conftest.err
17677 cat conftest.err
>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest
$ac_exeext &&
17683 $as_test_x conftest
$ac_exeext; then
17684 ac_cv_lib_z_inflateCopy
=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.
$ac_ext >&5
17689 ac_cv_lib_z_inflateCopy
=no
17692 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17693 conftest
$ac_exeext conftest.
$ac_ext
17694 LIBS
=$ac_check_lib_save_LIBS
17696 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17697 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17698 if test $ac_cv_lib_z_inflateCopy = yes; then
17700 cat >>confdefs.h
<<\_ACEOF
17701 #define HAVE_ZLIB_COPY 1
17707 case $ac_sys_system/$ac_sys_release in
17709 CFLAGS
="${_CUR_CFLAGS}"
17710 LDFLAGS
="${_CUR_LDFLAGS}"
17714 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17715 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17716 cat >conftest.
$ac_ext <<_ACEOF
17719 cat confdefs.h
>>conftest.
$ac_ext
17720 cat >>conftest.
$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17723 #include "confdefs.h"
17729 void* p = hstrerror; hstrerror(0)
17734 rm -f conftest.
$ac_objext conftest
$ac_exeext
17735 if { (ac_try
="$ac_link"
17736 case "(($ac_try" in
17737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_link") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && {
17748 test -z "$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17750 } && test -s conftest$ac_exeext &&
17751 $as_test_x conftest$ac_exeext; then
17753 cat >>confdefs.h <<\_ACEOF
17754 #define HAVE_HSTRERROR 1
17757 { echo "$as_me:$LINENO: result: yes" >&5
17758 echo "${ECHO_T}yes" >&6; }
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17763 { echo "$as_me:$LINENO: result: no" >&5
17764 echo "${ECHO_T}no" >&6; }
17768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17769 conftest$ac_exeext conftest.$ac_ext
17771 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17772 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17780 #include "confdefs.h"
17781 #include <sys/types.h>
17782 #include <sys/socket.h>
17783 #include <netinet/in.h>
17784 #include <arpa/inet.h>
17789 void* p = inet_aton;inet_aton(0,0)
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (ac_try="$ac_link"
17796 case "(($ac_try" in
17797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17798 *) ac_try_echo
=$ac_try;;
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_link") 2>conftest.er1
17803 grep -v '^ *+' conftest.er1
>conftest.err
17805 cat conftest.err
>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest
$ac_exeext &&
17811 $as_test_x conftest
$ac_exeext; then
17813 cat >>confdefs.h
<<\_ACEOF
17814 #define HAVE_INET_ATON 1
17817 { echo "$as_me:$LINENO: result: yes" >&5
17818 echo "${ECHO_T}yes" >&6; }
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.
$ac_ext >&5
17823 { echo "$as_me:$LINENO: result: no" >&5
17824 echo "${ECHO_T}no" >&6; }
17828 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17829 conftest
$ac_exeext conftest.
$ac_ext
17831 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17832 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17833 cat >conftest.
$ac_ext <<_ACEOF
17836 cat confdefs.h
>>conftest.
$ac_ext
17837 cat >>conftest.
$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 #include "confdefs.h"
17841 #include <sys/types.h>
17842 #include <sys/socket.h>
17843 #include <netinet/in.h>
17844 #include <arpa/inet.h>
17849 void* p = inet_pton
17854 rm -f conftest.
$ac_objext
17855 if { (ac_try
="$ac_compile"
17856 case "(($ac_try" in
17857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_compile") 2>conftest.er1
17863 grep -v '^ *+' conftest.er1 >conftest.err
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && {
17868 test -z "$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 } && test -s conftest.$ac_objext; then
17872 cat >>confdefs.h <<\_ACEOF
17873 #define HAVE_INET_PTON 1
17876 { echo "$as_me:$LINENO: result: yes" >&5
17877 echo "${ECHO_T}yes" >&6; }
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 { echo "$as_me:$LINENO: result: no" >&5
17883 echo "${ECHO_T}no" >&6; }
17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17889 # On some systems, setgroups is in unistd.h, on others, in grp.h
17890 { echo "$as_me:$LINENO: checking for setgroups" >&5
17891 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17892 cat >conftest.$ac_ext <<_ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17899 #include "confdefs.h"
17900 #include <unistd.h>
17908 void* p = setgroups
17913 rm -f conftest.$ac_objext
17914 if { (ac_try="$ac_compile"
17915 case "(($ac_try" in
17916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17917 *) ac_try_echo
=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_compile") 2>conftest.er1
17922 grep -v '^ *+' conftest.er1
>conftest.err
17924 cat conftest.err
>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && {
17927 test -z "$ac_c_werror_flag" ||
17928 test ! -s conftest.err
17929 } && test -s conftest.
$ac_objext; then
17931 cat >>confdefs.h
<<\_ACEOF
17932 #define HAVE_SETGROUPS 1
17935 { echo "$as_me:$LINENO: result: yes" >&5
17936 echo "${ECHO_T}yes" >&6; }
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.
$ac_ext >&5
17941 { echo "$as_me:$LINENO: result: no" >&5
17942 echo "${ECHO_T}no" >&6; }
17946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17948 # check for openpty and forkpty
17951 for ac_func
in openpty
17953 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17956 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 cat >conftest.
$ac_ext <<_ACEOF
17962 cat confdefs.h
>>conftest.
$ac_ext
17963 cat >>conftest.
$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17967 #define $ac_func innocuous_$ac_func
17969 /* System header to define __stub macros and hopefully few prototypes,
17970 which can conflict with char $ac_func (); below.
17971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17972 <limits.h> exists even on freestanding compilers. */
17975 # include <limits.h>
17977 # include <assert.h>
17982 /* Override any GCC internal prototype to avoid an error.
17983 Use char because int might match the return type of a GCC
17984 builtin and then its argument prototype would still apply. */
17989 /* The GNU C library defines this for functions which it implements
17990 to always fail with ENOSYS. Some functions are actually named
17991 something starting with __ and the normal name is an alias. */
17992 #if defined __stub_$ac_func || defined __stub___$ac_func
17999 return $ac_func ();
18004 rm -f conftest.
$ac_objext conftest
$ac_exeext
18005 if { (ac_try
="$ac_link"
18006 case "(($ac_try" in
18007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_link") 2>conftest.er1
18013 grep -v '^ *+' conftest.er1 >conftest.err
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest$ac_exeext &&
18021 $as_test_x conftest$ac_exeext; then
18022 eval "$as_ac_var=yes"
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 eval "$as_ac_var=no"
18030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18031 conftest$ac_exeext conftest.$ac_ext
18033 ac_res=`eval echo '${'$as_ac_var'}'`
18034 { echo "$as_me:$LINENO: result: $ac_res" >&5
18035 echo "${ECHO_T}$ac_res" >&6; }
18036 if test `eval echo '${'$as_ac_var'}'` = yes; then
18037 cat >>confdefs.h <<_ACEOF
18038 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18042 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18043 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18044 if test "${ac_cv_lib_util_openpty+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 ac_check_lib_save_LIBS=$LIBS
18048 LIBS="-lutil $LIBS"
18049 cat >conftest.$ac_ext <<_ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18056 /* Override any GCC internal prototype to avoid an error.
18057 Use char because int might match the return type of a GCC
18058 builtin and then its argument prototype would still apply. */
18071 rm -f conftest.$ac_objext conftest$ac_exeext
18072 if { (ac_try="$ac_link"
18073 case "(($ac_try" in
18074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18075 *) ac_try_echo
=$ac_try;;
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_link") 2>conftest.er1
18080 grep -v '^ *+' conftest.er1
>conftest.err
18082 cat conftest.err
>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && {
18085 test -z "$ac_c_werror_flag" ||
18086 test ! -s conftest.err
18087 } && test -s conftest
$ac_exeext &&
18088 $as_test_x conftest
$ac_exeext; then
18089 ac_cv_lib_util_openpty
=yes
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.
$ac_ext >&5
18094 ac_cv_lib_util_openpty
=no
18097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18098 conftest
$ac_exeext conftest.
$ac_ext
18099 LIBS
=$ac_check_lib_save_LIBS
18101 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18102 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18103 if test $ac_cv_lib_util_openpty = yes; then
18104 cat >>confdefs.h
<<\_ACEOF
18105 #define HAVE_OPENPTY 1
18107 LIBS
="$LIBS -lutil"
18109 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18110 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18111 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18112 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 ac_check_lib_save_LIBS
=$LIBS
18116 cat >conftest.
$ac_ext <<_ACEOF
18119 cat confdefs.h
>>conftest.
$ac_ext
18120 cat >>conftest.
$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18123 /* Override any GCC internal prototype to avoid an error.
18124 Use char because int might match the return type of a GCC
18125 builtin and then its argument prototype would still apply. */
18138 rm -f conftest.
$ac_objext conftest
$ac_exeext
18139 if { (ac_try
="$ac_link"
18140 case "(($ac_try" in
18141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_link") 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext &&
18155 $as_test_x conftest$ac_exeext; then
18156 ac_cv_lib_bsd_openpty=yes
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_cv_lib_bsd_openpty=no
18164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18165 conftest$ac_exeext conftest.$ac_ext
18166 LIBS=$ac_check_lib_save_LIBS
18168 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18169 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18170 if test $ac_cv_lib_bsd_openpty = yes; then
18171 cat >>confdefs.h <<\_ACEOF
18172 #define HAVE_OPENPTY 1
18185 for ac_func in forkpty
18187 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201 #define $ac_func innocuous_$ac_func
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char $ac_func (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18209 # include <limits.h>
18211 # include <assert.h>
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined __stub_$ac_func || defined __stub___$ac_func
18233 return $ac_func ();
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18242 *) ac_try_echo
=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1
>conftest.err
18249 cat conftest.err
>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest
$ac_exeext &&
18255 $as_test_x conftest
$ac_exeext; then
18256 eval "$as_ac_var=yes"
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.
$ac_ext >&5
18261 eval "$as_ac_var=no"
18264 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18265 conftest
$ac_exeext conftest.
$ac_ext
18267 ac_res
=`eval echo '${'$as_ac_var'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18270 if test `eval echo '${'$as_ac_var'}'` = yes; then
18271 cat >>confdefs.h
<<_ACEOF
18272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18276 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18277 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18278 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 ac_check_lib_save_LIBS
=$LIBS
18282 LIBS
="-lutil $LIBS"
18283 cat >conftest.
$ac_ext <<_ACEOF
18286 cat confdefs.h
>>conftest.
$ac_ext
18287 cat >>conftest.
$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18290 /* Override any GCC internal prototype to avoid an error.
18291 Use char because int might match the return type of a GCC
18292 builtin and then its argument prototype would still apply. */
18305 rm -f conftest.
$ac_objext conftest
$ac_exeext
18306 if { (ac_try
="$ac_link"
18307 case "(($ac_try" in
18308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_link") 2>conftest.er1
18314 grep -v '^ *+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } && {
18319 test -z "$ac_c_werror_flag" ||
18320 test ! -s conftest.err
18321 } && test -s conftest$ac_exeext &&
18322 $as_test_x conftest$ac_exeext; then
18323 ac_cv_lib_util_forkpty=yes
18325 echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18328 ac_cv_lib_util_forkpty=no
18331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18332 conftest$ac_exeext conftest.$ac_ext
18333 LIBS=$ac_check_lib_save_LIBS
18335 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18336 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18337 if test $ac_cv_lib_util_forkpty = yes; then
18338 cat >>confdefs.h <<\_ACEOF
18339 #define HAVE_FORKPTY 1
18341 LIBS="$LIBS -lutil"
18343 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18344 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18345 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 ac_check_lib_save_LIBS=$LIBS
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18357 /* Override any GCC internal prototype to avoid an error.
18358 Use char because int might match the return type of a GCC
18359 builtin and then its argument prototype would still apply. */
18372 rm -f conftest.$ac_objext conftest$ac_exeext
18373 if { (ac_try="$ac_link"
18374 case "(($ac_try" in
18375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18376 *) ac_try_echo
=$ac_try;;
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_link") 2>conftest.er1
18381 grep -v '^ *+' conftest.er1
>conftest.err
18383 cat conftest.err
>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } && {
18386 test -z "$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 } && test -s conftest
$ac_exeext &&
18389 $as_test_x conftest
$ac_exeext; then
18390 ac_cv_lib_bsd_forkpty
=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.
$ac_ext >&5
18395 ac_cv_lib_bsd_forkpty
=no
18398 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18399 conftest
$ac_exeext conftest.
$ac_ext
18400 LIBS
=$ac_check_lib_save_LIBS
18402 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18403 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18404 if test $ac_cv_lib_bsd_forkpty = yes; then
18405 cat >>confdefs.h
<<\_ACEOF
18406 #define HAVE_FORKPTY 1
18421 for ac_func
in memmove
18423 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18426 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.
$ac_ext <<_ACEOF
18432 cat confdefs.h
>>conftest.
$ac_ext
18433 cat >>conftest.
$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437 #define $ac_func innocuous_$ac_func
18439 /* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char $ac_func (); below.
18441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 <limits.h> exists even on freestanding compilers. */
18445 # include <limits.h>
18447 # include <assert.h>
18452 /* Override any GCC internal prototype to avoid an error.
18453 Use char because int might match the return type of a GCC
18454 builtin and then its argument prototype would still apply. */
18459 /* The GNU C library defines this for functions which it implements
18460 to always fail with ENOSYS. Some functions are actually named
18461 something starting with __ and the normal name is an alias. */
18462 #if defined __stub_$ac_func || defined __stub___$ac_func
18469 return $ac_func ();
18474 rm -f conftest.
$ac_objext conftest
$ac_exeext
18475 if { (ac_try
="$ac_link"
18476 case "(($ac_try" in
18477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_link") 2>conftest.er1
18483 grep -v '^ *+' conftest.er1 >conftest.err
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } && {
18488 test -z "$ac_c_werror_flag" ||
18489 test ! -s conftest.err
18490 } && test -s conftest$ac_exeext &&
18491 $as_test_x conftest$ac_exeext; then
18492 eval "$as_ac_var=yes"
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 eval "$as_ac_var=no"
18500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18501 conftest$ac_exeext conftest.$ac_ext
18503 ac_res=`eval echo '${'$as_ac_var'}'`
18504 { echo "$as_me:$LINENO: result: $ac_res" >&5
18505 echo "${ECHO_T}$ac_res" >&6; }
18506 if test `eval echo '${'$as_ac_var'}'` = yes; then
18507 cat >>confdefs.h <<_ACEOF
18508 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18515 # check for long file support functions
18522 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18524 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18538 #define $ac_func innocuous_$ac_func
18540 /* System header to define __stub macros and hopefully few prototypes,
18541 which can conflict with char $ac_func (); below.
18542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18543 <limits.h> exists even on freestanding compilers. */
18546 # include <limits.h>
18548 # include <assert.h>
18553 /* Override any GCC internal prototype to avoid an error.
18554 Use char because int might match the return type of a GCC
18555 builtin and then its argument prototype would still apply. */
18560 /* The GNU C library defines this for functions which it implements
18561 to always fail with ENOSYS. Some functions are actually named
18562 something starting with __ and the normal name is an alias. */
18563 #if defined __stub_$ac_func || defined __stub___$ac_func
18570 return $ac_func ();
18575 rm -f conftest.$ac_objext conftest$ac_exeext
18576 if { (ac_try="$ac_link"
18577 case "(($ac_try" in
18578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18579 *) ac_try_echo
=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_link") 2>conftest.er1
18584 grep -v '^ *+' conftest.er1
>conftest.err
18586 cat conftest.err
>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } && {
18589 test -z "$ac_c_werror_flag" ||
18590 test ! -s conftest.err
18591 } && test -s conftest
$ac_exeext &&
18592 $as_test_x conftest
$ac_exeext; then
18593 eval "$as_ac_var=yes"
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.
$ac_ext >&5
18598 eval "$as_ac_var=no"
18601 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18602 conftest
$ac_exeext conftest.
$ac_ext
18604 ac_res
=`eval echo '${'$as_ac_var'}'`
18605 { echo "$as_me:$LINENO: result: $ac_res" >&5
18606 echo "${ECHO_T}$ac_res" >&6; }
18607 if test `eval echo '${'$as_ac_var'}'` = yes; then
18608 cat >>confdefs.h
<<_ACEOF
18609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18619 for ac_func
in dup2 getcwd strdup
18621 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18624 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 cat >conftest.
$ac_ext <<_ACEOF
18630 cat confdefs.h
>>conftest.
$ac_ext
18631 cat >>conftest.
$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18635 #define $ac_func innocuous_$ac_func
18637 /* System header to define __stub macros and hopefully few prototypes,
18638 which can conflict with char $ac_func (); below.
18639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18640 <limits.h> exists even on freestanding compilers. */
18643 # include <limits.h>
18645 # include <assert.h>
18650 /* Override any GCC internal prototype to avoid an error.
18651 Use char because int might match the return type of a GCC
18652 builtin and then its argument prototype would still apply. */
18657 /* The GNU C library defines this for functions which it implements
18658 to always fail with ENOSYS. Some functions are actually named
18659 something starting with __ and the normal name is an alias. */
18660 #if defined __stub_$ac_func || defined __stub___$ac_func
18667 return $ac_func ();
18672 rm -f conftest.
$ac_objext conftest
$ac_exeext
18673 if { (ac_try
="$ac_link"
18674 case "(($ac_try" in
18675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18676 *) ac_try_echo=$ac_try;;
18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18679 (eval "$ac_link") 2>conftest.er1
18681 grep -v '^ *+' conftest.er1 >conftest.err
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext &&
18689 $as_test_x conftest$ac_exeext; then
18690 eval "$as_ac_var=yes"
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18695 eval "$as_ac_var=no"
18698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18699 conftest$ac_exeext conftest.$ac_ext
18701 ac_res=`eval echo '${'$as_ac_var'}'`
18702 { echo "$as_me:$LINENO: result: $ac_res" >&5
18703 echo "${ECHO_T}$ac_res" >&6; }
18704 if test `eval echo '${'$as_ac_var'}'` = yes; then
18705 cat >>confdefs.h <<_ACEOF
18706 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18710 case " $LIBOBJS " in
18711 *" $ac_func.$ac_objext "* ) ;;
18712 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18721 for ac_func in getpgrp
18723 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 cat >conftest.$ac_ext <<_ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18737 #define $ac_func innocuous_$ac_func
18739 /* System header to define __stub macros and hopefully few prototypes,
18740 which can conflict with char $ac_func (); below.
18741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18742 <limits.h> exists even on freestanding compilers. */
18745 # include <limits.h>
18747 # include <assert.h>
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18759 /* The GNU C library defines this for functions which it implements
18760 to always fail with ENOSYS. Some functions are actually named
18761 something starting with __ and the normal name is an alias. */
18762 #if defined __stub_$ac_func || defined __stub___$ac_func
18769 return $ac_func ();
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (ac_try="$ac_link"
18776 case "(($ac_try" in
18777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18778 *) ac_try_echo
=$ac_try;;
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_link") 2>conftest.er1
18783 grep -v '^ *+' conftest.er1
>conftest.err
18785 cat conftest.err
>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } && {
18788 test -z "$ac_c_werror_flag" ||
18789 test ! -s conftest.err
18790 } && test -s conftest
$ac_exeext &&
18791 $as_test_x conftest
$ac_exeext; then
18792 eval "$as_ac_var=yes"
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.
$ac_ext >&5
18797 eval "$as_ac_var=no"
18800 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18801 conftest
$ac_exeext conftest.
$ac_ext
18803 ac_res
=`eval echo '${'$as_ac_var'}'`
18804 { echo "$as_me:$LINENO: result: $ac_res" >&5
18805 echo "${ECHO_T}$ac_res" >&6; }
18806 if test `eval echo '${'$as_ac_var'}'` = yes; then
18807 cat >>confdefs.h
<<_ACEOF
18808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18810 cat >conftest.
$ac_ext <<_ACEOF
18813 cat confdefs.h
>>conftest.
$ac_ext
18814 cat >>conftest.
$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 #include <unistd.h>
18825 rm -f conftest.
$ac_objext
18826 if { (ac_try
="$ac_compile"
18827 case "(($ac_try" in
18828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_compile") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1 >conftest.err
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest.$ac_objext; then
18843 cat >>confdefs.h <<\_ACEOF
18844 #define GETPGRP_HAVE_ARG 1
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18861 for ac_func in setpgrp
18863 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18877 #define $ac_func innocuous_$ac_func
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char $ac_func (); below.
18881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882 <limits.h> exists even on freestanding compilers. */
18885 # include <limits.h>
18887 # include <assert.h>
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18899 /* The GNU C library defines this for functions which it implements
18900 to always fail with ENOSYS. Some functions are actually named
18901 something starting with __ and the normal name is an alias. */
18902 #if defined __stub_$ac_func || defined __stub___$ac_func
18909 return $ac_func ();
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18918 *) ac_try_echo
=$ac_try;;
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_link") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1
>conftest.err
18925 cat conftest.err
>&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest
$ac_exeext &&
18931 $as_test_x conftest
$ac_exeext; then
18932 eval "$as_ac_var=yes"
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.
$ac_ext >&5
18937 eval "$as_ac_var=no"
18940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18941 conftest
$ac_exeext conftest.
$ac_ext
18943 ac_res
=`eval echo '${'$as_ac_var'}'`
18944 { echo "$as_me:$LINENO: result: $ac_res" >&5
18945 echo "${ECHO_T}$ac_res" >&6; }
18946 if test `eval echo '${'$as_ac_var'}'` = yes; then
18947 cat >>confdefs.h
<<_ACEOF
18948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18950 cat >conftest.
$ac_ext <<_ACEOF
18953 cat confdefs.h
>>conftest.
$ac_ext
18954 cat >>conftest.
$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 #include <unistd.h>
18965 rm -f conftest.
$ac_objext
18966 if { (ac_try
="$ac_compile"
18967 case "(($ac_try" in
18968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_compile") 2>conftest.er1
18974 grep -v '^ *+' conftest.er1 >conftest.err
18976 cat conftest.err >&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } && {
18979 test -z "$ac_c_werror_flag" ||
18980 test ! -s conftest.err
18981 } && test -s conftest.$ac_objext; then
18983 cat >>confdefs.h <<\_ACEOF
18984 #define SETPGRP_HAVE_ARG 1
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 for ac_func in gettimeofday
19003 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 cat >conftest.$ac_ext <<_ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19017 #define $ac_func innocuous_$ac_func
19019 /* System header to define __stub macros and hopefully few prototypes,
19020 which can conflict with char $ac_func (); below.
19021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022 <limits.h> exists even on freestanding compilers. */
19025 # include <limits.h>
19027 # include <assert.h>
19032 /* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19039 /* The GNU C library defines this for functions which it implements
19040 to always fail with ENOSYS. Some functions are actually named
19041 something starting with __ and the normal name is an alias. */
19042 #if defined __stub_$ac_func || defined __stub___$ac_func
19049 return $ac_func ();
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19058 *) ac_try_echo
=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_link") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1
>conftest.err
19065 cat conftest.err
>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest
$ac_exeext &&
19071 $as_test_x conftest
$ac_exeext; then
19072 eval "$as_ac_var=yes"
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.
$ac_ext >&5
19077 eval "$as_ac_var=no"
19080 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19081 conftest
$ac_exeext conftest.
$ac_ext
19083 ac_res
=`eval echo '${'$as_ac_var'}'`
19084 { echo "$as_me:$LINENO: result: $ac_res" >&5
19085 echo "${ECHO_T}$ac_res" >&6; }
19086 if test `eval echo '${'$as_ac_var'}'` = yes; then
19087 cat >>confdefs.h
<<_ACEOF
19088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19090 cat >conftest.
$ac_ext <<_ACEOF
19093 cat confdefs.h
>>conftest.
$ac_ext
19094 cat >>conftest.
$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 #include <sys/time.h>
19100 gettimeofday((struct timeval*)0,(struct timezone*)0);
19105 rm -f conftest.
$ac_objext
19106 if { (ac_try
="$ac_compile"
19107 case "(($ac_try" in
19108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_compile") 2>conftest.er1
19114 grep -v '^ *+' conftest.er1 >conftest.err
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } && {
19119 test -z "$ac_c_werror_flag" ||
19120 test ! -s conftest.err
19121 } && test -s conftest.$ac_objext; then
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19128 cat >>confdefs.h <<\_ACEOF
19129 #define GETTIMEOFDAY_NO_TZ 1
19135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: checking for major" >&5
19142 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19143 cat >conftest.$ac_ext <<_ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19150 #if defined(MAJOR_IN_MKDEV)
19151 #include <sys/mkdev.h>
19152 #elif defined(MAJOR_IN_SYSMACROS)
19153 #include <sys/sysmacros.h>
19155 #include <sys/types.h>
19162 makedev(major(0),minor(0));
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (ac_try="$ac_link"
19170 case "(($ac_try" in
19171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19172 *) ac_try_echo
=$ac_try;;
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_link") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1
>conftest.err
19179 cat conftest.err
>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest
$ac_exeext &&
19185 $as_test_x conftest
$ac_exeext; then
19188 cat >>confdefs.h
<<\_ACEOF
19189 #define HAVE_DEVICE_MACROS 1
19192 { echo "$as_me:$LINENO: result: yes" >&5
19193 echo "${ECHO_T}yes" >&6; }
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.
$ac_ext >&5
19200 { echo "$as_me:$LINENO: result: no" >&5
19201 echo "${ECHO_T}no" >&6; }
19205 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19206 conftest
$ac_exeext conftest.
$ac_ext
19208 # On OSF/1 V5.1, getaddrinfo is available, but a define
19209 # for [no]getaddrinfo in netdb.h.
19210 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19211 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19212 cat >conftest.
$ac_ext <<_ACEOF
19215 cat confdefs.h
>>conftest.
$ac_ext
19216 cat >>conftest.
$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19219 #include <sys/types.h>
19220 #include <sys/socket.h>
19228 getaddrinfo(NULL, NULL, NULL, NULL);
19234 rm -f conftest.
$ac_objext conftest
$ac_exeext
19235 if { (ac_try
="$ac_link"
19236 case "(($ac_try" in
19237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_link") 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } && {
19248 test -z "$ac_c_werror_flag" ||
19249 test ! -s conftest.err
19250 } && test -s conftest$ac_exeext &&
19251 $as_test_x conftest$ac_exeext; then
19253 { echo "$as_me:$LINENO: result: yes" >&5
19254 echo "${ECHO_T}yes" >&6; }
19255 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19256 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19257 if test "$cross_compiling" = yes; then
19258 { echo "$as_me:$LINENO: result: buggy" >&5
19259 echo "${ECHO_T}buggy" >&6; }
19260 buggygetaddrinfo=yes
19262 cat >conftest.$ac_ext <<_ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19269 #include <sys/types.h>
19271 #include <string.h>
19272 #include <sys/socket.h>
19273 #include <netinet/in.h>
19277 int passive, gaierr, inet4 = 0, inet6 = 0;
19278 struct addrinfo hints, *ai, *aitop;
19279 char straddr[INET6_ADDRSTRLEN], strport[16];
19281 for (passive = 0; passive <= 1; passive++) {
19282 memset(&hints, 0, sizeof(hints));
19283 hints.ai_family = AF_UNSPEC;
19284 hints.ai_flags = passive ? AI_PASSIVE : 0;
19285 hints.ai_socktype = SOCK_STREAM;
19286 hints.ai_protocol = IPPROTO_TCP;
19287 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19288 (void)gai_strerror(gaierr);
19291 for (ai = aitop; ai; ai = ai->ai_next) {
19292 if (ai->ai_addr == NULL ||
19293 ai->ai_addrlen == 0 ||
19294 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19295 straddr, sizeof(straddr), strport, sizeof(strport),
19296 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19299 switch (ai->ai_family) {
19301 if (strcmp(strport, "54321") != 0) {
19305 if (strcmp(straddr, "0.0.0.0") != 0) {
19309 if (strcmp(straddr, "127.0.0.1") != 0) {
19316 if (strcmp(strport, "54321") != 0) {
19320 if (strcmp(straddr, "::") != 0) {
19324 if (strcmp(straddr, "::1") != 0) {
19334 /* another family support? */
19340 if (!(inet4 == 0 || inet4 == 2))
19342 if (!(inet6 == 0 || inet6 == 2))
19346 freeaddrinfo(aitop);
19351 freeaddrinfo(aitop);
19356 rm -f conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19360 *) ac_try_echo
=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19367 { (case "(($ac_try" in
19368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 { echo "$as_me:$LINENO: result: good" >&5
19377 echo "${ECHO_T}good" >&6; }
19378 buggygetaddrinfo=no
19380 echo "$as_me: program exited with status $ac_status" >&5
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ( exit $ac_status )
19385 { echo "$as_me:$LINENO: result: buggy" >&5
19386 echo "${ECHO_T}buggy" >&6; }
19387 buggygetaddrinfo=yes
19389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19398 { echo "$as_me:$LINENO: result: no" >&5
19399 echo "${ECHO_T}no" >&6; }
19400 buggygetaddrinfo=yes
19404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19405 conftest$ac_exeext conftest.$ac_ext
19407 if test "$buggygetaddrinfo" = "yes"; then
19408 if test "$ipv6" = "yes"; then
19409 echo 'Fatal: You must get working getaddrinfo() function.'
19410 echo ' or you can specify "--disable-ipv6"'.
19415 cat >>confdefs.h <<\_ACEOF
19416 #define HAVE_GETADDRINFO 1
19421 for ac_func in getnameinfo
19423 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19437 #define $ac_func innocuous_$ac_func
19439 /* System header to define __stub macros and hopefully few prototypes,
19440 which can conflict with char $ac_func (); below.
19441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19442 <limits.h> exists even on freestanding compilers. */
19445 # include <limits.h>
19447 # include <assert.h>
19452 /* Override any GCC internal prototype to avoid an error.
19453 Use char because int might match the return type of a GCC
19454 builtin and then its argument prototype would still apply. */
19459 /* The GNU C library defines this for functions which it implements
19460 to always fail with ENOSYS. Some functions are actually named
19461 something starting with __ and the normal name is an alias. */
19462 #if defined __stub_$ac_func || defined __stub___$ac_func
19469 return $ac_func ();
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19478 *) ac_try_echo
=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_link") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1
>conftest.err
19485 cat conftest.err
>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest
$ac_exeext &&
19491 $as_test_x conftest
$ac_exeext; then
19492 eval "$as_ac_var=yes"
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.
$ac_ext >&5
19497 eval "$as_ac_var=no"
19500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19501 conftest
$ac_exeext conftest.
$ac_ext
19503 ac_res
=`eval echo '${'$as_ac_var'}'`
19504 { echo "$as_me:$LINENO: result: $ac_res" >&5
19505 echo "${ECHO_T}$ac_res" >&6; }
19506 if test `eval echo '${'$as_ac_var'}'` = yes; then
19507 cat >>confdefs.h
<<_ACEOF
19508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19515 # checks for structures
19516 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19517 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19518 if test "${ac_cv_header_time+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 cat >conftest.
$ac_ext <<_ACEOF
19524 cat confdefs.h
>>conftest.
$ac_ext
19525 cat >>conftest.
$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 #include <sys/types.h>
19528 #include <sys/time.h>
19534 if ((struct tm *) 0)
19540 rm -f conftest.
$ac_objext
19541 if { (ac_try
="$ac_compile"
19542 case "(($ac_try" in
19543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_compile") 2>conftest.er1
19549 grep -v '^ *+' conftest.er1 >conftest.err
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest.$ac_objext; then
19557 ac_cv_header_time=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_header_time=no
19565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19568 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19569 if test $ac_cv_header_time = yes; then
19571 cat >>confdefs.h <<\_ACEOF
19572 #define TIME_WITH_SYS_TIME 1
19577 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19578 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19579 if test "${ac_cv_struct_tm+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 #include <sys/types.h>
19595 int *p = &tm.tm_sec;
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19605 *) ac_try_echo
=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19610 grep -v '^ *+' conftest.er1
>conftest.err
19612 cat conftest.err
>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.
$ac_objext; then
19618 ac_cv_struct_tm
=time.h
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.
$ac_ext >&5
19623 ac_cv_struct_tm
=sys
/time.h
19626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19628 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19629 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19630 if test $ac_cv_struct_tm = sys
/time.h
; then
19632 cat >>confdefs.h
<<\_ACEOF
19633 #define TM_IN_SYS_TIME 1
19638 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19639 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19640 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 cat >conftest.
$ac_ext <<_ACEOF
19646 cat confdefs.h
>>conftest.
$ac_ext
19647 cat >>conftest.
$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 #include <sys/types.h>
19650 #include <$ac_cv_struct_tm>
19656 static struct tm ac_aggr;
19657 if (ac_aggr.tm_zone)
19663 rm -f conftest.
$ac_objext
19664 if { (ac_try
="$ac_compile"
19665 case "(($ac_try" in
19666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_compile") 2>conftest.er1
19672 grep -v '^ *+' conftest.er1 >conftest.err
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } && {
19677 test -z "$ac_c_werror_flag" ||
19678 test ! -s conftest.err
19679 } && test -s conftest.$ac_objext; then
19680 ac_cv_member_struct_tm_tm_zone=yes
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #include <sys/types.h>
19692 #include <$ac_cv_struct_tm>
19698 static struct tm ac_aggr;
19699 if (sizeof ac_aggr.tm_zone)
19705 rm -f conftest.$ac_objext
19706 if { (ac_try="$ac_compile"
19707 case "(($ac_try" in
19708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19709 *) ac_try_echo
=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_compile") 2>conftest.er1
19714 grep -v '^ *+' conftest.er1
>conftest.err
19716 cat conftest.err
>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && {
19719 test -z "$ac_c_werror_flag" ||
19720 test ! -s conftest.err
19721 } && test -s conftest.
$ac_objext; then
19722 ac_cv_member_struct_tm_tm_zone
=yes
19724 echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.
$ac_ext >&5
19727 ac_cv_member_struct_tm_tm_zone
=no
19730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19735 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19736 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19737 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19739 cat >>confdefs.h
<<_ACEOF
19740 #define HAVE_STRUCT_TM_TM_ZONE 1
19746 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19748 cat >>confdefs.h
<<\_ACEOF
19749 #define HAVE_TM_ZONE 1
19753 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19754 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19755 if test "${ac_cv_have_decl_tzname+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 cat >conftest.
$ac_ext <<_ACEOF
19761 cat confdefs.h
>>conftest.
$ac_ext
19762 cat >>conftest.
$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19777 rm -f conftest.
$ac_objext
19778 if { (ac_try
="$ac_compile"
19779 case "(($ac_try" in
19780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_compile") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest.$ac_objext; then
19794 ac_cv_have_decl_tzname=yes
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_cv_have_decl_tzname=no
19802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19804 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19805 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19806 if test $ac_cv_have_decl_tzname = yes; then
19808 cat >>confdefs.h <<_ACEOF
19809 #define HAVE_DECL_TZNAME 1
19814 cat >>confdefs.h <<_ACEOF
19815 #define HAVE_DECL_TZNAME 0
19822 { echo "$as_me:$LINENO: checking for tzname" >&5
19823 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19824 if test "${ac_cv_var_tzname+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 cat >conftest.$ac_ext <<_ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19834 #if !HAVE_DECL_TZNAME
19835 extern char *tzname[];
19841 return tzname[0][0];
19846 rm -f conftest.$ac_objext conftest$ac_exeext
19847 if { (ac_try="$ac_link"
19848 case "(($ac_try" in
19849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19850 *) ac_try_echo
=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_link") 2>conftest.er1
19855 grep -v '^ *+' conftest.er1
>conftest.err
19857 cat conftest.err
>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest
$ac_exeext &&
19863 $as_test_x conftest
$ac_exeext; then
19864 ac_cv_var_tzname
=yes
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.
$ac_ext >&5
19869 ac_cv_var_tzname
=no
19872 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19873 conftest
$ac_exeext conftest.
$ac_ext
19875 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19876 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19877 if test $ac_cv_var_tzname = yes; then
19879 cat >>confdefs.h
<<\_ACEOF
19880 #define HAVE_TZNAME 1
19886 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19887 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19888 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 cat >conftest.
$ac_ext <<_ACEOF
19894 cat confdefs.h
>>conftest.
$ac_ext
19895 cat >>conftest.
$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 $ac_includes_default
19901 static struct stat ac_aggr;
19902 if (ac_aggr.st_rdev)
19908 rm -f conftest.
$ac_objext
19909 if { (ac_try
="$ac_compile"
19910 case "(($ac_try" in
19911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest.$ac_objext; then
19925 ac_cv_member_struct_stat_st_rdev=yes
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 $ac_includes_default
19940 static struct stat ac_aggr;
19941 if (sizeof ac_aggr.st_rdev)
19947 rm -f conftest.$ac_objext
19948 if { (ac_try="$ac_compile"
19949 case "(($ac_try" in
19950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19951 *) ac_try_echo
=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_compile") 2>conftest.er1
19956 grep -v '^ *+' conftest.er1
>conftest.err
19958 cat conftest.err
>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } && {
19961 test -z "$ac_c_werror_flag" ||
19962 test ! -s conftest.err
19963 } && test -s conftest.
$ac_objext; then
19964 ac_cv_member_struct_stat_st_rdev
=yes
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.
$ac_ext >&5
19969 ac_cv_member_struct_stat_st_rdev
=no
19972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19978 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19979 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19981 cat >>confdefs.h
<<_ACEOF
19982 #define HAVE_STRUCT_STAT_ST_RDEV 1
19988 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19989 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19990 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 cat >conftest.
$ac_ext <<_ACEOF
19996 cat confdefs.h
>>conftest.
$ac_ext
19997 cat >>conftest.
$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 $ac_includes_default
20003 static struct stat ac_aggr;
20004 if (ac_aggr.st_blksize)
20010 rm -f conftest.
$ac_objext
20011 if { (ac_try
="$ac_compile"
20012 case "(($ac_try" in
20013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_compile") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest.$ac_objext; then
20027 ac_cv_member_struct_stat_st_blksize=yes
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038 $ac_includes_default
20042 static struct stat ac_aggr;
20043 if (sizeof ac_aggr.st_blksize)
20049 rm -f conftest.$ac_objext
20050 if { (ac_try="$ac_compile"
20051 case "(($ac_try" in
20052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20053 *) ac_try_echo
=$ac_try;;
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_compile") 2>conftest.er1
20058 grep -v '^ *+' conftest.er1
>conftest.err
20060 cat conftest.err
>&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); } && {
20063 test -z "$ac_c_werror_flag" ||
20064 test ! -s conftest.err
20065 } && test -s conftest.
$ac_objext; then
20066 ac_cv_member_struct_stat_st_blksize
=yes
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.
$ac_ext >&5
20071 ac_cv_member_struct_stat_st_blksize
=no
20074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20079 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20080 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20081 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20083 cat >>confdefs.h
<<_ACEOF
20084 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20090 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20091 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20092 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 cat >conftest.
$ac_ext <<_ACEOF
20098 cat confdefs.h
>>conftest.
$ac_ext
20099 cat >>conftest.
$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20105 static struct stat ac_aggr;
20106 if (ac_aggr.st_flags)
20112 rm -f conftest.
$ac_objext
20113 if { (ac_try
="$ac_compile"
20114 case "(($ac_try" in
20115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119 (eval "$ac_compile") 2>conftest.er1
20121 grep -v '^ *+' conftest.er1 >conftest.err
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && {
20126 test -z "$ac_c_werror_flag" ||
20127 test ! -s conftest.err
20128 } && test -s conftest.$ac_objext; then
20129 ac_cv_member_struct_stat_st_flags=yes
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20144 static struct stat ac_aggr;
20145 if (sizeof ac_aggr.st_flags)
20151 rm -f conftest.$ac_objext
20152 if { (ac_try="$ac_compile"
20153 case "(($ac_try" in
20154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20155 *) ac_try_echo
=$ac_try;;
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_compile") 2>conftest.er1
20160 grep -v '^ *+' conftest.er1
>conftest.err
20162 cat conftest.err
>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest.
$ac_objext; then
20168 ac_cv_member_struct_stat_st_flags
=yes
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.
$ac_ext >&5
20173 ac_cv_member_struct_stat_st_flags
=no
20176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20181 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20182 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20183 if test $ac_cv_member_struct_stat_st_flags = yes; then
20185 cat >>confdefs.h
<<_ACEOF
20186 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20192 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20193 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20194 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 cat >conftest.
$ac_ext <<_ACEOF
20200 cat confdefs.h
>>conftest.
$ac_ext
20201 cat >>conftest.
$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20207 static struct stat ac_aggr;
20208 if (ac_aggr.st_gen)
20214 rm -f conftest.
$ac_objext
20215 if { (ac_try
="$ac_compile"
20216 case "(($ac_try" in
20217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_compile") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } && {
20228 test -z "$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 } && test -s conftest.$ac_objext; then
20231 ac_cv_member_struct_stat_st_gen=yes
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 $ac_includes_default
20246 static struct stat ac_aggr;
20247 if (sizeof ac_aggr.st_gen)
20253 rm -f conftest.$ac_objext
20254 if { (ac_try="$ac_compile"
20255 case "(($ac_try" in
20256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20257 *) ac_try_echo
=$ac_try;;
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_compile") 2>conftest.er1
20262 grep -v '^ *+' conftest.er1
>conftest.err
20264 cat conftest.err
>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest.
$ac_objext; then
20270 ac_cv_member_struct_stat_st_gen
=yes
20272 echo "$as_me: failed program was:" >&5
20273 sed 's/^/| /' conftest.
$ac_ext >&5
20275 ac_cv_member_struct_stat_st_gen
=no
20278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20284 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20285 if test $ac_cv_member_struct_stat_st_gen = yes; then
20287 cat >>confdefs.h
<<_ACEOF
20288 #define HAVE_STRUCT_STAT_ST_GEN 1
20294 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20295 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20296 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 cat >conftest.
$ac_ext <<_ACEOF
20302 cat confdefs.h
>>conftest.
$ac_ext
20303 cat >>conftest.
$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 $ac_includes_default
20309 static struct stat ac_aggr;
20310 if (ac_aggr.st_birthtime)
20316 rm -f conftest.
$ac_objext
20317 if { (ac_try
="$ac_compile"
20318 case "(($ac_try" in
20319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_compile") 2>conftest.er1
20325 grep -v '^ *+' conftest.er1 >conftest.err
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && {
20330 test -z "$ac_c_werror_flag" ||
20331 test ! -s conftest.err
20332 } && test -s conftest.$ac_objext; then
20333 ac_cv_member_struct_stat_st_birthtime=yes
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20344 $ac_includes_default
20348 static struct stat ac_aggr;
20349 if (sizeof ac_aggr.st_birthtime)
20355 rm -f conftest.$ac_objext
20356 if { (ac_try="$ac_compile"
20357 case "(($ac_try" in
20358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20359 *) ac_try_echo
=$ac_try;;
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_compile") 2>conftest.er1
20364 grep -v '^ *+' conftest.er1
>conftest.err
20366 cat conftest.err
>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } && {
20369 test -z "$ac_c_werror_flag" ||
20370 test ! -s conftest.err
20371 } && test -s conftest.
$ac_objext; then
20372 ac_cv_member_struct_stat_st_birthtime
=yes
20374 echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.
$ac_ext >&5
20377 ac_cv_member_struct_stat_st_birthtime
=no
20380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20385 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20386 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20387 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20389 cat >>confdefs.h
<<_ACEOF
20390 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20396 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20397 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20398 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 cat >conftest.
$ac_ext <<_ACEOF
20404 cat confdefs.h
>>conftest.
$ac_ext
20405 cat >>conftest.
$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20407 $ac_includes_default
20411 static struct stat ac_aggr;
20412 if (ac_aggr.st_blocks)
20418 rm -f conftest.
$ac_objext
20419 if { (ac_try
="$ac_compile"
20420 case "(($ac_try" in
20421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_compile") 2>conftest.er1
20427 grep -v '^ *+' conftest.er1 >conftest.err
20429 cat conftest.err >&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && {
20432 test -z "$ac_c_werror_flag" ||
20433 test ! -s conftest.err
20434 } && test -s conftest.$ac_objext; then
20435 ac_cv_member_struct_stat_st_blocks=yes
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 $ac_includes_default
20450 static struct stat ac_aggr;
20451 if (sizeof ac_aggr.st_blocks)
20457 rm -f conftest.$ac_objext
20458 if { (ac_try="$ac_compile"
20459 case "(($ac_try" in
20460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20461 *) ac_try_echo
=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_compile") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1
>conftest.err
20468 cat conftest.err
>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest.
$ac_objext; then
20474 ac_cv_member_struct_stat_st_blocks
=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.
$ac_ext >&5
20479 ac_cv_member_struct_stat_st_blocks
=no
20482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20488 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20489 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20491 cat >>confdefs.h
<<_ACEOF
20492 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20496 cat >>confdefs.h
<<\_ACEOF
20497 #define HAVE_ST_BLOCKS 1
20501 case " $LIBOBJS " in
20502 *" fileblocks.$ac_objext "* ) ;;
20503 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
20511 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20512 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20513 if test "${ac_cv_header_time_altzone+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 cat >conftest.
$ac_ext <<_ACEOF
20519 cat confdefs.h
>>conftest.
$ac_ext
20520 cat >>conftest.
$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20531 rm -f conftest.
$ac_objext
20532 if { (ac_try
="$ac_compile"
20533 case "(($ac_try" in
20534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_compile") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest.$ac_objext; then
20548 ac_cv_header_time_altzone=yes
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_cv_header_time_altzone=no
20556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20560 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20561 if test $ac_cv_header_time_altzone = yes; then
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_ALTZONE 1
20570 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20571 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20579 #include <sys/types.h>
20580 #include <sys/select.h>
20581 #include <sys/time.h>
20591 rm -f conftest.$ac_objext
20592 if { (ac_try="$ac_compile"
20593 case "(($ac_try" in
20594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20595 *) ac_try_echo
=$ac_try;;
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20600 grep -v '^ *+' conftest.er1
>conftest.err
20602 cat conftest.err
>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.
$ac_objext; then
20610 cat >>confdefs.h
<<\_ACEOF
20611 #define SYS_SELECT_WITH_SYS_TIME 1
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.
$ac_ext >&5
20623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20624 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20625 echo "${ECHO_T}$was_it_defined" >&6; }
20627 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20628 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20629 if test "${ac_cv_struct_addrinfo+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 cat >conftest.
$ac_ext <<_ACEOF
20635 cat confdefs.h
>>conftest.
$ac_ext
20636 cat >>conftest.
$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20639 # include <netdb.h>
20648 rm -f conftest.
$ac_objext
20649 if { (ac_try
="$ac_compile"
20650 case "(($ac_try" in
20651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_compile") 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && {
20662 test -z "$ac_c_werror_flag" ||
20663 test ! -s conftest.err
20664 } && test -s conftest.$ac_objext; then
20665 ac_cv_struct_addrinfo=yes
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_struct_addrinfo=no
20673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20677 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20678 if test $ac_cv_struct_addrinfo = yes; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_ADDRINFO 1
20686 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20687 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20688 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 cat >conftest.$ac_ext <<_ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20698 # include <sys/types.h>
20699 # include <sys/socket.h>
20703 struct sockaddr_storage s
20708 rm -f conftest.$ac_objext
20709 if { (ac_try="$ac_compile"
20710 case "(($ac_try" in
20711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20712 *) ac_try_echo
=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_compile") 2>conftest.er1
20717 grep -v '^ *+' conftest.er1
>conftest.err
20719 cat conftest.err
>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest.
$ac_objext; then
20725 ac_cv_struct_sockaddr_storage
=yes
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.
$ac_ext >&5
20730 ac_cv_struct_sockaddr_storage
=no
20733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20737 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20738 if test $ac_cv_struct_sockaddr_storage = yes; then
20740 cat >>confdefs.h
<<\_ACEOF
20741 #define HAVE_SOCKADDR_STORAGE 1
20746 # checks for compiler characteristics
20749 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20750 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20751 if test "${ac_cv_c_char_unsigned+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 cat >conftest.
$ac_ext <<_ACEOF
20757 cat confdefs.h
>>conftest.
$ac_ext
20758 cat >>conftest.
$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 $ac_includes_default
20764 static int test_array [1 - 2 * !(((char) -1) < 0)];
20771 rm -f conftest.
$ac_objext
20772 if { (ac_try
="$ac_compile"
20773 case "(($ac_try" in
20774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_compile") 2>conftest.er1
20780 grep -v '^ *+' conftest.er1 >conftest.err
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest.$ac_objext; then
20788 ac_cv_c_char_unsigned=no
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_cv_c_char_unsigned=yes
20796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20799 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20800 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20801 cat >>confdefs.h <<\_ACEOF
20802 #define __CHAR_UNSIGNED__ 1
20807 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20809 if test "${ac_cv_c_const+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20822 /* FIXME: Include the comments suggested by Paul. */
20823 #ifndef __cplusplus
20824 /* Ultrix mips cc rejects this. */
20825 typedef int charset[2];
20827 /* SunOS 4.1.1 cc rejects this. */
20828 char const *const *pcpcc;
20830 /* NEC SVR4.0.2 mips cc rejects this. */
20831 struct point {int x, y;};
20832 static struct point const zero = {0,0};
20833 /* AIX XL C 1.02.0.0 rejects this.
20834 It does not let you subtract one const X* pointer from another in
20835 an arm of an if-expression whose if-part is not a constant
20837 const char *g = "string";
20838 pcpcc = &g + (g ? g-g : 0);
20839 /* HPUX 7.0 cc rejects these. */
20841 ppc = (char**) pcpcc;
20842 pcpcc = (char const *const *) ppc;
20843 { /* SCO 3.2v4 cc rejects this. */
20845 char const *s = 0 ? (char *) 0 : (char const *) 0;
20850 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20851 int x[] = {25, 17};
20852 const int *foo = &x[0];
20855 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20856 typedef const int *iptr;
20860 { /* AIX XL C 1.02.0.0 rejects this saying
20861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20862 struct s { int j; const int *ap[3]; };
20863 struct s *b; b->j = 5;
20865 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20866 const int foo = 10;
20867 if (!foo) return 0;
20869 return !cs[0] && !zero.x;
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20880 *) ac_try_echo
=$ac_try;;
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20885 grep -v '^ *+' conftest.er1
>conftest.err
20887 cat conftest.err
>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_c_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest.
$ac_objext; then
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.
$ac_ext >&5
20901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20903 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20904 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20905 if test $ac_cv_c_const = no
; then
20907 cat >>confdefs.h
<<\_ACEOF
20915 { echo "$as_me:$LINENO: checking for working volatile" >&5
20916 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20917 cat >conftest.
$ac_ext <<_ACEOF
20920 cat confdefs.h
>>conftest.
$ac_ext
20921 cat >>conftest.
$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20927 volatile int x; x = 0;
20932 rm -f conftest.
$ac_objext
20933 if { (ac_try
="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.$ac_objext; then
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20955 cat >>confdefs.h <<\_ACEOF
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 { echo "$as_me:$LINENO: result: $works" >&5
20964 echo "${ECHO_T}$works" >&6; }
20967 { echo "$as_me:$LINENO: checking for working signed char" >&5
20968 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20988 *) ac_try_echo
=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1
>conftest.err
20995 cat conftest.err
>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.
$ac_objext; then
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.
$ac_ext >&5
21007 cat >>confdefs.h
<<\_ACEOF
21014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21015 { echo "$as_me:$LINENO: result: $works" >&5
21016 echo "${ECHO_T}$works" >&6; }
21019 { echo "$as_me:$LINENO: checking for prototypes" >&5
21020 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21021 cat >conftest.
$ac_ext <<_ACEOF
21024 cat confdefs.h
>>conftest.
$ac_ext
21025 cat >>conftest.
$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21027 int foo(int x) { return 0; }
21036 rm -f conftest.
$ac_objext
21037 if { (ac_try
="$ac_compile"
21038 case "(($ac_try" in
21039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21045 grep -v '^ *+' conftest.er1 >conftest.err
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest.$ac_objext; then
21055 cat >>confdefs.h <<\_ACEOF
21056 #define HAVE_PROTOTYPES 1
21059 have_prototypes=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21070 echo "${ECHO_T}$have_prototypes" >&6; }
21073 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21074 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21082 #include <stdarg.h>
21083 int foo(int x, ...) {
21087 va_arg(va, char *);
21088 va_arg(va, double);
21095 return foo(10, "", 3.14);
21100 rm -f conftest.$ac_objext
21101 if { (ac_try="$ac_compile"
21102 case "(($ac_try" in
21103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21104 *) ac_try_echo
=$ac_try;;
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_compile") 2>conftest.er1
21109 grep -v '^ *+' conftest.er1
>conftest.err
21111 cat conftest.err
>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } && {
21114 test -z "$ac_c_werror_flag" ||
21115 test ! -s conftest.err
21116 } && test -s conftest.
$ac_objext; then
21119 cat >>confdefs.h
<<\_ACEOF
21120 #define HAVE_STDARG_PROTOTYPES 1
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.
$ac_ext >&5
21132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21133 { echo "$as_me:$LINENO: result: $works" >&5
21134 echo "${ECHO_T}$works" >&6; }
21136 # check for socketpair
21137 { echo "$as_me:$LINENO: checking for socketpair" >&5
21138 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21139 cat >conftest.
$ac_ext <<_ACEOF
21142 cat confdefs.h
>>conftest.
$ac_ext
21143 cat >>conftest.
$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21146 #include <sys/types.h>
21147 #include <sys/socket.h>
21157 rm -f conftest.
$ac_objext
21158 if { (ac_try
="$ac_compile"
21159 case "(($ac_try" in
21160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest.$ac_objext; then
21175 cat >>confdefs.h <<\_ACEOF
21176 #define HAVE_SOCKETPAIR 1
21179 { echo "$as_me:$LINENO: result: yes" >&5
21180 echo "${ECHO_T}yes" >&6; }
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 { echo "$as_me:$LINENO: result: no" >&5
21186 echo "${ECHO_T}no" >&6; }
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21192 # check if sockaddr has sa_len member
21193 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21194 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <sys/types.h>
21202 #include <sys/socket.h>
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21216 *) ac_try_echo
=$ac_try;;
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_compile") 2>conftest.er1
21221 grep -v '^ *+' conftest.er1
>conftest.err
21223 cat conftest.err
>&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest.
$ac_objext; then
21229 { echo "$as_me:$LINENO: result: yes" >&5
21230 echo "${ECHO_T}yes" >&6; }
21232 cat >>confdefs.h
<<\_ACEOF
21233 #define HAVE_SOCKADDR_SA_LEN 1
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.
$ac_ext >&5
21240 { echo "$as_me:$LINENO: result: no" >&5
21241 echo "${ECHO_T}no" >&6; }
21244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21246 va_list_is_array
=no
21247 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21248 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21249 cat >conftest.
$ac_ext <<_ACEOF
21252 cat confdefs.h
>>conftest.
$ac_ext
21253 cat >>conftest.
$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21256 #ifdef HAVE_STDARG_PROTOTYPES
21257 #include <stdarg.h>
21259 #include <varargs.h>
21265 va_list list1, list2; list1 = list2;
21270 rm -f conftest.
$ac_objext
21271 if { (ac_try
="$ac_compile"
21272 case "(($ac_try" in
21273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_compile") 2>conftest.er1
21279 grep -v '^ *+' conftest.er1 >conftest.err
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && {
21284 test -z "$ac_c_werror_flag" ||
21285 test ! -s conftest.err
21286 } && test -s conftest.$ac_objext; then
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21294 cat >>confdefs.h <<\_ACEOF
21295 #define VA_LIST_IS_ARRAY 1
21298 va_list_is_array=yes
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21304 echo "${ECHO_T}$va_list_is_array" >&6; }
21306 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21310 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21311 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21312 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21323 #define gethostbyname_r innocuous_gethostbyname_r
21325 /* System header to define __stub macros and hopefully few prototypes,
21326 which can conflict with char gethostbyname_r (); below.
21327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21328 <limits.h> exists even on freestanding compilers. */
21331 # include <limits.h>
21333 # include <assert.h>
21336 #undef gethostbyname_r
21338 /* Override any GCC internal prototype to avoid an error.
21339 Use char because int might match the return type of a GCC
21340 builtin and then its argument prototype would still apply. */
21344 char gethostbyname_r ();
21345 /* The GNU C library defines this for functions which it implements
21346 to always fail with ENOSYS. Some functions are actually named
21347 something starting with __ and the normal name is an alias. */
21348 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21355 return gethostbyname_r ();
21360 rm -f conftest.$ac_objext conftest$ac_exeext
21361 if { (ac_try="$ac_link"
21362 case "(($ac_try" in
21363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21364 *) ac_try_echo
=$ac_try;;
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_link") 2>conftest.er1
21369 grep -v '^ *+' conftest.er1
>conftest.err
21371 cat conftest.err
>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest
$ac_exeext &&
21377 $as_test_x conftest
$ac_exeext; then
21378 ac_cv_func_gethostbyname_r
=yes
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.
$ac_ext >&5
21383 ac_cv_func_gethostbyname_r
=no
21386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21387 conftest
$ac_exeext conftest.
$ac_ext
21389 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21390 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21391 if test $ac_cv_func_gethostbyname_r = yes; then
21393 cat >>confdefs.h
<<\_ACEOF
21394 #define HAVE_GETHOSTBYNAME_R 1
21397 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21398 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21400 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21401 cat >conftest.
$ac_ext <<_ACEOF
21404 cat confdefs.h
>>conftest.
$ac_ext
21405 cat >>conftest.
$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21408 # include <netdb.h>
21415 struct hostent *he, *res;
21420 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21426 rm -f conftest.
$ac_objext
21427 if { (ac_try
="$ac_compile"
21428 case "(($ac_try" in
21429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21435 grep -v '^ *+' conftest.er1 >conftest.err
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.$ac_objext; then
21444 cat >>confdefs.h <<\_ACEOF
21445 #define HAVE_GETHOSTBYNAME_R 1
21449 cat >>confdefs.h <<\_ACEOF
21450 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21453 { echo "$as_me:$LINENO: result: yes" >&5
21454 echo "${ECHO_T}yes" >&6; }
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21461 { echo "$as_me:$LINENO: result: no" >&5
21462 echo "${ECHO_T}no" >&6; }
21463 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21464 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21465 cat >conftest.$ac_ext <<_ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21472 # include <netdb.h>
21479 struct hostent *he;
21484 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21490 rm -f conftest.$ac_objext
21491 if { (ac_try="$ac_compile"
21492 case "(($ac_try" in
21493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21494 *) ac_try_echo
=$ac_try;;
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_compile") 2>conftest.er1
21499 grep -v '^ *+' conftest.er1
>conftest.err
21501 cat conftest.err
>&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } && {
21504 test -z "$ac_c_werror_flag" ||
21505 test ! -s conftest.err
21506 } && test -s conftest.
$ac_objext; then
21508 cat >>confdefs.h
<<\_ACEOF
21509 #define HAVE_GETHOSTBYNAME_R 1
21513 cat >>confdefs.h
<<\_ACEOF
21514 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21517 { echo "$as_me:$LINENO: result: yes" >&5
21518 echo "${ECHO_T}yes" >&6; }
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.
$ac_ext >&5
21525 { echo "$as_me:$LINENO: result: no" >&5
21526 echo "${ECHO_T}no" >&6; }
21527 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21528 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21529 cat >conftest.
$ac_ext <<_ACEOF
21532 cat confdefs.h
>>conftest.
$ac_ext
21533 cat >>conftest.
$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21536 # include <netdb.h>
21543 struct hostent *he;
21544 struct hostent_data data;
21546 (void) gethostbyname_r(name, he, &data);
21552 rm -f conftest.
$ac_objext
21553 if { (ac_try
="$ac_compile"
21554 case "(($ac_try" in
21555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21556 *) ac_try_echo=$ac_try;;
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest.$ac_objext; then
21570 cat >>confdefs.h <<\_ACEOF
21571 #define HAVE_GETHOSTBYNAME_R 1
21575 cat >>confdefs.h <<\_ACEOF
21576 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21579 { echo "$as_me:$LINENO: result: yes" >&5
21580 echo "${ECHO_T}yes" >&6; }
21583 echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21587 { echo "$as_me:$LINENO: result: no" >&5
21588 echo "${ECHO_T}no" >&6; }
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 for ac_func in gethostbyname
21608 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21622 #define $ac_func innocuous_$ac_func
21624 /* System header to define __stub macros and hopefully few prototypes,
21625 which can conflict with char $ac_func (); below.
21626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627 <limits.h> exists even on freestanding compilers. */
21630 # include <limits.h>
21632 # include <assert.h>
21637 /* Override any GCC internal prototype to avoid an error.
21638 Use char because int might match the return type of a GCC
21639 builtin and then its argument prototype would still apply. */
21644 /* The GNU C library defines this for functions which it implements
21645 to always fail with ENOSYS. Some functions are actually named
21646 something starting with __ and the normal name is an alias. */
21647 #if defined __stub_$ac_func || defined __stub___$ac_func
21654 return $ac_func ();
21659 rm -f conftest.$ac_objext conftest$ac_exeext
21660 if { (ac_try="$ac_link"
21661 case "(($ac_try" in
21662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21663 *) ac_try_echo
=$ac_try;;
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_link") 2>conftest.er1
21668 grep -v '^ *+' conftest.er1
>conftest.err
21670 cat conftest.err
>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && {
21673 test -z "$ac_c_werror_flag" ||
21674 test ! -s conftest.err
21675 } && test -s conftest
$ac_exeext &&
21676 $as_test_x conftest
$ac_exeext; then
21677 eval "$as_ac_var=yes"
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.
$ac_ext >&5
21682 eval "$as_ac_var=no"
21685 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21686 conftest
$ac_exeext conftest.
$ac_ext
21688 ac_res
=`eval echo '${'$as_ac_var'}'`
21689 { echo "$as_me:$LINENO: result: $ac_res" >&5
21690 echo "${ECHO_T}$ac_res" >&6; }
21691 if test `eval echo '${'$as_ac_var'}'` = yes; then
21692 cat >>confdefs.h
<<_ACEOF
21693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21708 # checks for system services
21711 # Linux requires this for correct f.p. operations
21712 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21713 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21714 if test "${ac_cv_func___fpu_control+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 cat >conftest.
$ac_ext <<_ACEOF
21720 cat confdefs.h
>>conftest.
$ac_ext
21721 cat >>conftest.
$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21725 #define __fpu_control innocuous___fpu_control
21727 /* System header to define __stub macros and hopefully few prototypes,
21728 which can conflict with char __fpu_control (); below.
21729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21730 <limits.h> exists even on freestanding compilers. */
21733 # include <limits.h>
21735 # include <assert.h>
21738 #undef __fpu_control
21740 /* Override any GCC internal prototype to avoid an error.
21741 Use char because int might match the return type of a GCC
21742 builtin and then its argument prototype would still apply. */
21746 char __fpu_control ();
21747 /* The GNU C library defines this for functions which it implements
21748 to always fail with ENOSYS. Some functions are actually named
21749 something starting with __ and the normal name is an alias. */
21750 #if defined __stub___fpu_control || defined __stub_____fpu_control
21757 return __fpu_control ();
21762 rm -f conftest.
$ac_objext conftest
$ac_exeext
21763 if { (ac_try
="$ac_link"
21764 case "(($ac_try" in
21765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1 >conftest.err
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest$ac_exeext &&
21779 $as_test_x conftest$ac_exeext; then
21780 ac_cv_func___fpu_control=yes
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 ac_cv_func___fpu_control=no
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789 conftest$ac_exeext conftest.$ac_ext
21791 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21792 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21793 if test $ac_cv_func___fpu_control = yes; then
21797 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21798 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21799 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21802 ac_check_lib_save_LIBS=$LIBS
21803 LIBS="-lieee $LIBS"
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21811 /* Override any GCC internal prototype to avoid an error.
21812 Use char because int might match the return type of a GCC
21813 builtin and then its argument prototype would still apply. */
21817 char __fpu_control ();
21821 return __fpu_control ();
21826 rm -f conftest.$ac_objext conftest$ac_exeext
21827 if { (ac_try="$ac_link"
21828 case "(($ac_try" in
21829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21830 *) ac_try_echo
=$ac_try;;
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_link") 2>conftest.er1
21835 grep -v '^ *+' conftest.er1
>conftest.err
21837 cat conftest.err
>&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest
$ac_exeext &&
21843 $as_test_x conftest
$ac_exeext; then
21844 ac_cv_lib_ieee___fpu_control
=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.
$ac_ext >&5
21849 ac_cv_lib_ieee___fpu_control
=no
21852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21853 conftest
$ac_exeext conftest.
$ac_ext
21854 LIBS
=$ac_check_lib_save_LIBS
21856 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21857 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21858 if test $ac_cv_lib_ieee___fpu_control = yes; then
21859 cat >>confdefs.h
<<_ACEOF
21860 #define HAVE_LIBIEEE 1
21863 LIBS
="-lieee $LIBS"
21871 # Check for --with-fpectl
21872 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21873 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21875 # Check whether --with-fpectl was given.
21876 if test "${with_fpectl+set}" = set; then
21877 withval
=$with_fpectl;
21878 if test "$withval" != no
21881 cat >>confdefs.h
<<\_ACEOF
21882 #define WANT_SIGFPE_HANDLER 1
21885 { echo "$as_me:$LINENO: result: yes" >&5
21886 echo "${ECHO_T}yes" >&6; }
21887 else { echo "$as_me:$LINENO: result: no" >&5
21888 echo "${ECHO_T}no" >&6; }
21891 { echo "$as_me:$LINENO: result: no" >&5
21892 echo "${ECHO_T}no" >&6; }
21896 # check for --with-libm=...
21898 case $ac_sys_system in
21902 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21903 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21905 # Check whether --with-libm was given.
21906 if test "${with_libm+set}" = set; then
21907 withval
=$with_libm;
21908 if test "$withval" = no
21910 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21911 echo "${ECHO_T}force LIBM empty" >&6; }
21912 elif test "$withval" != yes
21914 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21915 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21916 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21917 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21918 { (exit 1); exit 1; }; }
21921 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21922 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21926 # check for --with-libc=...
21928 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21929 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21931 # Check whether --with-libc was given.
21932 if test "${with_libc+set}" = set; then
21933 withval
=$with_libc;
21934 if test "$withval" = no
21936 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21937 echo "${ECHO_T}force LIBC empty" >&6; }
21938 elif test "$withval" != yes
21940 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21941 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21942 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21943 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21944 { (exit 1); exit 1; }; }
21947 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21948 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21952 # **************************************************
21953 # * Check for various properties of floating point *
21954 # **************************************************
21956 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21957 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21958 if test "${ac_cv_little_endian_double+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 if test "$cross_compiling" = yes; then
21963 ac_cv_little_endian_double
=no
21965 cat >conftest.
$ac_ext <<_ACEOF
21968 cat confdefs.h
>>conftest.
$ac_ext
21969 cat >>conftest.
$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21972 #include <string.h>
21974 double x = 9006104071832581.0;
21975 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
21982 rm -f conftest
$ac_exeext
21983 if { (ac_try
="$ac_link"
21984 case "(($ac_try" in
21985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_link") 2>&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21993 { (case "(($ac_try" in
21994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21995 *) ac_try_echo
=$ac_try;;
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_try") 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; }; then
22002 ac_cv_little_endian_double
=yes
22004 echo "$as_me: program exited with status $ac_status" >&5
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.
$ac_ext >&5
22008 ( exit $ac_status )
22009 ac_cv_little_endian_double
=no
22011 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22017 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22018 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22019 if test "$ac_cv_little_endian_double" = yes
22022 cat >>confdefs.h
<<\_ACEOF
22023 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22028 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22029 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22030 if test "${ac_cv_big_endian_double+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 if test "$cross_compiling" = yes; then
22035 ac_cv_big_endian_double
=no
22037 cat >conftest.
$ac_ext <<_ACEOF
22040 cat confdefs.h
>>conftest.
$ac_ext
22041 cat >>conftest.
$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22044 #include <string.h>
22046 double x = 9006104071832581.0;
22047 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22054 rm -f conftest
$ac_exeext
22055 if { (ac_try
="$ac_link"
22056 case "(($ac_try" in
22057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_link") 2>&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22065 { (case "(($ac_try" in
22066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22067 *) ac_try_echo
=$ac_try;;
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_try") 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_big_endian_double
=yes
22076 echo "$as_me: program exited with status $ac_status" >&5
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.
$ac_ext >&5
22080 ( exit $ac_status )
22081 ac_cv_big_endian_double
=no
22083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22089 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22090 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22091 if test "$ac_cv_big_endian_double" = yes
22094 cat >>confdefs.h
<<\_ACEOF
22095 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22100 # Some ARM platforms use a mixed-endian representation for doubles.
22101 # While Python doesn't currently have full support for these platforms
22102 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22103 # conversions work.
22104 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22105 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22106 if test "${ac_cv_mixed_endian_double+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 if test "$cross_compiling" = yes; then
22111 ac_cv_mixed_endian_double
=no
22113 cat >conftest.
$ac_ext <<_ACEOF
22116 cat confdefs.h
>>conftest.
$ac_ext
22117 cat >>conftest.
$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22120 #include <string.h>
22122 double x = 9006104071832581.0;
22123 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22130 rm -f conftest
$ac_exeext
22131 if { (ac_try
="$ac_link"
22132 case "(($ac_try" in
22133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_link") 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22141 { (case "(($ac_try" in
22142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22143 *) ac_try_echo
=$ac_try;;
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146 (eval "$ac_try") 2>&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; }; then
22150 ac_cv_mixed_endian_double
=yes
22152 echo "$as_me: program exited with status $ac_status" >&5
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.
$ac_ext >&5
22156 ( exit $ac_status )
22157 ac_cv_mixed_endian_double
=no
22159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22165 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22166 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22167 if test "$ac_cv_mixed_endian_double" = yes
22170 cat >>confdefs.h
<<\_ACEOF
22171 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22176 # The short float repr introduced in Python 3.1 requires the
22177 # correctly-rounded string <-> double conversion functions from
22178 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22179 # rounding; this is a problem on x86, where the x87 FPU has a default
22180 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22181 # using inline assembler to get and set the x87 FPU control word.
22182 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22184 # Check that it's okay to use gcc inline assembler to get and set
22185 # x87 control word. It should be, but you never know...
22186 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22187 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22188 cat >conftest.
$ac_ext <<_ACEOF
22191 cat confdefs.h
>>conftest.
$ac_ext
22192 cat >>conftest.
$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22200 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22201 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22207 rm -f conftest.
$ac_objext
22208 if { (ac_try
="$ac_compile"
22209 case "(($ac_try" in
22210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_compile") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest.$ac_objext; then
22224 have_gcc_asm_for_x87=yes
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 have_gcc_asm_for_x87=no
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22234 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22235 if test "$have_gcc_asm_for_x87" = yes
22238 cat >>confdefs.h <<\_ACEOF
22239 #define HAVE_GCC_ASM_FOR_X87 1
22245 # Detect whether system arithmetic is subject to x87-style double
22246 # rounding issues. The result of this test has little meaning on non
22247 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22248 # mode is round-to-nearest and double rounding issues are present, and
22249 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22250 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22251 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22252 # $BASECFLAGS may affect the result
22254 CC="$CC $BASECFLAGS"
22255 if test "$cross_compiling" = yes; then
22256 ac_cv_x87_double_rounding=no
22258 cat >conftest.$ac_ext <<_ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22265 #include <stdlib.h>
22268 volatile double x, y, z;
22269 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22270 x = 0.99999999999999989; /* 1-2**-53 */
22274 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22280 /* both tests show evidence of double rounding */
22285 rm -f conftest$ac_exeext
22286 if { (ac_try="$ac_link"
22287 case "(($ac_try" in
22288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22289 *) ac_try_echo
=$ac_try;;
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_link") 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22296 { (case "(($ac_try" in
22297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_try") 2>&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22305 ac_cv_x87_double_rounding=no
22307 echo "$as_me: program exited with status $ac_status" >&5
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ( exit $ac_status )
22312 ac_cv_x87_double_rounding=yes
22314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22319 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22320 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22321 if test "$ac_cv_x87_double_rounding" = yes
22324 cat >>confdefs.h <<\_ACEOF
22325 #define X87_DOUBLE_ROUNDING 1
22330 # ************************************
22331 # * Check for mathematical functions *
22332 # ************************************
22337 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22338 # -0. on some architectures.
22339 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22340 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22341 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 if test "$cross_compiling" = yes; then
22346 ac_cv_tanh_preserves_zero_sign=no
22348 cat >conftest.$ac_ext <<_ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22356 #include <stdlib.h>
22358 /* return 0 if either negative zeros don't exist
22359 on this platform or if negative zeros exist
22360 and tanh(-0.) == -0. */
22361 if (atan2(0., -1.) == atan2(-0., -1.) ||
22362 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22367 rm -f conftest$ac_exeext
22368 if { (ac_try="$ac_link"
22369 case "(($ac_try" in
22370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22371 *) ac_try_echo
=$ac_try;;
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_link") 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22378 { (case "(($ac_try" in
22379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_try") 2>&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; }; then
22387 ac_cv_tanh_preserves_zero_sign=yes
22389 echo "$as_me: program exited with status $ac_status" >&5
22390 echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22393 ( exit $ac_status )
22394 ac_cv_tanh_preserves_zero_sign=no
22396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22402 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22403 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22404 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22407 cat >>confdefs.h <<\_ACEOF
22408 #define TANH_PRESERVES_ZERO_SIGN 1
22422 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22424 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 cat >conftest.$ac_ext <<_ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22438 #define $ac_func innocuous_$ac_func
22440 /* System header to define __stub macros and hopefully few prototypes,
22441 which can conflict with char $ac_func (); below.
22442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22443 <limits.h> exists even on freestanding compilers. */
22446 # include <limits.h>
22448 # include <assert.h>
22453 /* Override any GCC internal prototype to avoid an error.
22454 Use char because int might match the return type of a GCC
22455 builtin and then its argument prototype would still apply. */
22460 /* The GNU C library defines this for functions which it implements
22461 to always fail with ENOSYS. Some functions are actually named
22462 something starting with __ and the normal name is an alias. */
22463 #if defined __stub_$ac_func || defined __stub___$ac_func
22470 return $ac_func ();
22475 rm -f conftest.$ac_objext conftest$ac_exeext
22476 if { (ac_try="$ac_link"
22477 case "(($ac_try" in
22478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22479 *) ac_try_echo
=$ac_try;;
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_link") 2>conftest.er1
22484 grep -v '^ *+' conftest.er1
>conftest.err
22486 cat conftest.err
>&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && {
22489 test -z "$ac_c_werror_flag" ||
22490 test ! -s conftest.err
22491 } && test -s conftest
$ac_exeext &&
22492 $as_test_x conftest
$ac_exeext; then
22493 eval "$as_ac_var=yes"
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.
$ac_ext >&5
22498 eval "$as_ac_var=no"
22501 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22502 conftest
$ac_exeext conftest.
$ac_ext
22504 ac_res
=`eval echo '${'$as_ac_var'}'`
22505 { echo "$as_me:$LINENO: result: $ac_res" >&5
22506 echo "${ECHO_T}$ac_res" >&6; }
22507 if test `eval echo '${'$as_ac_var'}'` = yes; then
22508 cat >>confdefs.h
<<_ACEOF
22509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22515 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22516 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22517 if test "${ac_cv_have_decl_isinf+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 cat >conftest.
$ac_ext <<_ACEOF
22523 cat confdefs.h
>>conftest.
$ac_ext
22524 cat >>conftest.
$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22539 rm -f conftest.
$ac_objext
22540 if { (ac_try
="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_cv_have_decl_isinf=yes
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_cv_have_decl_isinf=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22567 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22568 if test $ac_cv_have_decl_isinf = yes; then
22570 cat >>confdefs.h <<_ACEOF
22571 #define HAVE_DECL_ISINF 1
22576 cat >>confdefs.h <<_ACEOF
22577 #define HAVE_DECL_ISINF 0
22582 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22583 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22584 if test "${ac_cv_have_decl_isnan+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22606 rm -f conftest.$ac_objext
22607 if { (ac_try="$ac_compile"
22608 case "(($ac_try" in
22609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22610 *) ac_try_echo
=$ac_try;;
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_compile") 2>conftest.er1
22615 grep -v '^ *+' conftest.er1
>conftest.err
22617 cat conftest.err
>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } && {
22620 test -z "$ac_c_werror_flag" ||
22621 test ! -s conftest.err
22622 } && test -s conftest.
$ac_objext; then
22623 ac_cv_have_decl_isnan
=yes
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.
$ac_ext >&5
22628 ac_cv_have_decl_isnan
=no
22631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22633 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22634 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22635 if test $ac_cv_have_decl_isnan = yes; then
22637 cat >>confdefs.h
<<_ACEOF
22638 #define HAVE_DECL_ISNAN 1
22643 cat >>confdefs.h
<<_ACEOF
22644 #define HAVE_DECL_ISNAN 0
22649 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22650 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22651 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22652 echo $ECHO_N "(cached) $ECHO_C" >&6
22654 cat >conftest.
$ac_ext <<_ACEOF
22657 cat confdefs.h
>>conftest.
$ac_ext
22658 cat >>conftest.
$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22673 rm -f conftest.
$ac_objext
22674 if { (ac_try
="$ac_compile"
22675 case "(($ac_try" in
22676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_compile") 2>conftest.er1
22682 grep -v '^ *+' conftest.er1 >conftest.err
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } && {
22687 test -z "$ac_c_werror_flag" ||
22688 test ! -s conftest.err
22689 } && test -s conftest.$ac_objext; then
22690 ac_cv_have_decl_isfinite=yes
22692 echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22695 ac_cv_have_decl_isfinite=no
22698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22701 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22702 if test $ac_cv_have_decl_isfinite = yes; then
22704 cat >>confdefs.h <<_ACEOF
22705 #define HAVE_DECL_ISFINITE 1
22710 cat >>confdefs.h <<_ACEOF
22711 #define HAVE_DECL_ISFINITE 0
22721 # For multiprocessing module, check that sem_open
22722 # actually works. For FreeBSD versions <= 7.2,
22723 # the kernel module that provides POSIX semaphores
22724 # isn't loaded by default, so an attempt to call
22725 # sem_open results in a 'Signal 12' error.
22726 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22727 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22728 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 if test "$cross_compiling" = yes; then
22732 ac_cv_posix_semaphores_enabled=yes
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22741 #include <unistd.h>
22744 #include <semaphore.h>
22745 #include <sys/stat.h>
22748 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22749 if (a == SEM_FAILED) {
22750 perror("sem_open");
22754 sem_unlink("/autoconf");
22759 rm -f conftest$ac_exeext
22760 if { (ac_try="$ac_link"
22761 case "(($ac_try" in
22762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22763 *) ac_try_echo
=$ac_try;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_link") 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22770 { (case "(($ac_try" in
22771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_try") 2>&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; }; then
22779 ac_cv_posix_semaphores_enabled=yes
22781 echo "$as_me: program exited with status $ac_status" >&5
22782 echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22785 ( exit $ac_status )
22786 ac_cv_posix_semaphores_enabled=no
22788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22795 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22796 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22797 if test $ac_cv_posix_semaphores_enabled = no
22800 cat >>confdefs.h <<\_ACEOF
22801 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22806 # Multiprocessing check for broken sem_getvalue
22807 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22808 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22809 if test "$cross_compiling" = yes; then
22810 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22811 See \`config.log
' for more details." >&5
22812 echo "$as_me: error: cannot run test program while cross compiling
22813 See \`config.log' for more details.
" >&2;}
22814 { (exit 1); exit 1; }; }
22816 cat >conftest.$ac_ext <<_ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22823 #include <unistd.h>
22826 #include <semaphore.h>
22827 #include <sys/stat.h>
22830 sem_t *a = sem_open("/autocftw
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22834 perror("sem_open
");
22838 res = sem_getvalue(a, &count);
22840 sem_unlink("/autocftw
");
22841 return res==-1 ? 1 : 0;
22846 rm -f conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_link") 2>&5
22855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22857 { (case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_try") 2>&5
22864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866 { echo "$as_me:$LINENO: result
: no
" >&5
22867 echo "${ECHO_T}no
" >&6; }
22869 echo "$as_me: program exited with status
$ac_status" >&5
22870 echo "$as_me: failed program was
:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ( exit $ac_status )
22874 { echo "$as_me:$LINENO: result
: yes" >&5
22875 echo "${ECHO_T}yes" >&6; }
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_BROKEN_SEM_GETVALUE 1
22883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22888 # determine what size digit to use for Python's longs
22889 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22890 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22891 # Check whether --enable-big-digits was given.
22892 if test "${enable_big_digits+set}" = set; then
22893 enableval=$enable_big_digits; case $enable_big_digits in
22895 enable_big_digits=30 ;;
22897 enable_big_digits=15 ;;
22901 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22902 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22903 { (exit 1); exit 1; }; } ;;
22905 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22906 echo "${ECHO_T}$enable_big_digits" >&6; }
22908 cat >>confdefs.h <<_ACEOF
22909 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22914 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22915 echo "${ECHO_T}no value specified
" >&6; }
22919 # check for wchar.h
22920 if test "${ac_cv_header_wchar_h+set}" = set; then
22921 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22922 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22923 if test "${ac_cv_header_wchar_h+set}" = set; then
22924 echo $ECHO_N "(cached
) $ECHO_C" >&6
22926 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22927 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22929 # Is the header compilable?
22930 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22931 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22932 cat >conftest.$ac_ext <<_ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 $ac_includes_default
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22948 (eval "$ac_compile") 2>conftest.er1
22950 grep -v '^ *+' conftest.er1 >conftest.err
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22954 (exit $ac_status); } && {
22955 test -z "$ac_c_werror_flag" ||
22956 test ! -s conftest.err
22957 } && test -s conftest.$ac_objext; then
22958 ac_header_compiler=yes
22960 echo "$as_me: failed program was
:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22963 ac_header_compiler=no
22966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22968 echo "${ECHO_T}$ac_header_compiler" >&6; }
22970 # Is the header present?
22971 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
22972 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
22973 cat >conftest.$ac_ext <<_ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22981 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22993 (exit $ac_status); } >/dev/null && {
22994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22997 ac_header_preproc=yes
22999 echo "$as_me: failed program was
:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ac_header_preproc=no
23005 rm -f conftest.err conftest.$ac_ext
23006 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23007 echo "${ECHO_T}$ac_header_preproc" >&6; }
23009 # So? What about this header?
23010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23012 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23013 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23014 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
23015 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
23016 ac_header_preproc=yes
23019 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
23020 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
23021 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
23022 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
23023 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
23024 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
23025 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23026 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23027 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
23028 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
23029 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
23030 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
23032 ## -------------------------------------- ##
23033 ## Report this to http://bugs.python.org/ ##
23034 ## -------------------------------------- ##
23036 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23039 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
23040 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
23041 if test "${ac_cv_header_wchar_h+set}" = set; then
23042 echo $ECHO_N "(cached
) $ECHO_C" >&6
23044 ac_cv_header_wchar_h=$ac_header_preproc
23046 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23050 if test $ac_cv_header_wchar_h = yes; then
23053 cat >>confdefs.h <<\_ACEOF
23054 #define HAVE_WCHAR_H 1
23066 # determine wchar_t size
23067 if test "$wchar_h" = yes
23069 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
23070 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
23071 if test "${ac_cv_type_wchar_t+set}" = set; then
23072 echo $ECHO_N "(cached
) $ECHO_C" >&6
23074 cat >conftest.$ac_ext <<_ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23082 typedef wchar_t ac__type_new_;
23086 if ((ac__type_new_ *) 0)
23088 if (sizeof (ac__type_new_))
23094 rm -f conftest.$ac_objext
23095 if { (ac_try="$ac_compile"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_compile") 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest.$ac_objext; then
23111 ac_cv_type_wchar_t=yes
23113 echo "$as_me: failed program was
:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23116 ac_cv_type_wchar_t=no
23119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
23122 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23124 # The cast to long int works around a bug in the HP C Compiler
23125 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23126 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23127 # This bug is HP SR number 8606223364.
23128 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
23129 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
23130 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23131 echo $ECHO_N "(cached
) $ECHO_C" >&6
23133 if test "$cross_compiling" = yes; then
23134 # Depending upon the size, compute the lo and hi bounds.
23135 cat >conftest.$ac_ext <<_ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h. */
23143 typedef wchar_t ac__type_sizeof_;
23147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23154 rm -f conftest.$ac_objext
23155 if { (ac_try="$ac_compile"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_compile") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest.$ac_objext; then
23173 cat >conftest.$ac_ext <<_ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h. */
23181 typedef wchar_t ac__type_sizeof_;
23185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23192 rm -f conftest.$ac_objext
23193 if { (ac_try="$ac_compile"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_compile") 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23205 (exit $ac_status); } && {
23206 test -z "$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23208 } && test -s conftest.$ac_objext; then
23209 ac_hi=$ac_mid; break
23211 echo "$as_me: failed program was
:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23214 ac_lo=`expr $ac_mid + 1`
23215 if test $ac_lo -le $ac_mid; then
23219 ac_mid=`expr 2 '*' $ac_mid + 1`
23222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225 echo "$as_me: failed program was
:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23236 typedef wchar_t ac__type_sizeof_;
23240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_compile") 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23260 (exit $ac_status); } && {
23261 test -z "$ac_c_werror_flag" ||
23262 test ! -s conftest.err
23263 } && test -s conftest.$ac_objext; then
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23274 typedef wchar_t ac__type_sizeof_;
23278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_compile") 2>conftest.er1
23294 grep -v '^ *+' conftest.er1 >conftest.err
23296 cat conftest.err >&5
23297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23298 (exit $ac_status); } && {
23299 test -z "$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 } && test -s conftest.$ac_objext; then
23302 ac_lo=$ac_mid; break
23304 echo "$as_me: failed program was
:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_hi=`expr '(' $ac_mid ')' - 1`
23308 if test $ac_mid -le $ac_hi; then
23312 ac_mid=`expr 2 '*' $ac_mid`
23315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318 echo "$as_me: failed program was
:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23328 # Binary search between lo and hi bounds.
23329 while test "x
$ac_lo" != "x
$ac_hi"; do
23330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23339 typedef wchar_t ac__type_sizeof_;
23343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23350 rm -f conftest.$ac_objext
23351 if { (ac_try="$ac_compile"
23352 case "(($ac_try" in
23353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354 *) ac_try_echo=$ac_try;;
23356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23357 (eval "$ac_compile") 2>conftest.er1
23359 grep -v '^ *+' conftest.er1 >conftest.err
23361 cat conftest.err >&5
23362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23363 (exit $ac_status); } && {
23364 test -z "$ac_c_werror_flag" ||
23365 test ! -s conftest.err
23366 } && test -s conftest.$ac_objext; then
23369 echo "$as_me: failed program was
:" >&5
23370 sed 's/^/| /' conftest.$ac_ext >&5
23372 ac_lo=`expr '(' $ac_mid ')' + 1`
23375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23378 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23379 '') if test "$ac_cv_type_wchar_t" = yes; then
23380 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23381 See \
`config.log' for more details." >&5
23382 echo "$as_me: error: cannot compute sizeof (wchar_t)
23383 See \`config.log
' for more details." >&2;}
23384 { (exit 77); exit 77; }; }
23386 ac_cv_sizeof_wchar_t=0
23390 cat >conftest.$ac_ext <<_ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23398 typedef wchar_t ac__type_sizeof_;
23399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23402 #include <stdlib.h>
23407 FILE *f = fopen ("conftest.val", "w");
23410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23412 long int i = longval ();
23413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23415 fprintf (f, "%ld\n", i);
23419 unsigned long int i = ulongval ();
23420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23422 fprintf (f, "%lu\n", i);
23424 return ferror (f) || fclose (f) != 0;
23430 rm -f conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23441 { (case "(($ac_try" in
23442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443 *) ac_try_echo=$ac_try;;
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446 (eval "$ac_try") 2>&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23450 ac_cv_sizeof_wchar_t=`cat conftest.val`
23452 echo "$as_me: program exited with status $ac_status" >&5
23453 echo "$as_me: failed program was:" >&5
23454 sed 's
/^
/|
/' conftest.$ac_ext >&5
23456 ( exit $ac_status )
23457 if test "$ac_cv_type_wchar_t" = yes; then
23458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23459 See \`config.log' for more details.
" >&5
23460 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23461 See \
`config.log' for more details." >&2;}
23462 { (exit 77); exit 77; }; }
23464 ac_cv_sizeof_wchar_t=0
23467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23471 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23472 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23476 cat >>confdefs.h <<_ACEOF
23477 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23483 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23484 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23486 cat >conftest.$ac_ext <<_ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h. */
23494 #if TCL_UTF_MAX != 6
23495 # error "NOT UCS4_TCL"
23505 rm -f conftest.$ac_objext
23506 if { (ac_try="$ac_compile"
23507 case "(($ac_try" in
23508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23509 *) ac_try_echo
=$ac_try;;
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512 (eval "$ac_compile") 2>conftest.er1
23514 grep -v '^ *+' conftest.er1
>conftest.err
23516 cat conftest.err
>&5
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } && {
23519 test -z "$ac_c_werror_flag" ||
23520 test ! -s conftest.err
23521 } && test -s conftest.
$ac_objext; then
23524 cat >>confdefs.h
<<\_ACEOF
23525 #define HAVE_UCS4_TCL 1
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.
$ac_ext >&5
23537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23538 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23539 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23541 # check whether wchar_t is signed or not
23542 if test "$wchar_h" = yes
23544 # check whether wchar_t is signed or not
23545 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23546 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23547 if test "${ac_cv_wchar_t_signed+set}" = set; then
23548 echo $ECHO_N "(cached) $ECHO_C" >&6
23551 if test "$cross_compiling" = yes; then
23552 ac_cv_wchar_t_signed
=yes
23554 cat >conftest.
$ac_ext <<_ACEOF
23557 cat confdefs.h
>>conftest.
$ac_ext
23558 cat >>conftest.
$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23564 /* Success: exit code 0 */
23565 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23569 rm -f conftest
$ac_exeext
23570 if { (ac_try
="$ac_link"
23571 case "(($ac_try" in
23572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_link") 2>&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23580 { (case "(($ac_try" in
23581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23582 *) ac_try_echo
=$ac_try;;
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_try") 2>&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; }; then
23589 ac_cv_wchar_t_signed
=yes
23591 echo "$as_me: program exited with status $ac_status" >&5
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.
$ac_ext >&5
23595 ( exit $ac_status )
23596 ac_cv_wchar_t_signed
=no
23598 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23604 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23605 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23608 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23609 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23611 # Check whether --with-wide-unicode was given.
23612 if test "${with_wide_unicode+set}" = set; then
23613 withval
=$with_wide_unicode;
23614 if test "$withval" != no
23615 then unicode_size
="4"
23616 else unicode_size
="2"
23621 case "$have_ucs4_tcl" in
23622 yes) unicode_size
="4" ;;
23623 *) unicode_size
="2" ;;
23631 case "$unicode_size" in
23632 4) cat >>confdefs.h
<<\_ACEOF
23633 #define Py_UNICODE_SIZE 4
23636 *) cat >>confdefs.h
<<\_ACEOF
23637 #define Py_UNICODE_SIZE 2
23645 # wchar_t is only usable if it maps to an unsigned type
23646 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23647 -a "$ac_cv_wchar_t_signed" = "no"
23649 PY_UNICODE_TYPE
="wchar_t"
23651 cat >>confdefs.h
<<\_ACEOF
23652 #define HAVE_USABLE_WCHAR_T 1
23655 cat >>confdefs.h
<<\_ACEOF
23656 #define PY_UNICODE_TYPE wchar_t
23659 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23661 PY_UNICODE_TYPE
="unsigned short"
23662 cat >>confdefs.h
<<\_ACEOF
23663 #define PY_UNICODE_TYPE unsigned short
23666 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23668 PY_UNICODE_TYPE
="unsigned long"
23669 cat >>confdefs.h
<<\_ACEOF
23670 #define PY_UNICODE_TYPE unsigned long
23674 PY_UNICODE_TYPE
="no type found"
23676 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23677 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23679 # check for endianness
23680 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23681 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23682 if test "${ac_cv_c_bigendian+set}" = set; then
23683 echo $ECHO_N "(cached) $ECHO_C" >&6
23685 # See if sys/param.h defines the BYTE_ORDER macro.
23686 cat >conftest.
$ac_ext <<_ACEOF
23689 cat confdefs.h
>>conftest.
$ac_ext
23690 cat >>conftest.
$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 #include <sys/types.h>
23693 #include <sys/param.h>
23698 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23699 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23700 bogus endian macros
23707 rm -f conftest.
$ac_objext
23708 if { (ac_try
="$ac_compile"
23709 case "(($ac_try" in
23710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23711 *) ac_try_echo=$ac_try;;
23713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23714 (eval "$ac_compile") 2>conftest.er1
23716 grep -v '^ *+' conftest.er1 >conftest.err
23718 cat conftest.err >&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } && {
23721 test -z "$ac_c_werror_flag" ||
23722 test ! -s conftest.err
23723 } && test -s conftest.$ac_objext; then
23724 # It does; now see whether it defined to BIG_ENDIAN or not.
23725 cat >conftest.$ac_ext <<_ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 #include <sys/types.h>
23732 #include <sys/param.h>
23737 #if BYTE_ORDER != BIG_ENDIAN
23745 rm -f conftest.$ac_objext
23746 if { (ac_try="$ac_compile"
23747 case "(($ac_try" in
23748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23749 *) ac_try_echo
=$ac_try;;
23751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23752 (eval "$ac_compile") 2>conftest.er1
23754 grep -v '^ *+' conftest.er1
>conftest.err
23756 cat conftest.err
>&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); } && {
23759 test -z "$ac_c_werror_flag" ||
23760 test ! -s conftest.err
23761 } && test -s conftest.
$ac_objext; then
23762 ac_cv_c_bigendian
=yes
23764 echo "$as_me: failed program was:" >&5
23765 sed 's/^/| /' conftest.
$ac_ext >&5
23767 ac_cv_c_bigendian
=no
23770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23772 echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.
$ac_ext >&5
23775 # It does not; compile a test program.
23776 if test "$cross_compiling" = yes; then
23777 # try to guess the endianness by grepping values into an object file
23778 ac_cv_c_bigendian
=unknown
23779 cat >conftest.
$ac_ext <<_ACEOF
23782 cat confdefs.h
>>conftest.
$ac_ext
23783 cat >>conftest.
$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23786 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23787 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23788 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23789 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23790 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23794 _ascii (); _ebcdic ();
23799 rm -f conftest.
$ac_objext
23800 if { (ac_try
="$ac_compile"
23801 case "(($ac_try" in
23802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_compile") 2>conftest.er1
23808 grep -v '^ *+' conftest.er1 >conftest.err
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && {
23813 test -z "$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 } && test -s conftest.$ac_objext; then
23816 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23817 ac_cv_c_bigendian=yes
23819 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23820 if test "$ac_cv_c_bigendian" = unknown; then
23821 ac_cv_c_bigendian=no
23823 # finding both strings is unlikely to happen, but who knows?
23824 ac_cv_c_bigendian=unknown
23828 echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836 cat >conftest.$ac_ext <<_ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23842 $ac_includes_default
23847 /* Are we little or big endian? From Harbison&Steele. */
23851 char c[sizeof (long int)];
23854 return u.c[sizeof (long int) - 1] == 1;
23860 rm -f conftest$ac_exeext
23861 if { (ac_try="$ac_link"
23862 case "(($ac_try" in
23863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23864 *) ac_try_echo
=$ac_try;;
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867 (eval "$ac_link") 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23871 { (case "(($ac_try" in
23872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23873 *) ac_try_echo=$ac_try;;
23875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23876 (eval "$ac_try") 2>&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); }; }; then
23880 ac_cv_c_bigendian=no
23882 echo "$as_me: program exited with status $ac_status" >&5
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23886 ( exit $ac_status )
23887 ac_cv_c_bigendian=yes
23889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23897 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23898 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23899 case $ac_cv_c_bigendian in
23902 cat >>confdefs.h <<\_ACEOF
23903 #define WORDS_BIGENDIAN 1
23909 { { echo "$as_me:$LINENO: error: unknown endianness
23910 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23911 echo "$as_me: error: unknown endianness
23912 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23913 { (exit 1); exit 1; }; } ;;
23917 # Check whether right shifting a negative integer extends the sign bit
23918 # or fills with zeros (like the Cray J90, according to Tim Peters).
23919 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23920 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23921 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 if test "$cross_compiling" = yes; then
23926 ac_cv_rshift_extends_sign=yes
23928 cat >conftest.$ac_ext <<_ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23937 exit(((-1)>>3 == -1) ? 0 : 1);
23941 rm -f conftest$ac_exeext
23942 if { (ac_try="$ac_link"
23943 case "(($ac_try" in
23944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23945 *) ac_try_echo
=$ac_try;;
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_link") 2>&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23952 { (case "(($ac_try" in
23953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23954 *) ac_try_echo=$ac_try;;
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957 (eval "$ac_try") 2>&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23961 ac_cv_rshift_extends_sign=yes
23963 echo "$as_me: program exited with status $ac_status" >&5
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23967 ( exit $ac_status )
23968 ac_cv_rshift_extends_sign=no
23970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23976 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23977 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23978 if test "$ac_cv_rshift_extends_sign" = no
23981 cat >>confdefs.h <<\_ACEOF
23982 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23987 # check for getc_unlocked and related locking functions
23988 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23989 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23990 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23991 echo $ECHO_N "(cached) $ECHO_C" >&6
23994 cat >conftest.$ac_ext <<_ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h. */
24005 FILE *f = fopen("/dev/null", "r");
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (ac_try="$ac_link"
24016 case "(($ac_try" in
24017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24018 *) ac_try_echo
=$ac_try;;
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021 (eval "$ac_link") 2>conftest.er1
24023 grep -v '^ *+' conftest.er1
>conftest.err
24025 cat conftest.err
>&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && {
24028 test -z "$ac_c_werror_flag" ||
24029 test ! -s conftest.err
24030 } && test -s conftest
$ac_exeext &&
24031 $as_test_x conftest
$ac_exeext; then
24032 ac_cv_have_getc_unlocked
=yes
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.
$ac_ext >&5
24037 ac_cv_have_getc_unlocked
=no
24040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24041 conftest
$ac_exeext conftest.
$ac_ext
24044 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24045 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24046 if test "$ac_cv_have_getc_unlocked" = yes
24049 cat >>confdefs.h
<<\_ACEOF
24050 #define HAVE_GETC_UNLOCKED 1
24055 # check where readline lives
24056 # save the value of LIBS so we don't actually link Python with readline
24057 LIBS_no_readline
=$LIBS
24059 # On some systems we need to link readline to a termcap compatible
24060 # library. NOTE: Keep the precedence of listed libraries synchronised
24062 py_cv_lib_readline
=no
24063 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24064 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24065 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
24066 if test -z "$py_libtermcap"; then
24067 READLINE_LIBS
="-lreadline"
24069 READLINE_LIBS
="-lreadline -l$py_libtermcap"
24071 LIBS
="$READLINE_LIBS $LIBS_no_readline"
24072 cat >conftest.
$ac_ext <<_ACEOF
24075 cat confdefs.h
>>conftest.
$ac_ext
24076 cat >>conftest.
$ac_ext <<_ACEOF
24077 /* end confdefs.h. */
24079 /* Override any GCC internal prototype to avoid an error.
24080 Use char because int might match the return type of a GCC
24081 builtin and then its argument prototype would still apply. */
24089 return readline ();
24094 rm -f conftest.
$ac_objext conftest
$ac_exeext
24095 if { (ac_try
="$ac_link"
24096 case "(($ac_try" in
24097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24098 *) ac_try_echo=$ac_try;;
24100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24101 (eval "$ac_link") 2>conftest.er1
24103 grep -v '^ *+' conftest.er1 >conftest.err
24105 cat conftest.err >&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); } && {
24108 test -z "$ac_c_werror_flag" ||
24109 test ! -s conftest.err
24110 } && test -s conftest$ac_exeext &&
24111 $as_test_x conftest$ac_exeext; then
24112 py_cv_lib_readline=yes
24114 echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24121 conftest$ac_exeext conftest.$ac_ext
24122 if test $py_cv_lib_readline = yes; then
24126 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24127 #AC_SUBST([READLINE_LIBS])
24128 if test $py_cv_lib_readline = no; then
24129 { echo "$as_me:$LINENO: result: none" >&5
24130 echo "${ECHO_T}none" >&6; }
24132 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24133 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24135 cat >>confdefs.h <<\_ACEOF
24136 #define HAVE_LIBREADLINE 1
24141 # check for readline 2.1
24142 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24143 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24144 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24147 ac_check_lib_save_LIBS=$LIBS
24148 LIBS="-lreadline $READLINE_LIBS $LIBS"
24149 cat >conftest.$ac_ext <<_ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24156 /* Override any GCC internal prototype to avoid an error.
24157 Use char because int might match the return type of a GCC
24158 builtin and then its argument prototype would still apply. */
24162 char rl_callback_handler_install ();
24166 return rl_callback_handler_install ();
24171 rm -f conftest.$ac_objext conftest$ac_exeext
24172 if { (ac_try="$ac_link"
24173 case "(($ac_try" in
24174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24175 *) ac_try_echo
=$ac_try;;
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_link") 2>conftest.er1
24180 grep -v '^ *+' conftest.er1
>conftest.err
24182 cat conftest.err
>&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } && {
24185 test -z "$ac_c_werror_flag" ||
24186 test ! -s conftest.err
24187 } && test -s conftest
$ac_exeext &&
24188 $as_test_x conftest
$ac_exeext; then
24189 ac_cv_lib_readline_rl_callback_handler_install
=yes
24191 echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.
$ac_ext >&5
24194 ac_cv_lib_readline_rl_callback_handler_install
=no
24197 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24198 conftest
$ac_exeext conftest.
$ac_ext
24199 LIBS
=$ac_check_lib_save_LIBS
24201 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24202 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24203 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24205 cat >>confdefs.h
<<\_ACEOF
24206 #define HAVE_RL_CALLBACK 1
24212 # check for readline 2.2
24213 cat >conftest.
$ac_ext <<_ACEOF
24216 cat confdefs.h
>>conftest.
$ac_ext
24217 cat >>conftest.
$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24219 #include <readline/readline.h>
24221 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24222 case "(($ac_try" in
24223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24224 *) ac_try_echo=$ac_try;;
24226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24229 grep -v '^ *+' conftest.er1 >conftest.err
24231 cat conftest.err >&5
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); } >/dev/null && {
24234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24235 test ! -s conftest.err
24239 echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24245 rm -f conftest.err conftest.$ac_ext
24246 if test $have_readline = yes
24248 cat >conftest.$ac_ext <<_ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 #include <readline/readline.h>
24257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24258 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24267 cat >conftest.$ac_ext <<_ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h. */
24273 #include <readline/readline.h>
24276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24277 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24279 cat >>confdefs.h <<\_ACEOF
24280 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24288 # check for readline 4.0
24289 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24290 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24291 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24294 ac_check_lib_save_LIBS=$LIBS
24295 LIBS="-lreadline $READLINE_LIBS $LIBS"
24296 cat >conftest.$ac_ext <<_ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24303 /* Override any GCC internal prototype to avoid an error.
24304 Use char because int might match the return type of a GCC
24305 builtin and then its argument prototype would still apply. */
24309 char rl_pre_input_hook ();
24313 return rl_pre_input_hook ();
24318 rm -f conftest.$ac_objext conftest$ac_exeext
24319 if { (ac_try="$ac_link"
24320 case "(($ac_try" in
24321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24322 *) ac_try_echo
=$ac_try;;
24324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24325 (eval "$ac_link") 2>conftest.er1
24327 grep -v '^ *+' conftest.er1
>conftest.err
24329 cat conftest.err
>&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); } && {
24332 test -z "$ac_c_werror_flag" ||
24333 test ! -s conftest.err
24334 } && test -s conftest
$ac_exeext &&
24335 $as_test_x conftest
$ac_exeext; then
24336 ac_cv_lib_readline_rl_pre_input_hook
=yes
24338 echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.
$ac_ext >&5
24341 ac_cv_lib_readline_rl_pre_input_hook
=no
24344 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24345 conftest
$ac_exeext conftest.
$ac_ext
24346 LIBS
=$ac_check_lib_save_LIBS
24348 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24349 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24350 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24352 cat >>confdefs.h
<<\_ACEOF
24353 #define HAVE_RL_PRE_INPUT_HOOK 1
24360 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24361 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24362 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 ac_check_lib_save_LIBS
=$LIBS
24366 LIBS
="-lreadline $READLINE_LIBS $LIBS"
24367 cat >conftest.
$ac_ext <<_ACEOF
24370 cat confdefs.h
>>conftest.
$ac_ext
24371 cat >>conftest.
$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24374 /* Override any GCC internal prototype to avoid an error.
24375 Use char because int might match the return type of a GCC
24376 builtin and then its argument prototype would still apply. */
24380 char rl_completion_display_matches_hook ();
24384 return rl_completion_display_matches_hook ();
24389 rm -f conftest.
$ac_objext conftest
$ac_exeext
24390 if { (ac_try
="$ac_link"
24391 case "(($ac_try" in
24392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_link") 2>conftest.er1
24398 grep -v '^ *+' conftest.er1 >conftest.err
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } && {
24403 test -z "$ac_c_werror_flag" ||
24404 test ! -s conftest.err
24405 } && test -s conftest$ac_exeext &&
24406 $as_test_x conftest$ac_exeext; then
24407 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24409 echo "$as_me: failed program was:" >&5
24410 sed 's/^/| /' conftest.$ac_ext >&5
24412 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24416 conftest$ac_exeext conftest.$ac_ext
24417 LIBS=$ac_check_lib_save_LIBS
24419 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24420 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24421 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24423 cat >>confdefs.h <<\_ACEOF
24424 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24430 # check for readline 4.2
24431 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24432 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24433 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24434 echo $ECHO_N "(cached) $ECHO_C" >&6
24436 ac_check_lib_save_LIBS=$LIBS
24437 LIBS="-lreadline $READLINE_LIBS $LIBS"
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24445 /* Override any GCC internal prototype to avoid an error.
24446 Use char because int might match the return type of a GCC
24447 builtin and then its argument prototype would still apply. */
24451 char rl_completion_matches ();
24455 return rl_completion_matches ();
24460 rm -f conftest.$ac_objext conftest$ac_exeext
24461 if { (ac_try="$ac_link"
24462 case "(($ac_try" in
24463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24464 *) ac_try_echo
=$ac_try;;
24466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24467 (eval "$ac_link") 2>conftest.er1
24469 grep -v '^ *+' conftest.er1
>conftest.err
24471 cat conftest.err
>&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } && {
24474 test -z "$ac_c_werror_flag" ||
24475 test ! -s conftest.err
24476 } && test -s conftest
$ac_exeext &&
24477 $as_test_x conftest
$ac_exeext; then
24478 ac_cv_lib_readline_rl_completion_matches
=yes
24480 echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.
$ac_ext >&5
24483 ac_cv_lib_readline_rl_completion_matches
=no
24486 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24487 conftest
$ac_exeext conftest.
$ac_ext
24488 LIBS
=$ac_check_lib_save_LIBS
24490 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24491 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24492 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24494 cat >>confdefs.h
<<\_ACEOF
24495 #define HAVE_RL_COMPLETION_MATCHES 1
24501 # also in readline 4.2
24502 cat >conftest.
$ac_ext <<_ACEOF
24505 cat confdefs.h
>>conftest.
$ac_ext
24506 cat >>conftest.
$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24508 #include <readline/readline.h>
24510 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24511 case "(($ac_try" in
24512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24513 *) ac_try_echo=$ac_try;;
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24518 grep -v '^ *+' conftest.er1 >conftest.err
24520 cat conftest.err >&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } >/dev/null && {
24523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24524 test ! -s conftest.err
24528 echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24534 rm -f conftest.err conftest.$ac_ext
24535 if test $have_readline = yes
24537 cat >conftest.$ac_ext <<_ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24543 #include <readline/readline.h>
24546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24547 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24549 cat >>confdefs.h <<\_ACEOF
24550 #define HAVE_RL_CATCH_SIGNAL 1
24558 # End of readline checks: restore LIBS
24559 LIBS=$LIBS_no_readline
24561 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24562 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24563 if test "${ac_cv_broken_nice+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24567 if test "$cross_compiling" = yes; then
24568 ac_cv_broken_nice=no
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24579 int val1 = nice(1);
24580 if (val1 != -1 && val1 == nice(2))
24586 rm -f conftest$ac_exeext
24587 if { (ac_try="$ac_link"
24588 case "(($ac_try" in
24589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24590 *) ac_try_echo
=$ac_try;;
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_link") 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24597 { (case "(($ac_try" in
24598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_try") 2>&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; }; then
24606 ac_cv_broken_nice=yes
24608 echo "$as_me: program exited with status $ac_status" >&5
24609 echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24612 ( exit $ac_status )
24613 ac_cv_broken_nice=no
24615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24621 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24622 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24623 if test "$ac_cv_broken_nice" = yes
24626 cat >>confdefs.h <<\_ACEOF
24627 #define HAVE_BROKEN_NICE 1
24632 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24633 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24634 if test "$cross_compiling" = yes; then
24635 ac_cv_broken_poll=no
24637 cat >conftest.$ac_ext <<_ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24648 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24652 int poll_test = poll (&poll_struct, 1, 0);
24658 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24669 rm -f conftest$ac_exeext
24670 if { (ac_try="$ac_link"
24671 case "(($ac_try" in
24672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24673 *) ac_try_echo
=$ac_try;;
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_link") 2>&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24680 { (case "(($ac_try" in
24681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_cv_broken_poll=yes
24691 echo "$as_me: program exited with status $ac_status" >&5
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24695 ( exit $ac_status )
24696 ac_cv_broken_poll=no
24698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24702 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24703 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24704 if test "$ac_cv_broken_poll" = yes
24707 cat >>confdefs.h <<\_ACEOF
24708 #define HAVE_BROKEN_POLL 1
24713 # Before we can test tzset, we need to check if struct tm has a tm_zone
24714 # (which is not required by ISO C or UNIX spec) and/or if we support
24716 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24717 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24718 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24719 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 cat >conftest.$ac_ext <<_ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h. */
24727 #include <sys/types.h>
24728 #include <$ac_cv_struct_tm>
24734 static struct tm ac_aggr;
24735 if (ac_aggr.tm_zone)
24741 rm -f conftest.$ac_objext
24742 if { (ac_try="$ac_compile"
24743 case "(($ac_try" in
24744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24745 *) ac_try_echo
=$ac_try;;
24747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748 (eval "$ac_compile") 2>conftest.er1
24750 grep -v '^ *+' conftest.er1
>conftest.err
24752 cat conftest.err
>&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest.
$ac_objext; then
24758 ac_cv_member_struct_tm_tm_zone
=yes
24760 echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.
$ac_ext >&5
24763 cat >conftest.
$ac_ext <<_ACEOF
24766 cat confdefs.h
>>conftest.
$ac_ext
24767 cat >>conftest.
$ac_ext <<_ACEOF
24768 /* end confdefs.h. */
24769 #include <sys/types.h>
24770 #include <$ac_cv_struct_tm>
24776 static struct tm ac_aggr;
24777 if (sizeof ac_aggr.tm_zone)
24783 rm -f conftest.
$ac_objext
24784 if { (ac_try
="$ac_compile"
24785 case "(($ac_try" in
24786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24790 (eval "$ac_compile") 2>conftest.er1
24792 grep -v '^ *+' conftest.er1 >conftest.err
24794 cat conftest.err >&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } && {
24797 test -z "$ac_c_werror_flag" ||
24798 test ! -s conftest.err
24799 } && test -s conftest.$ac_objext; then
24800 ac_cv_member_struct_tm_tm_zone=yes
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 ac_cv_member_struct_tm_tm_zone=no
24808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24814 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24815 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24817 cat >>confdefs.h <<_ACEOF
24818 #define HAVE_STRUCT_TM_TM_ZONE 1
24824 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24826 cat >>confdefs.h <<\_ACEOF
24827 #define HAVE_TM_ZONE 1
24831 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24832 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24833 if test "${ac_cv_have_decl_tzname+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24855 rm -f conftest.$ac_objext
24856 if { (ac_try="$ac_compile"
24857 case "(($ac_try" in
24858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24859 *) ac_try_echo
=$ac_try;;
24861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24862 (eval "$ac_compile") 2>conftest.er1
24864 grep -v '^ *+' conftest.er1
>conftest.err
24866 cat conftest.err
>&5
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); } && {
24869 test -z "$ac_c_werror_flag" ||
24870 test ! -s conftest.err
24871 } && test -s conftest.
$ac_objext; then
24872 ac_cv_have_decl_tzname
=yes
24874 echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.
$ac_ext >&5
24877 ac_cv_have_decl_tzname
=no
24880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24883 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24884 if test $ac_cv_have_decl_tzname = yes; then
24886 cat >>confdefs.h
<<_ACEOF
24887 #define HAVE_DECL_TZNAME 1
24892 cat >>confdefs.h
<<_ACEOF
24893 #define HAVE_DECL_TZNAME 0
24900 { echo "$as_me:$LINENO: checking for tzname" >&5
24901 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24902 if test "${ac_cv_var_tzname+set}" = set; then
24903 echo $ECHO_N "(cached) $ECHO_C" >&6
24905 cat >conftest.
$ac_ext <<_ACEOF
24908 cat confdefs.h
>>conftest.
$ac_ext
24909 cat >>conftest.
$ac_ext <<_ACEOF
24910 /* end confdefs.h. */
24912 #if !HAVE_DECL_TZNAME
24913 extern char *tzname[];
24919 return tzname[0][0];
24924 rm -f conftest.
$ac_objext conftest
$ac_exeext
24925 if { (ac_try
="$ac_link"
24926 case "(($ac_try" in
24927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_link") 2>conftest.er1
24933 grep -v '^ *+' conftest.er1 >conftest.err
24935 cat conftest.err >&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } && {
24938 test -z "$ac_c_werror_flag" ||
24939 test ! -s conftest.err
24940 } && test -s conftest$ac_exeext &&
24941 $as_test_x conftest$ac_exeext; then
24942 ac_cv_var_tzname=yes
24944 echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24947 ac_cv_var_tzname=no
24950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24951 conftest$ac_exeext conftest.$ac_ext
24953 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24954 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24955 if test $ac_cv_var_tzname = yes; then
24957 cat >>confdefs.h <<\_ACEOF
24958 #define HAVE_TZNAME 1
24965 # check tzset(3) exists and works like we expect it to
24966 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24967 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24968 if test "${ac_cv_working_tzset+set}" = set; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24972 if test "$cross_compiling" = yes; then
24973 ac_cv_working_tzset=no
24975 cat >conftest.$ac_ext <<_ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24982 #include <stdlib.h>
24984 #include <string.h>
24987 extern char *tzname[];
24992 /* Note that we need to ensure that not only does tzset(3)
24993 do 'something' with localtime, but it works as documented
24994 in the library reference and as expected by the test suite.
24995 This includes making sure that tzname is set properly if
24996 tm->tm_zone does not exist since it is the alternative way
24997 of getting timezone info.
24999 Red Hat 6.2 doesn't understand the southern hemisphere
25000 after New Year's Day.
25003 time_t groundhogday = 1044144000; /* GMT-based */
25004 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25006 putenv("TZ=UTC+0");
25008 if (localtime(&groundhogday)->tm_hour != 0)
25011 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25012 if (strcmp(tzname[0], "UTC") ||
25013 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25017 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25019 if (localtime(&groundhogday)->tm_hour != 19)
25022 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25026 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25028 if (localtime(&groundhogday)->tm_hour != 11)
25031 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25035 #if HAVE_STRUCT_TM_TM_ZONE
25036 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25038 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25046 rm -f conftest$ac_exeext
25047 if { (ac_try="$ac_link"
25048 case "(($ac_try" in
25049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25050 *) ac_try_echo
=$ac_try;;
25052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25053 (eval "$ac_link") 2>&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25057 { (case "(($ac_try" in
25058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_try") 2>&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; }; then
25066 ac_cv_working_tzset=yes
25068 echo "$as_me: program exited with status $ac_status" >&5
25069 echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25072 ( exit $ac_status )
25073 ac_cv_working_tzset=no
25075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25081 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25082 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25083 if test "$ac_cv_working_tzset" = yes
25086 cat >>confdefs.h <<\_ACEOF
25087 #define HAVE_WORKING_TZSET 1
25092 # Look for subsecond timestamps in struct stat
25093 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25094 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25095 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25096 echo $ECHO_N "(cached) $ECHO_C" >&6
25098 cat >conftest.$ac_ext <<_ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h. */
25104 #include <sys/stat.h>
25110 st.st_mtim.tv_nsec = 1;
25116 rm -f conftest.$ac_objext
25117 if { (ac_try="$ac_compile"
25118 case "(($ac_try" in
25119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25120 *) ac_try_echo
=$ac_try;;
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123 (eval "$ac_compile") 2>conftest.er1
25125 grep -v '^ *+' conftest.er1
>conftest.err
25127 cat conftest.err
>&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && {
25130 test -z "$ac_c_werror_flag" ||
25131 test ! -s conftest.err
25132 } && test -s conftest.
$ac_objext; then
25133 ac_cv_stat_tv_nsec
=yes
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.
$ac_ext >&5
25138 ac_cv_stat_tv_nsec
=no
25141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25144 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25145 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25146 if test "$ac_cv_stat_tv_nsec" = yes
25149 cat >>confdefs.h
<<\_ACEOF
25150 #define HAVE_STAT_TV_NSEC 1
25155 # Look for BSD style subsecond timestamps in struct stat
25156 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25157 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25158 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25159 echo $ECHO_N "(cached) $ECHO_C" >&6
25161 cat >conftest.
$ac_ext <<_ACEOF
25164 cat confdefs.h
>>conftest.
$ac_ext
25165 cat >>conftest.
$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25167 #include <sys/stat.h>
25173 st.st_mtimespec.tv_nsec = 1;
25179 rm -f conftest.
$ac_objext
25180 if { (ac_try
="$ac_compile"
25181 case "(($ac_try" in
25182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186 (eval "$ac_compile") 2>conftest.er1
25188 grep -v '^ *+' conftest.er1 >conftest.err
25190 cat conftest.err >&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } && {
25193 test -z "$ac_c_werror_flag" ||
25194 test ! -s conftest.err
25195 } && test -s conftest.$ac_objext; then
25196 ac_cv_stat_tv_nsec2=yes
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25201 ac_cv_stat_tv_nsec2=no
25204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25207 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25208 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25209 if test "$ac_cv_stat_tv_nsec2" = yes
25212 cat >>confdefs.h <<\_ACEOF
25213 #define HAVE_STAT_TV_NSEC2 1
25218 # On HP/UX 11.0, mvwdelch is a block with a return statement
25219 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25220 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25221 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25222 echo $ECHO_N "(cached) $ECHO_C" >&6
25224 cat >conftest.$ac_ext <<_ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h. */
25230 #include <curses.h>
25236 rtn = mvwdelch(0,0,0);
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_mvwdelch_is_expression
=yes
25261 echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.
$ac_ext >&5
25264 ac_cv_mvwdelch_is_expression
=no
25267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25270 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25271 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25273 if test "$ac_cv_mvwdelch_is_expression" = yes
25276 cat >>confdefs.h
<<\_ACEOF
25277 #define MVWDELCH_IS_EXPRESSION 1
25282 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25283 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25284 if test "${ac_cv_window_has_flags+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 cat >conftest.
$ac_ext <<_ACEOF
25290 cat confdefs.h
>>conftest.
$ac_ext
25291 cat >>conftest.
$ac_ext <<_ACEOF
25292 /* end confdefs.h. */
25293 #include <curses.h>
25305 rm -f conftest.
$ac_objext
25306 if { (ac_try
="$ac_compile"
25307 case "(($ac_try" in
25308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_compile") 2>conftest.er1
25314 grep -v '^ *+' conftest.er1 >conftest.err
25316 cat conftest.err >&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } && {
25319 test -z "$ac_c_werror_flag" ||
25320 test ! -s conftest.err
25321 } && test -s conftest.$ac_objext; then
25322 ac_cv_window_has_flags=yes
25324 echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25327 ac_cv_window_has_flags=no
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25334 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25337 if test "$ac_cv_window_has_flags" = yes
25340 cat >>confdefs.h <<\_ACEOF
25341 #define WINDOW_HAS_FLAGS 1
25346 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25347 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25348 cat >conftest.$ac_ext <<_ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 #include <curses.h>
25358 void *x=is_term_resized
25363 rm -f conftest.$ac_objext
25364 if { (ac_try="$ac_compile"
25365 case "(($ac_try" in
25366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25367 *) ac_try_echo
=$ac_try;;
25369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 (eval "$ac_compile") 2>conftest.er1
25372 grep -v '^ *+' conftest.er1
>conftest.err
25374 cat conftest.err
>&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && {
25377 test -z "$ac_c_werror_flag" ||
25378 test ! -s conftest.err
25379 } && test -s conftest.
$ac_objext; then
25381 cat >>confdefs.h
<<\_ACEOF
25382 #define HAVE_CURSES_IS_TERM_RESIZED 1
25385 { echo "$as_me:$LINENO: result: yes" >&5
25386 echo "${ECHO_T}yes" >&6; }
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.
$ac_ext >&5
25391 { echo "$as_me:$LINENO: result: no" >&5
25392 echo "${ECHO_T}no" >&6; }
25396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25398 { echo "$as_me:$LINENO: checking for resize_term" >&5
25399 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25400 cat >conftest.
$ac_ext <<_ACEOF
25403 cat confdefs.h
>>conftest.
$ac_ext
25404 cat >>conftest.
$ac_ext <<_ACEOF
25405 /* end confdefs.h. */
25406 #include <curses.h>
25410 void *x=resize_term
25415 rm -f conftest.
$ac_objext
25416 if { (ac_try
="$ac_compile"
25417 case "(($ac_try" in
25418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422 (eval "$ac_compile") 2>conftest.er1
25424 grep -v '^ *+' conftest.er1 >conftest.err
25426 cat conftest.err >&5
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } && {
25429 test -z "$ac_c_werror_flag" ||
25430 test ! -s conftest.err
25431 } && test -s conftest.$ac_objext; then
25433 cat >>confdefs.h <<\_ACEOF
25434 #define HAVE_CURSES_RESIZE_TERM 1
25437 { echo "$as_me:$LINENO: result: yes" >&5
25438 echo "${ECHO_T}yes" >&6; }
25440 echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25443 { echo "$as_me:$LINENO: result: no" >&5
25444 echo "${ECHO_T}no" >&6; }
25448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25451 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25452 cat >conftest.$ac_ext <<_ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h. */
25458 #include <curses.h>
25467 rm -f conftest.$ac_objext
25468 if { (ac_try="$ac_compile"
25469 case "(($ac_try" in
25470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25471 *) ac_try_echo
=$ac_try;;
25473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25474 (eval "$ac_compile") 2>conftest.er1
25476 grep -v '^ *+' conftest.er1
>conftest.err
25478 cat conftest.err
>&5
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); } && {
25481 test -z "$ac_c_werror_flag" ||
25482 test ! -s conftest.err
25483 } && test -s conftest.
$ac_objext; then
25485 cat >>confdefs.h
<<\_ACEOF
25486 #define HAVE_CURSES_RESIZETERM 1
25489 { echo "$as_me:$LINENO: result: yes" >&5
25490 echo "${ECHO_T}yes" >&6; }
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.
$ac_ext >&5
25495 { echo "$as_me:$LINENO: result: no" >&5
25496 echo "${ECHO_T}no" >&6; }
25500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25502 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25503 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25505 if test -r /dev
/ptmx
25507 { echo "$as_me:$LINENO: result: yes" >&5
25508 echo "${ECHO_T}yes" >&6; }
25510 cat >>confdefs.h
<<\_ACEOF
25511 #define HAVE_DEV_PTMX 1
25515 { echo "$as_me:$LINENO: result: no" >&5
25516 echo "${ECHO_T}no" >&6; }
25519 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25520 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25522 if test -r /dev
/ptc
25524 { echo "$as_me:$LINENO: result: yes" >&5
25525 echo "${ECHO_T}yes" >&6; }
25527 cat >>confdefs.h
<<\_ACEOF
25528 #define HAVE_DEV_PTC 1
25532 { echo "$as_me:$LINENO: result: no" >&5
25533 echo "${ECHO_T}no" >&6; }
25536 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25537 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25538 if test "$cross_compiling" = yes; then
25539 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25540 See \`config.log' for more details." >&5
25541 echo "$as_me: error: cannot run test program while cross compiling
25542 See \`config.log' for more details." >&2;}
25543 { (exit 1); exit 1; }; }
25545 cat >conftest.
$ac_ext <<_ACEOF
25548 cat confdefs.h
>>conftest.
$ac_ext
25549 cat >>conftest.
$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25552 #include <stddef.h>
25553 #include <string.h>
25555 #ifdef HAVE_SYS_TYPES_H
25556 #include <sys/types.h>
25559 #ifdef HAVE_SSIZE_T
25560 typedef ssize_t Py_ssize_t;
25561 #elif SIZEOF_VOID_P == SIZEOF_LONG
25562 typedef long Py_ssize_t;
25564 typedef int Py_ssize_t;
25571 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25574 if (strcmp(buffer, "123"))
25577 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25580 if (strcmp(buffer, "-123"))
25586 rm -f conftest
$ac_exeext
25587 if { (ac_try
="$ac_link"
25588 case "(($ac_try" in
25589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25590 *) ac_try_echo=$ac_try;;
25592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593 (eval "$ac_link") 2>&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25597 { (case "(($ac_try" in
25598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25599 *) ac_try_echo
=$ac_try;;
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_try") 2>&5
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); }; }; then
25606 { echo "$as_me:$LINENO: result: yes" >&5
25607 echo "${ECHO_T}yes" >&6; }
25609 cat >>confdefs.h
<<\_ACEOF
25610 #define PY_FORMAT_SIZE_T "z"
25614 echo "$as_me: program exited with status $ac_status" >&5
25615 echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.
$ac_ext >&5
25618 ( exit $ac_status )
25619 { echo "$as_me:$LINENO: result: no" >&5
25620 echo "${ECHO_T}no" >&6; }
25622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25627 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25628 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25629 if test "${ac_cv_type_socklen_t+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 cat >conftest.
$ac_ext <<_ACEOF
25635 cat confdefs.h
>>conftest.
$ac_ext
25636 cat >>conftest.
$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25639 #ifdef HAVE_SYS_TYPES_H
25640 #include <sys/types.h>
25642 #ifdef HAVE_SYS_SOCKET_H
25643 #include <sys/socket.h>
25647 typedef socklen_t ac__type_new_;
25651 if ((ac__type_new_ *) 0)
25653 if (sizeof (ac__type_new_))
25659 rm -f conftest.
$ac_objext
25660 if { (ac_try
="$ac_compile"
25661 case "(($ac_try" in
25662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25663 *) ac_try_echo=$ac_try;;
25665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25666 (eval "$ac_compile") 2>conftest.er1
25668 grep -v '^ *+' conftest.er1 >conftest.err
25670 cat conftest.err >&5
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); } && {
25673 test -z "$ac_c_werror_flag" ||
25674 test ! -s conftest.err
25675 } && test -s conftest.$ac_objext; then
25676 ac_cv_type_socklen_t=yes
25678 echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25681 ac_cv_type_socklen_t=no
25684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25686 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25687 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25688 if test $ac_cv_type_socklen_t = yes; then
25692 cat >>confdefs.h <<\_ACEOF
25693 #define socklen_t int
25699 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25700 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25701 if test "$cross_compiling" = yes; then
25702 ac_cv_broken_mbstowcs=no
25704 cat >conftest.$ac_ext <<_ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25714 const char *str = "text";
25715 len = mbstowcs(NULL, str, 0);
25720 rm -f conftest$ac_exeext
25721 if { (ac_try="$ac_link"
25722 case "(($ac_try" in
25723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25724 *) ac_try_echo
=$ac_try;;
25726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25727 (eval "$ac_link") 2>&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25731 { (case "(($ac_try" in
25732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736 (eval "$ac_try") 2>&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); }; }; then
25740 ac_cv_broken_mbstowcs=no
25742 echo "$as_me: program exited with status $ac_status" >&5
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25746 ( exit $ac_status )
25747 ac_cv_broken_mbstowcs=yes
25749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25753 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25754 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25755 if test "$ac_cv_broken_mbstowcs" = yes
25758 cat >>confdefs.h <<\_ACEOF
25759 #define HAVE_BROKEN_MBSTOWCS 1
25764 # Check for --with-computed-gotos
25765 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25766 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25768 # Check whether --with-computed-gotos was given.
25769 if test "${with_computed_gotos+set}" = set; then
25770 withval=$with_computed_gotos;
25771 if test "$withval" != no
25774 cat >>confdefs.h <<\_ACEOF
25775 #define USE_COMPUTED_GOTOS 1
25778 { echo "$as_me:$LINENO: result: yes" >&5
25779 echo "${ECHO_T}yes" >&6; }
25780 else { echo "$as_me:$LINENO: result: no" >&5
25781 echo "${ECHO_T}no" >&6; }
25784 { echo "$as_me:$LINENO: result: no" >&5
25785 echo "${ECHO_T}no" >&6; }
25789 if test $ac_sys_system = Darwin
25791 LIBS="$LIBS -framework CoreFoundation"
25798 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25800 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25804 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25805 { echo "$as_me:$LINENO: checking for build directories" >&5
25806 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25807 for dir in $SRCDIRS; do
25808 if test ! -d $dir; then
25812 { echo "$as_me:$LINENO: result: done" >&5
25813 echo "${ECHO_T}done" >&6; }
25815 # generate output files
25816 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25818 cat >confcache <<\_ACEOF
25819 # This file is a shell script that caches the results of configure
25820 # tests run on this system so they can be shared between configure
25821 # scripts and configure runs, see configure's option --config-cache.
25822 # It is not useful on other systems. If it contains results you don't
25823 # want to keep, you may remove or edit it.
25825 # config.status only pays attention to the cache file if you give it
25826 # the --recheck option to rerun configure.
25828 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25830 # following values.
25834 # The following way of writing the cache mishandles newlines in values,
25835 # but we know of no workaround that is simple, portable, and efficient.
25836 # So, we kill variables containing newlines.
25837 # Ultrix sh set writes to stderr and can't be redirected directly,
25838 # and sets the high bit in the cache file unless we assign to the vars.
25840 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25841 eval ac_val
=\$
$ac_var
25845 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25846 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25849 _ | IFS | as_nl
) ;; #(
25850 *) $as_unset $ac_var ;;
25856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25857 *${as_nl}ac_space
=\
*)
25858 # `set' does not quote correctly, so add quotes (double-quote
25859 # substitution turns \\\\ into \\, and sed turns \\ into \).
25862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25865 # `set' quotes correctly as required by POSIX, so do not add quotes.
25866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25879 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25880 if test -w "$cache_file"; then
25881 test "x$cache_file" != "x/dev/null" &&
25882 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25883 echo "$as_me: updating cache $cache_file" >&6;}
25884 cat confcache
>$cache_file
25886 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25887 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25892 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25893 # Let make expand exec_prefix.
25894 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25896 DEFS
=-DHAVE_CONFIG_H
25900 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25901 # 1. Remove the extension, and $U if already installed.
25902 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25903 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25905 # will be set to the directory where LIBOBJS objects are built.
25906 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25907 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25909 LIBOBJS
=$ac_libobjs
25911 LTLIBOBJS
=$ac_ltlibobjs
25915 : ${CONFIG_STATUS=./config.status}
25916 ac_clean_files_save
=$ac_clean_files
25917 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25920 cat >$CONFIG_STATUS <<_ACEOF
25922 # Generated by $as_me.
25923 # Run this file to recreate the current configuration.
25924 # Compiler output produced by configure, useful for debugging
25925 # configure, is in config.log if it exists.
25928 ac_cs_recheck=false
25930 SHELL=\${CONFIG_SHELL-$SHELL}
25933 cat >>$CONFIG_STATUS <<\_ACEOF
25934 ## --------------------- ##
25935 ## M4sh Initialization. ##
25936 ## --------------------- ##
25938 # Be more Bourne compatible
25939 DUALCASE
=1; export DUALCASE
# for MKS sh
25940 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25943 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25944 # is contrary to our usage. Disable this feature.
25945 alias -g '${1+"$@"}'='"$@"'
25946 setopt NO_GLOB_SUBST
25948 case `(set -o) 2>/dev/null` in
25949 *posix
*) set -o posix
;;
25958 # Avoid depending upon Character Ranges.
25959 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25960 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25961 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25962 as_cr_digits
='0123456789'
25963 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25965 # The user is always right.
25966 if test "${PATH_SEPARATOR+set}" != set; then
25967 echo "#! /bin/sh" >conf$$.sh
25968 echo "exit 0" >>conf$$.sh
25970 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25978 # Support unset when possible.
25979 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25987 # We need space, tab and new line, in precisely that order. Quoting is
25988 # there to prevent editors from complaining about space-tab.
25989 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25990 # splitting by setting IFS to empty value.)
25995 # Find who we are. Look in the path if we contain no directory separator.
25997 *[\\/]* ) as_myself
=$0 ;;
25998 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25999 for as_dir
in $PATH
26002 test -z "$as_dir" && as_dir
=.
26003 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26009 # We did not find ourselves, most probably we were run as `sh COMMAND'
26010 # in which case we are not to be found in the path.
26011 if test "x$as_myself" = x
; then
26014 if test ! -f "$as_myself"; then
26015 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26016 { (exit 1); exit 1; }
26019 # Work around bugs in pre-3.0 UWIN ksh.
26020 for as_var
in ENV MAIL MAILPATH
26021 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26029 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26030 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26031 LC_TELEPHONE LC_TIME
26033 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26034 eval $as_var=C
; export $as_var
26036 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26040 # Required to use basename.
26041 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26042 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26048 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26049 as_basename
=basename
26055 # Name of the executable.
26056 as_me
=`$as_basename -- "$0" ||
26057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26058 X"$0" : 'X\(//\)$' \| \
26059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26061 sed '/^.*\/\([^/][^/]*\)\/*$/{
26080 as_lineno_1
=$LINENO
26081 as_lineno_2
=$LINENO
26082 test "x$as_lineno_1" != "x$as_lineno_2" &&
26083 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26085 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26086 # uniformly replaced by the line number. The first 'sed' inserts a
26087 # line-number line after each line using $LINENO; the second 'sed'
26088 # does the real work. The second script uses 'N' to pair each
26089 # line-number line with the line containing $LINENO, and appends
26090 # trailing '-' during substitution so that $LINENO is not a special
26091 # case at line end.
26092 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26093 # scripts with optimization help from Paolo Bonzini. Blame Lee
26094 # E. McMahon (1931-1989) for sed's syntax. :-)
26106 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26109 ' >$as_me.lineno
&&
26110 chmod +x
"$as_me.lineno" ||
26111 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26112 { (exit 1); exit 1; }; }
26114 # Don't try to exec as it changes $[0], causing all sort of problems
26115 # (the dirname of $[0] is not the place where we might find the
26116 # original and so on. Autoconf is especially sensitive to this).
26117 .
"./$as_me.lineno"
26118 # Exit status is that of the last command.
26123 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26129 ECHO_C
= ECHO_N
= ECHO_T
=
26130 case `echo -n x` in
26132 case `echo 'x\c'` in
26133 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26140 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26141 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26147 rm -f conf$$ conf$$.exe conf$$.
file
26148 if test -d conf$$.dir
; then
26149 rm -f conf$$.dir
/conf$$.
file
26155 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26157 # ... but there are two gotchas:
26158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26160 # In both cases, we have to default to `cp -p'.
26161 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26163 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26168 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26169 rmdir conf$$.dir
2>/dev
/null
26171 if mkdir
-p .
2>/dev
/null
; then
26174 test -d .
/-p && rmdir .
/-p
26178 if test -x / >/dev
/null
2>&1; then
26179 as_test_x
='test -x'
26181 if ls -dL / >/dev
/null
2>&1; then
26188 if test -d "$1"; then
26194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26195 ???[sx]*):;;*)false;;esac;fi
26199 as_executable_p
=$as_test_x
26201 # Sed expression to map a string onto a valid CPP name.
26202 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26204 # Sed expression to map a string onto a valid variable name.
26205 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26210 # Save the log message, to keep $[0] and so on meaningful, and to
26211 # report actual input values of CONFIG_FILES etc. instead of their
26212 # values after options handling.
26214 This file was extended by python $as_me 3.1, which was
26215 generated by GNU Autoconf 2.61. Invocation command line was
26217 CONFIG_FILES = $CONFIG_FILES
26218 CONFIG_HEADERS = $CONFIG_HEADERS
26219 CONFIG_LINKS = $CONFIG_LINKS
26220 CONFIG_COMMANDS = $CONFIG_COMMANDS
26223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26228 cat >>$CONFIG_STATUS <<_ACEOF
26229 # Files that config.status was made for.
26230 config_files="$ac_config_files"
26231 config_headers="$ac_config_headers"
26235 cat >>$CONFIG_STATUS <<\_ACEOF
26237 \`$as_me' instantiates files from templates according to the
26238 current configuration.
26240 Usage: $0 [OPTIONS] [FILE]...
26242 -h, --help print this help, then exit
26243 -V, --version print version number and configuration settings, then exit
26244 -q, --quiet do not print progress messages
26245 -d, --debug don't remove temporary files
26246 --recheck update $as_me by reconfiguring in the same conditions
26247 --file=FILE[:TEMPLATE]
26248 instantiate the configuration file FILE
26249 --header=FILE[:TEMPLATE]
26250 instantiate the configuration header FILE
26252 Configuration files:
26255 Configuration headers:
26258 Report bugs to <bug-autoconf@gnu.org>."
26261 cat >>$CONFIG_STATUS <<_ACEOF
26263 python config.status 3.1
26264 configured by $0, generated by GNU Autoconf 2.61,
26265 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26267 Copyright (C) 2006 Free Software Foundation, Inc.
26268 This config.status script is free software; the Free Software Foundation
26269 gives unlimited permission to copy, distribute and modify it."
26276 cat >>$CONFIG_STATUS <<\_ACEOF
26277 # If no file are specified by the user, then we need to provide default
26278 # value. By we need to know if files were specified by the user.
26284 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26285 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26296 # Handling of the options.
26297 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26299 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26300 echo "$ac_cs_version"; exit ;;
26301 --debug |
--debu |
--deb |
--de |
--d |
-d )
26303 --file |
--fil |
--fi |
--f )
26305 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26306 ac_need_defaults
=false
;;
26307 --header |
--heade |
--head |
--hea )
26309 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26310 ac_need_defaults
=false
;;
26312 # Conflict between --help and --header
26313 { echo "$as_me: error: ambiguous option: $1
26314 Try \`$0 --help' for more information." >&2
26315 { (exit 1); exit 1; }; };;
26316 --help |
--hel |
-h )
26317 echo "$ac_cs_usage"; exit ;;
26318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26319 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26322 # This is an error.
26323 -*) { echo "$as_me: error: unrecognized option: $1
26324 Try \`$0 --help' for more information." >&2
26325 { (exit 1); exit 1; }; } ;;
26327 *) ac_config_targets
="$ac_config_targets $1"
26328 ac_need_defaults
=false
;;
26334 ac_configure_extra_args
=
26336 if $ac_cs_silent; then
26338 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26342 cat >>$CONFIG_STATUS <<_ACEOF
26343 if \$ac_cs_recheck; then
26344 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26345 CONFIG_SHELL=$SHELL
26346 export CONFIG_SHELL
26347 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26351 cat >>$CONFIG_STATUS <<\_ACEOF
26355 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26356 ## Running $as_me. ##
26362 cat >>$CONFIG_STATUS <<_ACEOF
26365 cat >>$CONFIG_STATUS <<\_ACEOF
26367 # Handling of arguments.
26368 for ac_config_target
in $ac_config_targets
26370 case $ac_config_target in
26371 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
26372 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
26373 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26374 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26375 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26376 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
26377 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
26378 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
26380 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26381 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26382 { (exit 1); exit 1; }; };;
26387 # If the user did not use the arguments to specify the items to instantiate,
26388 # then the envvar interface is used. Set only those that are not.
26389 # We use the long form for the default assignment because of an extremely
26390 # bizarre bug on SunOS 4.1.3.
26391 if $ac_need_defaults; then
26392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26396 # Have a temporary directory for convenience. Make it in the build tree
26397 # simply because there is no reason against having it here, and in addition,
26398 # creating and moving files from /tmp can sometimes cause problems.
26399 # Hook for its removal unless debugging.
26400 # Note that there is a small window in which the directory will not be cleaned:
26401 # after its creation but before its name has been assigned to `$tmp'.
26405 trap 'exit_status=$?
26406 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26408 trap '{ (exit 1); exit 1; }' 1 2 13 15
26410 # Create a (secure) tmp directory for tmp files.
26413 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26414 test -n "$tmp" && test -d "$tmp"
26417 tmp
=.
/conf$$
-$RANDOM
26418 (umask 077 && mkdir
"$tmp")
26421 echo "$me: cannot create a temporary directory in ." >&2
26422 { (exit 1); exit 1; }
26426 # Set up the sed scripts for CONFIG_FILES section.
26429 # No need to generate the scripts if there are no CONFIG_FILES.
26430 # This happens for instance when ./config.status config.h
26431 if test -n "$CONFIG_FILES"; then
26438 for ac_last_try
in false false false false false
:; do
26439 cat >conf$
$subs.
sed <<_ACEOF
26440 SHELL!$SHELL$ac_delim
26441 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26442 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26443 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26444 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26445 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26446 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26447 exec_prefix!$exec_prefix$ac_delim
26448 prefix!$prefix$ac_delim
26449 program_transform_name!$program_transform_name$ac_delim
26450 bindir!$bindir$ac_delim
26451 sbindir!$sbindir$ac_delim
26452 libexecdir!$libexecdir$ac_delim
26453 datarootdir!$datarootdir$ac_delim
26454 datadir!$datadir$ac_delim
26455 sysconfdir!$sysconfdir$ac_delim
26456 sharedstatedir!$sharedstatedir$ac_delim
26457 localstatedir!$localstatedir$ac_delim
26458 includedir!$includedir$ac_delim
26459 oldincludedir!$oldincludedir$ac_delim
26460 docdir!$docdir$ac_delim
26461 infodir!$infodir$ac_delim
26462 htmldir!$htmldir$ac_delim
26463 dvidir!$dvidir$ac_delim
26464 pdfdir!$pdfdir$ac_delim
26465 psdir!$psdir$ac_delim
26466 libdir!$libdir$ac_delim
26467 localedir!$localedir$ac_delim
26468 mandir!$mandir$ac_delim
26469 DEFS!$DEFS$ac_delim
26470 ECHO_C!$ECHO_C$ac_delim
26471 ECHO_N!$ECHO_N$ac_delim
26472 ECHO_T!$ECHO_T$ac_delim
26473 LIBS!$LIBS$ac_delim
26474 build_alias!$build_alias$ac_delim
26475 host_alias!$host_alias$ac_delim
26476 target_alias!$target_alias$ac_delim
26477 VERSION!$VERSION$ac_delim
26478 SOVERSION!$SOVERSION$ac_delim
26479 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26480 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26481 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26482 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26483 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26484 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26485 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26486 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26487 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26488 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26489 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26490 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26491 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26492 MACHDEP!$MACHDEP$ac_delim
26493 SGI_ABI!$SGI_ABI$ac_delim
26494 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26495 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26497 CFLAGS!$CFLAGS$ac_delim
26498 LDFLAGS!$LDFLAGS$ac_delim
26499 CPPFLAGS!$CPPFLAGS$ac_delim
26500 ac_ct_CC!$ac_ct_CC$ac_delim
26501 EXEEXT!$EXEEXT$ac_delim
26502 OBJEXT!$OBJEXT$ac_delim
26504 MAINCC!$MAINCC$ac_delim
26506 GREP!$GREP$ac_delim
26507 EGREP!$EGREP$ac_delim
26508 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26509 LIBRARY!$LIBRARY$ac_delim
26510 LDLIBRARY!$LDLIBRARY$ac_delim
26511 DLLLIBRARY!$DLLLIBRARY$ac_delim
26512 BLDLIBRARY!$BLDLIBRARY$ac_delim
26513 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26514 INSTSONAME!$INSTSONAME$ac_delim
26515 RUNSHARED!$RUNSHARED$ac_delim
26516 LINKCC!$LINKCC$ac_delim
26517 GNULD!$GNULD$ac_delim
26518 RANLIB!$RANLIB$ac_delim
26520 ARFLAGS!$ARFLAGS$ac_delim
26521 SVNVERSION!$SVNVERSION$ac_delim
26522 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26523 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26524 INSTALL_DATA!$INSTALL_DATA$ac_delim
26527 BASECFLAGS!$BASECFLAGS$ac_delim
26528 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26529 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26530 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26532 LDSHARED!$LDSHARED$ac_delim
26533 BLDSHARED!$BLDSHARED$ac_delim
26534 CCSHARED!$CCSHARED$ac_delim
26535 LINKFORSHARED!$LINKFORSHARED$ac_delim
26536 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26539 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26541 elif $ac_last_try; then
26542 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26543 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26544 { (exit 1); exit 1; }; }
26546 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26550 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26551 if test -n "$ac_eof"; then
26552 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26553 ac_eof
=`expr $ac_eof + 1`
26556 cat >>$CONFIG_STATUS <<_ACEOF
26557 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26561 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26562 s/^/s,@/; s/!/@,|#_!!_#|/
26565 s/'"$ac_delim"'$/,g/; t
26567 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26568 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26569 rm -f conf$
$subs.
sed
26570 cat >>$CONFIG_STATUS <<_ACEOF
26576 for ac_last_try
in false false false false false
:; do
26577 cat >conf$
$subs.
sed <<_ACEOF
26578 SHLIBS!$SHLIBS$ac_delim
26579 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26580 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26581 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26582 LDLAST!$LDLAST$ac_delim
26583 THREADOBJ!$THREADOBJ$ac_delim
26584 DLINCLDIR!$DLINCLDIR$ac_delim
26585 DYNLOADFILE!$DYNLOADFILE$ac_delim
26586 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26587 TRUE!$TRUE$ac_delim
26588 LIBOBJS!$LIBOBJS$ac_delim
26589 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26590 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26591 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26592 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26593 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26594 LIBM!$LIBM$ac_delim
26595 LIBC!$LIBC$ac_delim
26596 THREADHEADERS!$THREADHEADERS$ac_delim
26597 SRCDIRS!$SRCDIRS$ac_delim
26598 LTLIBOBJS!$LTLIBOBJS$ac_delim
26601 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26603 elif $ac_last_try; then
26604 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26605 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26606 { (exit 1); exit 1; }; }
26608 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26612 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26613 if test -n "$ac_eof"; then
26614 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26615 ac_eof
=`expr $ac_eof + 1`
26618 cat >>$CONFIG_STATUS <<_ACEOF
26619 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26623 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26624 s/^/s,@/; s/!/@,|#_!!_#|/
26627 s/'"$ac_delim"'$/,g/; t
26629 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26630 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26631 rm -f conf$
$subs.
sed
26632 cat >>$CONFIG_STATUS <<_ACEOF
26639 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26640 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26641 # trailing colons and then remove the whole line if VPATH becomes empty
26642 # (actually we leave an empty line to preserve line numbers).
26643 if test "x$srcdir" = x.
; then
26644 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26645 s/:*\$(srcdir):*/:/
26646 s/:*\${srcdir}:*/:/
26648 s/^\([^=]*=[ ]*\):*/\1/
26654 cat >>$CONFIG_STATUS <<\_ACEOF
26655 fi # test -n "$CONFIG_FILES"
26658 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26661 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26663 case $ac_mode$ac_tag in
26665 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26666 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26667 { (exit 1); exit 1; }; };;
26668 :[FH
]-) ac_tag
=-:-;;
26669 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26686 -) ac_f
="$tmp/stdin";;
26687 *) # Look for the file first in the build tree, then in the source tree
26688 # (if the path is not absolute). The absolute path cannot be DOS-style,
26689 # because $ac_f cannot contain `:'.
26693 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26695 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26696 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26697 { (exit 1); exit 1; }; };;
26699 ac_file_inputs
="$ac_file_inputs $ac_f"
26702 # Let's still pretend it is `configure' which instantiates (i.e., don't
26703 # use $as_me), people would be surprised to read:
26704 # /* config.h. Generated by config.status. */
26705 configure_input
="Generated from "`IFS=:
26706 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26707 if test x
"$ac_file" != x-
; then
26708 configure_input
="$ac_file. $configure_input"
26709 { echo "$as_me:$LINENO: creating $ac_file" >&5
26710 echo "$as_me: creating $ac_file" >&6;}
26714 *:-:* |
*:-) cat >"$tmp/stdin";;
26719 ac_dir
=`$as_dirname -- "$ac_file" ||
26720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26721 X"$ac_file" : 'X\(//\)[^/]' \| \
26722 X"$ac_file" : 'X\(//\)$' \| \
26723 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26729 /^X\(\/\/\)[^/].*/{
26744 -*) as_dir
=.
/$as_dir;;
26746 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26750 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26751 *) as_qdir
=$as_dir;;
26753 as_dirs
="'$as_qdir' $as_dirs"
26754 as_dir
=`$as_dirname -- "$as_dir" ||
26755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26756 X"$as_dir" : 'X\(//\)[^/]' \| \
26757 X"$as_dir" : 'X\(//\)$' \| \
26758 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26764 /^X\(\/\/\)[^/].*/{
26777 test -d "$as_dir" && break
26779 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26780 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26781 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26782 { (exit 1); exit 1; }; }; }
26786 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26788 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26789 # A ".." for each directory in $ac_dir_suffix.
26790 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26791 case $ac_top_builddir_sub in
26792 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26793 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26796 ac_abs_top_builddir
=$ac_pwd
26797 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26798 # for backward compatibility:
26799 ac_top_builddir
=$ac_top_build_prefix
26802 .
) # We are building in place.
26804 ac_top_srcdir
=$ac_top_builddir_sub
26805 ac_abs_top_srcdir
=$ac_pwd ;;
26806 [\\/]* | ?
:[\\/]* ) # Absolute name.
26807 ac_srcdir
=$srcdir$ac_dir_suffix;
26808 ac_top_srcdir
=$srcdir
26809 ac_abs_top_srcdir
=$srcdir ;;
26810 *) # Relative name.
26811 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26812 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26813 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26815 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26825 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26826 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26830 cat >>$CONFIG_STATUS <<\_ACEOF
26831 # If the template does not know about datarootdir, expand it.
26832 # FIXME: This hack should be removed a few years after 2.60.
26833 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26835 case `sed -n '/datarootdir/ {
26844 ' $ac_file_inputs` in
26845 *datarootdir
*) ac_datarootdir_seen
=yes;;
26846 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26847 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26848 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26850 cat >>$CONFIG_STATUS <<_ACEOF
26851 ac_datarootdir_hack='
26852 s&@datadir@&$datadir&g
26853 s&@docdir@&$docdir&g
26854 s&@infodir@&$infodir&g
26855 s&@localedir@&$localedir&g
26856 s&@mandir@&$mandir&g
26857 s&\\\${datarootdir}&$datarootdir&g' ;;
26861 # Neutralize VPATH when `$srcdir' = `.'.
26862 # Shell code in configure.ac might set extrasub.
26863 # FIXME: do we really want to maintain this feature?
26864 cat >>$CONFIG_STATUS <<_ACEOF
26868 cat >>$CONFIG_STATUS <<\_ACEOF
26870 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26871 s
&@configure_input@
&$configure_input&;t t
26872 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26873 s
&@srcdir@
&$ac_srcdir&;t t
26874 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26875 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26876 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26877 s
&@builddir@
&$ac_builddir&;t t
26878 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26879 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26880 s
&@INSTALL@
&$ac_INSTALL&;t t
26881 $ac_datarootdir_hack
26882 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26884 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26885 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26886 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26887 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26888 which seems to be undefined. Please make sure it is defined." >&5
26889 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26890 which seems to be undefined. Please make sure it is defined." >&2;}
26894 -) cat "$tmp/out"; rm -f "$tmp/out";;
26895 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26904 # Transform confdefs.h into a sed script `conftest.defines', that
26905 # substitutes the proper values into config.h.in to produce config.h.
26906 rm -f conftest.defines conftest.
tail
26907 # First, append a space to every undef/define line, to ease matching.
26908 echo 's/$/ /' >conftest.defines
26909 # Then, protect against being on the right side of a sed subst, or in
26910 # an unquoted here document, in config.status. If some macros were
26911 # called several times there might be several #defines for the same
26912 # symbol, which is useless. But do not sort them, since the last
26913 # AC_DEFINE must be honored.
26914 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26915 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26916 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26917 # PARAMS is the parameter list in the macro definition--in most cases, it's
26918 # just an empty string.
26919 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26920 ac_dB
='\\)[ (].*,\\1define\\2'
26928 s/^[ ]*#[ ]*define[ ][ ]*//
26933 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26934 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26935 ' >>conftest.defines
26937 # Remove the space that was appended to ease matching.
26938 # Then replace #undef with comments. This is necessary, for
26939 # example, in the case of _POSIX_SOURCE, which is predefined and required
26940 # on some systems where configure will not decide to define it.
26941 # (The regexp can be short, since the line contains either #define or #undef.)
26943 s,^[ #]*u.*,/* & */,' >>conftest.defines
26945 # Break up conftest.defines:
26946 ac_max_sed_lines
=50
26948 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26949 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26950 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26952 ac_in
='$ac_file_inputs'
26953 ac_out
='"$tmp/out1"'
26954 ac_nxt
='"$tmp/out2"'
26958 # Write a here document:
26959 cat >>$CONFIG_STATUS <<_ACEOF
26960 # First, check the format of the line:
26961 cat >"\$tmp/defines.sed" <<\\CEOF
26962 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26963 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26967 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26969 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26970 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26971 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26972 grep . conftest.
tail >/dev
/null ||
break
26973 rm -f conftest.defines
26974 mv conftest.
tail conftest.defines
26976 rm -f conftest.defines conftest.
tail
26978 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26979 cat >>$CONFIG_STATUS <<\_ACEOF
26980 if test x
"$ac_file" != x-
; then
26981 echo "/* $configure_input */" >"$tmp/config.h"
26982 cat "$ac_result" >>"$tmp/config.h"
26983 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26984 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26985 echo "$as_me: $ac_file is unchanged" >&6;}
26988 mv "$tmp/config.h" $ac_file
26991 echo "/* $configure_input */"
27003 { (exit 0); exit 0; }
27005 chmod +x
$CONFIG_STATUS
27006 ac_clean_files
=$ac_clean_files_save
27009 # configure is writing to config.log, and then calls config.status.
27010 # config.status does its own redirection, appending to config.log.
27011 # Unfortunately, on DOS this fails, as config.log is still kept open
27012 # by configure, so config.status won't be able to write to it; its
27013 # output is simply discarded. So we exec the FD to /dev/null,
27014 # effectively closing config.log, so it can be properly (re)opened and
27015 # appended to by config.status. When coming back to configure, we
27016 # need to make the FD available again.
27017 if test "$no_create" != yes; then
27019 ac_config_status_args
=
27020 test "$silent" = yes &&
27021 ac_config_status_args
="$ac_config_status_args --quiet"
27023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27026 # would make configure fail if this is the last instruction.
27027 $ac_cs_success ||
{ (exit 1); exit 1; }
27031 echo "creating Modules/Setup"
27032 if test ! -f Modules
/Setup
27034 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27037 echo "creating Modules/Setup.local"
27038 if test ! -f Modules
/Setup.
local
27040 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27043 echo "creating Makefile"
27044 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27045 -s Modules Modules
/Setup.config \
27046 Modules
/Setup.
local Modules
/Setup
27047 mv config.c Modules