2 # From configure.in Revision: 79117 .
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
664 PYTHONFRAMEWORKIDENTIFIER
666 PYTHONFRAMEWORKPREFIX
667 PYTHONFRAMEWORKINSTALLDIR
668 FRAMEWORKINSTALLFIRST
670 FRAMEWORKALTINSTALLFIRST
671 FRAMEWORKALTINSTALLLAST
672 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
740 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures python 3.1 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive
) echo "Configuration of python 3.1:";;
1317 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1318 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1319 --enable-universalsdk[=SDKDIR
]
1320 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1321 --enable-framework[=INSTALLDIR
]
1322 Build
(MacOSX|Darwin
) framework
1323 --enable-shared disable
/enable building shared python library
1324 --enable-profiling enable C-level code profiling
1325 --enable-ipv6 Enable ipv6
(with ipv4
) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS
]
1328 use big digits
for Python longs
[BITS
=30]
1331 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1332 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1333 --with-universal-archs=ARCH
1334 select architectures
for universal build
("32-bit",
1335 "64-bit", "3-way", "intel" or
"all")
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with
--enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler
>
1341 compile main
() and link python executable with C
++
1343 --with-suffix=.exe
set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-dbmliborder=db1
:db2
:...
1348 order to check db backends
for dbm. Valid value is a
1349 colon separated string with the backend names
1350 `ndbm', `gdbm
' and `bdb'.
1351 --with-signal-module disable
/enable signal module
1352 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1353 --with(out
)-threads[=DIRECTORY
]
1354 disable
/enable thread support
1355 --with(out
)-thread[=DIRECTORY
]
1356 deprecated
; use
--with(out
)-threads
1357 --with-pth use GNU pth threading libraries
1358 --with(out
)-doc-strings disable
/enable documentation
strings
1359 --with(out
)-tsc enable
/disable timestamp counter profile
1360 --with(out
)-pymalloc disable
/enable specialized mallocs
1361 --with-wctype-functions use wctype.h functions
1362 --with-fpectl enable SIGFPE catching
1363 --with-libm=STRING math library
1364 --with-libc=STRING C library
1365 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1366 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1367 loop
(not available on all compilers
)
1369 Some influential environment variables
:
1370 CC C compiler
command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1373 nonstandard directory
<lib dir
>
1374 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1375 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1376 you have headers
in a nonstandard directory
<include dir
>
1379 Use these variables to override the choices made by
`configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to <http://bugs.python.org/>.
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1410 .) # We are building in place.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1443 python configure 3.1
1444 generated by GNU Autoconf 2.61
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1457 It was created by python $as_me 3.1, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1470 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1471 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1472 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1473 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1474 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1477 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1479 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1480 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1481 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1482 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1483 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1484 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1485 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_must_keep_next=false
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1529 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 -* ) ac_must_keep_next=true ;;
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1577 eval ac_val=\$$ac_var
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1591 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1611 for ac_var in $ac_subst_vars
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1621 if test -n "$ac_subst_files"; then
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1628 for ac_var in $ac_subst_files
1630 eval ac_val=\$$ac_var
1632 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 echo "$ac_var='\''$ac_val'\''"
1639 if test -s confdefs.h; then
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1665 # Predefined preprocessor variables.
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1730 # Check that the precious variables saved in the cache have kept the same
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1741 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1745 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1752 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1753 echo "$as_me: former value
: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1755 echo "$as_me: current value
: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1773 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1774 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 ac_config_headers="$ac_config_headers pyconfig.h"
1815 if test "$prefix" != "/"; then
1816 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1824 # We don't use PACKAGE_ variables, and they cause conflicts
1825 # with other autoconf-based packages that include Python.h
1826 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1828 mv confdefs.h.new confdefs.h
1836 # The later defininition of _XOPEN_SOURCE disables certain features
1837 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1839 cat >>confdefs.h <<\_ACEOF
1840 #define _GNU_SOURCE 1
1844 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1845 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1848 cat >>confdefs.h <<\_ACEOF
1849 #define _NETBSD_SOURCE 1
1853 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1854 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1857 cat >>confdefs.h <<\_ACEOF
1858 #define __BSD_VISIBLE 1
1862 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1863 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1865 cat >>confdefs.h <<\_ACEOF
1866 #define _BSD_TYPES 1
1870 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1871 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1874 cat >>confdefs.h <<\_ACEOF
1875 #define _DARWIN_C_SOURCE 1
1880 define_xopen_source=yes
1882 # Arguments passed to configure.
1884 CONFIG_ARGS="$ac_configure_args"
1886 { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
1887 echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1888 # Check whether --enable-universalsdk was given.
1889 if test "${enable_universalsdk+set}" = set; then
1890 enableval=$enable_universalsdk;
1893 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 if test ! -d "${enableval}"
1903 enable_universalsdk=
1906 UNIVERSALSDK=$enableval
1907 if test ! -d "${UNIVERSALSDK}"
1909 { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
1910 echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
1911 { (exit 1); exit 1; }; }
1920 enable_universalsdk=
1924 if test -n "${UNIVERSALSDK}"
1926 { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
1927 echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
1929 { echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6; }
1936 UNIVERSAL_ARCHS="32-bit"
1939 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1940 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1942 # Check whether --with-universal-archs was given.
1943 if test "${with_universal_archs+set}" = set; then
1944 withval=$with_universal_archs;
1945 { echo "$as_me:$LINENO: result: $withval" >&5
1946 echo "${ECHO_T}$withval" >&6; }
1947 UNIVERSAL_ARCHS="$withval"
1951 { echo "$as_me:$LINENO: result: 32-bit" >&5
1952 echo "${ECHO_T}32-bit" >&6; }
1960 # Check whether --with-framework-name was given.
1961 if test "${with_framework_name+set}" = set; then
1962 withval=$with_framework_name;
1963 PYTHONFRAMEWORK=${withval}
1964 PYTHONFRAMEWORKDIR=${withval}.framework
1965 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1969 PYTHONFRAMEWORK=Python
1970 PYTHONFRAMEWORKDIR=Python.framework
1971 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1975 # Check whether --enable-framework was given.
1976 if test "${enable_framework+set}" = set; then
1977 enableval=$enable_framework;
1980 enableval=/Library/Frameworks
1985 PYTHONFRAMEWORKDIR=no-framework
1986 PYTHONFRAMEWORKPREFIX=
1987 PYTHONFRAMEWORKINSTALLDIR=
1988 FRAMEWORKINSTALLFIRST=
1989 FRAMEWORKINSTALLLAST=
1990 FRAMEWORKALTINSTALLFIRST=
1991 FRAMEWORKALTINSTALLLAST=
1992 if test "x${prefix}" = "xNONE"; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2000 PYTHONFRAMEWORKPREFIX=$enableval
2001 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2002 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2003 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2004 case "${UNIVERSAL_ARCHS}" in
2006 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2007 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2010 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2011 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2015 if test "x${prefix}" = "xNONE" ; then
2016 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2018 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2020 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2022 # Add files for Mac specific code to the list of output
2024 ac_config_files="$ac_config_files Mac/Makefile"
2026 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2028 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2030 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2037 PYTHONFRAMEWORKDIR=no-framework
2038 PYTHONFRAMEWORKPREFIX=
2039 PYTHONFRAMEWORKINSTALLDIR=
2040 FRAMEWORKINSTALLFIRST=
2041 FRAMEWORKINSTALLLAST=
2042 FRAMEWORKALTINSTALLFIRST=
2043 FRAMEWORKALTINSTALLLAST=
2044 if test "x${prefix}" = "xNONE" ; then
2045 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2047 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2051 if test "$UNIVERSAL_ARCHS" = "all"
2053 FRAMEWORKINSTALLLAST=update4wayuniversal
2054 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2071 ## AC_HELP_STRING(--with-dyld,
2072 ## Use (OpenStep|Rhapsody) dynamic linker))
2074 # Set name for machine-dependent library files
2076 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2077 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2078 if test -z "$MACHDEP"
2080 ac_sys_system=`uname
-s`
2081 if test "$ac_sys_system" = "AIX" \
2082 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2083 ac_sys_release=`uname
-v`
2085 ac_sys_release=`uname
-r`
2087 ac_md_system=`echo $ac_sys_system |
2088 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2089 ac_md_release=`echo $ac_sys_release |
2090 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2091 MACHDEP="$ac_md_system$ac_md_release"
2094 cygwin*) MACHDEP="cygwin";;
2095 darwin*) MACHDEP="darwin";;
2096 atheos*) MACHDEP="atheos";;
2097 irix646) MACHDEP="irix6";;
2098 '') MACHDEP="unknown";;
2102 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2103 # disable features if it is defined, without any means to access these
2104 # features as extensions. For these systems, we skip the definition of
2105 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2106 # some feature, make sure there is no alternative way to access this
2107 # feature. Also, when using wildcards, make sure you have verified the
2108 # need for not defining _XOPEN_SOURCE on all systems matching the
2109 # wildcard, and that the wildcard does not include future systems
2110 # (which may remove their limitations).
2111 case $ac_sys_system/$ac_sys_release in
2112 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2113 # even though select is a POSIX function. Reported by J. Ribbens.
2114 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2115 # In addition, Stefan Krah confirms that issue #1244610 exists through
2116 # OpenBSD 4.6, but is fixed in 4.7.
2117 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2118 define_xopen_source=no
2119 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2120 # also defined. This can be overridden by defining _BSD_SOURCE
2121 # As this has a different meaning on Linux, only define it on OpenBSD
2123 cat >>confdefs.h <<\_ACEOF
2124 #define _BSD_SOURCE 1
2129 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2130 # also defined. This can be overridden by defining _BSD_SOURCE
2131 # As this has a different meaning on Linux, only define it on OpenBSD
2133 cat >>confdefs.h <<\_ACEOF
2134 #define _BSD_SOURCE 1
2138 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2139 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2141 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2142 define_xopen_source=no;;
2143 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2144 # of union __?sigval. Reported by Stuart Bishop.
2146 define_xopen_source=no;;
2147 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2148 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2149 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2150 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2151 define_xopen_source=no;;
2152 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2153 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2155 define_xopen_source=no;;
2156 # On FreeBSD 4, the math functions C89 does not cover are never defined
2157 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2159 define_xopen_source=no;;
2160 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2161 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2162 # identifies itself as Darwin/7.*
2163 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2164 # disables platform specific features beyond repair.
2165 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2166 # has no effect, don't bother defining them
2168 define_xopen_source=no;;
2170 define_xopen_source=no;;
2171 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2172 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2173 # or has another value. By not (re)defining it, the defaults come in place.
2175 define_xopen_source=no;;
2177 if test `uname
-r` -eq 1; then
2178 define_xopen_source=no
2181 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2182 # defining NI_NUMERICHOST.
2184 define_xopen_source=no
2189 if test $define_xopen_source = yes
2191 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2192 # defined precisely as g++ defines it
2193 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2195 case $ac_sys_system/$ac_sys_release in
2196 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2198 cat >>confdefs.h <<\_ACEOF
2199 #define _XOPEN_SOURCE 500
2205 cat >>confdefs.h <<\_ACEOF
2206 #define _XOPEN_SOURCE 600
2212 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2213 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2214 # several APIs are not declared. Since this is also needed in some
2215 # cases for HP-UX, we define it globally.
2216 # except for Solaris 10, where it must not be defined,
2217 # as it implies XPG4.2
2218 case $ac_sys_system/$ac_sys_release in
2223 cat >>confdefs.h <<\_ACEOF
2224 #define _XOPEN_SOURCE_EXTENDED 1
2231 cat >>confdefs.h <<\_ACEOF
2232 #define _POSIX_C_SOURCE 200112L
2239 # SGI compilers allow the specification of the both the ABI and the
2240 # ISA on the command line. Depending on the values of these switches,
2241 # different and often incompatable code will be generated.
2243 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2244 # thus supply support for various ABI/ISA combinations. The MACHDEP
2245 # variable is also adjusted.
2248 if test ! -z "$SGI_ABI"
2251 LDFLAGS="$SGI_ABI $LDFLAGS"
2252 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2254 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2255 echo "${ECHO_T}$MACHDEP" >&6; }
2257 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2258 # it may influence the way we can build extensions, so distutils
2262 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2263 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2265 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2266 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2267 ac_sys_machine=`uname
-m`
2268 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2269 echo "${ECHO_T}$ac_sys_machine" >&6; }
2271 # checks for alternative programs
2273 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2274 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2275 # just to get things to compile and link. Users are free to override OPT
2276 # when running configure or make. The build should not break if they do.
2277 # BASECFLAGS should generally not be messed with, however.
2279 # XXX shouldn't some/most/all of this code be merged with the stuff later
2280 # on that fiddles with OPT and BASECFLAGS?
2281 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2282 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2284 # Check whether --with-gcc was given.
2285 if test "${with_gcc+set}" = set; then
2293 without_gcc=$withval;;
2297 case $ac_sys_system in
2304 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2305 echo "${ECHO_T}$without_gcc" >&6; }
2307 # If the user switches compilers, we can't believe the cache
2308 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2310 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2311 (it is also a good idea to do 'make clean' before compiling)" >&5
2312 echo "$as_me: error: cached CC is different -- throw away $cache_file
2313 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2314 { (exit 1); exit 1; }; }
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 if test -n "$CC"; then
2352 { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2361 if test -z "$ac_cv_prog_CC"; then
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 echo "${ECHO_T}$ac_ct_CC" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2399 if test "x$ac_ct_CC" = x; then
2402 case $cross_compiling:$ac_tool_warned in
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2418 if test -z "$CC"; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}cc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$CC"; then
2428 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 ac_cv_prog_CC="${ac_tool_prefix}cc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2459 if test -z "$CC"; then
2460 # Extract the first word of "cc", so it can be a program name with args.
2461 set dummy cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2479 ac_prog_rejected=yes
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test $ac_prog_rejected = yes; then
2491 # We found a bogon in the path, so make sure we never use it.
2492 set dummy $ac_cv_prog_CC
2494 if test $# != 0; then
2495 # We chose a different compiler from the bogus one.
2496 # However, it has the same basename, so the bogon will be chosen
2497 # first if we set CC to just the basename; use the full file name.
2499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2515 if test -z "$CC"; then
2516 if test -n "$ac_tool_prefix"; then
2517 for ac_prog in cl.exe
2519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2556 test -n "$CC" && break
2559 if test -z "$CC"; then
2561 for ac_prog in cl.exe
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_ac_ct_CC="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$ac_ct_CC" && break
2603 if test "x$ac_ct_CC" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log
' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details.
" >&2;}
2627 { (exit 1); exit 1; }; }
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2631 ac_compiler=`set X $ac_compile; echo $2`
2632 { (ac_try="$ac_compiler --version >&5"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compiler --version >&5") 2>&5
2640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2641 (exit $ac_status); }
2642 { (ac_try="$ac_compiler -v >&5"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler -v >&5") 2>&5
2650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -V >&5"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -V >&5") 2>&5
2660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2661 (exit $ac_status); }
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2683 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2684 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2687 # List of possible output files, starting from the most likely.
2688 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2689 # only as a last resort. b.out is created by i960 compilers.
2690 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2692 # The IRIX 6 linker writes into existing files which may not be
2693 # executable, retaining their permissions. Remove them first so a
2694 # subsequent execution test works.
2696 for ac_file in $ac_files
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2700 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2705 if { (ac_try="$ac_link_default"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_link_default") 2>&5
2713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2714 (exit $ac_status); }; then
2715 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2716 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2717 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2718 # so that the user can short-circuit this test for compilers unknown to
2720 for ac_file in $ac_files ''
2722 test -f "$ac_file" || continue
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2727 # We found the default executable, but exeext='' is most
2731 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735 # We set ac_cv_exeext here because the later test for it is not
2736 # safe: cross compilers may not add the suffix if given an `-o'
2737 # argument, so we may need to know it at that point already.
2738 # Even if this section looks crufty: it has the advantage of
2745 test "$ac_cv_exeext" = no && ac_cv_exeext=
2751 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2752 echo "${ECHO_T}$ac_file" >&6; }
2753 if test -z "$ac_file"; then
2754 echo "$as_me: failed program was
:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2758 See \
`config.log' for more details." >&5
2759 echo "$as_me: error: C compiler cannot create executables
2760 See \`config.log
' for more details." >&2;}
2761 { (exit 77); exit 77; }; }
2764 ac_exeext=$ac_cv_exeext
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773 if { ac_try='.
/$ac_file'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2785 if test "$cross_compiling" = maybe; then
2788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \
`config.log' for more details." >&5
2791 echo "$as_me: error: cannot run C compiled programs.
2792 If you meant to cross compile, use \`--host'.
2793 See \`config.log' for more details.
" >&2;}
2794 { (exit 1); exit 1; }; }
2798 { echo "$as_me:$LINENO: result
: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2802 ac_clean_files=$ac_clean_files_save
2803 # Check that the compiler produces executables we can run. If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2806 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2807 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2808 echo "${ECHO_T}$cross_compiling" >&6; }
2810 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2811 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2812 if { (ac_try="$ac_link"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link") 2>&5
2820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824 # work properly (i.e., refer to `conftest.exe'), while it won't with
2826 for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2837 See \
`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2839 See \`config.log
' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest$ac_cv_exeext
2844 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2845 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2847 rm -f conftest.$ac_ext
2848 EXEEXT=$ac_cv_exeext
2850 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2851 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2852 if test "${ac_cv_objext+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 rm -f conftest.o conftest.obj
2871 if { (ac_try="$ac_compile"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compile") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 for ac_file in conftest.o conftest.obj conftest.*; do
2882 test -f "$ac_file" || continue;
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2885 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2890 echo "$as_me: failed program was:" >&5
2891 sed 's
/^
/|
/' conftest.$ac_ext >&5
2893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2894 See \`config.log' for more details.
" >&5
2895 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2896 See \
`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }
2900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2902 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2903 echo "${ECHO_T}$ac_cv_objext" >&6; }
2904 OBJEXT=$ac_cv_objext
2906 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2933 *) ac_try_echo
=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2938 grep -v '^ *+' conftest.er1
>conftest.err
2940 cat conftest.err
>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.
$ac_objext; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2960 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2961 ac_test_CFLAGS
=${CFLAGS+set}
2962 ac_save_CFLAGS
=$CFLAGS
2963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_cc_g+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 ac_save_c_werror_flag
=$ac_c_werror_flag
2969 ac_c_werror_flag
=yes
2972 cat >conftest.
$ac_ext <<_ACEOF
2975 cat confdefs.h
>>conftest.
$ac_ext
2976 cat >>conftest.
$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2987 rm -f conftest.
$ac_objext
2988 if { (ac_try
="$ac_compile"
2990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3029 *) ac_try_echo
=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1
>conftest.err
3036 cat conftest.err
>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.
$ac_objext; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.
$ac_ext >&5
3047 ac_c_werror_flag
=$ac_save_c_werror_flag
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.
$ac_objext
3065 if { (ac_try
="$ac_compile"
3067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_c_werror_flag=$ac_save_c_werror_flag
3098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3100 if test "$ac_test_CFLAGS" = set; then
3101 CFLAGS=$ac_save_CFLAGS
3102 elif test $ac_cv_prog_cc_g = yes; then
3103 if test "$GCC" = yes; then
3109 if test "$GCC" = yes; then
3115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3116 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_c89+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 ac_cv_prog_cc_c89=no
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3133 struct buf { int x; };
3134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135 static char *e (p, i)
3141 static char *f (char * (*g) (char **, int), char **p, ...)
3146 s = g (p, va_arg (v,int));
3151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3152 function prototypes and stuff, but not '\xHH' hex character constants.
3153 These don't provoke an error unfortunately, instead are silently treated
3154 as 'x'. The following induces an error, until -std is added to get
3155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3156 array size at least. It's necessary to write '\x00'==0 to get something
3157 that's true only with -std. */
3158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161 inside strings and character constants. */
3163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3165 int test (int i, double x);
3166 struct s1 {int (*f) (int a);};
3167 struct s2 {int (*f) (double a);};
3168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3182 CC="$ac_save_CC $ac_arg"
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3187 *) ac_try_echo
=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1
>conftest.err
3194 cat conftest.err
>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.
$ac_objext; then
3200 ac_cv_prog_cc_c89
=$ac_arg
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.
$ac_ext >&5
3208 rm -f core conftest.err conftest.
$ac_objext
3209 test "x$ac_cv_prog_cc_c89" != "xno" && break
3211 rm -f conftest.
$ac_ext
3216 case "x$ac_cv_prog_cc_c89" in
3218 { echo "$as_me:$LINENO: result: none needed" >&5
3219 echo "${ECHO_T}none needed" >&6; } ;;
3221 { echo "$as_me:$LINENO: result: unsupported" >&5
3222 echo "${ECHO_T}unsupported" >&6; } ;;
3224 CC
="$CC $ac_cv_prog_cc_c89"
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3231 ac_cpp
='$CPP $CPPFLAGS'
3232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3240 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3242 # Check whether --with-cxx_main was given.
3243 if test "${with_cxx_main+set}" = set; then
3244 withval
=$with_cxx_main;
3247 no
) with_cxx_main
=no
3249 yes) with_cxx_main
=yes
3251 *) with_cxx_main
=yes
3265 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3266 echo "${ECHO_T}$with_cxx_main" >&6; }
3272 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3273 set dummy g
++; 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
="g++"
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; }
3313 cc
) # Extract the first word of "c++", so it can be a program name with args.
3314 set dummy c
++; ac_word
=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_path_CXX+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3326 for as_dir
in notfound
3329 test -z "$as_dir" && as_dir
=.
3330 for ac_exec_ext
in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3345 if test -n "$CXX"; then
3346 { echo "$as_me:$LINENO: result: $CXX" >&5
3347 echo "${ECHO_T}$CXX" >&6; }
3349 { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3355 if test "$CXX" = "notfound"
3362 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy
$ac_prog; ac_word
=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CXX+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$CXX"; then
3372 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir
=.
3379 for ac_exec_ext
in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CXX
="$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CXX"; then
3393 { echo "$as_me:$LINENO: result: $CXX" >&5
3394 echo "${ECHO_T}$CXX" >&6; }
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3401 test -n "$CXX" && break
3403 test -n "$CXX" || CXX
="notfound"
3405 if test "$CXX" = "notfound"
3410 if test "$preset_cxx" != "$CXX"
3412 { echo "$as_me:$LINENO: WARNING:
3414 By default, distutils will build C++ extension modules with \"$CXX\".
3415 If this is not intended, then set CXX on the configure command line.
3417 echo "$as_me: WARNING:
3419 By default, distutils will build C++ extension modules with \"$CXX\".
3420 If this is not intended, then set CXX on the configure command line.
3425 # checks for UNIX variants that set C preprocessor variables
3428 ac_cpp
='$CPP $CPPFLAGS'
3429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3434 # On Suns, sometimes $CPP names a directory.
3435 if test -n "$CPP" && test -d "$CPP"; then
3438 if test -z "$CPP"; then
3439 if test "${ac_cv_prog_CPP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 # Double quotes because CPP needs to be expanded
3443 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446 for ac_c_preproc_warn_flag
in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.
$ac_ext <<_ACEOF
3457 cat confdefs.h
>>conftest.
$ac_ext
3458 cat >>conftest.
$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3461 # include <limits.h>
3463 # include <assert.h>
3467 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null && {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether nonexistent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <ac_nonexistent.h>
3504 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3507 *) ac_try_echo
=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1
>conftest.err
3514 cat conftest.err
>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev
/null
&& {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3520 # Broken: success on invalid input.
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.
$ac_ext >&5
3526 # Passes both tests.
3531 rm -f conftest.err conftest.
$ac_ext
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.
$ac_ext
3536 if $ac_preproc_ok; then
3548 { echo "$as_me:$LINENO: result: $CPP" >&5
3549 echo "${ECHO_T}$CPP" >&6; }
3551 for ac_c_preproc_warn_flag
in '' yes
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3566 # include <limits.h>
3568 # include <assert.h>
3572 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev/null && {
3585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3597 rm -f conftest.err conftest.$ac_ext
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3612 *) ac_try_echo
=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev
/null
&& {
3622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3625 # Broken: success on invalid input.
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3631 # Passes both tests.
3636 rm -f conftest.err conftest.
$ac_ext
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.
$ac_ext
3641 if $ac_preproc_ok; then
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3652 ac_cpp
='$CPP $CPPFLAGS'
3653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy
grep ggrep
; ac_prog_name
=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_path_GREP_found
=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3672 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3675 test -z "$as_dir" && as_dir
=.
3676 for ac_prog
in grep ggrep
; do
3677 for ac_exec_ext
in '' $ac_executable_extensions; do
3678 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3684 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3695 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3696 ac_count
=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP
="$ac_path_GREP"
3700 ac_path_GREP_max
=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3705 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3709 $ac_path_GREP_found && break 3
3719 GREP
="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3727 ac_cv_path_GREP
=$GREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP
="$ac_cv_path_GREP"
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3743 then ac_cv_path_EGREP
="$GREP -E"
3745 # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy
egrep; ac_prog_name
=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 ac_path_EGREP_found
=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3754 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3757 test -z "$as_dir" && as_dir
=.
3758 for ac_prog
in egrep; do
3759 for ac_exec_ext
in '' $ac_executable_extensions; do
3760 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3761 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3766 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3777 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3778 ac_count
=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP
="$ac_path_EGREP"
3782 ac_path_EGREP_max
=$ac_count
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3787 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3791 $ac_path_EGREP_found && break 3
3801 EGREP
="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3809 ac_cv_path_EGREP
=$EGREP
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP
="$ac_cv_path_EGREP"
3821 { echo "$as_me:$LINENO: checking for AIX" >&5
3822 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3823 cat >conftest.
$ac_ext <<_ACEOF
3826 cat confdefs.h
>>conftest.
$ac_ext
3827 cat >>conftest.
$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "yes" >/dev
/null
2>&1; then
3836 { echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6; }
3838 cat >>confdefs.h
<<\_ACEOF
3839 #define _ALL_SOURCE 1
3843 { echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6; }
3850 # Check for unsupported systems
3851 case $ac_sys_system/$ac_sys_release in
3853 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3854 echo See README
for details.
3859 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3860 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3862 # Check whether --with-suffix was given.
3863 if test "${with_suffix+set}" = set; then
3864 withval
=$with_suffix;
3868 *) EXEEXT
=$withval;;
3872 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3873 echo "${ECHO_T}$EXEEXT" >&6; }
3875 # Test whether we're running on a non-case-sensitive system, in which
3876 # case we give a warning if no ext is given
3878 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3879 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3880 if test ! -d CaseSensitiveTestDir
; then
3881 mkdir CaseSensitiveTestDir
3884 if test -d casesensitivetestdir
3886 { echo "$as_me:$LINENO: result: yes" >&5
3887 echo "${ECHO_T}yes" >&6; }
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3894 rmdir CaseSensitiveTestDir
3899 gcc
) CC
="$CC -D_HAVE_BSDI";;
3903 case $ac_sys_system in
3906 cc|
*/cc
) CC
="$CC -Ae";;
3909 # Some functions have a prototype only with that define, e.g. confstr
3911 cat >>confdefs.h
<<\_ACEOF
3912 #define __EXTENSIONS__ 1
3920 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3921 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3922 if test -z "$LIBRARY"
3924 LIBRARY
='libpython$(VERSION).a'
3926 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3927 echo "${ECHO_T}$LIBRARY" >&6; }
3929 # LDLIBRARY is the name of the library to link against (as opposed to the
3930 # name of the library into which to insert object files). BLDLIBRARY is also
3931 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3932 # is blank as the main program is not linked directly against LDLIBRARY.
3933 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3934 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3935 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3936 # DLLLIBRARY is the shared (i.e., DLL) library.
3938 # RUNSHARED is used to run shared python without installed libraries
3940 # INSTSONAME is the name of the shared library that will be use to install
3941 # on the system - some systems like version suffix, others don't
3948 LDLIBRARY
="$LIBRARY"
3949 BLDLIBRARY
='$(LDLIBRARY)'
3950 INSTSONAME
='$(LDLIBRARY)'
3955 # LINKCC is the command that links the python executable -- default is $(CC).
3956 # If CXX is set, and if it is needed to link a main function that was
3957 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3958 # python might then depend on the C++ runtime
3959 # This is altered for AIX in order to build the export list before
3962 { echo "$as_me:$LINENO: checking LINKCC" >&5
3963 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3964 if test -z "$LINKCC"
3966 LINKCC
='$(PURIFY) $(MAINCC)'
3967 case $ac_sys_system in
3970 if test $ac_sys_release -ge 5 -o \
3971 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3974 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3976 # qcc must be used because the other compilers do not
3981 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3982 echo "${ECHO_T}$LINKCC" >&6; }
3984 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3985 # make sure we default having it set to "no": this is used by
3986 # distutils.unixccompiler to know if it should add --enable-new-dtags
3987 # to linker command lines, and failing to detect GNU ld simply results
3988 # in the same bahaviour as before.
3990 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3991 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3993 if test "$GCC" = yes; then
3994 ac_prog
=`$CC -print-prog-name=ld`
3996 case `"$ac_prog" -V 2>&1 < /dev/null` in
4002 { echo "$as_me:$LINENO: result: $GNULD" >&5
4003 echo "${ECHO_T}$GNULD" >&6; }
4005 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4006 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4007 # Check whether --enable-shared was given.
4008 if test "${enable_shared+set}" = set; then
4009 enableval
=$enable_shared;
4013 if test -z "$enable_shared"
4015 case $ac_sys_system in
4017 enable_shared
="yes";;
4019 enable_shared
="no";;
4022 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4023 echo "${ECHO_T}$enable_shared" >&6; }
4025 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4026 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4027 # Check whether --enable-profiling was given.
4028 if test "${enable_profiling+set}" = set; then
4029 enableval
=$enable_profiling; ac_save_cc
="$CC"
4031 if test "$cross_compiling" = yes; then
4032 ac_enable_profiling
="no"
4034 cat >conftest.
$ac_ext <<_ACEOF
4037 cat confdefs.h
>>conftest.
$ac_ext
4038 cat >>conftest.
$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 int main() { return 0; }
4042 rm -f conftest
$ac_exeext
4043 if { (ac_try
="$ac_link"
4045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_link") 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4055 *) ac_try_echo
=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_enable_profiling
="yes"
4064 echo "$as_me: program exited with status $ac_status" >&5
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.
$ac_ext >&5
4069 ac_enable_profiling
="no"
4071 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4078 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4079 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4081 case "$ac_enable_profiling" in
4083 BASECFLAGS
="-pg $BASECFLAGS"
4084 LDFLAGS
="-pg $LDFLAGS"
4088 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4089 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4091 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4092 # library that we build, but we do not want to link against it (we
4093 # will find it with a -framework option). For this reason there is an
4094 # extra variable BLDLIBRARY against which Python and the extension
4095 # modules are linked, BLDLIBRARY. This is normally the same as
4096 # LDLIBRARY, but empty for MacOSX framework builds.
4097 if test "$enable_framework"
4099 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4100 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4103 BLDLIBRARY
='$(LDLIBRARY)'
4106 # Other platforms follow
4107 if test $enable_shared = "yes"; then
4109 cat >>confdefs.h
<<\_ACEOF
4110 #define Py_ENABLE_SHARED 1
4113 case $ac_sys_system in
4115 LDLIBRARY
='libpython$(VERSION).dll.a'
4116 DLLLIBRARY
='libpython$(VERSION).dll'
4119 LDLIBRARY
='libpython$(VERSION).so'
4120 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4121 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4122 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4124 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4125 LDLIBRARY
='libpython$(VERSION).so'
4126 BLDLIBRARY
='-L. -lpython$(VERSION)'
4127 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4128 case $ac_sys_system in
4130 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4133 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4138 LDLIBRARY
='libpython$(VERSION).so'
4141 LDLIBRARY
='libpython$(VERSION).sl'
4144 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4145 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4148 LDLIBRARY
='libpython$(VERSION).so'
4149 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4150 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4153 LDLIBRARY
='libpython$(VERSION).so'
4154 BLDLIBRARY
='-L. -lpython$(VERSION)'
4155 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4158 LDLIBRARY
='libpython$(VERSION).dylib'
4159 BLDLIBRARY
='-L. -lpython$(VERSION)'
4160 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4164 else # shared is disabled
4165 case $ac_sys_system in
4167 BLDLIBRARY
='$(LIBRARY)'
4168 LDLIBRARY
='libpython$(VERSION).dll.a'
4173 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4174 echo "${ECHO_T}$LDLIBRARY" >&6; }
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4178 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_RANLIB+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$RANLIB"; then
4185 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir
=.
4192 for ac_exec_ext
in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 RANLIB
=$ac_cv_prog_RANLIB
4205 if test -n "$RANLIB"; then
4206 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4207 echo "${ECHO_T}$RANLIB" >&6; }
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4215 if test -z "$ac_cv_prog_RANLIB"; then
4216 ac_ct_RANLIB
=$RANLIB
4217 # Extract the first word of "ranlib", so it can be a program name with args.
4218 set dummy ranlib
; ac_word
=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$ac_ct_RANLIB"; then
4225 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4231 test -z "$as_dir" && as_dir
=.
4232 for ac_exec_ext
in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4245 if test -n "$ac_ct_RANLIB"; then
4246 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4247 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4253 if test "x$ac_ct_RANLIB" = x
; then
4256 case $cross_compiling:$ac_tool_warned in
4258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4259 whose name does not start with the host triplet. If you think this
4260 configuration is useful to you, please write to autoconf@gnu.org." >&5
4261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4262 whose name does not start with the host triplet. If you think this
4263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4264 ac_tool_warned
=yes ;;
4266 RANLIB
=$ac_ct_RANLIB
4269 RANLIB
="$ac_cv_prog_RANLIB"
4273 for ac_prog
in ar aal
4275 # Extract the first word of "$ac_prog", so it can be a program name with args.
4276 set dummy
$ac_prog; ac_word
=$2
4277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4279 if test "${ac_cv_prog_AR+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 if test -n "$AR"; then
4283 ac_cv_prog_AR
="$AR" # Let the user override the test.
4285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir
=.
4290 for ac_exec_ext
in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_AR
="$ac_prog"
4293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 if test -n "$AR"; then
4304 { echo "$as_me:$LINENO: result: $AR" >&5
4305 echo "${ECHO_T}$AR" >&6; }
4307 { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4312 test -n "$AR" && break
4314 test -n "$AR" || AR
="ar"
4317 # tweak ARFLAGS only if the user didn't set it on the command line
4319 if test -z "$ARFLAGS"
4325 # Extract the first word of "svnversion", so it can be a program name with args.
4326 set dummy svnversion
; ac_word
=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$SVNVERSION"; then
4333 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_SVNVERSION
="found"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4353 SVNVERSION
=$ac_cv_prog_SVNVERSION
4354 if test -n "$SVNVERSION"; then
4355 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4356 echo "${ECHO_T}$SVNVERSION" >&6; }
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4363 if test $SVNVERSION = found
4365 SVNVERSION
="svnversion \$(srcdir)"
4367 SVNVERSION
="echo Unversioned directory"
4372 # install -d does not work on BSDI or HP-UX
4373 if test -z "$INSTALL"
4375 INSTALL
="${srcdir}/install-sh -c"
4379 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4380 if test -f "$ac_dir/install-sh"; then
4382 ac_install_sh
="$ac_aux_dir/install-sh -c"
4384 elif test -f "$ac_dir/install.sh"; then
4386 ac_install_sh
="$ac_aux_dir/install.sh -c"
4388 elif test -f "$ac_dir/shtool"; then
4390 ac_install_sh
="$ac_aux_dir/shtool install -c"
4394 if test -z "$ac_aux_dir"; then
4395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4396 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4397 { (exit 1); exit 1; }; }
4400 # These three variables are undocumented and unsupported,
4401 # and are intended to be withdrawn in a future Autoconf release.
4402 # They can cause serious problems if a builder's source tree is in a directory
4403 # whose full name contains unusual characters.
4404 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4405 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4406 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4409 # Find a good install program. We prefer a C program (faster),
4410 # so one script is as good as another. But avoid the broken or
4411 # incompatible versions:
4412 # SysV /etc/install, /usr/sbin/install
4413 # SunOS /usr/etc/install
4414 # IRIX /sbin/install
4416 # AmigaOS /C/install, which installs bootblocks on floppy discs
4417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4420 # OS/2's system install, which has a completely different semantic
4421 # ./install, which can be erroneously created by make from ./install.sh.
4422 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4423 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4424 if test -z "$INSTALL"; then
4425 if test "${ac_cv_path_install+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir
=.
4433 # Account for people who put trailing slashes in PATH elements.
4435 .
/ | .
// |
/cC
/* | \
4436 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4437 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4440 # OSF1 and SCO ODT 3.0 have their own names for install.
4441 # Don't use installbsd from OSF since it installs stuff as root
4443 for ac_prog
in ginstall scoinst
install; do
4444 for ac_exec_ext
in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4446 if test $ac_prog = install &&
4447 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4448 # AIX install. It has an incompatible calling convention.
4450 elif test $ac_prog = install &&
4451 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4452 # program-specific install script used by HP pwplus--don't use.
4455 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4468 if test "${ac_cv_path_install+set}" = set; then
4469 INSTALL
=$ac_cv_path_install
4471 # As a last resort, use the slow shell script. Don't cache a
4472 # value for INSTALL within a source directory, because that will
4473 # break other packages using the cache if that directory is
4474 # removed, or if the value is a relative name.
4475 INSTALL
=$ac_install_sh
4478 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4479 echo "${ECHO_T}$INSTALL" >&6; }
4481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4482 # It thinks the first close brace ends the variable substitution.
4483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4487 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4490 # Not every filesystem supports hard links
4492 if test -z "$LN" ; then
4493 case $ac_sys_system in
4494 CYGWIN
*) LN
="ln -s";;
4495 atheos
*) LN
="ln -s";;
4500 # Check for --with-pydebug
4501 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4502 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4504 # Check whether --with-pydebug was given.
4505 if test "${with_pydebug+set}" = set; then
4506 withval
=$with_pydebug;
4507 if test "$withval" != no
4510 cat >>confdefs.h
<<\_ACEOF
4514 { echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6; };
4517 else { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4527 # merged with this chunk of code?
4529 # Optimizer/debugger flags
4530 # ------------------------
4531 # (The following bit of code is complicated enough - please keep things
4532 # indented properly. Just pretend you're editing Python code. ;-)
4534 # There are two parallel sets of case statements below, one that checks to
4535 # see if OPT was set and one that does BASECFLAGS setting based upon
4536 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4539 # tweak OPT based on compiler and platform, only if the user didn't set
4540 # it on the command line
4542 if test "${OPT-unset}" = "unset"
4546 if test "$CC" != 'g++' ; then
4547 STRICT_PROTO
="-Wstrict-prototypes"
4549 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4550 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4553 case $ac_cv_prog_cc_g in
4555 if test "$Py_DEBUG" = 'true' ; then
4556 # Optimization messes up debuggers, so turn it off for
4558 OPT
="-g -Wall $STRICT_PROTO"
4560 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4564 OPT
="-O3 -Wall $STRICT_PROTO"
4567 case $ac_sys_system in
4568 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4581 # The -arch flags for universal builds on OSX
4582 UNIVERSAL_ARCH_FLAGS
=
4585 # tweak BASECFLAGS based on compiler and platform
4588 # Python violates C99 rules, by casting between incompatible
4589 # pointer types. GCC may generate bad code as a result of that,
4590 # so use -fno-strict-aliasing if supported.
4591 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4592 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4594 CC
="$CC -fno-strict-aliasing"
4595 if test "$cross_compiling" = yes; then
4596 ac_cv_no_strict_aliasing_ok
=no
4598 cat >conftest.
$ac_ext <<_ACEOF
4601 cat confdefs.h
>>conftest.
$ac_ext
4602 cat >>conftest.
$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 int main() { return 0; }
4606 rm -f conftest
$ac_exeext
4607 if { (ac_try
="$ac_link"
4609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_link") 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4619 *) ac_try_echo
=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_cv_no_strict_aliasing_ok
=yes
4628 echo "$as_me: program exited with status $ac_status" >&5
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.
$ac_ext >&5
4633 ac_cv_no_strict_aliasing_ok
=no
4635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4640 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4641 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4642 if test $ac_cv_no_strict_aliasing_ok = yes
4644 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4647 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4648 # support. Without this, treatment of subnormals doesn't follow
4650 case $ac_sys_machine in
4652 BASECFLAGS
="$BASECFLAGS -mieee"
4656 case $ac_sys_system in
4658 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4660 # is there any other compiler on Darwin besides gcc?
4662 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4663 # used to be here, but non-Apple gcc doesn't accept them.
4666 if test "${enable_universalsdk}"; then
4667 UNIVERSAL_ARCH_FLAGS
=""
4668 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4670 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4672 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4673 ARCH_RUN_32BIT
="true"
4674 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4676 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4677 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4678 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4679 LIPO_32BIT_FLAGS
="-extract i386 -extract ppc7400"
4680 LIPO_64BIT_FLAGS
="-extract x86_64 -extract ppc64"
4682 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4683 ARCH_RUN_32BIT
="/usr/bin/arch -i386"
4684 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
4685 LIPO_32BIT_FLAGS
="-extract i386"
4686 LIPO_64BIT_FLAGS
="-extract x86_64"
4688 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4689 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4690 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
4691 LIPO_32BIT_FLAGS
="-extract i386 -extract ppc7400"
4692 LIPO_64BIT_FLAGS
="-extract x86_64"
4695 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4696 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4697 { (exit 1); exit 1; }; }
4702 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4703 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4704 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4705 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4709 # Calculate the right deployment target for this build.
4711 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4712 if test ${cur_target} '>' 10.2; then
4714 if test ${enable_universalsdk}; then
4715 if test "${UNIVERSAL_ARCHS}" = "all"; then
4716 # Ensure that the default platform for a
4717 # 4-way universal build is OSX 10.5,
4718 # that's the first OS release where
4719 # 4-way builds make sense.
4722 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4725 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4728 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4732 if test `/usr/bin/arch` = "i386"; then
4733 # On Intel macs default to a deployment
4734 # target of 10.4, that's the first OSX
4735 # release with Intel support.
4740 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4742 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4743 # environment with a value that is the same as what we'll use
4744 # in the Makefile to ensure that we'll get the same compiler
4745 # environment during configure and build time.
4746 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4747 export MACOSX_DEPLOYMENT_TARGET
4748 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4752 BASECFLAGS
="$BASECFLAGS -mieee"
4758 case $ac_sys_system in
4759 OpenUNIX
*|UnixWare
*)
4760 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4763 BASECFLAGS
="$BASECFLAGS -ieee -std"
4766 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4772 if test "$Py_DEBUG" = 'true'; then
4778 if test "$ac_arch_flags"
4780 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4783 # disable check for icc since it seems to pass, but generates a warning
4786 ac_cv_opt_olimit_ok
=no
4789 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4790 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4791 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 CC
="$CC -OPT:Olimit=0"
4796 if test "$cross_compiling" = yes; then
4797 ac_cv_opt_olimit_ok
=no
4799 cat >conftest.
$ac_ext <<_ACEOF
4802 cat confdefs.h
>>conftest.
$ac_ext
4803 cat >>conftest.
$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 int main() { return 0; }
4807 rm -f conftest
$ac_exeext
4808 if { (ac_try
="$ac_link"
4810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_link") 2>&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4818 { (case "(($ac_try" in
4819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4820 *) ac_try_echo
=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_try") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_opt_olimit_ok
=yes
4829 echo "$as_me: program exited with status $ac_status" >&5
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.
$ac_ext >&5
4834 ac_cv_opt_olimit_ok
=no
4836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4843 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4844 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4845 if test $ac_cv_opt_olimit_ok = yes; then
4846 case $ac_sys_system in
4847 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4848 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4853 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4857 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4858 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4859 if test "${ac_cv_olimit_ok+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 CC
="$CC -Olimit 1500"
4864 if test "$cross_compiling" = yes; then
4867 cat >conftest.
$ac_ext <<_ACEOF
4870 cat confdefs.h
>>conftest.
$ac_ext
4871 cat >>conftest.
$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 int main() { return 0; }
4875 rm -f conftest
$ac_exeext
4876 if { (ac_try
="$ac_link"
4878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_link") 2>&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4886 { (case "(($ac_try" in
4887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4888 *) ac_try_echo
=$ac_try;;
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_try") 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4897 echo "$as_me: program exited with status $ac_status" >&5
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.
$ac_ext >&5
4904 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4911 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4912 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4913 if test $ac_cv_olimit_ok = yes; then
4914 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4918 # Check whether GCC supports PyArg_ParseTuple format
4919 if test "$GCC" = "yes"
4921 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4922 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4924 CFLAGS
="$CFLAGS -Werror"
4925 cat >conftest.
$ac_ext <<_ACEOF
4928 cat confdefs.h
>>conftest.
$ac_ext
4929 cat >>conftest.
$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4932 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4942 rm -f conftest.
$ac_objext
4943 if { (ac_try
="$ac_compile"
4945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4949 (eval "$ac_compile") 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && {
4956 test -z "$ac_c_werror_flag" ||
4957 test ! -s conftest.err
4958 } && test -s conftest.$ac_objext; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4964 { echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6; }
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 # On some compilers, pthreads are available without further options
4980 # (e.g. MacOS X). On some of these systems, the compiler will not
4981 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4982 # So we have to see first whether pthreads are available without
4983 # options before we can check whether -Kpthread improves anything.
4984 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4985 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4986 if test "${ac_cv_pthread_is_default+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_pthread_is_default=no
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4999 #include <pthread.h>
5001 void* routine(void* p){return NULL;}
5005 if(pthread_create(&p,NULL,routine,NULL)!=0)
5007 (void)pthread_detach(p);
5012 rm -f conftest$ac_exeext
5013 if { (ac_try="$ac_link"
5015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5016 *) ac_try_echo
=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_link") 2>&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5023 { (case "(($ac_try" in
5024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_try") 2>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5033 ac_cv_pthread_is_default=yes
5038 echo "$as_me: program exited with status $ac_status" >&5
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5043 ac_cv_pthread_is_default=no
5045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5053 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5056 if test $ac_cv_pthread_is_default = yes
5060 # -Kpthread, if available, provides the right #defines
5061 # and linker options to make pthread_create available
5062 # Some compilers won't report that they do not support -Kpthread,
5063 # so we need to run a program to see whether it really made the
5064 # function available.
5065 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5066 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5067 if test "${ac_cv_kpthread+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 if test "$cross_compiling" = yes; then
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5082 #include <pthread.h>
5084 void* routine(void* p){return NULL;}
5088 if(pthread_create(&p,NULL,routine,NULL)!=0)
5090 (void)pthread_detach(p);
5095 rm -f conftest$ac_exeext
5096 if { (ac_try="$ac_link"
5098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5099 *) ac_try_echo
=$ac_try;;
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_link") 2>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5106 { (case "(($ac_try" in
5107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_try") 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5117 echo "$as_me: program exited with status $ac_status" >&5
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5131 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5132 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5135 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5137 # -Kthread, if available, provides the right #defines
5138 # and linker options to make pthread_create available
5139 # Some compilers won't report that they do not support -Kthread,
5140 # so we need to run a program to see whether it really made the
5141 # function available.
5142 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5143 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5144 if test "${ac_cv_kthread+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 if test "$cross_compiling" = yes; then
5152 cat >conftest.$ac_ext <<_ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5159 #include <pthread.h>
5161 void* routine(void* p){return NULL;}
5165 if(pthread_create(&p,NULL,routine,NULL)!=0)
5167 (void)pthread_detach(p);
5172 rm -f conftest$ac_exeext
5173 if { (ac_try="$ac_link"
5175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5176 *) ac_try_echo
=$ac_try;;
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_link") 2>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5183 { (case "(($ac_try" in
5184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_try") 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5194 echo "$as_me: program exited with status $ac_status" >&5
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5208 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5209 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5212 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5214 # -pthread, if available, provides the right #defines
5215 # and linker options to make pthread_create available
5216 # Some compilers won't report that they do not support -pthread,
5217 # so we need to run a program to see whether it really made the
5218 # function available.
5219 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5220 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5221 if test "${ac_cv_thread+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 if test "$cross_compiling" = yes; then
5229 cat >conftest.$ac_ext <<_ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5236 #include <pthread.h>
5238 void* routine(void* p){return NULL;}
5242 if(pthread_create(&p,NULL,routine,NULL)!=0)
5244 (void)pthread_detach(p);
5249 rm -f conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5253 *) ac_try_echo
=$ac_try;;
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_link") 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5260 { (case "(($ac_try" in
5261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_try") 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5271 echo "$as_me: program exited with status $ac_status" >&5
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5285 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5286 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5289 # If we have set a CC compiler flag for thread support then
5290 # check if it works for CXX, too.
5294 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5295 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5298 if test "$ac_cv_kpthread" = "yes"
5300 CXX="$CXX -Kpthread"
5301 ac_cv_cxx_thread=yes
5302 elif test "$ac_cv_kthread" = "yes"
5305 ac_cv_cxx_thread=yes
5306 elif test "$ac_cv_pthread" = "yes"
5309 ac_cv_cxx_thread=yes
5312 if test $ac_cv_cxx_thread = yes
5314 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5315 $CXX -c conftest.$ac_ext 2>&5
5316 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5317 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5319 ac_cv_cxx_thread=yes
5325 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5326 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5331 # checks for header files
5332 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5333 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5334 if test "${ac_cv_header_stdc+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5360 *) ac_try_echo
=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1
>conftest.err
5367 cat conftest.err
>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.
$ac_objext; then
5373 ac_cv_header_stdc
=yes
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.
$ac_ext >&5
5378 ac_cv_header_stdc
=no
5381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5383 if test $ac_cv_header_stdc = yes; then
5384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5385 cat >conftest.
$ac_ext <<_ACEOF
5388 cat confdefs.h
>>conftest.
$ac_ext
5389 cat >>conftest.
$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "memchr" >/dev
/null
2>&1; then
5398 ac_cv_header_stdc
=no
5404 if test $ac_cv_header_stdc = yes; then
5405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5406 cat >conftest.
$ac_ext <<_ACEOF
5409 cat confdefs.h
>>conftest.
$ac_ext
5410 cat >>conftest.
$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev
/null
2>&1; then
5419 ac_cv_header_stdc
=no
5425 if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then
5430 cat >conftest.
$ac_ext <<_ACEOF
5433 cat confdefs.h
>>conftest.
$ac_ext
5434 cat >>conftest.
$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5438 #if ((' ' & 0x0FF) == 0x020)
5439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5442 # define ISLOWER(c) \
5443 (('a' <= (c) && (c) <= 'i') \
5444 || ('j' <= (c) && (c) <= 'r') \
5445 || ('s' <= (c) && (c) <= 'z'))
5446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5454 for (i = 0; i < 256; i++)
5455 if (XOR (islower (i), ISLOWER (i))
5456 || toupper (i) != TOUPPER (i))
5461 rm -f conftest
$ac_exeext
5462 if { (ac_try
="$ac_link"
5464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_link") 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5472 { (case "(($ac_try" in
5473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5474 *) ac_try_echo
=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_try") 2>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5483 echo "$as_me: program exited with status $ac_status" >&5
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.
$ac_ext >&5
5488 ac_cv_header_stdc
=no
5490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5496 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5497 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5498 if test $ac_cv_header_stdc = yes; then
5500 cat >>confdefs.h
<<\_ACEOF
5501 #define STDC_HEADERS 1
5506 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5516 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5517 inttypes.h stdint.h unistd.h
5519 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5522 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 cat >conftest.
$ac_ext <<_ACEOF
5528 cat confdefs.h
>>conftest.
$ac_ext
5529 cat >>conftest.
$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5531 $ac_includes_default
5533 #include <$ac_header>
5535 rm -f conftest.
$ac_objext
5536 if { (ac_try
="$ac_compile"
5538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 eval "$as_ac_Header=yes"
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 eval "$as_ac_Header=no"
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_res=`eval echo '${'$as_ac_Header'}'`
5563 { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5566 cat >>confdefs.h <<_ACEOF
5567 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5629 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5631 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5632 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5634 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5635 sys/lock.h sys/mkdev.h sys/modem.h \
5636 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5637 sys/termio.h sys/time.h \
5638 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5639 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5640 bluetooth/bluetooth.h linux/tipc.h
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_res=`eval echo '${'$as_ac_Header'}'`
5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651 echo "${ECHO_T}$ac_res" >&6; }
5653 # Is the header compilable?
5654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5669 *) ac_try_echo
=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5674 grep -v '^ *+' conftest.er1
>conftest.err
5676 cat conftest.err
>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.
$ac_objext; then
5682 ac_header_compiler
=yes
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.
$ac_ext >&5
5687 ac_header_compiler
=no
5690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5692 echo "${ECHO_T}$ac_header_compiler" >&6; }
5694 # Is the header present?
5695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <$ac_header>
5705 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5721 ac_header_preproc=yes
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_header_preproc=no
5729 rm -f conftest.err conftest.$ac_ext
5730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5731 echo "${ECHO_T}$ac_header_preproc" >&6; }
5733 # So? What about this header?
5734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5740 ac_header_preproc=yes
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5756 ## -------------------------------------- ##
5757 ## Report this to http://bugs.python.org/ ##
5758 ## -------------------------------------- ##
5760 ) | sed "s/^/$as_me: WARNING: /" >&2
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 eval "$as_ac_Header=\$ac_header_preproc"
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771 { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5790 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5791 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5792 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <sys/types.h>
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5819 *) ac_try_echo
=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1
>conftest.err
5826 cat conftest.err
>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.
$ac_objext; then
5832 eval "$as_ac_Header=yes"
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.
$ac_ext >&5
5837 eval "$as_ac_Header=no"
5840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 ac_res
=`eval echo '${'$as_ac_Header'}'`
5843 { echo "$as_me:$LINENO: result: $ac_res" >&5
5844 echo "${ECHO_T}$ac_res" >&6; }
5845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5846 cat >>confdefs.h
<<_ACEOF
5847 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5850 ac_header_dirent
=$ac_hdr; break
5854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5855 if test $ac_header_dirent = dirent.h
; then
5856 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5858 if test "${ac_cv_search_opendir+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 ac_func_search_save_LIBS
=$LIBS
5862 cat >conftest.
$ac_ext <<_ACEOF
5865 cat confdefs.h
>>conftest.
$ac_ext
5866 cat >>conftest.
$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5884 for ac_lib
in '' dir
; do
5885 if test -z "$ac_lib"; then
5886 ac_res
="none required"
5889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5891 rm -f conftest.
$ac_objext conftest
$ac_exeext
5892 if { (ac_try
="$ac_link"
5894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_link") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest$ac_exeext &&
5908 $as_test_x conftest$ac_exeext; then
5909 ac_cv_search_opendir=$ac_res
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5919 if test "${ac_cv_search_opendir+set}" = set; then
5923 if test "${ac_cv_search_opendir+set}" = set; then
5926 ac_cv_search_opendir=no
5929 LIBS=$ac_func_search_save_LIBS
5931 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5932 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5933 ac_res=$ac_cv_search_opendir
5934 if test "$ac_res" != no; then
5935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5940 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5942 if test "${ac_cv_search_opendir+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 ac_func_search_save_LIBS=$LIBS
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5953 /* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5968 for ac_lib in '' x; do
5969 if test -z "$ac_lib"; then
5970 ac_res="none required"
5973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5979 *) ac_try_echo
=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1
>conftest.err
5986 cat conftest.err
>&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest
$ac_exeext &&
5992 $as_test_x conftest
$ac_exeext; then
5993 ac_cv_search_opendir
=$ac_res
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.
$ac_ext >&5
6001 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6003 if test "${ac_cv_search_opendir+set}" = set; then
6007 if test "${ac_cv_search_opendir+set}" = set; then
6010 ac_cv_search_opendir
=no
6013 LIBS
=$ac_func_search_save_LIBS
6015 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6016 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6017 ac_res
=$ac_cv_search_opendir
6018 if test "$ac_res" != no
; then
6019 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6025 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6026 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6027 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 cat >conftest.
$ac_ext <<_ACEOF
6033 cat confdefs.h
>>conftest.
$ac_ext
6034 cat >>conftest.
$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #include <sys/types.h>
6040 return makedev(0, 0);
6045 rm -f conftest.
$ac_objext conftest
$ac_exeext
6046 if { (ac_try
="$ac_link"
6048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_link") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest$ac_exeext &&
6062 $as_test_x conftest$ac_exeext; then
6063 ac_cv_header_sys_types_h_makedev=yes
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_cv_header_sys_types_h_makedev=no
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072 conftest$ac_exeext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6076 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6078 if test $ac_cv_header_sys_types_h_makedev = no; then
6079 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6080 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6081 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6082 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6086 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6088 # Is the header compilable?
6089 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6090 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6091 cat >conftest.$ac_ext <<_ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 $ac_includes_default
6098 #include <sys/mkdev.h>
6100 rm -f conftest.$ac_objext
6101 if { (ac_try="$ac_compile"
6103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6104 *) ac_try_echo
=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_compile") 2>conftest.er1
6109 grep -v '^ *+' conftest.er1
>conftest.err
6111 cat conftest.err
>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest.
$ac_objext; then
6117 ac_header_compiler
=yes
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.
$ac_ext >&5
6122 ac_header_compiler
=no
6125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6127 echo "${ECHO_T}$ac_header_compiler" >&6; }
6129 # Is the header present?
6130 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6131 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6132 cat >conftest.
$ac_ext <<_ACEOF
6135 cat confdefs.h
>>conftest.
$ac_ext
6136 cat >>conftest.
$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #include <sys/mkdev.h>
6140 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } >/dev/null && {
6153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6156 ac_header_preproc=yes
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 ac_header_preproc=no
6164 rm -f conftest.err conftest.$ac_ext
6165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6166 echo "${ECHO_T}$ac_header_preproc" >&6; }
6168 # So? What about this header?
6169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6171 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6172 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6174 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6175 ac_header_preproc=yes
6178 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6179 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6181 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6183 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6191 ## -------------------------------------- ##
6192 ## Report this to http://bugs.python.org/ ##
6193 ## -------------------------------------- ##
6195 ) | sed "s/^/$as_me: WARNING: /" >&2
6198 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6199 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6200 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6205 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6206 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6209 if test $ac_cv_header_sys_mkdev_h = yes; then
6211 cat >>confdefs.h <<\_ACEOF
6212 #define MAJOR_IN_MKDEV 1
6219 if test $ac_cv_header_sys_mkdev_h = no; then
6220 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6221 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6222 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6223 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6227 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6229 # Is the header compilable?
6230 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6231 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6232 cat >conftest.$ac_ext <<_ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6239 #include <sys/sysmacros.h>
6241 rm -f conftest.$ac_objext
6242 if { (ac_try="$ac_compile"
6244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6245 *) ac_try_echo
=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6250 grep -v '^ *+' conftest.er1
>conftest.err
6252 cat conftest.err
>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.
$ac_objext; then
6258 ac_header_compiler
=yes
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.
$ac_ext >&5
6263 ac_header_compiler
=no
6266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6268 echo "${ECHO_T}$ac_header_compiler" >&6; }
6270 # Is the header present?
6271 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6272 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6273 cat >conftest.
$ac_ext <<_ACEOF
6276 cat confdefs.h
>>conftest.
$ac_ext
6277 cat >>conftest.
$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <sys/sysmacros.h>
6281 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null && {
6294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6297 ac_header_preproc=yes
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_header_preproc=no
6305 rm -f conftest.err conftest.$ac_ext
6306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6307 echo "${ECHO_T}$ac_header_preproc" >&6; }
6309 # So? What about this header?
6310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6312 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6313 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6314 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6315 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6316 ac_header_preproc=yes
6319 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6320 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6322 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6324 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6332 ## -------------------------------------- ##
6333 ## Report this to http://bugs.python.org/ ##
6334 ## -------------------------------------- ##
6336 ) | sed "s/^/$as_me: WARNING: /" >&2
6339 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6340 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6341 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6346 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6347 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6350 if test $ac_cv_header_sys_sysmacros_h = yes; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define MAJOR_IN_SYSMACROS 1
6363 # On Solaris, term.h requires curses.h
6365 for ac_header in term.h
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6380 #ifdef HAVE_CURSES_H
6385 #include <$ac_header>
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6391 *) ac_try_echo
=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest.
$ac_objext; then
6404 eval "$as_ac_Header=yes"
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.
$ac_ext >&5
6409 eval "$as_ac_Header=no"
6412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6414 ac_res
=`eval echo '${'$as_ac_Header'}'`
6415 { echo "$as_me:$LINENO: result: $ac_res" >&5
6416 echo "${ECHO_T}$ac_res" >&6; }
6417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6418 cat >>confdefs.h
<<_ACEOF
6419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6427 # On Linux, netlink.h requires asm/types.h
6429 for ac_header
in linux
/netlink.h
6431 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6434 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.
$ac_ext <<_ACEOF
6440 cat confdefs.h
>>conftest.
$ac_ext
6441 cat >>conftest.
$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 #ifdef HAVE_ASM_TYPES_H
6445 #include <asm/types.h>
6447 #ifdef HAVE_SYS_SOCKET_H
6448 #include <sys/socket.h>
6452 #include <$ac_header>
6454 rm -f conftest.
$ac_objext
6455 if { (ac_try
="$ac_compile"
6457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest.$ac_objext; then
6471 eval "$as_ac_Header=yes"
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 eval "$as_ac_Header=no"
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481 ac_res=`eval echo '${'$as_ac_Header'}'`
6482 { echo "$as_me:$LINENO: result: $ac_res" >&5
6483 echo "${ECHO_T}$ac_res" >&6; }
6484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6494 # checks for typedefs
6496 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6497 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6508 $EGREP "clock_t" >/dev/null 2>&1; then
6513 cat >>confdefs.h <<\_ACEOF
6514 #define clock_t long
6521 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6522 echo "${ECHO_T}$was_it_defined" >&6; }
6524 # Check whether using makedev requires defining _OSF_SOURCE
6525 { echo "$as_me:$LINENO: checking for makedev" >&5
6526 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <sys/types.h>
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (ac_try="$ac_link"
6545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6546 *) ac_try_echo
=$ac_try;;
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_link") 2>conftest.er1
6551 grep -v '^ *+' conftest.er1
>conftest.err
6553 cat conftest.err
>&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest
$ac_exeext &&
6559 $as_test_x conftest
$ac_exeext; then
6560 ac_cv_has_makedev
=yes
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 ac_cv_has_makedev
=no
6568 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6569 conftest
$ac_exeext conftest.
$ac_ext
6570 if test "$ac_cv_has_makedev" = "no"; then
6571 # we didn't link, try if _OSF_SOURCE will allow us to link
6572 cat >conftest.
$ac_ext <<_ACEOF
6575 cat confdefs.h
>>conftest.
$ac_ext
6576 cat >>conftest.
$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 #define _OSF_SOURCE 1
6580 #include <sys/types.h>
6590 rm -f conftest.
$ac_objext conftest
$ac_exeext
6591 if { (ac_try
="$ac_link"
6593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_link") 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest$ac_exeext &&
6607 $as_test_x conftest$ac_exeext; then
6608 ac_cv_has_makedev=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_cv_has_makedev=no
6616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6617 conftest$ac_exeext conftest.$ac_ext
6618 if test "$ac_cv_has_makedev" = "yes"; then
6620 cat >>confdefs.h <<\_ACEOF
6621 #define _OSF_SOURCE 1
6626 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6627 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6628 if test "$ac_cv_has_makedev" = "yes"; then
6630 cat >>confdefs.h <<\_ACEOF
6631 #define HAVE_MAKEDEV 1
6636 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6637 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6638 # defined, but the compiler does not support pragma redefine_extname,
6639 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6640 # structures (such as rlimit64) without declaring them. As a
6641 # work-around, disable LFS on such configurations
6644 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6645 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6653 #define _LARGEFILE_SOURCE 1
6654 #define _FILE_OFFSET_BITS 64
6655 #include <sys/resource.h>
6665 rm -f conftest.$ac_objext
6666 if { (ac_try="$ac_compile"
6668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6669 *) ac_try_echo
=$ac_try;;
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_compile") 2>conftest.er1
6674 grep -v '^ *+' conftest.er1
>conftest.err
6676 cat conftest.err
>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && {
6679 test -z "$ac_c_werror_flag" ||
6680 test ! -s conftest.err
6681 } && test -s conftest.
$ac_objext; then
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.
$ac_ext >&5
6690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6691 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6692 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6693 if test "$sol_lfs_bug" = "yes"; then
6697 if test "$use_lfs" = "yes"; then
6698 # Two defines needed to enable largefile support on various platforms
6699 # These may affect some typedefs
6701 cat >>confdefs.h
<<\_ACEOF
6702 #define _LARGEFILE_SOURCE 1
6706 cat >>confdefs.h
<<\_ACEOF
6707 #define _FILE_OFFSET_BITS 64
6712 # Add some code to confdefs.h so that the test for off_t works on SCO
6713 cat >> confdefs.h
<<\EOF
6719 # Type availability checks
6720 { echo "$as_me:$LINENO: checking for mode_t" >&5
6721 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6722 if test "${ac_cv_type_mode_t+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cat >conftest.
$ac_ext <<_ACEOF
6728 cat confdefs.h
>>conftest.
$ac_ext
6729 cat >>conftest.
$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 $ac_includes_default
6732 typedef mode_t ac__type_new_;
6736 if ((ac__type_new_ *) 0)
6738 if (sizeof (ac__type_new_))
6744 rm -f conftest.
$ac_objext
6745 if { (ac_try
="$ac_compile"
6747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6748 *) ac_try_echo=$ac_try;;
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751 (eval "$ac_compile") 2>conftest.er1
6753 grep -v '^ *+' conftest.er1 >conftest.err
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } && {
6758 test -z "$ac_c_werror_flag" ||
6759 test ! -s conftest.err
6760 } && test -s conftest.$ac_objext; then
6761 ac_cv_type_mode_t=yes
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_cv_type_mode_t=no
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6772 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6773 if test $ac_cv_type_mode_t = yes; then
6777 cat >>confdefs.h <<_ACEOF
6783 { echo "$as_me:$LINENO: checking for off_t" >&5
6784 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6785 if test "${ac_cv_type_off_t+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6795 typedef off_t ac__type_new_;
6799 if ((ac__type_new_ *) 0)
6801 if (sizeof (ac__type_new_))
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6811 *) ac_try_echo
=$ac_try;;
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6816 grep -v '^ *+' conftest.er1
>conftest.err
6818 cat conftest.err
>&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.
$ac_objext; then
6824 ac_cv_type_off_t
=yes
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.
$ac_ext >&5
6832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6834 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6835 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6836 if test $ac_cv_type_off_t = yes; then
6840 cat >>confdefs.h
<<_ACEOF
6841 #define off_t long int
6846 { echo "$as_me:$LINENO: checking for pid_t" >&5
6847 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6848 if test "${ac_cv_type_pid_t+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 cat >conftest.
$ac_ext <<_ACEOF
6854 cat confdefs.h
>>conftest.
$ac_ext
6855 cat >>conftest.
$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 typedef pid_t ac__type_new_;
6862 if ((ac__type_new_ *) 0)
6864 if (sizeof (ac__type_new_))
6870 rm -f conftest.
$ac_objext
6871 if { (ac_try
="$ac_compile"
6873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_compile") 2>conftest.er1
6879 grep -v '^ *+' conftest.er1 >conftest.err
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && {
6884 test -z "$ac_c_werror_flag" ||
6885 test ! -s conftest.err
6886 } && test -s conftest.$ac_objext; then
6887 ac_cv_type_pid_t=yes
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6898 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6899 if test $ac_cv_type_pid_t = yes; then
6903 cat >>confdefs.h <<_ACEOF
6909 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6910 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6911 if test "${ac_cv_type_signal+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cat >conftest.$ac_ext <<_ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6926 return *(signal (0, 0)) (0) == 1;
6931 rm -f conftest.$ac_objext
6932 if { (ac_try="$ac_compile"
6934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6935 *) ac_try_echo
=$ac_try;;
6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_compile") 2>conftest.er1
6940 grep -v '^ *+' conftest.er1
>conftest.err
6942 cat conftest.err
>&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.
$ac_objext; then
6948 ac_cv_type_signal
=int
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.
$ac_ext >&5
6953 ac_cv_type_signal
=void
6956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6958 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6959 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6961 cat >>confdefs.h
<<_ACEOF
6962 #define RETSIGTYPE $ac_cv_type_signal
6966 { echo "$as_me:$LINENO: checking for size_t" >&5
6967 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6968 if test "${ac_cv_type_size_t+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 cat >conftest.
$ac_ext <<_ACEOF
6974 cat confdefs.h
>>conftest.
$ac_ext
6975 cat >>conftest.
$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6978 typedef size_t ac__type_new_;
6982 if ((ac__type_new_ *) 0)
6984 if (sizeof (ac__type_new_))
6990 rm -f conftest.
$ac_objext
6991 if { (ac_try
="$ac_compile"
6993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1 >conftest.err
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.$ac_objext; then
7007 ac_cv_type_size_t=yes
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_cv_type_size_t=no
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7018 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7019 if test $ac_cv_type_size_t = yes; then
7023 cat >>confdefs.h <<_ACEOF
7024 #define size_t unsigned int
7029 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7030 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7031 if test "${ac_cv_type_uid_t+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 cat >conftest.$ac_ext <<_ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 #include <sys/types.h>
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "uid_t" >/dev/null 2>&1; then
7045 ac_cv_type_uid_t=yes
7052 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7053 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7054 if test $ac_cv_type_uid_t = no; then
7056 cat >>confdefs.h <<\_ACEOF
7061 cat >>confdefs.h <<\_ACEOF
7068 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7069 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7070 if test "${ac_cv_c_uint32_t+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7075 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7076 cat >conftest.$ac_ext <<_ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7086 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7097 *) ac_try_echo
=$ac_try;;
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_compile") 2>conftest.er1
7102 grep -v '^ *+' conftest.er1
>conftest.err
7104 cat conftest.err
>&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && {
7107 test -z "$ac_c_werror_flag" ||
7108 test ! -s conftest.err
7109 } && test -s conftest.
$ac_objext; then
7111 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7112 *) ac_cv_c_uint32_t
=$ac_type ;;
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7123 test "$ac_cv_c_uint32_t" != no
&& break
7126 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7127 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7128 case $ac_cv_c_uint32_t in #(
7132 cat >>confdefs.h
<<\_ACEOF
7137 cat >>confdefs.h
<<_ACEOF
7138 #define uint32_t $ac_cv_c_uint32_t
7144 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7145 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7146 if test "${ac_cv_c_uint64_t+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7151 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7152 cat >conftest.
$ac_ext <<_ACEOF
7155 cat confdefs.h
>>conftest.
$ac_ext
7156 cat >>conftest.
$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7162 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7169 rm -f conftest.
$ac_objext
7170 if { (ac_try
="$ac_compile"
7172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7178 grep -v '^ *+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.$ac_objext; then
7187 uint64_t) ac_cv_c_uint64_t=yes ;;
7188 *) ac_cv_c_uint64_t=$ac_type ;;
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 test "$ac_cv_c_uint64_t" != no && break
7202 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7203 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7204 case $ac_cv_c_uint64_t in #(
7208 cat >>confdefs.h <<\_ACEOF
7213 cat >>confdefs.h <<_ACEOF
7214 #define uint64_t $ac_cv_c_uint64_t
7220 { echo "$as_me:$LINENO: checking for int32_t" >&5
7221 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7222 if test "${ac_cv_c_int32_t+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 for ac_type in 'int32_t' 'int' 'long int' \
7227 'long long int' 'short int' 'signed char'; do
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7238 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7249 *) ac_try_echo
=$ac_try;;
7251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7254 grep -v '^ *+' conftest.er1
>conftest.err
7256 cat conftest.err
>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.
$ac_objext; then
7262 cat >conftest.
$ac_ext <<_ACEOF
7265 cat confdefs.h
>>conftest.
$ac_ext
7266 cat >>conftest.
$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7272 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7273 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7280 rm -f conftest.
$ac_objext
7281 if { (ac_try
="$ac_compile"
7283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compile") 2>conftest.er1
7289 grep -v '^ *+' conftest.er1 >conftest.err
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest.$ac_objext; then
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7303 int32_t) ac_cv_c_int32_t=yes ;;
7304 *) ac_cv_c_int32_t=$ac_type ;;
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 test "$ac_cv_c_int32_t" != no && break
7321 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7322 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7323 case $ac_cv_c_int32_t in #(
7327 cat >>confdefs.h <<_ACEOF
7328 #define int32_t $ac_cv_c_int32_t
7334 { echo "$as_me:$LINENO: checking for int64_t" >&5
7335 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7336 if test "${ac_cv_c_int64_t+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 for ac_type in 'int64_t' 'int' 'long int' \
7341 'long long int' 'short int' 'signed char'; do
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7352 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7359 rm -f conftest.$ac_objext
7360 if { (ac_try="$ac_compile"
7362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7363 *) ac_try_echo
=$ac_try;;
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_compile") 2>conftest.er1
7368 grep -v '^ *+' conftest.er1
>conftest.err
7370 cat conftest.err
>&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } && {
7373 test -z "$ac_c_werror_flag" ||
7374 test ! -s conftest.err
7375 } && test -s conftest.
$ac_objext; then
7376 cat >conftest.
$ac_ext <<_ACEOF
7379 cat confdefs.h
>>conftest.
$ac_ext
7380 cat >>conftest.
$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7386 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7387 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7394 rm -f conftest.
$ac_objext
7395 if { (ac_try
="$ac_compile"
7397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7417 int64_t) ac_cv_c_int64_t=yes ;;
7418 *) ac_cv_c_int64_t=$ac_type ;;
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 test "$ac_cv_c_int64_t" != no && break
7435 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7436 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7437 case $ac_cv_c_int64_t in #(
7441 cat >>confdefs.h <<_ACEOF
7442 #define int64_t $ac_cv_c_int64_t
7447 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7448 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7449 if test "${ac_cv_type_ssize_t+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 $ac_includes_default
7459 typedef ssize_t ac__type_new_;
7463 if ((ac__type_new_ *) 0)
7465 if (sizeof (ac__type_new_))
7471 rm -f conftest.$ac_objext
7472 if { (ac_try="$ac_compile"
7474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7475 *) ac_try_echo
=$ac_try;;
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_compile") 2>conftest.er1
7480 grep -v '^ *+' conftest.er1
>conftest.err
7482 cat conftest.err
>&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest.
$ac_objext; then
7488 ac_cv_type_ssize_t
=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.
$ac_ext >&5
7493 ac_cv_type_ssize_t
=no
7496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7498 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7499 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7500 if test $ac_cv_type_ssize_t = yes; then
7502 cat >>confdefs.h
<<\_ACEOF
7503 #define HAVE_SSIZE_T 1
7509 # Sizes of various common basic types
7510 # ANSI C requires sizeof(char) == 1, so no need to check it
7511 { echo "$as_me:$LINENO: checking for int" >&5
7512 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7513 if test "${ac_cv_type_int+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 cat >conftest.
$ac_ext <<_ACEOF
7519 cat confdefs.h
>>conftest.
$ac_ext
7520 cat >>conftest.
$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7522 $ac_includes_default
7523 typedef int ac__type_new_;
7527 if ((ac__type_new_ *) 0)
7529 if (sizeof (ac__type_new_))
7535 rm -f conftest.
$ac_objext
7536 if { (ac_try
="$ac_compile"
7538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_compile") 2>conftest.er1
7544 grep -v '^ *+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7563 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7565 # The cast to long int works around a bug in the HP C Compiler
7566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7567 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7568 # This bug is HP SR number 8606223364.
7569 { echo "$as_me:$LINENO: checking size of int" >&5
7570 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7571 if test "${ac_cv_sizeof_int+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 if test "$cross_compiling" = yes; then
7575 # Depending upon the size, compute the lo and hi bounds.
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 typedef int ac__type_sizeof_;
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7603 grep -v '^
*+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 $ac_includes_default
7620 typedef int ac__type_sizeof_;
7624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7640 grep -v '^
*+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7648 ac_hi=$ac_mid; break
7650 echo "$as_me: failed program was:" >&5
7651 sed 's
/^
/|
/' conftest.$ac_ext >&5
7653 ac_lo=`expr $ac_mid + 1`
7654 if test $ac_lo -le $ac_mid; then
7658 ac_mid=`expr 2 '*' $ac_mid + 1`
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 echo "$as_me: failed program was:" >&5
7665 sed 's
/^
/|
/' conftest.$ac_ext >&5
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7674 typedef int ac__type_sizeof_;
7678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^
*+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7704 cat >conftest.$ac_ext <<_ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 $ac_includes_default
7711 typedef int ac__type_sizeof_;
7715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7722 rm -f conftest.$ac_objext
7723 if { (ac_try="$ac_compile"
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_compile") 2>conftest.er1
7731 grep -v '^
*+' conftest.er1 >conftest.err
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest.$ac_objext; then
7739 ac_lo=$ac_mid; break
7741 echo "$as_me: failed program was:" >&5
7742 sed 's
/^
/|
/' conftest.$ac_ext >&5
7744 ac_hi=`expr '(' $ac_mid ')' - 1`
7745 if test $ac_mid -le $ac_hi; then
7749 ac_mid=`expr 2 '*' $ac_mid`
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 echo "$as_me: failed program was:" >&5
7756 sed 's
/^
/|
/' conftest.$ac_ext >&5
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 # Binary search between lo and hi bounds.
7766 while test "x$ac_lo" != "x$ac_hi"; do
7767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7768 cat >conftest.$ac_ext <<_ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 typedef int ac__type_sizeof_;
7779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7795 grep -v '^
*+' conftest.er1 >conftest.err
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_c_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.$ac_objext; then
7805 echo "$as_me: failed program was:" >&5
7806 sed 's
/^
/|
/' conftest.$ac_ext >&5
7808 ac_lo=`expr '(' $ac_mid ')' + 1`
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 ?*) ac_cv_sizeof_int=$ac_lo;;
7815 '') if test "$ac_cv_type_int" = yes; then
7816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7817 See \`config.log' for more details.
" >&5
7818 echo "$as_me: error
: cannot compute sizeof
(int
)
7819 See \
`config.log' for more details." >&2;}
7820 { (exit 77); exit 77; }; }
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 $ac_includes_default
7833 typedef int ac__type_sizeof_;
7834 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7835 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7842 FILE *f = fopen ("conftest.val", "w");
7845 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7847 long int i = longval ();
7848 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7850 fprintf (f, "%ld\n", i);
7854 unsigned long int i = ulongval ();
7855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7857 fprintf (f, "%lu\n", i);
7859 return ferror (f) || fclose (f) != 0;
7865 rm -f conftest$ac_exeext
7866 if { (ac_try="$ac_link"
7868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7869 *) ac_try_echo
=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_link") 2>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7876 { (case "(($ac_try" in
7877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_sizeof_int=`cat conftest.val
`
7887 echo "$as_me: program exited with status $ac_status" >&5
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7892 if test "$ac_cv_type_int" = yes; then
7893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7894 See \`config.log
' for more details." >&5
7895 echo "$as_me: error: cannot compute sizeof (int)
7896 See \`config.log' for more details.
" >&2;}
7897 { (exit 77); exit 77; }; }
7902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7906 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7907 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7911 cat >>confdefs.h <<_ACEOF
7912 #define SIZEOF_INT $ac_cv_sizeof_int
7916 { echo "$as_me:$LINENO: checking
for long
" >&5
7917 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7918 if test "${ac_cv_type_long+set}" = set; then
7919 echo $ECHO_N "(cached
) $ECHO_C" >&6
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 $ac_includes_default
7928 typedef long ac__type_new_;
7932 if ((ac__type_new_ *) 0)
7934 if (sizeof (ac__type_new_))
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7959 echo "$as_me: failed program was
:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7968 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7970 # The cast to long int works around a bug in the HP C Compiler
7971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7973 # This bug is HP SR number 8606223364.
7974 { echo "$as_me:$LINENO: checking size of long
" >&5
7975 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7976 if test "${ac_cv_sizeof_long+set}" = set; then
7977 echo $ECHO_N "(cached
) $ECHO_C" >&6
7979 if test "$cross_compiling" = yes; then
7980 # Depending upon the size, compute the lo and hi bounds.
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7988 typedef long ac__type_sizeof_;
7992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 $ac_includes_default
8025 typedef long ac__type_sizeof_;
8029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_compile") 2>conftest.er1
8045 grep -v '^ *+' conftest.er1 >conftest.err
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8049 (exit $ac_status); } && {
8050 test -z "$ac_c_werror_flag" ||
8051 test ! -s conftest.err
8052 } && test -s conftest.$ac_objext; then
8053 ac_hi=$ac_mid; break
8055 echo "$as_me: failed program was
:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_lo=`expr $ac_mid + 1`
8059 if test $ac_lo -le $ac_mid; then
8063 ac_mid=`expr 2 '*' $ac_mid + 1`
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 echo "$as_me: failed program was
:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 typedef long ac__type_sizeof_;
8083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 typedef long ac__type_sizeof_;
8120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8144 ac_lo=$ac_mid; break
8146 echo "$as_me: failed program was
:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_hi=`expr '(' $ac_mid ')' - 1`
8150 if test $ac_mid -le $ac_hi; then
8154 ac_mid=`expr 2 '*' $ac_mid`
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me: failed program was
:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 # Binary search between lo and hi bounds.
8171 while test "x
$ac_lo" != "x
$ac_hi"; do
8172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8173 cat >conftest.$ac_ext <<_ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 $ac_includes_default
8180 typedef long ac__type_sizeof_;
8184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest.$ac_objext; then
8210 echo "$as_me: failed program was
:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_lo=`expr '(' $ac_mid ')' + 1`
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 ?*) ac_cv_sizeof_long=$ac_lo;;
8220 '') if test "$ac_cv_type_long" = yes; then
8221 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8222 See \
`config.log' for more details." >&5
8223 echo "$as_me: error: cannot compute sizeof (long)
8224 See \`config.log
' for more details." >&2;}
8225 { (exit 77); exit 77; }; }
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 typedef long ac__type_sizeof_;
8239 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8240 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8247 FILE *f = fopen ("conftest.val", "w");
8250 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8252 long int i = longval ();
8253 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8255 fprintf (f, "%ld\n", i);
8259 unsigned long int i = ulongval ();
8260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8262 fprintf (f, "%lu\n", i);
8264 return ferror (f) || fclose (f) != 0;
8270 rm -f conftest$ac_exeext
8271 if { (ac_try="$ac_link"
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_link") 2>&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_sizeof_long=`cat conftest.val`
8292 echo "$as_me: program exited with status $ac_status" >&5
8293 echo "$as_me: failed program was:" >&5
8294 sed 's
/^
/|
/' conftest.$ac_ext >&5
8297 if test "$ac_cv_type_long" = yes; then
8298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8299 See \`config.log' for more details.
" >&5
8300 echo "$as_me: error
: cannot compute sizeof
(long
)
8301 See \
`config.log' for more details." >&2;}
8302 { (exit 77); exit 77; }; }
8307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8311 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8312 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8316 cat >>confdefs.h <<_ACEOF
8317 #define SIZEOF_LONG $ac_cv_sizeof_long
8321 { echo "$as_me:$LINENO: checking for void *" >&5
8322 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8323 if test "${ac_cv_type_void_p+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 cat >conftest.$ac_ext <<_ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 $ac_includes_default
8333 typedef void * ac__type_new_;
8337 if ((ac__type_new_ *) 0)
8339 if (sizeof (ac__type_new_))
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8349 *) ac_try_echo
=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_compile") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1
>conftest.err
8356 cat conftest.err
>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && {
8359 test -z "$ac_c_werror_flag" ||
8360 test ! -s conftest.err
8361 } && test -s conftest.
$ac_objext; then
8362 ac_cv_type_void_p
=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.
$ac_ext >&5
8367 ac_cv_type_void_p
=no
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8373 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8375 # The cast to long int works around a bug in the HP C Compiler
8376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8378 # This bug is HP SR number 8606223364.
8379 { echo "$as_me:$LINENO: checking size of void *" >&5
8380 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8381 if test "${ac_cv_sizeof_void_p+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 if test "$cross_compiling" = yes; then
8385 # Depending upon the size, compute the lo and hi bounds.
8386 cat >conftest.
$ac_ext <<_ACEOF
8389 cat confdefs.h
>>conftest.
$ac_ext
8390 cat >>conftest.
$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 typedef void * ac__type_sizeof_;
8397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8404 rm -f conftest.
$ac_objext
8405 if { (ac_try
="$ac_compile"
8407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 typedef void * ac__type_sizeof_;
8434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8445 *) ac_try_echo
=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1
>conftest.err
8452 cat conftest.err
>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.
$ac_objext; then
8458 ac_hi
=$ac_mid; break
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.
$ac_ext >&5
8463 ac_lo
=`expr $ac_mid + 1`
8464 if test $ac_lo -le $ac_mid; then
8468 ac_mid
=`expr 2 '*' $ac_mid + 1`
8471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.
$ac_ext >&5
8477 cat >conftest.
$ac_ext <<_ACEOF
8480 cat confdefs.h
>>conftest.
$ac_ext
8481 cat >>conftest.
$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 typedef void * ac__type_sizeof_;
8488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8495 rm -f conftest.
$ac_objext
8496 if { (ac_try
="$ac_compile"
8498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 typedef void * ac__type_sizeof_;
8525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8532 rm -f conftest.$ac_objext
8533 if { (ac_try="$ac_compile"
8535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8536 *) ac_try_echo
=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_compile") 2>conftest.er1
8541 grep -v '^ *+' conftest.er1
>conftest.err
8543 cat conftest.err
>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && {
8546 test -z "$ac_c_werror_flag" ||
8547 test ! -s conftest.err
8548 } && test -s conftest.
$ac_objext; then
8549 ac_lo
=$ac_mid; break
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.
$ac_ext >&5
8554 ac_hi
=`expr '(' $ac_mid ')' - 1`
8555 if test $ac_mid -le $ac_hi; then
8559 ac_mid
=`expr 2 '*' $ac_mid`
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.
$ac_ext >&5
8571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8575 # Binary search between lo and hi bounds.
8576 while test "x$ac_lo" != "x$ac_hi"; do
8577 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8578 cat >conftest.
$ac_ext <<_ACEOF
8581 cat confdefs.h
>>conftest.
$ac_ext
8582 cat >>conftest.
$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 $ac_includes_default
8585 typedef void * ac__type_sizeof_;
8589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8596 rm -f conftest.
$ac_objext
8597 if { (ac_try
="$ac_compile"
8599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_lo=`expr '(' $ac_mid ')' + 1`
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8625 '') if test "$ac_cv_type_void_p" = yes; then
8626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8627 See \`config.log
' for more details." >&5
8628 echo "$as_me: error: cannot compute sizeof (void *)
8629 See \`config.log' for more details.
" >&2;}
8630 { (exit 77); exit 77; }; }
8632 ac_cv_sizeof_void_p=0
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 typedef void * ac__type_sizeof_;
8644 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8645 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8652 FILE *f = fopen ("conftest.val
", "w
");
8655 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8657 long int i = longval ();
8658 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8660 fprintf (f, "%ld
\n", i);
8664 unsigned long int i = ulongval ();
8665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8667 fprintf (f, "%lu
\n", i);
8669 return ferror (f) || fclose (f) != 0;
8675 rm -f conftest$ac_exeext
8676 if { (ac_try="$ac_link"
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_link") 2>&5
8684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8686 { (case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_try") 2>&5
8693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_cv_sizeof_void_p=`cat conftest.val`
8697 echo "$as_me: program exited with status
$ac_status" >&5
8698 echo "$as_me: failed program was
:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8702 if test "$ac_cv_type_void_p" = yes; then
8703 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8704 See \
`config.log' for more details." >&5
8705 echo "$as_me: error: cannot compute sizeof (void *)
8706 See \`config.log
' for more details." >&2;}
8707 { (exit 77); exit 77; }; }
8709 ac_cv_sizeof_void_p=0
8712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8716 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8717 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8721 cat >>confdefs.h <<_ACEOF
8722 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8726 { echo "$as_me:$LINENO: checking for short" >&5
8727 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8728 if test "${ac_cv_type_short+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 cat >conftest.$ac_ext <<_ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 typedef short ac__type_new_;
8742 if ((ac__type_new_ *) 0)
8744 if (sizeof (ac__type_new_))
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_compile") 2>conftest.er1
8759 grep -v '^
*+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest.$ac_objext; then
8767 ac_cv_type_short=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's
/^
/|
/' conftest.$ac_ext >&5
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8778 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8780 # The cast to long int works around a bug in the HP C Compiler
8781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8783 # This bug is HP SR number 8606223364.
8784 { echo "$as_me:$LINENO: checking size of short" >&5
8785 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8786 if test "${ac_cv_sizeof_short+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 if test "$cross_compiling" = yes; then
8790 # Depending upon the size, compute the lo and hi bounds.
8791 cat >conftest.
$ac_ext <<_ACEOF
8794 cat confdefs.h
>>conftest.
$ac_ext
8795 cat >>conftest.
$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 typedef short ac__type_sizeof_;
8802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8809 rm -f conftest.
$ac_objext
8810 if { (ac_try
="$ac_compile"
8812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.$ac_objext; then
8828 cat >conftest.$ac_ext <<_ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 $ac_includes_default
8835 typedef short ac__type_sizeof_;
8839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
8849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8850 *) ac_try_echo
=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1
>conftest.err
8857 cat conftest.err
>&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.
$ac_objext; then
8863 ac_hi
=$ac_mid; break
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.
$ac_ext >&5
8868 ac_lo
=`expr $ac_mid + 1`
8869 if test $ac_lo -le $ac_mid; then
8873 ac_mid
=`expr 2 '*' $ac_mid + 1`
8876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.
$ac_ext >&5
8882 cat >conftest.
$ac_ext <<_ACEOF
8885 cat confdefs.h
>>conftest.
$ac_ext
8886 cat >>conftest.
$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 typedef short ac__type_sizeof_;
8893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8900 rm -f conftest.
$ac_objext
8901 if { (ac_try
="$ac_compile"
8903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8919 cat >conftest.$ac_ext <<_ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 $ac_includes_default
8926 typedef short ac__type_sizeof_;
8930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8937 rm -f conftest.$ac_objext
8938 if { (ac_try="$ac_compile"
8940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8941 *) ac_try_echo
=$ac_try;;
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1
>conftest.err
8948 cat conftest.err
>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.
$ac_objext; then
8954 ac_lo
=$ac_mid; break
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.
$ac_ext >&5
8959 ac_hi
=`expr '(' $ac_mid ')' - 1`
8960 if test $ac_mid -le $ac_hi; then
8964 ac_mid
=`expr 2 '*' $ac_mid`
8967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.
$ac_ext >&5
8976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8980 # Binary search between lo and hi bounds.
8981 while test "x$ac_lo" != "x$ac_hi"; do
8982 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8983 cat >conftest.
$ac_ext <<_ACEOF
8986 cat confdefs.h
>>conftest.
$ac_ext
8987 cat >>conftest.
$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 $ac_includes_default
8990 typedef short ac__type_sizeof_;
8994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9001 rm -f conftest.
$ac_objext
9002 if { (ac_try
="$ac_compile"
9004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9010 grep -v '^ *+' conftest.er1 >conftest.err
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 ac_lo=`expr '(' $ac_mid ')' + 1`
9026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 ?*) ac_cv_sizeof_short=$ac_lo;;
9030 '') if test "$ac_cv_type_short" = yes; then
9031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9032 See \`config.log
' for more details." >&5
9033 echo "$as_me: error: cannot compute sizeof (short)
9034 See \`config.log' for more details.
" >&2;}
9035 { (exit 77); exit 77; }; }
9037 ac_cv_sizeof_short=0
9041 cat >conftest.$ac_ext <<_ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9047 $ac_includes_default
9048 typedef short ac__type_sizeof_;
9049 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9050 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9057 FILE *f = fopen ("conftest.val
", "w
");
9060 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9062 long int i = longval ();
9063 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9065 fprintf (f, "%ld
\n", i);
9069 unsigned long int i = ulongval ();
9070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9072 fprintf (f, "%lu
\n", i);
9074 return ferror (f) || fclose (f) != 0;
9080 rm -f conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9087 (eval "$ac_link") 2>&5
9089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9091 { (case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_try") 2>&5
9098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_sizeof_short=`cat conftest.val`
9102 echo "$as_me: program exited with status
$ac_status" >&5
9103 echo "$as_me: failed program was
:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9107 if test "$ac_cv_type_short" = yes; then
9108 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9109 See \
`config.log' for more details." >&5
9110 echo "$as_me: error: cannot compute sizeof (short)
9111 See \`config.log
' for more details." >&2;}
9112 { (exit 77); exit 77; }; }
9114 ac_cv_sizeof_short=0
9117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9121 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9122 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9126 cat >>confdefs.h <<_ACEOF
9127 #define SIZEOF_SHORT $ac_cv_sizeof_short
9131 { echo "$as_me:$LINENO: checking for float" >&5
9132 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9133 if test "${ac_cv_type_float+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 cat >conftest.$ac_ext <<_ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 $ac_includes_default
9143 typedef float ac__type_new_;
9147 if ((ac__type_new_ *) 0)
9149 if (sizeof (ac__type_new_))
9155 rm -f conftest.$ac_objext
9156 if { (ac_try="$ac_compile"
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_compile") 2>conftest.er1
9164 grep -v '^
*+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest.$ac_objext; then
9172 ac_cv_type_float=yes
9174 echo "$as_me: failed program was:" >&5
9175 sed 's
/^
/|
/' conftest.$ac_ext >&5
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9183 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9185 # The cast to long int works around a bug in the HP C Compiler
9186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9188 # This bug is HP SR number 8606223364.
9189 { echo "$as_me:$LINENO: checking size of float" >&5
9190 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9191 if test "${ac_cv_sizeof_float+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 if test "$cross_compiling" = yes; then
9195 # Depending upon the size, compute the lo and hi bounds.
9196 cat >conftest.
$ac_ext <<_ACEOF
9199 cat confdefs.h
>>conftest.
$ac_ext
9200 cat >>conftest.
$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 $ac_includes_default
9203 typedef float ac__type_sizeof_;
9207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9214 rm -f conftest.
$ac_objext
9215 if { (ac_try
="$ac_compile"
9217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
9233 cat >conftest.$ac_ext <<_ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 $ac_includes_default
9240 typedef float ac__type_sizeof_;
9244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9251 rm -f conftest.$ac_objext
9252 if { (ac_try="$ac_compile"
9254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9255 *) ac_try_echo
=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_compile") 2>conftest.er1
9260 grep -v '^ *+' conftest.er1
>conftest.err
9262 cat conftest.err
>&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && {
9265 test -z "$ac_c_werror_flag" ||
9266 test ! -s conftest.err
9267 } && test -s conftest.
$ac_objext; then
9268 ac_hi
=$ac_mid; break
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.
$ac_ext >&5
9273 ac_lo
=`expr $ac_mid + 1`
9274 if test $ac_lo -le $ac_mid; then
9278 ac_mid
=`expr 2 '*' $ac_mid + 1`
9281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.
$ac_ext >&5
9287 cat >conftest.
$ac_ext <<_ACEOF
9290 cat confdefs.h
>>conftest.
$ac_ext
9291 cat >>conftest.
$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 typedef float ac__type_sizeof_;
9298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9305 rm -f conftest.
$ac_objext
9306 if { (ac_try
="$ac_compile"
9308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9324 cat >conftest.$ac_ext <<_ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 $ac_includes_default
9331 typedef float ac__type_sizeof_;
9335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9342 rm -f conftest.$ac_objext
9343 if { (ac_try="$ac_compile"
9345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9346 *) ac_try_echo
=$ac_try;;
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_compile") 2>conftest.er1
9351 grep -v '^ *+' conftest.er1
>conftest.err
9353 cat conftest.err
>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && {
9356 test -z "$ac_c_werror_flag" ||
9357 test ! -s conftest.err
9358 } && test -s conftest.
$ac_objext; then
9359 ac_lo
=$ac_mid; break
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.
$ac_ext >&5
9364 ac_hi
=`expr '(' $ac_mid ')' - 1`
9365 if test $ac_mid -le $ac_hi; then
9369 ac_mid
=`expr 2 '*' $ac_mid`
9372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9375 echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.
$ac_ext >&5
9381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9385 # Binary search between lo and hi bounds.
9386 while test "x$ac_lo" != "x$ac_hi"; do
9387 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9388 cat >conftest.
$ac_ext <<_ACEOF
9391 cat confdefs.h
>>conftest.
$ac_ext
9392 cat >>conftest.
$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 $ac_includes_default
9395 typedef float ac__type_sizeof_;
9399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9406 rm -f conftest.
$ac_objext
9407 if { (ac_try
="$ac_compile"
9409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_compile") 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest.$ac_objext; then
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_lo=`expr '(' $ac_mid ')' + 1`
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 ?*) ac_cv_sizeof_float=$ac_lo;;
9435 '') if test "$ac_cv_type_float" = yes; then
9436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9437 See \`config.log
' for more details." >&5
9438 echo "$as_me: error: cannot compute sizeof (float)
9439 See \`config.log' for more details.
" >&2;}
9440 { (exit 77); exit 77; }; }
9442 ac_cv_sizeof_float=0
9446 cat >conftest.$ac_ext <<_ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 $ac_includes_default
9453 typedef float ac__type_sizeof_;
9454 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9455 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9462 FILE *f = fopen ("conftest.val
", "w
");
9465 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9467 long int i = longval ();
9468 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9470 fprintf (f, "%ld
\n", i);
9474 unsigned long int i = ulongval ();
9475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9477 fprintf (f, "%lu
\n", i);
9479 return ferror (f) || fclose (f) != 0;
9485 rm -f conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>&5
9494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 ac_cv_sizeof_float=`cat conftest.val`
9507 echo "$as_me: program exited with status
$ac_status" >&5
9508 echo "$as_me: failed program was
:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9512 if test "$ac_cv_type_float" = yes; then
9513 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9514 See \
`config.log' for more details." >&5
9515 echo "$as_me: error: cannot compute sizeof (float)
9516 See \`config.log
' for more details." >&2;}
9517 { (exit 77); exit 77; }; }
9519 ac_cv_sizeof_float=0
9522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9526 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9527 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9531 cat >>confdefs.h <<_ACEOF
9532 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9536 { echo "$as_me:$LINENO: checking for double" >&5
9537 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9538 if test "${ac_cv_type_double+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 typedef double ac__type_new_;
9552 if ((ac__type_new_ *) 0)
9554 if (sizeof (ac__type_new_))
9560 rm -f conftest.$ac_objext
9561 if { (ac_try="$ac_compile"
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_compile") 2>conftest.er1
9569 grep -v '^
*+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest.$ac_objext; then
9577 ac_cv_type_double=yes
9579 echo "$as_me: failed program was:" >&5
9580 sed 's
/^
/|
/' conftest.$ac_ext >&5
9582 ac_cv_type_double=no
9585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9588 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9590 # The cast to long int works around a bug in the HP C Compiler
9591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9593 # This bug is HP SR number 8606223364.
9594 { echo "$as_me:$LINENO: checking size of double" >&5
9595 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9596 if test "${ac_cv_sizeof_double+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 if test "$cross_compiling" = yes; then
9600 # Depending upon the size, compute the lo and hi bounds.
9601 cat >conftest.
$ac_ext <<_ACEOF
9604 cat confdefs.h
>>conftest.
$ac_ext
9605 cat >>conftest.
$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9608 typedef double ac__type_sizeof_;
9612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9619 rm -f conftest.
$ac_objext
9620 if { (ac_try
="$ac_compile"
9622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9638 cat >conftest.$ac_ext <<_ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 $ac_includes_default
9645 typedef double ac__type_sizeof_;
9649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9656 rm -f conftest.$ac_objext
9657 if { (ac_try="$ac_compile"
9659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9660 *) ac_try_echo
=$ac_try;;
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_compile") 2>conftest.er1
9665 grep -v '^ *+' conftest.er1
>conftest.err
9667 cat conftest.err
>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && {
9670 test -z "$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 } && test -s conftest.
$ac_objext; then
9673 ac_hi
=$ac_mid; break
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.
$ac_ext >&5
9678 ac_lo
=`expr $ac_mid + 1`
9679 if test $ac_lo -le $ac_mid; then
9683 ac_mid
=`expr 2 '*' $ac_mid + 1`
9686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.
$ac_ext >&5
9692 cat >conftest.
$ac_ext <<_ACEOF
9695 cat confdefs.h
>>conftest.
$ac_ext
9696 cat >>conftest.
$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 $ac_includes_default
9699 typedef double ac__type_sizeof_;
9703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9710 rm -f conftest.
$ac_objext
9711 if { (ac_try
="$ac_compile"
9713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_compile") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest.$ac_objext; then
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 $ac_includes_default
9736 typedef double ac__type_sizeof_;
9740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9747 rm -f conftest.$ac_objext
9748 if { (ac_try="$ac_compile"
9750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9751 *) ac_try_echo
=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1
>conftest.err
9758 cat conftest.err
>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.
$ac_objext; then
9764 ac_lo
=$ac_mid; break
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.
$ac_ext >&5
9769 ac_hi
=`expr '(' $ac_mid ')' - 1`
9770 if test $ac_mid -le $ac_hi; then
9774 ac_mid
=`expr 2 '*' $ac_mid`
9777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.
$ac_ext >&5
9786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 # Binary search between lo and hi bounds.
9791 while test "x$ac_lo" != "x$ac_hi"; do
9792 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9793 cat >conftest.
$ac_ext <<_ACEOF
9796 cat confdefs.h
>>conftest.
$ac_ext
9797 cat >>conftest.
$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9800 typedef double ac__type_sizeof_;
9804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9811 rm -f conftest.
$ac_objext
9812 if { (ac_try
="$ac_compile"
9814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_compile") 2>conftest.er1
9820 grep -v '^ *+' conftest.er1 >conftest.err
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest.$ac_objext; then
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_lo=`expr '(' $ac_mid ')' + 1`
9836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 ?*) ac_cv_sizeof_double=$ac_lo;;
9840 '') if test "$ac_cv_type_double" = yes; then
9841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9842 See \`config.log
' for more details." >&5
9843 echo "$as_me: error: cannot compute sizeof (double)
9844 See \`config.log' for more details.
" >&2;}
9845 { (exit 77); exit 77; }; }
9847 ac_cv_sizeof_double=0
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9858 typedef double ac__type_sizeof_;
9859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9867 FILE *f = fopen ("conftest.val
", "w
");
9870 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9872 long int i = longval ();
9873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9875 fprintf (f, "%ld
\n", i);
9879 unsigned long int i = ulongval ();
9880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9882 fprintf (f, "%lu
\n", i);
9884 return ferror (f) || fclose (f) != 0;
9890 rm -f conftest$ac_exeext
9891 if { (ac_try="$ac_link"
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_link") 2>&5
9899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_sizeof_double=`cat conftest.val`
9912 echo "$as_me: program exited with status
$ac_status" >&5
9913 echo "$as_me: failed program was
:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9917 if test "$ac_cv_type_double" = yes; then
9918 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9919 See \
`config.log' for more details." >&5
9920 echo "$as_me: error: cannot compute sizeof (double)
9921 See \`config.log
' for more details." >&2;}
9922 { (exit 77); exit 77; }; }
9924 ac_cv_sizeof_double=0
9927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9932 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9936 cat >>confdefs.h <<_ACEOF
9937 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9941 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9942 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9943 if test "${ac_cv_type_fpos_t+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9953 typedef fpos_t ac__type_new_;
9957 if ((ac__type_new_ *) 0)
9959 if (sizeof (ac__type_new_))
9965 rm -f conftest.$ac_objext
9966 if { (ac_try="$ac_compile"
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_compile") 2>conftest.er1
9974 grep -v '^
*+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest.$ac_objext; then
9982 ac_cv_type_fpos_t=yes
9984 echo "$as_me: failed program was:" >&5
9985 sed 's
/^
/|
/' conftest.$ac_ext >&5
9987 ac_cv_type_fpos_t=no
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9993 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9995 # The cast to long int works around a bug in the HP C Compiler
9996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9998 # This bug is HP SR number 8606223364.
9999 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10000 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10001 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 if test "$cross_compiling" = yes; then
10005 # Depending upon the size, compute the lo and hi bounds.
10006 cat >conftest.
$ac_ext <<_ACEOF
10009 cat confdefs.h
>>conftest.
$ac_ext
10010 cat >>conftest.
$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 $ac_includes_default
10013 typedef fpos_t ac__type_sizeof_;
10017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10024 rm -f conftest.
$ac_objext
10025 if { (ac_try
="$ac_compile"
10026 case "(($ac_try" in
10027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_compile") 2>conftest.er1
10033 grep -v '^ *+' conftest.er1 >conftest.err
10035 cat conftest.err >&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && {
10038 test -z "$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10040 } && test -s conftest.$ac_objext; then
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 $ac_includes_default
10050 typedef fpos_t ac__type_sizeof_;
10054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10065 *) ac_try_echo
=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1
>conftest.err
10072 cat conftest.err
>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest.
$ac_objext; then
10078 ac_hi
=$ac_mid; break
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.
$ac_ext >&5
10083 ac_lo
=`expr $ac_mid + 1`
10084 if test $ac_lo -le $ac_mid; then
10088 ac_mid
=`expr 2 '*' $ac_mid + 1`
10091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10094 echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.
$ac_ext >&5
10097 cat >conftest.
$ac_ext <<_ACEOF
10100 cat confdefs.h
>>conftest.
$ac_ext
10101 cat >>conftest.
$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $ac_includes_default
10104 typedef fpos_t ac__type_sizeof_;
10108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10115 rm -f conftest.
$ac_objext
10116 if { (ac_try
="$ac_compile"
10117 case "(($ac_try" in
10118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_compile") 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest.$ac_objext; then
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 $ac_includes_default
10141 typedef fpos_t ac__type_sizeof_;
10145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10152 rm -f conftest.$ac_objext
10153 if { (ac_try="$ac_compile"
10154 case "(($ac_try" in
10155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10156 *) ac_try_echo
=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_compile") 2>conftest.er1
10161 grep -v '^ *+' conftest.er1
>conftest.err
10163 cat conftest.err
>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest.
$ac_objext; then
10169 ac_lo
=$ac_mid; break
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.
$ac_ext >&5
10174 ac_hi
=`expr '(' $ac_mid ')' - 1`
10175 if test $ac_mid -le $ac_hi; then
10179 ac_mid
=`expr 2 '*' $ac_mid`
10182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.
$ac_ext >&5
10191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10195 # Binary search between lo and hi bounds.
10196 while test "x$ac_lo" != "x$ac_hi"; do
10197 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10198 cat >conftest.
$ac_ext <<_ACEOF
10201 cat confdefs.h
>>conftest.
$ac_ext
10202 cat >>conftest.
$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 $ac_includes_default
10205 typedef fpos_t ac__type_sizeof_;
10209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10216 rm -f conftest.
$ac_objext
10217 if { (ac_try
="$ac_compile"
10218 case "(($ac_try" in
10219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_compile") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1 >conftest.err
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest.$ac_objext; then
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 ac_lo=`expr '(' $ac_mid ')' + 1`
10241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10245 '') if test "$ac_cv_type_fpos_t" = yes; then
10246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10247 See \`config.log
' for more details." >&5
10248 echo "$as_me: error: cannot compute sizeof (fpos_t)
10249 See \`config.log' for more details.
" >&2;}
10250 { (exit 77); exit 77; }; }
10252 ac_cv_sizeof_fpos_t=0
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 $ac_includes_default
10263 typedef fpos_t ac__type_sizeof_;
10264 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10265 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10267 #include <stdlib.h>
10272 FILE *f = fopen ("conftest.val
", "w
");
10275 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10277 long int i = longval ();
10278 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10280 fprintf (f, "%ld
\n", i);
10284 unsigned long int i = ulongval ();
10285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10287 fprintf (f, "%lu
\n", i);
10289 return ferror (f) || fclose (f) != 0;
10295 rm -f conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>&5
10304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_cv_sizeof_fpos_t=`cat conftest.val`
10317 echo "$as_me: program exited with status
$ac_status" >&5
10318 echo "$as_me: failed program was
:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ( exit $ac_status )
10322 if test "$ac_cv_type_fpos_t" = yes; then
10323 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10324 See \
`config.log' for more details." >&5
10325 echo "$as_me: error: cannot compute sizeof (fpos_t)
10326 See \`config.log
' for more details." >&2;}
10327 { (exit 77); exit 77; }; }
10329 ac_cv_sizeof_fpos_t=0
10332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10336 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10337 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10341 cat >>confdefs.h <<_ACEOF
10342 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10346 { echo "$as_me:$LINENO: checking for size_t" >&5
10347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10348 if test "${ac_cv_type_size_t+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 typedef size_t ac__type_new_;
10362 if ((ac__type_new_ *) 0)
10364 if (sizeof (ac__type_new_))
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^
*+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_cv_type_size_t=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's
/^
/|
/' conftest.$ac_ext >&5
10392 ac_cv_type_size_t=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10398 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10400 # The cast to long int works around a bug in the HP C Compiler
10401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10403 # This bug is HP SR number 8606223364.
10404 { echo "$as_me:$LINENO: checking size of size_t" >&5
10405 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10406 if test "${ac_cv_sizeof_size_t+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 if test "$cross_compiling" = yes; then
10410 # Depending upon the size, compute the lo and hi bounds.
10411 cat >conftest.
$ac_ext <<_ACEOF
10414 cat confdefs.h
>>conftest.
$ac_ext
10415 cat >>conftest.
$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 $ac_includes_default
10418 typedef size_t ac__type_sizeof_;
10422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10429 rm -f conftest.
$ac_objext
10430 if { (ac_try
="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
10448 cat >conftest.$ac_ext <<_ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 $ac_includes_default
10455 typedef size_t ac__type_sizeof_;
10459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10470 *) ac_try_echo
=$ac_try;;
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_compile") 2>conftest.er1
10475 grep -v '^ *+' conftest.er1
>conftest.err
10477 cat conftest.err
>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest.
$ac_objext; then
10483 ac_hi
=$ac_mid; break
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.
$ac_ext >&5
10488 ac_lo
=`expr $ac_mid + 1`
10489 if test $ac_lo -le $ac_mid; then
10493 ac_mid
=`expr 2 '*' $ac_mid + 1`
10496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.
$ac_ext >&5
10502 cat >conftest.
$ac_ext <<_ACEOF
10505 cat confdefs.h
>>conftest.
$ac_ext
10506 cat >>conftest.
$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 typedef size_t ac__type_sizeof_;
10513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10520 rm -f conftest.
$ac_objext
10521 if { (ac_try
="$ac_compile"
10522 case "(($ac_try" in
10523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_compile") 2>conftest.er1
10529 grep -v '^ *+' conftest.er1 >conftest.err
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.$ac_objext; then
10539 cat >conftest.$ac_ext <<_ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 typedef size_t ac__type_sizeof_;
10550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10557 rm -f conftest.$ac_objext
10558 if { (ac_try="$ac_compile"
10559 case "(($ac_try" in
10560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10561 *) ac_try_echo
=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_compile") 2>conftest.er1
10566 grep -v '^ *+' conftest.er1
>conftest.err
10568 cat conftest.err
>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest.
$ac_objext; then
10574 ac_lo
=$ac_mid; break
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.
$ac_ext >&5
10579 ac_hi
=`expr '(' $ac_mid ')' - 1`
10580 if test $ac_mid -le $ac_hi; then
10584 ac_mid
=`expr 2 '*' $ac_mid`
10587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.
$ac_ext >&5
10596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10600 # Binary search between lo and hi bounds.
10601 while test "x$ac_lo" != "x$ac_hi"; do
10602 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10603 cat >conftest.
$ac_ext <<_ACEOF
10606 cat confdefs.h
>>conftest.
$ac_ext
10607 cat >>conftest.
$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 $ac_includes_default
10610 typedef size_t ac__type_sizeof_;
10614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10621 rm -f conftest.
$ac_objext
10622 if { (ac_try
="$ac_compile"
10623 case "(($ac_try" in
10624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_compile") 2>conftest.er1
10630 grep -v '^ *+' conftest.er1 >conftest.err
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && {
10635 test -z "$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 } && test -s conftest.$ac_objext; then
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_lo=`expr '(' $ac_mid ')' + 1`
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10650 '') if test "$ac_cv_type_size_t" = yes; then
10651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10652 See \`config.log
' for more details." >&5
10653 echo "$as_me: error: cannot compute sizeof (size_t)
10654 See \`config.log' for more details.
" >&2;}
10655 { (exit 77); exit 77; }; }
10657 ac_cv_sizeof_size_t=0
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10668 typedef size_t ac__type_sizeof_;
10669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10672 #include <stdlib.h>
10677 FILE *f = fopen ("conftest.val
", "w
");
10680 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10682 long int i = longval ();
10683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10685 fprintf (f, "%ld
\n", i);
10689 unsigned long int i = ulongval ();
10690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10692 fprintf (f, "%lu
\n", i);
10694 return ferror (f) || fclose (f) != 0;
10700 rm -f conftest$ac_exeext
10701 if { (ac_try="$ac_link"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_link") 2>&5
10709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_sizeof_size_t=`cat conftest.val`
10722 echo "$as_me: program exited with status
$ac_status" >&5
10723 echo "$as_me: failed program was
:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ( exit $ac_status )
10727 if test "$ac_cv_type_size_t" = yes; then
10728 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10729 See \
`config.log' for more details." >&5
10730 echo "$as_me: error: cannot compute sizeof (size_t)
10731 See \`config.log
' for more details." >&2;}
10732 { (exit 77); exit 77; }; }
10734 ac_cv_sizeof_size_t=0
10737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10742 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10746 cat >>confdefs.h <<_ACEOF
10747 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10751 { echo "$as_me:$LINENO: checking for pid_t" >&5
10752 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10753 if test "${ac_cv_type_pid_t+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 $ac_includes_default
10763 typedef pid_t ac__type_new_;
10767 if ((ac__type_new_ *) 0)
10769 if (sizeof (ac__type_new_))
10775 rm -f conftest.$ac_objext
10776 if { (ac_try="$ac_compile"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_compile") 2>conftest.er1
10784 grep -v '^
*+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest.$ac_objext; then
10792 ac_cv_type_pid_t=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's
/^
/|
/' conftest.$ac_ext >&5
10797 ac_cv_type_pid_t=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10805 # The cast to long int works around a bug in the HP C Compiler
10806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10808 # This bug is HP SR number 8606223364.
10809 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10810 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10811 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 if test "$cross_compiling" = yes; then
10815 # Depending upon the size, compute the lo and hi bounds.
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 typedef pid_t ac__type_sizeof_;
10827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10834 rm -f conftest.
$ac_objext
10835 if { (ac_try
="$ac_compile"
10836 case "(($ac_try" in
10837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.$ac_objext; then
10853 cat >conftest.$ac_ext <<_ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 $ac_includes_default
10860 typedef pid_t ac__type_sizeof_;
10864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10875 *) ac_try_echo
=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_compile") 2>conftest.er1
10880 grep -v '^ *+' conftest.er1
>conftest.err
10882 cat conftest.err
>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } && {
10885 test -z "$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10887 } && test -s conftest.
$ac_objext; then
10888 ac_hi
=$ac_mid; break
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.
$ac_ext >&5
10893 ac_lo
=`expr $ac_mid + 1`
10894 if test $ac_lo -le $ac_mid; then
10898 ac_mid
=`expr 2 '*' $ac_mid + 1`
10901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.
$ac_ext >&5
10907 cat >conftest.
$ac_ext <<_ACEOF
10910 cat confdefs.h
>>conftest.
$ac_ext
10911 cat >>conftest.
$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 $ac_includes_default
10914 typedef pid_t ac__type_sizeof_;
10918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10925 rm -f conftest.
$ac_objext
10926 if { (ac_try
="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.$ac_objext; then
10944 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 $ac_includes_default
10951 typedef pid_t ac__type_sizeof_;
10955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10966 *) ac_try_echo
=$ac_try;;
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10971 grep -v '^ *+' conftest.er1
>conftest.err
10973 cat conftest.err
>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest.
$ac_objext; then
10979 ac_lo
=$ac_mid; break
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.
$ac_ext >&5
10984 ac_hi
=`expr '(' $ac_mid ')' - 1`
10985 if test $ac_mid -le $ac_hi; then
10989 ac_mid
=`expr 2 '*' $ac_mid`
10992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.
$ac_ext >&5
11001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11005 # Binary search between lo and hi bounds.
11006 while test "x$ac_lo" != "x$ac_hi"; do
11007 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11008 cat >conftest.
$ac_ext <<_ACEOF
11011 cat confdefs.h
>>conftest.
$ac_ext
11012 cat >>conftest.
$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 $ac_includes_default
11015 typedef pid_t ac__type_sizeof_;
11019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11026 rm -f conftest.
$ac_objext
11027 if { (ac_try
="$ac_compile"
11028 case "(($ac_try" in
11029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_compile") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest.$ac_objext; then
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_lo=`expr '(' $ac_mid ')' + 1`
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11055 '') if test "$ac_cv_type_pid_t" = yes; then
11056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11057 See \`config.log
' for more details." >&5
11058 echo "$as_me: error: cannot compute sizeof (pid_t)
11059 See \`config.log' for more details.
" >&2;}
11060 { (exit 77); exit 77; }; }
11062 ac_cv_sizeof_pid_t=0
11066 cat >conftest.$ac_ext <<_ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 $ac_includes_default
11073 typedef pid_t ac__type_sizeof_;
11074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11077 #include <stdlib.h>
11082 FILE *f = fopen ("conftest.val
", "w
");
11085 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11087 long int i = longval ();
11088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11090 fprintf (f, "%ld
\n", i);
11094 unsigned long int i = ulongval ();
11095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11097 fprintf (f, "%lu
\n", i);
11099 return ferror (f) || fclose (f) != 0;
11105 rm -f conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_link") 2>&5
11114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 ac_cv_sizeof_pid_t=`cat conftest.val`
11127 echo "$as_me: program exited with status
$ac_status" >&5
11128 echo "$as_me: failed program was
:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 ( exit $ac_status )
11132 if test "$ac_cv_type_pid_t" = yes; then
11133 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11134 See \
`config.log' for more details." >&5
11135 echo "$as_me: error: cannot compute sizeof (pid_t)
11136 See \`config.log
' for more details." >&2;}
11137 { (exit 77); exit 77; }; }
11139 ac_cv_sizeof_pid_t=0
11142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11147 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11151 cat >>confdefs.h <<_ACEOF
11152 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11157 { echo "$as_me:$LINENO: checking for long long support" >&5
11158 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11160 cat >conftest.$ac_ext <<_ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11170 long long x; x = (long long)0;
11175 rm -f conftest.$ac_objext
11176 if { (ac_try="$ac_compile"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_compile") 2>conftest.er1
11184 grep -v '^
*+' conftest.er1 >conftest.err
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest.$ac_objext; then
11194 cat >>confdefs.h <<\_ACEOF
11195 #define HAVE_LONG_LONG 1
11201 echo "$as_me: failed program was:" >&5
11202 sed 's
/^
/|
/' conftest.$ac_ext >&5
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11209 echo "${ECHO_T}$have_long_long" >&6; }
11210 if test "$have_long_long" = yes ; then
11211 { echo "$as_me:$LINENO: checking for long long" >&5
11212 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11213 if test "${ac_cv_type_long_long+set}" = set; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 $ac_includes_default
11223 typedef long long ac__type_new_;
11227 if ((ac__type_new_ *) 0)
11229 if (sizeof (ac__type_new_))
11235 rm -f conftest.$ac_objext
11236 if { (ac_try="$ac_compile"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_compile") 2>conftest.er1
11244 grep -v '^
*+' conftest.er1 >conftest.err
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest.$ac_objext; then
11252 ac_cv_type_long_long=yes
11254 echo "$as_me: failed program was:" >&5
11255 sed 's
/^
/|
/' conftest.$ac_ext >&5
11257 ac_cv_type_long_long=no
11260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11263 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11265 # The cast to long int works around a bug in the HP C Compiler
11266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11268 # This bug is HP SR number 8606223364.
11269 { echo "$as_me:$LINENO: checking size of long long" >&5
11270 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11271 if test "${ac_cv_sizeof_long_long+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 if test "$cross_compiling" = yes; then
11275 # Depending upon the size, compute the lo and hi bounds.
11276 cat >conftest.
$ac_ext <<_ACEOF
11279 cat confdefs.h
>>conftest.
$ac_ext
11280 cat >>conftest.
$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 typedef long long ac__type_sizeof_;
11287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11294 rm -f conftest.
$ac_objext
11295 if { (ac_try
="$ac_compile"
11296 case "(($ac_try" in
11297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11303 grep -v '^ *+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 typedef long long ac__type_sizeof_;
11324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11335 *) ac_try_echo
=$ac_try;;
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11340 grep -v '^ *+' conftest.er1
>conftest.err
11342 cat conftest.err
>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.
$ac_objext; then
11348 ac_hi
=$ac_mid; break
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.
$ac_ext >&5
11353 ac_lo
=`expr $ac_mid + 1`
11354 if test $ac_lo -le $ac_mid; then
11358 ac_mid
=`expr 2 '*' $ac_mid + 1`
11361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.
$ac_ext >&5
11367 cat >conftest.
$ac_ext <<_ACEOF
11370 cat confdefs.h
>>conftest.
$ac_ext
11371 cat >>conftest.
$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 $ac_includes_default
11374 typedef long long ac__type_sizeof_;
11378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11385 rm -f conftest.
$ac_objext
11386 if { (ac_try
="$ac_compile"
11387 case "(($ac_try" in
11388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compile") 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } && {
11399 test -z "$ac_c_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest.$ac_objext; then
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 $ac_includes_default
11411 typedef long long ac__type_sizeof_;
11415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11426 *) ac_try_echo
=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11431 grep -v '^ *+' conftest.er1
>conftest.err
11433 cat conftest.err
>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && {
11436 test -z "$ac_c_werror_flag" ||
11437 test ! -s conftest.err
11438 } && test -s conftest.
$ac_objext; then
11439 ac_lo
=$ac_mid; break
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.
$ac_ext >&5
11444 ac_hi
=`expr '(' $ac_mid ')' - 1`
11445 if test $ac_mid -le $ac_hi; then
11449 ac_mid
=`expr 2 '*' $ac_mid`
11452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.
$ac_ext >&5
11461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11465 # Binary search between lo and hi bounds.
11466 while test "x$ac_lo" != "x$ac_hi"; do
11467 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 typedef long long ac__type_sizeof_;
11479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11486 rm -f conftest.
$ac_objext
11487 if { (ac_try
="$ac_compile"
11488 case "(($ac_try" in
11489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 ac_lo=`expr '(' $ac_mid ')' + 1`
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11514 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11515 '') if test "$ac_cv_type_long_long" = yes; then
11516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11517 See \`config.log
' for more details." >&5
11518 echo "$as_me: error: cannot compute sizeof (long long)
11519 See \`config.log' for more details.
" >&2;}
11520 { (exit 77); exit 77; }; }
11522 ac_cv_sizeof_long_long=0
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 typedef long long ac__type_sizeof_;
11534 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11535 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11537 #include <stdlib.h>
11542 FILE *f = fopen ("conftest.val
", "w
");
11545 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11547 long int i = longval ();
11548 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11550 fprintf (f, "%ld
\n", i);
11554 unsigned long int i = ulongval ();
11555 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11557 fprintf (f, "%lu
\n", i);
11559 return ferror (f) || fclose (f) != 0;
11565 rm -f conftest$ac_exeext
11566 if { (ac_try="$ac_link"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>&5
11574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11576 { (case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_try") 2>&5
11583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_cv_sizeof_long_long=`cat conftest.val`
11587 echo "$as_me: program exited with status
$ac_status" >&5
11588 echo "$as_me: failed program was
:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ( exit $ac_status )
11592 if test "$ac_cv_type_long_long" = yes; then
11593 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11594 See \
`config.log' for more details." >&5
11595 echo "$as_me: error: cannot compute sizeof (long long)
11596 See \`config.log
' for more details." >&2;}
11597 { (exit 77); exit 77; }; }
11599 ac_cv_sizeof_long_long=0
11602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11606 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11607 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11611 cat >>confdefs.h <<_ACEOF
11612 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11618 { echo "$as_me:$LINENO: checking for long double support" >&5
11619 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11620 have_long_double=no
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11631 long double x; x = (long double)0;
11636 rm -f conftest.$ac_objext
11637 if { (ac_try="$ac_compile"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_compile") 2>conftest.er1
11645 grep -v '^
*+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest.$ac_objext; then
11655 cat >>confdefs.h <<\_ACEOF
11656 #define HAVE_LONG_DOUBLE 1
11659 have_long_double=yes
11662 echo "$as_me: failed program was:" >&5
11663 sed 's
/^
/|
/' conftest.$ac_ext >&5
11668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11670 echo "${ECHO_T}$have_long_double" >&6; }
11671 if test "$have_long_double" = yes ; then
11672 { echo "$as_me:$LINENO: checking for long double" >&5
11673 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11674 if test "${ac_cv_type_long_double+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11684 typedef long double ac__type_new_;
11688 if ((ac__type_new_ *) 0)
11690 if (sizeof (ac__type_new_))
11696 rm -f conftest.$ac_objext
11697 if { (ac_try="$ac_compile"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_compile") 2>conftest.er1
11705 grep -v '^
*+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest.$ac_objext; then
11713 ac_cv_type_long_double=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's
/^
/|
/' conftest.$ac_ext >&5
11718 ac_cv_type_long_double=no
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11724 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11726 # The cast to long int works around a bug in the HP C Compiler
11727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11729 # This bug is HP SR number 8606223364.
11730 { echo "$as_me:$LINENO: checking size of long double" >&5
11731 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11732 if test "${ac_cv_sizeof_long_double+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 if test "$cross_compiling" = yes; then
11736 # Depending upon the size, compute the lo and hi bounds.
11737 cat >conftest.
$ac_ext <<_ACEOF
11740 cat confdefs.h
>>conftest.
$ac_ext
11741 cat >>conftest.
$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 $ac_includes_default
11744 typedef long double ac__type_sizeof_;
11748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11755 rm -f conftest.
$ac_objext
11756 if { (ac_try
="$ac_compile"
11757 case "(($ac_try" in
11758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_compile") 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } && {
11769 test -z "$ac_c_werror_flag" ||
11770 test ! -s conftest.err
11771 } && test -s conftest.$ac_objext; then
11774 cat >conftest.$ac_ext <<_ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11781 typedef long double ac__type_sizeof_;
11785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11792 rm -f conftest.$ac_objext
11793 if { (ac_try="$ac_compile"
11794 case "(($ac_try" in
11795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11796 *) ac_try_echo
=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_compile") 2>conftest.er1
11801 grep -v '^ *+' conftest.er1
>conftest.err
11803 cat conftest.err
>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
11808 } && test -s conftest.
$ac_objext; then
11809 ac_hi
=$ac_mid; break
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.
$ac_ext >&5
11814 ac_lo
=`expr $ac_mid + 1`
11815 if test $ac_lo -le $ac_mid; then
11819 ac_mid
=`expr 2 '*' $ac_mid + 1`
11822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11825 echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.
$ac_ext >&5
11828 cat >conftest.
$ac_ext <<_ACEOF
11831 cat confdefs.h
>>conftest.
$ac_ext
11832 cat >>conftest.
$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 typedef long double ac__type_sizeof_;
11839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11846 rm -f conftest.
$ac_objext
11847 if { (ac_try
="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_c_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest.$ac_objext; then
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11872 typedef long double ac__type_sizeof_;
11876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11883 rm -f conftest.$ac_objext
11884 if { (ac_try="$ac_compile"
11885 case "(($ac_try" in
11886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11887 *) ac_try_echo
=$ac_try;;
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_compile") 2>conftest.er1
11892 grep -v '^ *+' conftest.er1
>conftest.err
11894 cat conftest.err
>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest.
$ac_objext; then
11900 ac_lo
=$ac_mid; break
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.
$ac_ext >&5
11905 ac_hi
=`expr '(' $ac_mid ')' - 1`
11906 if test $ac_mid -le $ac_hi; then
11910 ac_mid
=`expr 2 '*' $ac_mid`
11913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.
$ac_ext >&5
11922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11926 # Binary search between lo and hi bounds.
11927 while test "x$ac_lo" != "x$ac_hi"; do
11928 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11929 cat >conftest.
$ac_ext <<_ACEOF
11932 cat confdefs.h
>>conftest.
$ac_ext
11933 cat >>conftest.
$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 $ac_includes_default
11936 typedef long double ac__type_sizeof_;
11940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11947 rm -f conftest.
$ac_objext
11948 if { (ac_try
="$ac_compile"
11949 case "(($ac_try" in
11950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11969 ac_lo=`expr '(' $ac_mid ')' + 1`
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11976 '') if test "$ac_cv_type_long_double" = yes; then
11977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11978 See \`config.log
' for more details." >&5
11979 echo "$as_me: error: cannot compute sizeof (long double)
11980 See \`config.log' for more details.
" >&2;}
11981 { (exit 77); exit 77; }; }
11983 ac_cv_sizeof_long_double=0
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 $ac_includes_default
11994 typedef long double ac__type_sizeof_;
11995 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11996 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11998 #include <stdlib.h>
12003 FILE *f = fopen ("conftest.val
", "w
");
12006 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12008 long int i = longval ();
12009 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12011 fprintf (f, "%ld
\n", i);
12015 unsigned long int i = ulongval ();
12016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12018 fprintf (f, "%lu
\n", i);
12020 return ferror (f) || fclose (f) != 0;
12026 rm -f conftest$ac_exeext
12027 if { (ac_try="$ac_link"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_link") 2>&5
12035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_sizeof_long_double=`cat conftest.val`
12048 echo "$as_me: program exited with status
$ac_status" >&5
12049 echo "$as_me: failed program was
:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ( exit $ac_status )
12053 if test "$ac_cv_type_long_double" = yes; then
12054 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12055 See \
`config.log' for more details." >&5
12056 echo "$as_me: error: cannot compute sizeof (long double)
12057 See \`config.log
' for more details." >&2;}
12058 { (exit 77); exit 77; }; }
12060 ac_cv_sizeof_long_double=0
12063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12067 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12068 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12072 cat >>confdefs.h <<_ACEOF
12073 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12080 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12081 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12093 _Bool x; x = (_Bool)0;
12098 rm -f conftest.$ac_objext
12099 if { (ac_try="$ac_compile"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_compile") 2>conftest.er1
12107 grep -v '^
*+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest.$ac_objext; then
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_C99_BOOL 1
12124 echo "$as_me: failed program was:" >&5
12125 sed 's
/^
/|
/' conftest.$ac_ext >&5
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12132 echo "${ECHO_T}$have_c99_bool" >&6; }
12133 if test "$have_c99_bool" = yes ; then
12134 { echo "$as_me:$LINENO: checking for _Bool" >&5
12135 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12136 if test "${ac_cv_type__Bool+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 $ac_includes_default
12146 typedef _Bool ac__type_new_;
12150 if ((ac__type_new_ *) 0)
12152 if (sizeof (ac__type_new_))
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12167 grep -v '^
*+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest.$ac_objext; then
12175 ac_cv_type__Bool=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's
/^
/|
/' conftest.$ac_ext >&5
12180 ac_cv_type__Bool=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12186 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12188 # The cast to long int works around a bug in the HP C Compiler
12189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12191 # This bug is HP SR number 8606223364.
12192 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12193 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12194 if test "${ac_cv_sizeof__Bool+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 if test "$cross_compiling" = yes; then
12198 # Depending upon the size, compute the lo and hi bounds.
12199 cat >conftest.
$ac_ext <<_ACEOF
12202 cat confdefs.h
>>conftest.
$ac_ext
12203 cat >>conftest.
$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12206 typedef _Bool ac__type_sizeof_;
12210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12217 rm -f conftest.
$ac_objext
12218 if { (ac_try
="$ac_compile"
12219 case "(($ac_try" in
12220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12243 typedef _Bool ac__type_sizeof_;
12247 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12254 rm -f conftest.$ac_objext
12255 if { (ac_try="$ac_compile"
12256 case "(($ac_try" in
12257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12258 *) ac_try_echo
=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1
>conftest.err
12265 cat conftest.err
>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest.
$ac_objext; then
12271 ac_hi
=$ac_mid; break
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.
$ac_ext >&5
12276 ac_lo
=`expr $ac_mid + 1`
12277 if test $ac_lo -le $ac_mid; then
12281 ac_mid
=`expr 2 '*' $ac_mid + 1`
12284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.
$ac_ext >&5
12290 cat >conftest.
$ac_ext <<_ACEOF
12293 cat confdefs.h
>>conftest.
$ac_ext
12294 cat >>conftest.
$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 $ac_includes_default
12297 typedef _Bool ac__type_sizeof_;
12301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12308 rm -f conftest.
$ac_objext
12309 if { (ac_try
="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.$ac_objext; then
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 $ac_includes_default
12334 typedef _Bool ac__type_sizeof_;
12338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12345 rm -f conftest.$ac_objext
12346 if { (ac_try="$ac_compile"
12347 case "(($ac_try" in
12348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12349 *) ac_try_echo
=$ac_try;;
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_compile") 2>conftest.er1
12354 grep -v '^ *+' conftest.er1
>conftest.err
12356 cat conftest.err
>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest.
$ac_objext; then
12362 ac_lo
=$ac_mid; break
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.
$ac_ext >&5
12367 ac_hi
=`expr '(' $ac_mid ')' - 1`
12368 if test $ac_mid -le $ac_hi; then
12372 ac_mid
=`expr 2 '*' $ac_mid`
12375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.
$ac_ext >&5
12384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12388 # Binary search between lo and hi bounds.
12389 while test "x$ac_lo" != "x$ac_hi"; do
12390 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12391 cat >conftest.
$ac_ext <<_ACEOF
12394 cat confdefs.h
>>conftest.
$ac_ext
12395 cat >>conftest.
$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 $ac_includes_default
12398 typedef _Bool ac__type_sizeof_;
12402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12409 rm -f conftest.
$ac_objext
12410 if { (ac_try
="$ac_compile"
12411 case "(($ac_try" in
12412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_compile") 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest.$ac_objext; then
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 ac_lo=`expr '(' $ac_mid ')' + 1`
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12438 '') if test "$ac_cv_type__Bool" = yes; then
12439 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12440 See \`config.log
' for more details." >&5
12441 echo "$as_me: error: cannot compute sizeof (_Bool)
12442 See \`config.log' for more details.
" >&2;}
12443 { (exit 77); exit 77; }; }
12445 ac_cv_sizeof__Bool=0
12449 cat >conftest.$ac_ext <<_ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 $ac_includes_default
12456 typedef _Bool ac__type_sizeof_;
12457 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12458 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12460 #include <stdlib.h>
12465 FILE *f = fopen ("conftest.val
", "w
");
12468 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12470 long int i = longval ();
12471 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12473 fprintf (f, "%ld
\n", i);
12477 unsigned long int i = ulongval ();
12478 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12480 fprintf (f, "%lu
\n", i);
12482 return ferror (f) || fclose (f) != 0;
12488 rm -f conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_link") 2>&5
12497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12499 { (case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_try") 2>&5
12506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ac_cv_sizeof__Bool=`cat conftest.val`
12510 echo "$as_me: program exited with status
$ac_status" >&5
12511 echo "$as_me: failed program was
:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ( exit $ac_status )
12515 if test "$ac_cv_type__Bool" = yes; then
12516 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12517 See \
`config.log' for more details." >&5
12518 echo "$as_me: error: cannot compute sizeof (_Bool)
12519 See \`config.log
' for more details." >&2;}
12520 { (exit 77); exit 77; }; }
12522 ac_cv_sizeof__Bool=0
12525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12529 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12530 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12534 cat >>confdefs.h <<_ACEOF
12535 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12541 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12542 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12543 if test "${ac_cv_type_uintptr_t+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 cat >conftest.$ac_ext <<_ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 #ifdef HAVE_STDINT_H
12553 #include <stdint.h>
12556 typedef uintptr_t ac__type_new_;
12560 if ((ac__type_new_ *) 0)
12562 if (sizeof (ac__type_new_))
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12577 grep -v '^
*+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest.$ac_objext; then
12585 ac_cv_type_uintptr_t=yes
12587 echo "$as_me: failed program was:" >&5
12588 sed 's
/^
/|
/' conftest.$ac_ext >&5
12590 ac_cv_type_uintptr_t=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12596 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12597 if test $ac_cv_type_uintptr_t = yes; then
12599 cat >>confdefs.h <<_ACEOF
12600 #define HAVE_UINTPTR_T 1
12603 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12604 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12605 if test "${ac_cv_type_uintptr_t+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 cat >conftest.$ac_ext <<_ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 $ac_includes_default
12615 typedef uintptr_t ac__type_new_;
12619 if ((ac__type_new_ *) 0)
12621 if (sizeof (ac__type_new_))
12627 rm -f conftest.$ac_objext
12628 if { (ac_try="$ac_compile"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
12636 grep -v '^
*+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } && {
12641 test -z "$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
12644 ac_cv_type_uintptr_t=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's
/^
/|
/' conftest.$ac_ext >&5
12649 ac_cv_type_uintptr_t=no
12652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12655 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12657 # The cast to long int works around a bug in the HP C Compiler
12658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12660 # This bug is HP SR number 8606223364.
12661 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12662 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12663 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 if test "$cross_compiling" = yes; then
12667 # Depending upon the size, compute the lo and hi bounds.
12668 cat >conftest.
$ac_ext <<_ACEOF
12671 cat confdefs.h
>>conftest.
$ac_ext
12672 cat >>conftest.
$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 $ac_includes_default
12675 typedef uintptr_t ac__type_sizeof_;
12679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12686 rm -f conftest.
$ac_objext
12687 if { (ac_try
="$ac_compile"
12688 case "(($ac_try" in
12689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_compile") 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } && {
12700 test -z "$ac_c_werror_flag" ||
12701 test ! -s conftest.err
12702 } && test -s conftest.$ac_objext; then
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 $ac_includes_default
12712 typedef uintptr_t ac__type_sizeof_;
12716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12723 rm -f conftest.$ac_objext
12724 if { (ac_try="$ac_compile"
12725 case "(($ac_try" in
12726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12727 *) ac_try_echo
=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_compile") 2>conftest.er1
12732 grep -v '^ *+' conftest.er1
>conftest.err
12734 cat conftest.err
>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest.
$ac_objext; then
12740 ac_hi
=$ac_mid; break
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.
$ac_ext >&5
12745 ac_lo
=`expr $ac_mid + 1`
12746 if test $ac_lo -le $ac_mid; then
12750 ac_mid
=`expr 2 '*' $ac_mid + 1`
12753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.
$ac_ext >&5
12759 cat >conftest.
$ac_ext <<_ACEOF
12762 cat confdefs.h
>>conftest.
$ac_ext
12763 cat >>conftest.
$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 $ac_includes_default
12766 typedef uintptr_t ac__type_sizeof_;
12770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12777 rm -f conftest.
$ac_objext
12778 if { (ac_try
="$ac_compile"
12779 case "(($ac_try" in
12780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_compile") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1 >conftest.err
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest.$ac_objext; then
12796 cat >conftest.$ac_ext <<_ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12802 $ac_includes_default
12803 typedef uintptr_t ac__type_sizeof_;
12807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12814 rm -f conftest.$ac_objext
12815 if { (ac_try="$ac_compile"
12816 case "(($ac_try" in
12817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12818 *) ac_try_echo
=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_compile") 2>conftest.er1
12823 grep -v '^ *+' conftest.er1
>conftest.err
12825 cat conftest.err
>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest.
$ac_objext; then
12831 ac_lo
=$ac_mid; break
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.
$ac_ext >&5
12836 ac_hi
=`expr '(' $ac_mid ')' - 1`
12837 if test $ac_mid -le $ac_hi; then
12841 ac_mid
=`expr 2 '*' $ac_mid`
12844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.
$ac_ext >&5
12853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12857 # Binary search between lo and hi bounds.
12858 while test "x$ac_lo" != "x$ac_hi"; do
12859 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12860 cat >conftest.
$ac_ext <<_ACEOF
12863 cat confdefs.h
>>conftest.
$ac_ext
12864 cat >>conftest.
$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 $ac_includes_default
12867 typedef uintptr_t ac__type_sizeof_;
12871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12878 rm -f conftest.
$ac_objext
12879 if { (ac_try
="$ac_compile"
12880 case "(($ac_try" in
12881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_compile") 2>conftest.er1
12887 grep -v '^ *+' conftest.er1 >conftest.err
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } && {
12892 test -z "$ac_c_werror_flag" ||
12893 test ! -s conftest.err
12894 } && test -s conftest.$ac_objext; then
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 ac_lo=`expr '(' $ac_mid ')' + 1`
12903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12907 '') if test "$ac_cv_type_uintptr_t" = yes; then
12908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12909 See \`config.log
' for more details." >&5
12910 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12911 See \`config.log' for more details.
" >&2;}
12912 { (exit 77); exit 77; }; }
12914 ac_cv_sizeof_uintptr_t=0
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 $ac_includes_default
12925 typedef uintptr_t ac__type_sizeof_;
12926 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12927 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12929 #include <stdlib.h>
12934 FILE *f = fopen ("conftest.val
", "w
");
12937 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12939 long int i = longval ();
12940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12942 fprintf (f, "%ld
\n", i);
12946 unsigned long int i = ulongval ();
12947 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12949 fprintf (f, "%lu
\n", i);
12951 return ferror (f) || fclose (f) != 0;
12957 rm -f conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_link") 2>&5
12966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12979 echo "$as_me: program exited with status
$ac_status" >&5
12980 echo "$as_me: failed program was
:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ( exit $ac_status )
12984 if test "$ac_cv_type_uintptr_t" = yes; then
12985 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12986 See \
`config.log' for more details." >&5
12987 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12988 See \`config.log
' for more details." >&2;}
12989 { (exit 77); exit 77; }; }
12991 ac_cv_sizeof_uintptr_t=0
12994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12998 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12999 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13003 cat >>confdefs.h <<_ACEOF
13004 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13012 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
13013 { echo "$as_me:$LINENO: checking size of off_t" >&5
13014 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13015 if test "${ac_cv_sizeof_off_t+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 if test "$cross_compiling" = yes; then
13019 ac_cv_sizeof_off_t
=4
13021 cat >conftest.
$ac_ext <<_ACEOF
13024 cat confdefs.h
>>conftest.
$ac_ext
13025 cat >>conftest.
$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13028 #include <sys/types.h>
13031 FILE *f=fopen("conftestval", "w");
13033 fprintf(f, "%d\n", sizeof(off_t));
13037 rm -f conftest
$ac_exeext
13038 if { (ac_try
="$ac_link"
13039 case "(($ac_try" in
13040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_link") 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13050 *) ac_try_echo
=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_cv_sizeof_off_t
=`cat conftestval`
13059 echo "$as_me: program exited with status $ac_status" >&5
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.
$ac_ext >&5
13063 ( exit $ac_status )
13064 ac_cv_sizeof_off_t
=0
13066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13073 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13074 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13076 cat >>confdefs.h
<<_ACEOF
13077 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13081 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13082 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13083 if test "$have_long_long" = yes
13085 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13086 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13088 cat >>confdefs.h
<<\_ACEOF
13089 #define HAVE_LARGEFILE_SUPPORT 1
13092 { echo "$as_me:$LINENO: result: yes" >&5
13093 echo "${ECHO_T}yes" >&6; }
13095 { echo "$as_me:$LINENO: result: no" >&5
13096 echo "${ECHO_T}no" >&6; }
13099 { echo "$as_me:$LINENO: result: no" >&5
13100 echo "${ECHO_T}no" >&6; }
13103 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13104 { echo "$as_me:$LINENO: checking size of time_t" >&5
13105 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13106 if test "${ac_cv_sizeof_time_t+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 if test "$cross_compiling" = yes; then
13110 ac_cv_sizeof_time_t
=4
13112 cat >conftest.
$ac_ext <<_ACEOF
13115 cat confdefs.h
>>conftest.
$ac_ext
13116 cat >>conftest.
$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13122 FILE *f=fopen("conftestval", "w");
13124 fprintf(f, "%d\n", sizeof(time_t));
13128 rm -f conftest
$ac_exeext
13129 if { (ac_try
="$ac_link"
13130 case "(($ac_try" in
13131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13141 *) ac_try_echo
=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_try") 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_sizeof_time_t
=`cat conftestval`
13150 echo "$as_me: program exited with status $ac_status" >&5
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.
$ac_ext >&5
13154 ( exit $ac_status )
13155 ac_cv_sizeof_time_t
=0
13157 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13164 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13165 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13167 cat >>confdefs.h
<<_ACEOF
13168 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13173 # if have pthread_t then define SIZEOF_PTHREAD_T
13175 if test "$ac_cv_kpthread" = "yes"
13176 then CC
="$CC -Kpthread"
13177 elif test "$ac_cv_kthread" = "yes"
13178 then CC
="$CC -Kthread"
13179 elif test "$ac_cv_pthread" = "yes"
13180 then CC
="$CC -pthread"
13182 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13183 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13185 cat >conftest.
$ac_ext <<_ACEOF
13188 cat confdefs.h
>>conftest.
$ac_ext
13189 cat >>conftest.
$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <pthread.h>
13195 pthread_t x; x = *(pthread_t*)0;
13200 rm -f conftest.
$ac_objext
13201 if { (ac_try
="$ac_compile"
13202 case "(($ac_try" in
13203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_compile") 2>conftest.er1
13209 grep -v '^ *+' conftest.er1 >conftest.err
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } && {
13214 test -z "$ac_c_werror_flag" ||
13215 test ! -s conftest.err
13216 } && test -s conftest.$ac_objext; then
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13226 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13227 echo "${ECHO_T}$have_pthread_t" >&6; }
13228 if test "$have_pthread_t" = yes ; then
13229 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13230 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13231 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13232 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 if test "$cross_compiling" = yes; then
13236 ac_cv_sizeof_pthread_t=4
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13245 #include <pthread.h>
13248 FILE *f=fopen("conftestval", "w");
13250 fprintf(f, "%d\n", sizeof(pthread_t));
13254 rm -f conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13258 *) ac_try_echo
=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_link") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13265 { (case "(($ac_try" in
13266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_sizeof_pthread_t=`cat conftestval
`
13276 echo "$as_me: program exited with status $ac_status" >&5
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ( exit $ac_status )
13281 ac_cv_sizeof_pthread_t=0
13283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13290 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13291 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13293 cat >>confdefs.h <<_ACEOF
13294 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13303 case $ac_sys_system/$ac_sys_release in
13304 Darwin/[01567]\..*)
13305 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13308 OTHER_LIBTOOL_OPT=""
13315 case $ac_sys_system/$ac_sys_release in
13316 Darwin/[01567]\..*)
13317 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13318 if test "${enable_universalsdk}"; then
13321 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr
/bin
/arch
`"
13323 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13324 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13326 gcc_version=`gcc
-dumpversion`
13327 if test ${gcc_version} '<' 4.0
13329 LIBTOOL_CRUFT="-lcc_dynamic"
13333 if test "$cross_compiling" = yes; then
13336 cat >conftest.$ac_ext <<_ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13343 #include <unistd.h>
13344 int main(int argc, char*argv[])
13346 if (sizeof(long) == 4) {
13354 rm -f conftest$ac_exeext
13355 if { (ac_try="$ac_link"
13356 case "(($ac_try" in
13357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13358 *) ac_try_echo
=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_link") 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13365 { (case "(($ac_try" in
13366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_try") 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13376 echo "$as_me: program exited with status $ac_status" >&5
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ( exit $ac_status )
13383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13388 if test "${ac_osx_32bit}" = "yes"; then
13389 case `/usr
/bin
/arch
` in
13391 MACOSX_DEFAULT_ARCH="i386"
13394 MACOSX_DEFAULT_ARCH="ppc"
13397 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13398 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13399 { (exit 1); exit 1; }; }
13403 case `/usr
/bin
/arch
` in
13405 MACOSX_DEFAULT_ARCH="x86_64"
13408 MACOSX_DEFAULT_ARCH="ppc64"
13411 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13412 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13413 { (exit 1); exit 1; }; }
13417 #ARCH_RUN_32BIT="true"
13420 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13421 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13422 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13425 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13426 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13427 if test "$enable_framework"
13429 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13430 # -F. is needed to allow linking to the framework while
13431 # in the build location.
13433 cat >>confdefs.h <<\_ACEOF
13434 #define WITH_NEXT_FRAMEWORK 1
13437 { echo "$as_me:$LINENO: result: yes" >&5
13438 echo "${ECHO_T}yes" >&6; }
13439 if test $enable_shared = "yes"
13441 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13442 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13443 { (exit 1); exit 1; }; }
13446 { echo "$as_me:$LINENO: result: no" >&5
13447 echo "${ECHO_T}no" >&6; }
13450 { echo "$as_me:$LINENO: checking for dyld" >&5
13451 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13452 case $ac_sys_system/$ac_sys_release in
13455 cat >>confdefs.h <<\_ACEOF
13456 #define WITH_DYLD 1
13459 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13460 echo "${ECHO_T}always on for Darwin" >&6; }
13463 { echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6; }
13468 # Set info about shared libraries.
13474 # SO is the extension of shared libraries `(including the dot
!)
13475 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13476 { echo "$as_me:$LINENO: checking SO" >&5
13477 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13480 case $ac_sys_system in
13491 # this might also be a termcap variable, see #610332
13493 echo '====================================================================='
13495 echo '+ WARNING: You have set SO in your environment. +'
13496 echo '+ Do you really mean to change the extension for shared libraries? +'
13497 echo '+ Continuing in 10 seconds to let you to ponder. +'
13499 echo '====================================================================='
13502 { echo "$as_me:$LINENO: result: $SO" >&5
13503 echo "${ECHO_T}$SO" >&6; }
13506 cat >>confdefs.h
<<_ACEOF
13507 #define SHLIB_EXT "$SO"
13510 # LDSHARED is the ld *command* used to create shared library
13511 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13512 # (Shared libraries in this instance are shared modules to be loaded into
13513 # Python, as opposed to building Python itself as a shared library.)
13514 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13515 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13516 if test -z "$LDSHARED"
13518 case $ac_sys_system/$ac_sys_release in
13520 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13521 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13523 IRIX
/5*) LDSHARED
="ld -shared";;
13524 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13526 if test "$GCC" = "yes"
13527 then LDSHARED
='$(CC) -shared'
13528 else LDSHARED
='$(CC) -G';
13531 if test "$GCC" = "yes"
13532 then LDSHARED
='$(CC) -shared'
13533 else LDSHARED
='ld -b';
13535 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13537 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13538 if test "$enable_framework" ; then
13539 # Link against the framework. All externals should be defined.
13540 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13541 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13543 # No framework. Ignore undefined symbols, assuming they come from Python
13544 LDSHARED
="$LDSHARED -undefined suppress"
13546 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13547 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13548 if test "$enable_framework" ; then
13549 # Link against the framework. All externals should be defined.
13550 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13551 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13553 # No framework, use the Python app as bundle-loader
13554 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13555 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13558 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13559 # This allows an extension to be used in any Python
13561 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13563 if test "${enable_universalsdk}"; then
13564 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13566 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13567 BLDSHARED
="$LDSHARED"
13569 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13570 if test "$enable_framework" ; then
13571 # Link against the framework. All externals should be defined.
13572 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13573 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13575 # No framework, use the Python app as bundle-loader
13576 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13577 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13581 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13582 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13584 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13586 LDSHARED
="$CC -shared ${LDFLAGS}"
13588 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13591 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13593 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13596 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13597 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13600 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13604 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13605 OpenUNIX
*|UnixWare
*)
13606 if test "$GCC" = "yes"
13607 then LDSHARED
='$(CC) -shared'
13608 else LDSHARED
='$(CC) -G'
13610 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13611 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13612 atheos
*) LDSHARED
="gcc -shared";;
13616 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13617 echo "${ECHO_T}$LDSHARED" >&6; }
13618 BLDSHARED
=${BLDSHARED-$LDSHARED}
13619 # CCSHARED are the C *flags* used to create objects to go into a shared
13620 # library (module) -- this is only needed for a few systems
13621 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13622 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13623 if test -z "$CCSHARED"
13625 case $ac_sys_system/$ac_sys_release in
13626 SunOS
*) if test "$GCC" = yes;
13627 then CCSHARED
="-fPIC";
13628 elif test `uname -p` = sparc
;
13629 then CCSHARED
="-xcode=pic32";
13630 else CCSHARED
="-Kpic";
13632 hp
*|HP
*) if test "$GCC" = yes;
13633 then CCSHARED
="-fPIC";
13634 else CCSHARED
="+z";
13636 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13637 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13638 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13639 OpenUNIX
*|UnixWare
*)
13640 if test "$GCC" = "yes"
13641 then CCSHARED
="-fPIC"
13642 else CCSHARED
="-KPIC"
13645 if test "$GCC" = "yes"
13646 then CCSHARED
="-fPIC"
13647 else CCSHARED
="-Kpic -belf"
13649 IRIX
*/6*) case $CC in
13650 *gcc
*) CCSHARED
="-shared";;
13653 atheos
*) CCSHARED
="-fPIC";;
13656 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13657 echo "${ECHO_T}$CCSHARED" >&6; }
13658 # LINKFORSHARED are the flags passed to the $(CC) command that links
13659 # the python executable -- this is only needed for a few systems
13660 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13661 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13662 if test -z "$LINKFORSHARED"
13664 case $ac_sys_system/$ac_sys_release in
13665 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13667 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13668 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13669 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13670 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13671 # -u libsys_s pulls in all symbols in libsys
13673 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13674 if test "$enable_framework"
13676 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13678 LINKFORSHARED
="$LINKFORSHARED";;
13679 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13680 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13681 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13682 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13683 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13685 LINKFORSHARED
="-Wl,--export-dynamic"
13687 SunOS
/5*) case $CC in
13689 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13691 LINKFORSHARED
="-Xlinker --export-dynamic"
13695 if test $enable_shared = "no"
13697 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13700 # -Wl,-E causes the symbols to be added to the dynamic
13701 # symbol table so that they can be found when a module
13702 # is loaded. -N 2048K causes the stack size to be set
13703 # to 2048 kilobytes so that the stack doesn't overflow
13704 # when running test_compile.py.
13705 LINKFORSHARED
='-Wl,-E -N 2048K';;
13708 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13709 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13713 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13714 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13715 if test ! "$LIBRARY" = "$LDLIBRARY"
13717 case $ac_sys_system in
13719 # Cygwin needs CCSHARED when building extension DLLs
13720 # but not when building the interpreter DLL.
13721 CFLAGSFORSHARED
='';;
13723 CFLAGSFORSHARED
='$(CCSHARED)'
13726 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13727 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13729 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13730 # library (with --enable-shared).
13731 # For platforms on which shared libraries are not allowed to have unresolved
13732 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13733 # if it is not required, since it creates a dependency of the shared library
13734 # to LIBS. This, in turn, means that applications linking the shared libpython
13735 # don't need to link LIBS explicitly. The default should be only changed
13736 # on systems where this approach causes problems.
13738 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13739 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13740 case "$ac_sys_system" in
13744 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13745 echo "${ECHO_T}$SHLIBS" >&6; }
13748 # checks for libraries
13750 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13751 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 ac_check_lib_save_LIBS
=$LIBS
13757 cat >conftest.
$ac_ext <<_ACEOF
13760 cat confdefs.h
>>conftest.
$ac_ext
13761 cat >>conftest.
$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13764 /* Override any GCC internal prototype to avoid an error.
13765 Use char because int might match the return type of a GCC
13766 builtin and then its argument prototype would still apply. */
13779 rm -f conftest.
$ac_objext conftest
$ac_exeext
13780 if { (ac_try
="$ac_link"
13781 case "(($ac_try" in
13782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_link") 2>conftest.er1
13788 grep -v '^ *+' conftest.er1 >conftest.err
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } && {
13793 test -z "$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13795 } && test -s conftest$ac_exeext &&
13796 $as_test_x conftest$ac_exeext; then
13797 ac_cv_lib_dl_dlopen=yes
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_cv_lib_dl_dlopen=no
13805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13806 conftest$ac_exeext conftest.$ac_ext
13807 LIBS=$ac_check_lib_save_LIBS
13809 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13811 if test $ac_cv_lib_dl_dlopen = yes; then
13812 cat >>confdefs.h <<_ACEOF
13813 #define HAVE_LIBDL 1
13819 # Dynamic linking for SunOS/Solaris and SYSV
13821 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13822 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13823 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 ac_check_lib_save_LIBS=$LIBS
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13835 /* Override any GCC internal prototype to avoid an error.
13836 Use char because int might match the return type of a GCC
13837 builtin and then its argument prototype would still apply. */
13845 return shl_load ();
13850 rm -f conftest.$ac_objext conftest$ac_exeext
13851 if { (ac_try="$ac_link"
13852 case "(($ac_try" in
13853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13854 *) ac_try_echo
=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_link") 2>conftest.er1
13859 grep -v '^ *+' conftest.er1
>conftest.err
13861 cat conftest.err
>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest
$ac_exeext &&
13867 $as_test_x conftest
$ac_exeext; then
13868 ac_cv_lib_dld_shl_load
=yes
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.
$ac_ext >&5
13873 ac_cv_lib_dld_shl_load
=no
13876 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13877 conftest
$ac_exeext conftest.
$ac_ext
13878 LIBS
=$ac_check_lib_save_LIBS
13880 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13881 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13882 if test $ac_cv_lib_dld_shl_load = yes; then
13883 cat >>confdefs.h
<<_ACEOF
13884 #define HAVE_LIBDLD 1
13890 # Dynamic linking for HP-UX
13892 # only check for sem_init if thread support is requested
13893 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13894 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13895 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13896 if test "${ac_cv_search_sem_init+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 ac_func_search_save_LIBS
=$LIBS
13900 cat >conftest.
$ac_ext <<_ACEOF
13903 cat confdefs.h
>>conftest.
$ac_ext
13904 cat >>conftest.
$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13917 return sem_init ();
13922 for ac_lib
in '' pthread rt posix4
; do
13923 if test -z "$ac_lib"; then
13924 ac_res
="none required"
13927 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13929 rm -f conftest.
$ac_objext conftest
$ac_exeext
13930 if { (ac_try
="$ac_link"
13931 case "(($ac_try" in
13932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_c_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest$ac_exeext &&
13946 $as_test_x conftest$ac_exeext; then
13947 ac_cv_search_sem_init=$ac_res
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13957 if test "${ac_cv_search_sem_init+set}" = set; then
13961 if test "${ac_cv_search_sem_init+set}" = set; then
13964 ac_cv_search_sem_init=no
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13970 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13971 ac_res=$ac_cv_search_sem_init
13972 if test "$ac_res" != no; then
13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13976 # 'Real Time' functions on Solaris
13977 # posix4 on Solaris 2.6
13978 # pthread (first!) on Linux
13981 # check if we need libintl for locale functions
13982 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13983 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13984 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 ac_check_lib_save_LIBS=$LIBS
13988 LIBS="-lintl $LIBS"
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13996 /* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
14002 char textdomain ();
14006 return textdomain ();
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (ac_try="$ac_link"
14013 case "(($ac_try" in
14014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14015 *) ac_try_echo
=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_link") 2>conftest.er1
14020 grep -v '^ *+' conftest.er1
>conftest.err
14022 cat conftest.err
>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest
$ac_exeext &&
14028 $as_test_x conftest
$ac_exeext; then
14029 ac_cv_lib_intl_textdomain
=yes
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.
$ac_ext >&5
14034 ac_cv_lib_intl_textdomain
=no
14037 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14038 conftest
$ac_exeext conftest.
$ac_ext
14039 LIBS
=$ac_check_lib_save_LIBS
14041 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14042 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14043 if test $ac_cv_lib_intl_textdomain = yes; then
14045 cat >>confdefs.h
<<\_ACEOF
14046 #define WITH_LIBINTL 1
14049 LIBS
="-lintl $LIBS"
14053 # checks for system dependent C++ extensions support
14054 case "$ac_sys_system" in
14055 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14056 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14057 cat >conftest.
$ac_ext <<_ACEOF
14060 cat confdefs.h
>>conftest.
$ac_ext
14061 cat >>conftest.
$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include "/usr/lpp/xlC/include/load.h"
14067 loadAndInit("", 0, "")
14072 rm -f conftest.
$ac_objext conftest
$ac_exeext
14073 if { (ac_try
="$ac_link"
14074 case "(($ac_try" in
14075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_link") 2>conftest.er1
14081 grep -v '^ *+' conftest.er1 >conftest.err
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest$ac_exeext &&
14089 $as_test_x conftest$ac_exeext; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define AIX_GENUINE_CPLUSPLUS 1
14095 { echo "$as_me:$LINENO: result: yes" >&5
14096 echo "${ECHO_T}yes" >&6; }
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 { echo "$as_me:$LINENO: result: no" >&5
14102 echo "${ECHO_T}no" >&6; }
14105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14106 conftest$ac_exeext conftest.$ac_ext;;
14110 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14111 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14112 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14113 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 ac_check_lib_save_LIBS=$LIBS
14118 cat >conftest.$ac_ext <<_ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (ac_try="$ac_link"
14142 case "(($ac_try" in
14143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14144 *) ac_try_echo
=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_link") 2>conftest.er1
14149 grep -v '^ *+' conftest.er1
>conftest.err
14151 cat conftest.err
>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest
$ac_exeext &&
14157 $as_test_x conftest
$ac_exeext; then
14158 ac_cv_lib_nsl_t_open
=yes
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.
$ac_ext >&5
14163 ac_cv_lib_nsl_t_open
=no
14166 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14167 conftest
$ac_exeext conftest.
$ac_ext
14168 LIBS
=$ac_check_lib_save_LIBS
14170 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14171 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14172 if test $ac_cv_lib_nsl_t_open = yes; then
14176 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14177 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_socket_socket+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_check_lib_save_LIBS
=$LIBS
14182 LIBS
="-lsocket $LIBS $LIBS"
14183 cat >conftest.
$ac_ext <<_ACEOF
14186 cat confdefs.h
>>conftest.
$ac_ext
14187 cat >>conftest.
$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14205 rm -f conftest.
$ac_objext conftest
$ac_exeext
14206 if { (ac_try
="$ac_link"
14207 case "(($ac_try" in
14208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 ac_cv_lib_socket_socket=yes
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_cv_lib_socket_socket=no
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14236 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14237 if test $ac_cv_lib_socket_socket = yes; then
14238 LIBS="-lsocket $LIBS"
14242 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14243 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14245 # Check whether --with-libs was given.
14246 if test "${with_libs+set}" = set; then
14247 withval=$with_libs;
14248 { echo "$as_me:$LINENO: result: $withval" >&5
14249 echo "${ECHO_T}$withval" >&6; }
14250 LIBS="$withval $LIBS"
14253 { echo "$as_me:$LINENO: result: no" >&5
14254 echo "${ECHO_T}no" >&6; }
14258 # Check for use of the system libffi library
14259 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14260 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14262 # Check whether --with-system_ffi was given.
14263 if test "${with_system_ffi+set}" = set; then
14264 withval=$with_system_ffi;
14268 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14269 echo "${ECHO_T}$with_system_ffi" >&6; }
14271 # Check for --with-dbmliborder
14272 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14273 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14275 # Check whether --with-dbmliborder was given.
14276 if test "${with_dbmliborder+set}" = set; then
14277 withval=$with_dbmliborder;
14278 if test x$with_dbmliborder = xyes
14280 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14281 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14282 { (exit 1); exit 1; }; }
14284 for db in `echo $with_dbmliborder |
sed 's/:/ /g'`; do
14285 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14287 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14288 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14289 { (exit 1); exit 1; }; }
14295 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14296 echo "${ECHO_T}$with_dbmliborder" >&6; }
14298 # Determine if signalmodule should be used.
14301 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14302 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14304 # Check whether --with-signal-module was given.
14305 if test "${with_signal_module+set}" = set; then
14306 withval=$with_signal_module;
14310 if test -z "$with_signal_module"
14311 then with_signal_module="yes"
14313 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14314 echo "${ECHO_T}$with_signal_module" >&6; }
14316 if test "${with_signal_module}" = "yes"; then
14317 USE_SIGNAL_MODULE=""
14320 USE_SIGNAL_MODULE="#"
14321 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14324 # This is used to generate Setup.config
14326 USE_THREAD_MODULE=""
14328 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14329 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14332 # Check whether --with-dec-threads was given.
14333 if test "${with_dec_threads+set}" = set; then
14334 withval=$with_dec_threads;
14335 { echo "$as_me:$LINENO: result: $withval" >&5
14336 echo "${ECHO_T}$withval" >&6; }
14338 if test "${with_thread+set}" != set; then
14339 with_thread="$withval";
14342 { echo "$as_me:$LINENO: result: no" >&5
14343 echo "${ECHO_T}no" >&6; }
14347 # Templates for things AC_DEFINEd more than once.
14348 # For a single AC_DEFINE, no template is needed.
14356 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14357 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14359 # Check whether --with-threads was given.
14360 if test "${with_threads+set}" = set; then
14361 withval=$with_threads;
14365 # --with-thread is deprecated, but check for it anyway
14367 # Check whether --with-thread was given.
14368 if test "${with_thread+set}" = set; then
14369 withval=$with_thread; with_threads=$with_thread
14373 if test -z "$with_threads"
14374 then with_threads="yes"
14376 { echo "$as_me:$LINENO: result: $with_threads" >&5
14377 echo "${ECHO_T}$with_threads" >&6; }
14380 if test "$with_threads" = "no"
14382 USE_THREAD_MODULE="#"
14383 elif test "$ac_cv_pthread_is_default" = yes
14385 cat >>confdefs.h <<\_ACEOF
14386 #define WITH_THREAD 1
14389 # Defining _REENTRANT on system with POSIX threads should not hurt.
14390 cat >>confdefs.h <<\_ACEOF
14391 #define _REENTRANT 1
14395 THREADOBJ="Python/thread.o"
14396 elif test "$ac_cv_kpthread" = "yes"
14399 if test "$ac_cv_cxx_thread" = "yes"; then
14400 CXX="$CXX -Kpthread"
14402 cat >>confdefs.h <<\_ACEOF
14403 #define WITH_THREAD 1
14407 THREADOBJ="Python/thread.o"
14408 elif test "$ac_cv_kthread" = "yes"
14411 if test "$ac_cv_cxx_thread" = "yes"; then
14412 CXX="$CXX -Kthread"
14414 cat >>confdefs.h <<\_ACEOF
14415 #define WITH_THREAD 1
14419 THREADOBJ="Python/thread.o"
14420 elif test "$ac_cv_pthread" = "yes"
14423 if test "$ac_cv_cxx_thread" = "yes"; then
14424 CXX="$CXX -pthread"
14426 cat >>confdefs.h <<\_ACEOF
14427 #define WITH_THREAD 1
14431 THREADOBJ="Python/thread.o"
14433 if test ! -z "$with_threads" -a -d "$with_threads"
14434 then LDFLAGS="$LDFLAGS -L$with_threads"
14436 if test ! -z "$withval" -a -d "$withval"
14437 then LDFLAGS="$LDFLAGS -L$withval"
14440 # According to the POSIX spec, a pthreads implementation must
14441 # define _POSIX_THREADS in unistd.h. Some apparently don't
14442 # (e.g. gnu pth with pthread emulation)
14443 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14444 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14445 cat >conftest.$ac_ext <<_ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14452 #include <unistd.h>
14453 #ifdef _POSIX_THREADS
14458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459 $EGREP "yes" >/dev/null 2>&1; then
14460 unistd_defines_pthreads=yes
14462 unistd_defines_pthreads=no
14466 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14467 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14469 cat >>confdefs.h <<\_ACEOF
14470 #define _REENTRANT 1
14473 if test "${ac_cv_header_cthreads_h+set}" = set; then
14474 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14475 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14476 if test "${ac_cv_header_cthreads_h+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14480 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14482 # Is the header compilable?
14483 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14484 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 $ac_includes_default
14492 #include <cthreads.h>
14494 rm -f conftest.$ac_objext
14495 if { (ac_try="$ac_compile"
14496 case "(($ac_try" in
14497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14498 *) ac_try_echo
=$ac_try;;
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_compile") 2>conftest.er1
14503 grep -v '^ *+' conftest.er1
>conftest.err
14505 cat conftest.err
>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest.
$ac_objext; then
14511 ac_header_compiler
=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.
$ac_ext >&5
14516 ac_header_compiler
=no
14519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 echo "${ECHO_T}$ac_header_compiler" >&6; }
14523 # Is the header present?
14524 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14525 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14526 cat >conftest.
$ac_ext <<_ACEOF
14529 cat confdefs.h
>>conftest.
$ac_ext
14530 cat >>conftest.
$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #include <cthreads.h>
14534 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14535 case "(($ac_try" in
14536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } >/dev/null && {
14547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14550 ac_header_preproc=yes
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_header_preproc=no
14558 rm -f conftest.err conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14560 echo "${ECHO_T}$ac_header_preproc" >&6; }
14562 # So? What about this header?
14563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14565 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14566 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14568 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14569 ac_header_preproc=yes
14572 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14573 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14575 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14577 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14579 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14581 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14583 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14585 ## -------------------------------------- ##
14586 ## Report this to http://bugs.python.org/ ##
14587 ## -------------------------------------- ##
14589 ) | sed "s/^/$as_me: WARNING: /" >&2
14592 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14593 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14594 if test "${ac_cv_header_cthreads_h+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_cv_header_cthreads_h=$ac_header_preproc
14599 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14600 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14603 if test $ac_cv_header_cthreads_h = yes; then
14604 cat >>confdefs.h <<\_ACEOF
14605 #define WITH_THREAD 1
14608 cat >>confdefs.h <<\_ACEOF
14609 #define C_THREADS 1
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HURD_C_THREADS 1
14617 LIBS="$LIBS -lthreads"
14618 THREADOBJ="Python/thread.o"
14621 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14622 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14623 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14624 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14628 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14630 # Is the header compilable?
14631 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14632 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14633 cat >conftest.$ac_ext <<_ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 $ac_includes_default
14640 #include <mach/cthreads.h>
14642 rm -f conftest.$ac_objext
14643 if { (ac_try="$ac_compile"
14644 case "(($ac_try" in
14645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14646 *) ac_try_echo
=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1
>conftest.err
14653 cat conftest.err
>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest.
$ac_objext; then
14659 ac_header_compiler
=yes
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.
$ac_ext >&5
14664 ac_header_compiler
=no
14667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14669 echo "${ECHO_T}$ac_header_compiler" >&6; }
14671 # Is the header present?
14672 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14673 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14674 cat >conftest.
$ac_ext <<_ACEOF
14677 cat confdefs.h
>>conftest.
$ac_ext
14678 cat >>conftest.
$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 #include <mach/cthreads.h>
14682 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14683 case "(($ac_try" in
14684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14690 grep -v '^ *+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } >/dev/null && {
14695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14698 ac_header_preproc=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_header_preproc=no
14706 rm -f conftest.err conftest.$ac_ext
14707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14708 echo "${ECHO_T}$ac_header_preproc" >&6; }
14710 # So? What about this header?
14711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14713 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14714 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14716 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14717 ac_header_preproc=yes
14720 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14721 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14723 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14725 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14727 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14729 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14731 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14733 ## -------------------------------------- ##
14734 ## Report this to http://bugs.python.org/ ##
14735 ## -------------------------------------- ##
14737 ) | sed "s/^/$as_me: WARNING: /" >&2
14740 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14741 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14742 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14747 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14748 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14751 if test $ac_cv_header_mach_cthreads_h = yes; then
14752 cat >>confdefs.h <<\_ACEOF
14753 #define WITH_THREAD 1
14756 cat >>confdefs.h <<\_ACEOF
14757 #define C_THREADS 1
14761 cat >>confdefs.h <<\_ACEOF
14762 #define MACH_C_THREADS 1
14765 THREADOBJ="Python/thread.o"
14768 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14769 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14771 # Check whether --with-pth was given.
14772 if test "${with_pth+set}" = set; then
14773 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14774 echo "${ECHO_T}$withval" >&6; }
14775 cat >>confdefs.h <<\_ACEOF
14776 #define WITH_THREAD 1
14780 cat >>confdefs.h <<\_ACEOF
14785 THREADOBJ="Python/thread.o"
14787 { echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6; }
14790 # Just looking for pthread_create in libpthread is not enough:
14791 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14792 # So we really have to include pthread.h, and then link.
14794 LIBS="$LIBS -lpthread"
14795 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14796 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14797 cat >conftest.$ac_ext <<_ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <pthread.h>
14805 void * start_routine (void *arg) { exit (0); }
14810 pthread_create (NULL, NULL, start_routine, NULL)
14815 rm -f conftest.$ac_objext conftest$ac_exeext
14816 if { (ac_try="$ac_link"
14817 case "(($ac_try" in
14818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14819 *) ac_try_echo
=$ac_try;;
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_link") 2>conftest.er1
14824 grep -v '^ *+' conftest.er1
>conftest.err
14826 cat conftest.err
>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest
$ac_exeext &&
14832 $as_test_x conftest
$ac_exeext; then
14834 { echo "$as_me:$LINENO: result: yes" >&5
14835 echo "${ECHO_T}yes" >&6; }
14836 cat >>confdefs.h
<<\_ACEOF
14837 #define WITH_THREAD 1
14841 THREADOBJ
="Python/thread.o"
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.
$ac_ext >&5
14848 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14849 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14850 if test "${ac_cv_func_pthread_detach+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 cat >conftest.
$ac_ext <<_ACEOF
14856 cat confdefs.h
>>conftest.
$ac_ext
14857 cat >>conftest.
$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14861 #define pthread_detach innocuous_pthread_detach
14863 /* System header to define __stub macros and hopefully few prototypes,
14864 which can conflict with char pthread_detach (); below.
14865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14866 <limits.h> exists even on freestanding compilers. */
14869 # include <limits.h>
14871 # include <assert.h>
14874 #undef pthread_detach
14876 /* Override any GCC internal prototype to avoid an error.
14877 Use char because int might match the return type of a GCC
14878 builtin and then its argument prototype would still apply. */
14882 char pthread_detach ();
14883 /* The GNU C library defines this for functions which it implements
14884 to always fail with ENOSYS. Some functions are actually named
14885 something starting with __ and the normal name is an alias. */
14886 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14893 return pthread_detach ();
14898 rm -f conftest.
$ac_objext conftest
$ac_exeext
14899 if { (ac_try
="$ac_link"
14900 case "(($ac_try" in
14901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_link") 2>conftest.er1
14907 grep -v '^ *+' conftest.er1 >conftest.err
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } && {
14912 test -z "$ac_c_werror_flag" ||
14913 test ! -s conftest.err
14914 } && test -s conftest$ac_exeext &&
14915 $as_test_x conftest$ac_exeext; then
14916 ac_cv_func_pthread_detach=yes
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_cv_func_pthread_detach=no
14924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14925 conftest$ac_exeext conftest.$ac_ext
14927 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14928 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14929 if test $ac_cv_func_pthread_detach = yes; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define WITH_THREAD 1
14935 THREADOBJ="Python/thread.o"
14938 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14939 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14940 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14941 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14945 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14947 # Is the header compilable?
14948 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14949 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 $ac_includes_default
14957 #include <atheos/threads.h>
14959 rm -f conftest.$ac_objext
14960 if { (ac_try="$ac_compile"
14961 case "(($ac_try" in
14962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14963 *) ac_try_echo
=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_compile") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1
>conftest.err
14970 cat conftest.err
>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest.
$ac_objext; then
14976 ac_header_compiler
=yes
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.
$ac_ext >&5
14981 ac_header_compiler
=no
14984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14986 echo "${ECHO_T}$ac_header_compiler" >&6; }
14988 # Is the header present?
14989 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14990 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14991 cat >conftest.
$ac_ext <<_ACEOF
14994 cat confdefs.h
>>conftest.
$ac_ext
14995 cat >>conftest.
$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <atheos/threads.h>
14999 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15000 case "(($ac_try" in
15001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15007 grep -v '^ *+' conftest.er1 >conftest.err
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } >/dev/null && {
15012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15013 test ! -s conftest.err
15015 ac_header_preproc=yes
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 ac_header_preproc=no
15023 rm -f conftest.err conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15025 echo "${ECHO_T}$ac_header_preproc" >&6; }
15027 # So? What about this header?
15028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15031 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15033 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15034 ac_header_preproc=yes
15037 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15038 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15040 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15042 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15044 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15046 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15048 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15050 ## -------------------------------------- ##
15051 ## Report this to http://bugs.python.org/ ##
15052 ## -------------------------------------- ##
15054 ) | sed "s/^/$as_me: WARNING: /" >&2
15057 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15058 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15059 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 ac_cv_header_atheos_threads_h=$ac_header_preproc
15064 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15065 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15068 if test $ac_cv_header_atheos_threads_h = yes; then
15069 cat >>confdefs.h <<\_ACEOF
15070 #define WITH_THREAD 1
15074 cat >>confdefs.h <<\_ACEOF
15075 #define ATHEOS_THREADS 1
15078 THREADOBJ="Python/thread.o"
15081 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15082 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15083 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 ac_check_lib_save_LIBS=$LIBS
15087 LIBS="-lpthreads $LIBS"
15088 cat >conftest.$ac_ext <<_ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char pthread_create ();
15105 return pthread_create ();
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (ac_try="$ac_link"
15112 case "(($ac_try" in
15113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15114 *) ac_try_echo
=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>conftest.er1
15119 grep -v '^ *+' conftest.er1
>conftest.err
15121 cat conftest.err
>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest
$ac_exeext &&
15127 $as_test_x conftest
$ac_exeext; then
15128 ac_cv_lib_pthreads_pthread_create
=yes
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.
$ac_ext >&5
15133 ac_cv_lib_pthreads_pthread_create
=no
15136 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15137 conftest
$ac_exeext conftest.
$ac_ext
15138 LIBS
=$ac_check_lib_save_LIBS
15140 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15141 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15142 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15143 cat >>confdefs.h
<<\_ACEOF
15144 #define WITH_THREAD 1
15148 LIBS
="$LIBS -lpthreads"
15149 THREADOBJ
="Python/thread.o"
15152 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15153 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15154 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 ac_check_lib_save_LIBS
=$LIBS
15159 cat >conftest.
$ac_ext <<_ACEOF
15162 cat confdefs.h
>>conftest.
$ac_ext
15163 cat >>conftest.
$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15172 char pthread_create ();
15176 return pthread_create ();
15181 rm -f conftest.
$ac_objext conftest
$ac_exeext
15182 if { (ac_try
="$ac_link"
15183 case "(($ac_try" in
15184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15185 *) ac_try_echo=$ac_try;;
15187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188 (eval "$ac_link") 2>conftest.er1
15190 grep -v '^ *+' conftest.er1 >conftest.err
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } && {
15195 test -z "$ac_c_werror_flag" ||
15196 test ! -s conftest.err
15197 } && test -s conftest$ac_exeext &&
15198 $as_test_x conftest$ac_exeext; then
15199 ac_cv_lib_c_r_pthread_create=yes
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 ac_cv_lib_c_r_pthread_create=no
15207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15208 conftest$ac_exeext conftest.$ac_ext
15209 LIBS=$ac_check_lib_save_LIBS
15211 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15212 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15213 if test $ac_cv_lib_c_r_pthread_create = yes; then
15214 cat >>confdefs.h <<\_ACEOF
15215 #define WITH_THREAD 1
15220 THREADOBJ="Python/thread.o"
15223 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15224 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15225 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 ac_check_lib_save_LIBS=$LIBS
15229 LIBS="-lpthread $LIBS"
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15237 /* Override any GCC internal prototype to avoid an error.
15238 Use char because int might match the return type of a GCC
15239 builtin and then its argument prototype would still apply. */
15243 char __pthread_create_system ();
15247 return __pthread_create_system ();
15252 rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (ac_try="$ac_link"
15254 case "(($ac_try" in
15255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15256 *) ac_try_echo
=$ac_try;;
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_link") 2>conftest.er1
15261 grep -v '^ *+' conftest.er1
>conftest.err
15263 cat conftest.err
>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest
$ac_exeext &&
15269 $as_test_x conftest
$ac_exeext; then
15270 ac_cv_lib_pthread___pthread_create_system
=yes
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.
$ac_ext >&5
15275 ac_cv_lib_pthread___pthread_create_system
=no
15278 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15279 conftest
$ac_exeext conftest.
$ac_ext
15280 LIBS
=$ac_check_lib_save_LIBS
15282 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15283 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15284 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15285 cat >>confdefs.h
<<\_ACEOF
15286 #define WITH_THREAD 1
15290 LIBS
="$LIBS -lpthread"
15291 THREADOBJ
="Python/thread.o"
15294 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15295 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15296 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 ac_check_lib_save_LIBS
=$LIBS
15301 cat >conftest.
$ac_ext <<_ACEOF
15304 cat confdefs.h
>>conftest.
$ac_ext
15305 cat >>conftest.
$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15308 /* Override any GCC internal prototype to avoid an error.
15309 Use char because int might match the return type of a GCC
15310 builtin and then its argument prototype would still apply. */
15314 char pthread_create ();
15318 return pthread_create ();
15323 rm -f conftest.
$ac_objext conftest
$ac_exeext
15324 if { (ac_try
="$ac_link"
15325 case "(($ac_try" in
15326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } && {
15337 test -z "$ac_c_werror_flag" ||
15338 test ! -s conftest.err
15339 } && test -s conftest$ac_exeext &&
15340 $as_test_x conftest$ac_exeext; then
15341 ac_cv_lib_cma_pthread_create=yes
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_cv_lib_cma_pthread_create=no
15349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15350 conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15353 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15354 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15355 if test $ac_cv_lib_cma_pthread_create = yes; then
15356 cat >>confdefs.h <<\_ACEOF
15357 #define WITH_THREAD 1
15362 THREADOBJ="Python/thread.o"
15365 USE_THREAD_MODULE="#"
15382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15383 conftest$ac_exeext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15394 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15395 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 ac_check_lib_save_LIBS=$LIBS
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15407 /* Override any GCC internal prototype to avoid an error.
15408 Use char because int might match the return type of a GCC
15409 builtin and then its argument prototype would still apply. */
15417 return usconfig ();
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (ac_try="$ac_link"
15424 case "(($ac_try" in
15425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15426 *) ac_try_echo
=$ac_try;;
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_link") 2>conftest.er1
15431 grep -v '^ *+' conftest.er1
>conftest.err
15433 cat conftest.err
>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } && {
15436 test -z "$ac_c_werror_flag" ||
15437 test ! -s conftest.err
15438 } && test -s conftest
$ac_exeext &&
15439 $as_test_x conftest
$ac_exeext; then
15440 ac_cv_lib_mpc_usconfig
=yes
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.
$ac_ext >&5
15445 ac_cv_lib_mpc_usconfig
=no
15448 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15449 conftest
$ac_exeext conftest.
$ac_ext
15450 LIBS
=$ac_check_lib_save_LIBS
15452 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15453 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15454 if test $ac_cv_lib_mpc_usconfig = yes; then
15455 cat >>confdefs.h
<<\_ACEOF
15456 #define WITH_THREAD 1
15460 THREADOBJ
="Python/thread.o"
15461 USE_THREAD_MODULE
=""
15465 if test "$posix_threads" != "yes"; then
15466 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15467 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15468 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 ac_check_lib_save_LIBS
=$LIBS
15472 LIBS
="-lthread $LIBS"
15473 cat >conftest.
$ac_ext <<_ACEOF
15476 cat confdefs.h
>>conftest.
$ac_ext
15477 cat >>conftest.
$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15480 /* Override any GCC internal prototype to avoid an error.
15481 Use char because int might match the return type of a GCC
15482 builtin and then its argument prototype would still apply. */
15486 char thr_create ();
15490 return thr_create ();
15495 rm -f conftest.
$ac_objext conftest
$ac_exeext
15496 if { (ac_try
="$ac_link"
15497 case "(($ac_try" in
15498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_link") 2>conftest.er1
15504 grep -v '^ *+' conftest.er1 >conftest.err
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } && {
15509 test -z "$ac_c_werror_flag" ||
15510 test ! -s conftest.err
15511 } && test -s conftest$ac_exeext &&
15512 $as_test_x conftest$ac_exeext; then
15513 ac_cv_lib_thread_thr_create=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_lib_thread_thr_create=no
15521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522 conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_lib_save_LIBS
15525 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15526 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15527 if test $ac_cv_lib_thread_thr_create = yes; then
15528 cat >>confdefs.h <<\_ACEOF
15529 #define WITH_THREAD 1
15532 LIBS="$LIBS -lthread"
15533 THREADOBJ="Python/thread.o"
15534 USE_THREAD_MODULE=""
15539 if test "$USE_THREAD_MODULE" != "#"
15541 # If the above checks didn't disable threads, (at least) OSF1
15542 # needs this '-threads' argument during linking.
15543 case $ac_sys_system in
15544 OSF1) LDLAST=-threads;;
15549 if test "$posix_threads" = "yes"; then
15550 if test "$unistd_defines_pthreads" = "no"; then
15552 cat >>confdefs.h <<\_ACEOF
15553 #define _POSIX_THREADS 1
15558 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15559 case $ac_sys_system/$ac_sys_release in
15561 cat >>confdefs.h <<\_ACEOF
15562 #define HAVE_PTHREAD_DESTRUCTOR 1
15567 cat >>confdefs.h <<\_ACEOF
15568 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15573 cat >>confdefs.h <<\_ACEOF
15574 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15580 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15581 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15582 if test "${ac_cv_pthread_system_supported+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 if test "$cross_compiling" = yes; then
15586 ac_cv_pthread_system_supported=no
15588 cat >conftest.$ac_ext <<_ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h. */
15594 #include <pthread.h>
15595 void *foo(void *parm) {
15599 pthread_attr_t attr;
15601 if (pthread_attr_init(&attr)) exit(-1);
15602 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15603 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15607 rm -f conftest$ac_exeext
15608 if { (ac_try="$ac_link"
15609 case "(($ac_try" in
15610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15611 *) ac_try_echo
=$ac_try;;
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_link") 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15618 { (case "(($ac_try" in
15619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_try") 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_cv_pthread_system_supported=yes
15629 echo "$as_me: program exited with status $ac_status" >&5
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ( exit $ac_status )
15634 ac_cv_pthread_system_supported=no
15636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15643 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15644 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15645 if test "$ac_cv_pthread_system_supported" = "yes"; then
15647 cat >>confdefs.h <<\_ACEOF
15648 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15653 for ac_func in pthread_sigmask
15655 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15669 #define $ac_func innocuous_$ac_func
15671 /* System header to define __stub macros and hopefully few prototypes,
15672 which can conflict with char $ac_func (); below.
15673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15674 <limits.h> exists even on freestanding compilers. */
15677 # include <limits.h>
15679 # include <assert.h>
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15691 /* The GNU C library defines this for functions which it implements
15692 to always fail with ENOSYS. Some functions are actually named
15693 something starting with __ and the normal name is an alias. */
15694 #if defined __stub_$ac_func || defined __stub___$ac_func
15701 return $ac_func ();
15706 rm -f conftest.$ac_objext conftest$ac_exeext
15707 if { (ac_try="$ac_link"
15708 case "(($ac_try" in
15709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15710 *) ac_try_echo
=$ac_try;;
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713 (eval "$ac_link") 2>conftest.er1
15715 grep -v '^ *+' conftest.er1
>conftest.err
15717 cat conftest.err
>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && {
15720 test -z "$ac_c_werror_flag" ||
15721 test ! -s conftest.err
15722 } && test -s conftest
$ac_exeext &&
15723 $as_test_x conftest
$ac_exeext; then
15724 eval "$as_ac_var=yes"
15726 echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.
$ac_ext >&5
15729 eval "$as_ac_var=no"
15732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15733 conftest
$ac_exeext conftest.
$ac_ext
15735 ac_res
=`eval echo '${'$as_ac_var'}'`
15736 { echo "$as_me:$LINENO: result: $ac_res" >&5
15737 echo "${ECHO_T}$ac_res" >&6; }
15738 if test `eval echo '${'$as_ac_var'}'` = yes; then
15739 cat >>confdefs.h
<<_ACEOF
15740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15742 case $ac_sys_system in
15745 cat >>confdefs.h
<<\_ACEOF
15746 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15757 # Check for enable-ipv6
15760 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15761 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15762 # Check whether --enable-ipv6 was given.
15763 if test "${enable_ipv6+set}" = set; then
15764 enableval
=$enable_ipv6; case "$enableval" in
15766 { echo "$as_me:$LINENO: result: no" >&5
15767 echo "${ECHO_T}no" >&6; }
15770 *) { echo "$as_me:$LINENO: result: yes" >&5
15771 echo "${ECHO_T}yes" >&6; }
15772 cat >>confdefs.h
<<\_ACEOF
15773 #define ENABLE_IPV6 1
15781 if test "$cross_compiling" = yes; then
15782 { echo "$as_me:$LINENO: result: no" >&5
15783 echo "${ECHO_T}no" >&6; }
15787 cat >conftest.
$ac_ext <<_ACEOF
15790 cat confdefs.h
>>conftest.
$ac_ext
15791 cat >>conftest.
$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 /* AF_INET6 available check */
15794 #include <sys/types.h>
15795 #include <sys/socket.h>
15798 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15805 rm -f conftest
$ac_exeext
15806 if { (ac_try
="$ac_link"
15807 case "(($ac_try" in
15808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_link") 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15816 { (case "(($ac_try" in
15817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15818 *) ac_try_echo
=$ac_try;;
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_try") 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 { echo "$as_me:$LINENO: result: yes" >&5
15826 echo "${ECHO_T}yes" >&6; }
15829 echo "$as_me: program exited with status $ac_status" >&5
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.
$ac_ext >&5
15833 ( exit $ac_status )
15834 { echo "$as_me:$LINENO: result: no" >&5
15835 echo "${ECHO_T}no" >&6; }
15838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15843 if test "$ipv6" = "yes"; then
15844 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15845 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15846 cat >conftest.
$ac_ext <<_ACEOF
15849 cat confdefs.h
>>conftest.
$ac_ext
15850 cat >>conftest.
$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <sys/types.h>
15853 #include <netinet/in.h>
15857 struct sockaddr_in6 x;
15863 rm -f conftest.
$ac_objext
15864 if { (ac_try
="$ac_compile"
15865 case "(($ac_try" in
15866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_compile") 2>conftest.er1
15872 grep -v '^ *+' conftest.er1 >conftest.err
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_c_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest.$ac_objext; then
15880 { echo "$as_me:$LINENO: result: yes" >&5
15881 echo "${ECHO_T}yes" >&6; }
15884 echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 { echo "$as_me:$LINENO: result: no" >&5
15888 echo "${ECHO_T}no" >&6; }
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 if test "$ipv6" = "yes"; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define ENABLE_IPV6 1
15909 if test "$ipv6" = "yes"; then
15910 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15911 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15912 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15923 #include <netinet/in.h>
15924 #ifdef IPV6_INRIA_VERSION
15928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15929 $EGREP "yes" >/dev/null 2>&1; then
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15943 #include <netinet/in.h>
15948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15949 $EGREP "yes" >/dev/null 2>&1; then
15952 ipv6libdir=/usr/local/v6/lib
15959 cat >conftest.$ac_ext <<_ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15966 #include <features.h>
15967 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15972 $EGREP "yes" >/dev/null 2>&1; then
15980 if test -d /usr/inet6; then
15983 ipv6libdir=/usr/inet6/lib
15984 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15988 if test -f /etc/netconfig; then
15989 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16003 #include <sys/param.h>
16004 #ifdef _TOSHIBA_INET6
16008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16009 $EGREP "yes" >/dev/null 2>&1; then
16012 ipv6libdir=/usr/local/v6/lib
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16025 #include </usr/local/v6/include/sys/v6config.h>
16030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16031 $EGREP "yes" >/dev/null 2>&1; then
16034 ipv6libdir=/usr/local/v6/lib;
16035 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16041 cat >conftest.$ac_ext <<_ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16048 #include <sys/param.h>
16049 #ifdef _ZETA_MINAMI_INET6
16053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16054 $EGREP "yes" >/dev/null 2>&1; then
16057 ipv6libdir=/usr/local/v6/lib
16063 if test "$ipv6type" != "unknown"; then
16067 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16068 echo "${ECHO_T}$ipv6type" >&6; }
16071 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16072 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16073 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16074 echo "using lib$ipv6lib"
16076 if test $ipv6trylibc = "yes"; then
16079 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16080 echo "You need to fetch lib$ipv6lib.a from appropriate"
16081 echo 'ipv6 kit and compile beforehand.'
16087 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16088 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 #include <Carbon/Carbon.h>
16099 FSIORefNum fRef = 0
16104 rm -f conftest.$ac_objext
16105 if { (ac_try="$ac_compile"
16106 case "(($ac_try" in
16107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16108 *) ac_try_echo
=$ac_try;;
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_compile") 2>conftest.er1
16113 grep -v '^ *+' conftest.er1
>conftest.err
16115 cat conftest.err
>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest.
$ac_objext; then
16122 cat >>confdefs.h
<<\_ACEOF
16123 #define HAVE_OSX105_SDK 1
16126 { echo "$as_me:$LINENO: result: yes" >&5
16127 echo "${ECHO_T}yes" >&6; }
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.
$ac_ext >&5
16132 { echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6; }
16137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16139 # Check for --with-doc-strings
16140 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16141 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16143 # Check whether --with-doc-strings was given.
16144 if test "${with_doc_strings+set}" = set; then
16145 withval
=$with_doc_strings;
16149 if test -z "$with_doc_strings"
16150 then with_doc_strings
="yes"
16152 if test "$with_doc_strings" != "no"
16155 cat >>confdefs.h
<<\_ACEOF
16156 #define WITH_DOC_STRINGS 1
16160 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16161 echo "${ECHO_T}$with_doc_strings" >&6; }
16163 # Check for Python-specific malloc support
16164 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16165 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16167 # Check whether --with-tsc was given.
16168 if test "${with_tsc+set}" = set; then
16170 if test "$withval" != no
16173 cat >>confdefs.h
<<\_ACEOF
16177 { echo "$as_me:$LINENO: result: yes" >&5
16178 echo "${ECHO_T}yes" >&6; }
16179 else { echo "$as_me:$LINENO: result: no" >&5
16180 echo "${ECHO_T}no" >&6; }
16183 { echo "$as_me:$LINENO: result: no" >&5
16184 echo "${ECHO_T}no" >&6; }
16188 # Check for Python-specific malloc support
16189 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16190 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16192 # Check whether --with-pymalloc was given.
16193 if test "${with_pymalloc+set}" = set; then
16194 withval
=$with_pymalloc;
16198 if test -z "$with_pymalloc"
16199 then with_pymalloc
="yes"
16201 if test "$with_pymalloc" != "no"
16204 cat >>confdefs.h
<<\_ACEOF
16205 #define WITH_PYMALLOC 1
16209 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16210 echo "${ECHO_T}$with_pymalloc" >&6; }
16212 # Check for --with-wctype-functions
16213 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16214 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16216 # Check whether --with-wctype-functions was given.
16217 if test "${with_wctype_functions+set}" = set; then
16218 withval
=$with_wctype_functions;
16219 if test "$withval" != no
16222 cat >>confdefs.h
<<\_ACEOF
16223 #define WANT_WCTYPE_FUNCTIONS 1
16226 { echo "$as_me:$LINENO: result: yes" >&5
16227 echo "${ECHO_T}yes" >&6; }
16228 else { echo "$as_me:$LINENO: result: no" >&5
16229 echo "${ECHO_T}no" >&6; }
16232 { echo "$as_me:$LINENO: result: no" >&5
16233 echo "${ECHO_T}no" >&6; }
16237 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16241 # the dlopen() function means we might want to use dynload_shlib.o. some
16242 # platforms, such as AIX, have dlopen(), but don't want to use it.
16244 for ac_func
in dlopen
16246 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16249 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 cat >conftest.
$ac_ext <<_ACEOF
16255 cat confdefs.h
>>conftest.
$ac_ext
16256 cat >>conftest.
$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16260 #define $ac_func innocuous_$ac_func
16262 /* System header to define __stub macros and hopefully few prototypes,
16263 which can conflict with char $ac_func (); below.
16264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16265 <limits.h> exists even on freestanding compilers. */
16268 # include <limits.h>
16270 # include <assert.h>
16275 /* Override any GCC internal prototype to avoid an error.
16276 Use char because int might match the return type of a GCC
16277 builtin and then its argument prototype would still apply. */
16282 /* The GNU C library defines this for functions which it implements
16283 to always fail with ENOSYS. Some functions are actually named
16284 something starting with __ and the normal name is an alias. */
16285 #if defined __stub_$ac_func || defined __stub___$ac_func
16292 return $ac_func ();
16297 rm -f conftest.
$ac_objext conftest
$ac_exeext
16298 if { (ac_try
="$ac_link"
16299 case "(($ac_try" in
16300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_link") 2>conftest.er1
16306 grep -v '^ *+' conftest.er1 >conftest.err
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } && {
16311 test -z "$ac_c_werror_flag" ||
16312 test ! -s conftest.err
16313 } && test -s conftest$ac_exeext &&
16314 $as_test_x conftest$ac_exeext; then
16315 eval "$as_ac_var=yes"
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16320 eval "$as_ac_var=no"
16323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16324 conftest$ac_exeext conftest.$ac_ext
16326 ac_res=`eval echo '${'$as_ac_var'}'`
16327 { echo "$as_me:$LINENO: result: $ac_res" >&5
16328 echo "${ECHO_T}$ac_res" >&6; }
16329 if test `eval echo '${'$as_ac_var'}'` = yes; then
16330 cat >>confdefs.h <<_ACEOF
16331 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16338 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16339 # loading of modules.
16341 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16342 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16343 if test -z "$DYNLOADFILE"
16345 case $ac_sys_system/$ac_sys_release in
16346 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16347 if test "$ac_cv_func_dlopen" = yes
16348 then DYNLOADFILE="dynload_shlib.o"
16349 else DYNLOADFILE="dynload_aix.o"
16352 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16353 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16354 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16355 atheos*) DYNLOADFILE="dynload_atheos.o";;
16357 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16358 # out any dynamic loading
16359 if test "$ac_cv_func_dlopen" = yes
16360 then DYNLOADFILE="dynload_shlib.o"
16361 else DYNLOADFILE="dynload_stub.o"
16366 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16367 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16368 if test "$DYNLOADFILE" != "dynload_stub.o"
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_DYNAMIC_LOADING 1
16377 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16380 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16381 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16382 if test -z "$MACHDEP_OBJS"
16384 MACHDEP_OBJS=$extra_machdep_objs
16386 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16388 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16389 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16391 # checks for library functions
16481 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16482 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16483 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16484 getpriority getpwent getspnam getspent getsid getwd \
16485 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16486 mremap nice pathconf pause plock poll pthread_init \
16487 putenv readlink realpath \
16488 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16490 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16491 sigaction siginterrupt sigrelse strftime strlcpy \
16492 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16493 truncate uname unsetenv utimes waitpid wait3 wait4 \
16494 wcscoll wcsftime wcsxfrm _getpty
16496 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 cat >conftest.$ac_ext <<_ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16510 #define $ac_func innocuous_$ac_func
16512 /* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func (); below.
16514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16515 <limits.h> exists even on freestanding compilers. */
16518 # include <limits.h>
16520 # include <assert.h>
16525 /* Override any GCC internal prototype to avoid an error.
16526 Use char because int might match the return type of a GCC
16527 builtin and then its argument prototype would still apply. */
16532 /* The GNU C library defines this for functions which it implements
16533 to always fail with ENOSYS. Some functions are actually named
16534 something starting with __ and the normal name is an alias. */
16535 #if defined __stub_$ac_func || defined __stub___$ac_func
16542 return $ac_func ();
16547 rm -f conftest.$ac_objext conftest$ac_exeext
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16551 *) ac_try_echo
=$ac_try;;
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_link") 2>conftest.er1
16556 grep -v '^ *+' conftest.er1
>conftest.err
16558 cat conftest.err
>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } && {
16561 test -z "$ac_c_werror_flag" ||
16562 test ! -s conftest.err
16563 } && test -s conftest
$ac_exeext &&
16564 $as_test_x conftest
$ac_exeext; then
16565 eval "$as_ac_var=yes"
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.
$ac_ext >&5
16570 eval "$as_ac_var=no"
16573 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16574 conftest
$ac_exeext conftest.
$ac_ext
16576 ac_res
=`eval echo '${'$as_ac_var'}'`
16577 { echo "$as_me:$LINENO: result: $ac_res" >&5
16578 echo "${ECHO_T}$ac_res" >&6; }
16579 if test `eval echo '${'$as_ac_var'}'` = yes; then
16580 cat >>confdefs.h
<<_ACEOF
16581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588 # For some functions, having a definition is not sufficient, since
16589 # we want to take their address.
16590 { echo "$as_me:$LINENO: checking for chroot" >&5
16591 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16592 cat >conftest.
$ac_ext <<_ACEOF
16595 cat confdefs.h
>>conftest.
$ac_ext
16596 cat >>conftest.
$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <unistd.h>
16607 rm -f conftest.
$ac_objext
16608 if { (ac_try
="$ac_compile"
16609 case "(($ac_try" in
16610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_compile") 2>conftest.er1
16616 grep -v '^ *+' conftest.er1 >conftest.err
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } && {
16621 test -z "$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 } && test -s conftest.$ac_objext; then
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_CHROOT 1
16629 { echo "$as_me:$LINENO: result: yes" >&5
16630 echo "${ECHO_T}yes" >&6; }
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 { echo "$as_me:$LINENO: result: no" >&5
16636 echo "${ECHO_T}no" >&6; }
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641 { echo "$as_me:$LINENO: checking for link" >&5
16642 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16643 cat >conftest.$ac_ext <<_ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 #include <unistd.h>
16658 rm -f conftest.$ac_objext
16659 if { (ac_try="$ac_compile"
16660 case "(($ac_try" in
16661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16662 *) ac_try_echo
=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_compile") 2>conftest.er1
16667 grep -v '^ *+' conftest.er1
>conftest.err
16669 cat conftest.err
>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } && {
16672 test -z "$ac_c_werror_flag" ||
16673 test ! -s conftest.err
16674 } && test -s conftest.
$ac_objext; then
16676 cat >>confdefs.h
<<\_ACEOF
16677 #define HAVE_LINK 1
16680 { echo "$as_me:$LINENO: result: yes" >&5
16681 echo "${ECHO_T}yes" >&6; }
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.
$ac_ext >&5
16686 { echo "$as_me:$LINENO: result: no" >&5
16687 echo "${ECHO_T}no" >&6; }
16691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16692 { echo "$as_me:$LINENO: checking for symlink" >&5
16693 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16694 cat >conftest.
$ac_ext <<_ACEOF
16697 cat confdefs.h
>>conftest.
$ac_ext
16698 cat >>conftest.
$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 #include <unistd.h>
16709 rm -f conftest.
$ac_objext
16710 if { (ac_try
="$ac_compile"
16711 case "(($ac_try" in
16712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_compile") 2>conftest.er1
16718 grep -v '^ *+' conftest.er1 >conftest.err
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && {
16723 test -z "$ac_c_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest.$ac_objext; then
16727 cat >>confdefs.h <<\_ACEOF
16728 #define HAVE_SYMLINK 1
16731 { echo "$as_me:$LINENO: result: yes" >&5
16732 echo "${ECHO_T}yes" >&6; }
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 { echo "$as_me:$LINENO: result: no" >&5
16738 echo "${ECHO_T}no" >&6; }
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743 { echo "$as_me:$LINENO: checking for fchdir" >&5
16744 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16745 cat >conftest.$ac_ext <<_ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <unistd.h>
16760 rm -f conftest.$ac_objext
16761 if { (ac_try="$ac_compile"
16762 case "(($ac_try" in
16763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16764 *) ac_try_echo
=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_compile") 2>conftest.er1
16769 grep -v '^ *+' conftest.er1
>conftest.err
16771 cat conftest.err
>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && {
16774 test -z "$ac_c_werror_flag" ||
16775 test ! -s conftest.err
16776 } && test -s conftest.
$ac_objext; then
16778 cat >>confdefs.h
<<\_ACEOF
16779 #define HAVE_FCHDIR 1
16782 { echo "$as_me:$LINENO: result: yes" >&5
16783 echo "${ECHO_T}yes" >&6; }
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.
$ac_ext >&5
16788 { echo "$as_me:$LINENO: result: no" >&5
16789 echo "${ECHO_T}no" >&6; }
16793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16794 { echo "$as_me:$LINENO: checking for fsync" >&5
16795 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16796 cat >conftest.
$ac_ext <<_ACEOF
16799 cat confdefs.h
>>conftest.
$ac_ext
16800 cat >>conftest.
$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 #include <unistd.h>
16811 rm -f conftest.
$ac_objext
16812 if { (ac_try
="$ac_compile"
16813 case "(($ac_try" in
16814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_compile") 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest.$ac_objext; then
16829 cat >>confdefs.h <<\_ACEOF
16830 #define HAVE_FSYNC 1
16833 { echo "$as_me:$LINENO: result: yes" >&5
16834 echo "${ECHO_T}yes" >&6; }
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 { echo "$as_me:$LINENO: result: no" >&5
16840 echo "${ECHO_T}no" >&6; }
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16846 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16847 cat >conftest.$ac_ext <<_ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 #include <unistd.h>
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16866 *) ac_try_echo
=$ac_try;;
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_compile") 2>conftest.er1
16871 grep -v '^ *+' conftest.er1
>conftest.err
16873 cat conftest.err
>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && {
16876 test -z "$ac_c_werror_flag" ||
16877 test ! -s conftest.err
16878 } && test -s conftest.
$ac_objext; then
16880 cat >>confdefs.h
<<\_ACEOF
16881 #define HAVE_FDATASYNC 1
16884 { echo "$as_me:$LINENO: result: yes" >&5
16885 echo "${ECHO_T}yes" >&6; }
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.
$ac_ext >&5
16890 { echo "$as_me:$LINENO: result: no" >&5
16891 echo "${ECHO_T}no" >&6; }
16895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16896 { echo "$as_me:$LINENO: checking for epoll" >&5
16897 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16898 cat >conftest.
$ac_ext <<_ACEOF
16901 cat confdefs.h
>>conftest.
$ac_ext
16902 cat >>conftest.
$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <sys/epoll.h>
16908 void *x=epoll_create
16913 rm -f conftest.
$ac_objext
16914 if { (ac_try
="$ac_compile"
16915 case "(($ac_try" in
16916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_compile") 2>conftest.er1
16922 grep -v '^ *+' conftest.er1 >conftest.err
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } && {
16927 test -z "$ac_c_werror_flag" ||
16928 test ! -s conftest.err
16929 } && test -s conftest.$ac_objext; then
16931 cat >>confdefs.h <<\_ACEOF
16932 #define HAVE_EPOLL 1
16935 { echo "$as_me:$LINENO: result: yes" >&5
16936 echo "${ECHO_T}yes" >&6; }
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 { echo "$as_me:$LINENO: result: no" >&5
16942 echo "${ECHO_T}no" >&6; }
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 { echo "$as_me:$LINENO: checking for kqueue" >&5
16948 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16949 cat >conftest.$ac_ext <<_ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16956 #include <sys/types.h>
16957 #include <sys/event.h>
16967 rm -f conftest.$ac_objext
16968 if { (ac_try="$ac_compile"
16969 case "(($ac_try" in
16970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16971 *) ac_try_echo
=$ac_try;;
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1
>conftest.err
16978 cat conftest.err
>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.
$ac_objext; then
16985 cat >>confdefs.h
<<\_ACEOF
16986 #define HAVE_KQUEUE 1
16989 { echo "$as_me:$LINENO: result: yes" >&5
16990 echo "${ECHO_T}yes" >&6; }
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.
$ac_ext >&5
16995 { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
17000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17001 # On some systems (eg. FreeBSD 5), we would find a definition of the
17002 # functions ctermid_r, setgroups in the library, but no prototype
17003 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17004 # address to avoid compiler warnings and potential miscompilations
17005 # because of the missing prototypes.
17007 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17008 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17009 cat >conftest.
$ac_ext <<_ACEOF
17012 cat confdefs.h
>>conftest.
$ac_ext
17013 cat >>conftest.
$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17016 #include "confdefs.h"
17022 void* p = ctermid_r
17027 rm -f conftest.
$ac_objext
17028 if { (ac_try
="$ac_compile"
17029 case "(($ac_try" in
17030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_compile") 2>conftest.er1
17036 grep -v '^ *+' conftest.er1 >conftest.err
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } && {
17041 test -z "$ac_c_werror_flag" ||
17042 test ! -s conftest.err
17043 } && test -s conftest.$ac_objext; then
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_CTERMID_R 1
17049 { echo "$as_me:$LINENO: result: yes" >&5
17050 echo "${ECHO_T}yes" >&6; }
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 { echo "$as_me:$LINENO: result: no" >&5
17056 echo "${ECHO_T}no" >&6; }
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17062 { echo "$as_me:$LINENO: checking for flock" >&5
17063 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17064 cat >conftest.$ac_ext <<_ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17071 #include "confdefs.h"
17072 #include <sys/file.h>
17082 rm -f conftest.$ac_objext
17083 if { (ac_try="$ac_compile"
17084 case "(($ac_try" in
17085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17086 *) ac_try_echo
=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_compile") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1
>conftest.err
17093 cat conftest.err
>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && {
17096 test -z "$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 } && test -s conftest.
$ac_objext; then
17100 cat >>confdefs.h
<<\_ACEOF
17101 #define HAVE_FLOCK 1
17104 { echo "$as_me:$LINENO: result: yes" >&5
17105 echo "${ECHO_T}yes" >&6; }
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.
$ac_ext >&5
17110 { echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6; }
17115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17117 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17118 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17119 cat >conftest.
$ac_ext <<_ACEOF
17122 cat confdefs.h
>>conftest.
$ac_ext
17123 cat >>conftest.
$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17126 #include "confdefs.h"
17127 #include <unistd.h>
17132 void* p = getpagesize
17137 rm -f conftest.
$ac_objext
17138 if { (ac_try
="$ac_compile"
17139 case "(($ac_try" in
17140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_compile") 2>conftest.er1
17146 grep -v '^ *+' conftest.er1 >conftest.err
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest.$ac_objext; then
17155 cat >>confdefs.h <<\_ACEOF
17156 #define HAVE_GETPAGESIZE 1
17159 { echo "$as_me:$LINENO: result: yes" >&5
17160 echo "${ECHO_T}yes" >&6; }
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17165 { echo "$as_me:$LINENO: result: no" >&5
17166 echo "${ECHO_T}no" >&6; }
17170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172 for ac_prog in true
17174 # Extract the first word of "$ac_prog", so it can be a program name with args.
17175 set dummy $ac_prog; ac_word=$2
17176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17178 if test "${ac_cv_prog_TRUE+set}" = set; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 if test -n "$TRUE"; then
17182 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17185 for as_dir in $PATH
17188 test -z "$as_dir" && as_dir=.
17189 for ac_exec_ext in '' $ac_executable_extensions; do
17190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17191 ac_cv_prog_TRUE="$ac_prog"
17192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17201 TRUE=$ac_cv_prog_TRUE
17202 if test -n "$TRUE"; then
17203 { echo "$as_me:$LINENO: result: $TRUE" >&5
17204 echo "${ECHO_T}$TRUE" >&6; }
17206 { echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6; }
17211 test -n "$TRUE" && break
17213 test -n "$TRUE" || TRUE="/bin/true"
17216 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17217 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17218 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 ac_check_lib_save_LIBS=$LIBS
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17240 return inet_aton ();
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17249 *) ac_try_echo
=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>conftest.er1
17254 grep -v '^ *+' conftest.er1
>conftest.err
17256 cat conftest.err
>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest
$ac_exeext &&
17262 $as_test_x conftest
$ac_exeext; then
17263 ac_cv_lib_c_inet_aton
=yes
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.
$ac_ext >&5
17268 ac_cv_lib_c_inet_aton
=no
17271 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17272 conftest
$ac_exeext conftest.
$ac_ext
17273 LIBS
=$ac_check_lib_save_LIBS
17275 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17276 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17277 if test $ac_cv_lib_c_inet_aton = yes; then
17281 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17282 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17283 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 ac_check_lib_save_LIBS
=$LIBS
17287 LIBS
="-lresolv $LIBS"
17288 cat >conftest.
$ac_ext <<_ACEOF
17291 cat confdefs.h
>>conftest.
$ac_ext
17292 cat >>conftest.
$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17305 return inet_aton ();
17310 rm -f conftest.
$ac_objext conftest
$ac_exeext
17311 if { (ac_try
="$ac_link"
17312 case "(($ac_try" in
17313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext &&
17327 $as_test_x conftest$ac_exeext; then
17328 ac_cv_lib_resolv_inet_aton=yes
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_cv_lib_resolv_inet_aton=no
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337 conftest$ac_exeext conftest.$ac_ext
17338 LIBS=$ac_check_lib_save_LIBS
17340 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17341 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17342 if test $ac_cv_lib_resolv_inet_aton = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344 #define HAVE_LIBRESOLV 1
17347 LIBS="-lresolv $LIBS"
17355 # On Tru64, chflags seems to be present, but calling it will
17357 { echo "$as_me:$LINENO: checking for chflags" >&5
17358 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17359 if test "${ac_cv_have_chflags+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 if test "$cross_compiling" = yes; then
17363 ac_cv_have_chflags=cross
17365 cat >conftest.$ac_ext <<_ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17372 #include <sys/stat.h>
17373 #include <unistd.h>
17374 int main(int argc, char*argv[])
17376 if(chflags(argv[0], 0) != 0)
17382 rm -f conftest$ac_exeext
17383 if { (ac_try="$ac_link"
17384 case "(($ac_try" in
17385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17386 *) ac_try_echo
=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_link") 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17393 { (case "(($ac_try" in
17394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_have_chflags=yes
17404 echo "$as_me: program exited with status $ac_status" >&5
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17408 ( exit $ac_status )
17409 ac_cv_have_chflags=no
17411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17417 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17418 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17419 if test "$ac_cv_have_chflags" = cross ; then
17420 { echo "$as_me:$LINENO: checking for chflags" >&5
17421 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17422 if test "${ac_cv_func_chflags+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17433 #define chflags innocuous_chflags
17435 /* System header to define __stub macros and hopefully few prototypes,
17436 which can conflict with char chflags (); below.
17437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17438 <limits.h> exists even on freestanding compilers. */
17441 # include <limits.h>
17443 # include <assert.h>
17448 /* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined __stub_chflags || defined __stub___chflags
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
17472 case "(($ac_try" in
17473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17474 *) ac_try_echo
=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_link") 2>conftest.er1
17479 grep -v '^ *+' conftest.er1
>conftest.err
17481 cat conftest.err
>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } && {
17484 test -z "$ac_c_werror_flag" ||
17485 test ! -s conftest.err
17486 } && test -s conftest
$ac_exeext &&
17487 $as_test_x conftest
$ac_exeext; then
17488 ac_cv_func_chflags
=yes
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.
$ac_ext >&5
17493 ac_cv_func_chflags
=no
17496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17497 conftest
$ac_exeext conftest.
$ac_ext
17499 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17500 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17501 if test $ac_cv_func_chflags = yes; then
17502 ac_cv_have_chflags
="yes"
17504 ac_cv_have_chflags
="no"
17508 if test "$ac_cv_have_chflags" = yes ; then
17510 cat >>confdefs.h
<<\_ACEOF
17511 #define HAVE_CHFLAGS 1
17516 { echo "$as_me:$LINENO: checking for lchflags" >&5
17517 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17518 if test "${ac_cv_have_lchflags+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 if test "$cross_compiling" = yes; then
17522 ac_cv_have_lchflags
=cross
17524 cat >conftest.
$ac_ext <<_ACEOF
17527 cat confdefs.h
>>conftest.
$ac_ext
17528 cat >>conftest.
$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17531 #include <sys/stat.h>
17532 #include <unistd.h>
17533 int main(int argc, char*argv[])
17535 if(lchflags(argv[0], 0) != 0)
17541 rm -f conftest
$ac_exeext
17542 if { (ac_try
="$ac_link"
17543 case "(($ac_try" in
17544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_link") 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17554 *) ac_try_echo
=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_cv_have_lchflags
=yes
17563 echo "$as_me: program exited with status $ac_status" >&5
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.
$ac_ext >&5
17567 ( exit $ac_status )
17568 ac_cv_have_lchflags
=no
17570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17576 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17577 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17578 if test "$ac_cv_have_lchflags" = cross
; then
17579 { echo "$as_me:$LINENO: checking for lchflags" >&5
17580 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17581 if test "${ac_cv_func_lchflags+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 cat >conftest.
$ac_ext <<_ACEOF
17587 cat confdefs.h
>>conftest.
$ac_ext
17588 cat >>conftest.
$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17592 #define lchflags innocuous_lchflags
17594 /* System header to define __stub macros and hopefully few prototypes,
17595 which can conflict with char lchflags (); below.
17596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17597 <limits.h> exists even on freestanding compilers. */
17600 # include <limits.h>
17602 # include <assert.h>
17607 /* Override any GCC internal prototype to avoid an error.
17608 Use char because int might match the return type of a GCC
17609 builtin and then its argument prototype would still apply. */
17614 /* The GNU C library defines this for functions which it implements
17615 to always fail with ENOSYS. Some functions are actually named
17616 something starting with __ and the normal name is an alias. */
17617 #if defined __stub_lchflags || defined __stub___lchflags
17624 return lchflags ();
17629 rm -f conftest.
$ac_objext conftest
$ac_exeext
17630 if { (ac_try
="$ac_link"
17631 case "(($ac_try" in
17632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } && {
17643 test -z "$ac_c_werror_flag" ||
17644 test ! -s conftest.err
17645 } && test -s conftest$ac_exeext &&
17646 $as_test_x conftest$ac_exeext; then
17647 ac_cv_func_lchflags=yes
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_cv_func_lchflags=no
17655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17656 conftest$ac_exeext conftest.$ac_ext
17658 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17659 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17660 if test $ac_cv_func_lchflags = yes; then
17661 ac_cv_have_lchflags="yes"
17663 ac_cv_have_lchflags="no"
17667 if test "$ac_cv_have_lchflags" = yes ; then
17669 cat >>confdefs.h <<\_ACEOF
17670 #define HAVE_LCHFLAGS 1
17675 case $ac_sys_system/$ac_sys_release in
17677 _CUR_CFLAGS="${CFLAGS}"
17678 _CUR_LDFLAGS="${LDFLAGS}"
17679 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17680 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17684 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17685 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17686 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 ac_check_lib_save_LIBS=$LIBS
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17698 /* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17704 char inflateCopy ();
17708 return inflateCopy ();
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17717 *) ac_try_echo
=$ac_try;;
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_link") 2>conftest.er1
17722 grep -v '^ *+' conftest.er1
>conftest.err
17724 cat conftest.err
>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest
$ac_exeext &&
17730 $as_test_x conftest
$ac_exeext; then
17731 ac_cv_lib_z_inflateCopy
=yes
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.
$ac_ext >&5
17736 ac_cv_lib_z_inflateCopy
=no
17739 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17740 conftest
$ac_exeext conftest.
$ac_ext
17741 LIBS
=$ac_check_lib_save_LIBS
17743 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17744 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17745 if test $ac_cv_lib_z_inflateCopy = yes; then
17747 cat >>confdefs.h
<<\_ACEOF
17748 #define HAVE_ZLIB_COPY 1
17754 case $ac_sys_system/$ac_sys_release in
17756 CFLAGS
="${_CUR_CFLAGS}"
17757 LDFLAGS
="${_CUR_LDFLAGS}"
17761 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17762 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17763 cat >conftest.
$ac_ext <<_ACEOF
17766 cat confdefs.h
>>conftest.
$ac_ext
17767 cat >>conftest.
$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17770 #include "confdefs.h"
17776 void* p = hstrerror; hstrerror(0)
17781 rm -f conftest.
$ac_objext conftest
$ac_exeext
17782 if { (ac_try
="$ac_link"
17783 case "(($ac_try" in
17784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_link") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest$ac_exeext &&
17798 $as_test_x conftest$ac_exeext; then
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_HSTRERROR 1
17804 { echo "$as_me:$LINENO: result: yes" >&5
17805 echo "${ECHO_T}yes" >&6; }
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 { echo "$as_me:$LINENO: result: no" >&5
17811 echo "${ECHO_T}no" >&6; }
17815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17816 conftest$ac_exeext conftest.$ac_ext
17818 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17819 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17827 #include "confdefs.h"
17828 #include <sys/types.h>
17829 #include <sys/socket.h>
17830 #include <netinet/in.h>
17831 #include <arpa/inet.h>
17836 void* p = inet_aton;inet_aton(0,0)
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17845 *) ac_try_echo
=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1
>conftest.err
17852 cat conftest.err
>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest
$ac_exeext &&
17858 $as_test_x conftest
$ac_exeext; then
17860 cat >>confdefs.h
<<\_ACEOF
17861 #define HAVE_INET_ATON 1
17864 { echo "$as_me:$LINENO: result: yes" >&5
17865 echo "${ECHO_T}yes" >&6; }
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.
$ac_ext >&5
17870 { echo "$as_me:$LINENO: result: no" >&5
17871 echo "${ECHO_T}no" >&6; }
17875 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17876 conftest
$ac_exeext conftest.
$ac_ext
17878 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17879 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17880 cat >conftest.
$ac_ext <<_ACEOF
17883 cat confdefs.h
>>conftest.
$ac_ext
17884 cat >>conftest.
$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17887 #include "confdefs.h"
17888 #include <sys/types.h>
17889 #include <sys/socket.h>
17890 #include <netinet/in.h>
17891 #include <arpa/inet.h>
17896 void* p = inet_pton
17901 rm -f conftest.
$ac_objext
17902 if { (ac_try
="$ac_compile"
17903 case "(($ac_try" in
17904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } && {
17915 test -z "$ac_c_werror_flag" ||
17916 test ! -s conftest.err
17917 } && test -s conftest.$ac_objext; then
17919 cat >>confdefs.h <<\_ACEOF
17920 #define HAVE_INET_PTON 1
17923 { echo "$as_me:$LINENO: result: yes" >&5
17924 echo "${ECHO_T}yes" >&6; }
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 { echo "$as_me:$LINENO: result: no" >&5
17930 echo "${ECHO_T}no" >&6; }
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 # On some systems, setgroups is in unistd.h, on others, in grp.h
17937 { echo "$as_me:$LINENO: checking for setgroups" >&5
17938 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17946 #include "confdefs.h"
17947 #include <unistd.h>
17955 void* p = setgroups
17960 rm -f conftest.$ac_objext
17961 if { (ac_try="$ac_compile"
17962 case "(($ac_try" in
17963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17964 *) ac_try_echo
=$ac_try;;
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17969 grep -v '^ *+' conftest.er1
>conftest.err
17971 cat conftest.err
>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.
$ac_objext; then
17978 cat >>confdefs.h
<<\_ACEOF
17979 #define HAVE_SETGROUPS 1
17982 { echo "$as_me:$LINENO: result: yes" >&5
17983 echo "${ECHO_T}yes" >&6; }
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.
$ac_ext >&5
17988 { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17995 # check for openpty and forkpty
17998 for ac_func
in openpty
18000 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18003 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 cat >conftest.
$ac_ext <<_ACEOF
18009 cat confdefs.h
>>conftest.
$ac_ext
18010 cat >>conftest.
$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18014 #define $ac_func innocuous_$ac_func
18016 /* System header to define __stub macros and hopefully few prototypes,
18017 which can conflict with char $ac_func (); below.
18018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019 <limits.h> exists even on freestanding compilers. */
18022 # include <limits.h>
18024 # include <assert.h>
18029 /* Override any GCC internal prototype to avoid an error.
18030 Use char because int might match the return type of a GCC
18031 builtin and then its argument prototype would still apply. */
18036 /* The GNU C library defines this for functions which it implements
18037 to always fail with ENOSYS. Some functions are actually named
18038 something starting with __ and the normal name is an alias. */
18039 #if defined __stub_$ac_func || defined __stub___$ac_func
18046 return $ac_func ();
18051 rm -f conftest.
$ac_objext conftest
$ac_exeext
18052 if { (ac_try
="$ac_link"
18053 case "(($ac_try" in
18054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest$ac_exeext &&
18068 $as_test_x conftest$ac_exeext; then
18069 eval "$as_ac_var=yes"
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 eval "$as_ac_var=no"
18077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18078 conftest$ac_exeext conftest.$ac_ext
18080 ac_res=`eval echo '${'$as_ac_var'}'`
18081 { echo "$as_me:$LINENO: result: $ac_res" >&5
18082 echo "${ECHO_T}$ac_res" >&6; }
18083 if test `eval echo '${'$as_ac_var'}'` = yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18089 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18090 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18091 if test "${ac_cv_lib_util_openpty+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 ac_check_lib_save_LIBS=$LIBS
18095 LIBS="-lutil $LIBS"
18096 cat >conftest.$ac_ext <<_ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18103 /* Override any GCC internal prototype to avoid an error.
18104 Use char because int might match the return type of a GCC
18105 builtin and then its argument prototype would still apply. */
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (ac_try="$ac_link"
18120 case "(($ac_try" in
18121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18122 *) ac_try_echo
=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_link") 2>conftest.er1
18127 grep -v '^ *+' conftest.er1
>conftest.err
18129 cat conftest.err
>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest
$ac_exeext &&
18135 $as_test_x conftest
$ac_exeext; then
18136 ac_cv_lib_util_openpty
=yes
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.
$ac_ext >&5
18141 ac_cv_lib_util_openpty
=no
18144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18145 conftest
$ac_exeext conftest.
$ac_ext
18146 LIBS
=$ac_check_lib_save_LIBS
18148 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18149 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18150 if test $ac_cv_lib_util_openpty = yes; then
18151 cat >>confdefs.h
<<\_ACEOF
18152 #define HAVE_OPENPTY 1
18154 LIBS
="$LIBS -lutil"
18156 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18157 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18158 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 ac_check_lib_save_LIBS
=$LIBS
18163 cat >conftest.
$ac_ext <<_ACEOF
18166 cat confdefs.h
>>conftest.
$ac_ext
18167 cat >>conftest.
$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18170 /* Override any GCC internal prototype to avoid an error.
18171 Use char because int might match the return type of a GCC
18172 builtin and then its argument prototype would still apply. */
18185 rm -f conftest.
$ac_objext conftest
$ac_exeext
18186 if { (ac_try
="$ac_link"
18187 case "(($ac_try" in
18188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_link") 2>conftest.er1
18194 grep -v '^ *+' conftest.er1 >conftest.err
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } && {
18199 test -z "$ac_c_werror_flag" ||
18200 test ! -s conftest.err
18201 } && test -s conftest$ac_exeext &&
18202 $as_test_x conftest$ac_exeext; then
18203 ac_cv_lib_bsd_openpty=yes
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 ac_cv_lib_bsd_openpty=no
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18215 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18216 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18217 if test $ac_cv_lib_bsd_openpty = yes; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_OPENPTY 1
18232 for ac_func in forkpty
18234 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18248 #define $ac_func innocuous_$ac_func
18250 /* System header to define __stub macros and hopefully few prototypes,
18251 which can conflict with char $ac_func (); below.
18252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18253 <limits.h> exists even on freestanding compilers. */
18256 # include <limits.h>
18258 # include <assert.h>
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18270 /* The GNU C library defines this for functions which it implements
18271 to always fail with ENOSYS. Some functions are actually named
18272 something starting with __ and the normal name is an alias. */
18273 #if defined __stub_$ac_func || defined __stub___$ac_func
18280 return $ac_func ();
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (ac_try="$ac_link"
18287 case "(($ac_try" in
18288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18289 *) ac_try_echo
=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_link") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1
>conftest.err
18296 cat conftest.err
>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest
$ac_exeext &&
18302 $as_test_x conftest
$ac_exeext; then
18303 eval "$as_ac_var=yes"
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.
$ac_ext >&5
18308 eval "$as_ac_var=no"
18311 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18312 conftest
$ac_exeext conftest.
$ac_ext
18314 ac_res
=`eval echo '${'$as_ac_var'}'`
18315 { echo "$as_me:$LINENO: result: $ac_res" >&5
18316 echo "${ECHO_T}$ac_res" >&6; }
18317 if test `eval echo '${'$as_ac_var'}'` = yes; then
18318 cat >>confdefs.h
<<_ACEOF
18319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18323 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18324 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18325 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 ac_check_lib_save_LIBS
=$LIBS
18329 LIBS
="-lutil $LIBS"
18330 cat >conftest.
$ac_ext <<_ACEOF
18333 cat confdefs.h
>>conftest.
$ac_ext
18334 cat >>conftest.
$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 /* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18352 rm -f conftest.
$ac_objext conftest
$ac_exeext
18353 if { (ac_try
="$ac_link"
18354 case "(($ac_try" in
18355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18361 grep -v '^ *+' conftest.er1 >conftest.err
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } && {
18366 test -z "$ac_c_werror_flag" ||
18367 test ! -s conftest.err
18368 } && test -s conftest$ac_exeext &&
18369 $as_test_x conftest$ac_exeext; then
18370 ac_cv_lib_util_forkpty=yes
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 ac_cv_lib_util_forkpty=no
18378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18379 conftest$ac_exeext conftest.$ac_ext
18380 LIBS=$ac_check_lib_save_LIBS
18382 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18383 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18384 if test $ac_cv_lib_util_forkpty = yes; then
18385 cat >>confdefs.h <<\_ACEOF
18386 #define HAVE_FORKPTY 1
18388 LIBS="$LIBS -lutil"
18390 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18391 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18392 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 ac_check_lib_save_LIBS=$LIBS
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18404 /* Override any GCC internal prototype to avoid an error.
18405 Use char because int might match the return type of a GCC
18406 builtin and then its argument prototype would still apply. */
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18423 *) ac_try_echo
=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_link") 2>conftest.er1
18428 grep -v '^ *+' conftest.er1
>conftest.err
18430 cat conftest.err
>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } && {
18433 test -z "$ac_c_werror_flag" ||
18434 test ! -s conftest.err
18435 } && test -s conftest
$ac_exeext &&
18436 $as_test_x conftest
$ac_exeext; then
18437 ac_cv_lib_bsd_forkpty
=yes
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.
$ac_ext >&5
18442 ac_cv_lib_bsd_forkpty
=no
18445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18446 conftest
$ac_exeext conftest.
$ac_ext
18447 LIBS
=$ac_check_lib_save_LIBS
18449 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18450 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18451 if test $ac_cv_lib_bsd_forkpty = yes; then
18452 cat >>confdefs.h
<<\_ACEOF
18453 #define HAVE_FORKPTY 1
18468 for ac_func
in memmove
18470 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18473 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 cat >conftest.
$ac_ext <<_ACEOF
18479 cat confdefs.h
>>conftest.
$ac_ext
18480 cat >>conftest.
$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18484 #define $ac_func innocuous_$ac_func
18486 /* System header to define __stub macros and hopefully few prototypes,
18487 which can conflict with char $ac_func (); below.
18488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 <limits.h> exists even on freestanding compilers. */
18492 # include <limits.h>
18494 # include <assert.h>
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined __stub_$ac_func || defined __stub___$ac_func
18516 return $ac_func ();
18521 rm -f conftest.
$ac_objext conftest
$ac_exeext
18522 if { (ac_try
="$ac_link"
18523 case "(($ac_try" in
18524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_link") 2>conftest.er1
18530 grep -v '^ *+' conftest.er1 >conftest.err
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } && {
18535 test -z "$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 } && test -s conftest$ac_exeext &&
18538 $as_test_x conftest$ac_exeext; then
18539 eval "$as_ac_var=yes"
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 eval "$as_ac_var=no"
18547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18548 conftest$ac_exeext conftest.$ac_ext
18550 ac_res=`eval echo '${'$as_ac_var'}'`
18551 { echo "$as_me:$LINENO: result: $ac_res" >&5
18552 echo "${ECHO_T}$ac_res" >&6; }
18553 if test `eval echo '${'$as_ac_var'}'` = yes; then
18554 cat >>confdefs.h <<_ACEOF
18555 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18562 # check for long file support functions
18569 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18571 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18593 # include <limits.h>
18595 # include <assert.h>
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18617 return $ac_func ();
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18626 *) ac_try_echo
=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1
>conftest.err
18633 cat conftest.err
>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest
$ac_exeext &&
18639 $as_test_x conftest
$ac_exeext; then
18640 eval "$as_ac_var=yes"
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.
$ac_ext >&5
18645 eval "$as_ac_var=no"
18648 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18649 conftest
$ac_exeext conftest.
$ac_ext
18651 ac_res
=`eval echo '${'$as_ac_var'}'`
18652 { echo "$as_me:$LINENO: result: $ac_res" >&5
18653 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_var'}'` = yes; then
18655 cat >>confdefs.h
<<_ACEOF
18656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18666 for ac_func
in dup2 getcwd strdup
18668 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18671 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 cat >conftest.
$ac_ext <<_ACEOF
18677 cat confdefs.h
>>conftest.
$ac_ext
18678 cat >>conftest.
$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18682 #define $ac_func innocuous_$ac_func
18684 /* System header to define __stub macros and hopefully few prototypes,
18685 which can conflict with char $ac_func (); below.
18686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18687 <limits.h> exists even on freestanding compilers. */
18690 # include <limits.h>
18692 # include <assert.h>
18697 /* Override any GCC internal prototype to avoid an error.
18698 Use char because int might match the return type of a GCC
18699 builtin and then its argument prototype would still apply. */
18704 /* The GNU C library defines this for functions which it implements
18705 to always fail with ENOSYS. Some functions are actually named
18706 something starting with __ and the normal name is an alias. */
18707 #if defined __stub_$ac_func || defined __stub___$ac_func
18714 return $ac_func ();
18719 rm -f conftest.
$ac_objext conftest
$ac_exeext
18720 if { (ac_try
="$ac_link"
18721 case "(($ac_try" in
18722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_link") 2>conftest.er1
18728 grep -v '^ *+' conftest.er1 >conftest.err
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } && {
18733 test -z "$ac_c_werror_flag" ||
18734 test ! -s conftest.err
18735 } && test -s conftest$ac_exeext &&
18736 $as_test_x conftest$ac_exeext; then
18737 eval "$as_ac_var=yes"
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18742 eval "$as_ac_var=no"
18745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18746 conftest$ac_exeext conftest.$ac_ext
18748 ac_res=`eval echo '${'$as_ac_var'}'`
18749 { echo "$as_me:$LINENO: result: $ac_res" >&5
18750 echo "${ECHO_T}$ac_res" >&6; }
18751 if test `eval echo '${'$as_ac_var'}'` = yes; then
18752 cat >>confdefs.h <<_ACEOF
18753 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18757 case " $LIBOBJS " in
18758 *" $ac_func.$ac_objext "* ) ;;
18759 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18768 for ac_func in getpgrp
18770 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18784 #define $ac_func innocuous_$ac_func
18786 /* System header to define __stub macros and hopefully few prototypes,
18787 which can conflict with char $ac_func (); below.
18788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 <limits.h> exists even on freestanding compilers. */
18792 # include <limits.h>
18794 # include <assert.h>
18799 /* Override any GCC internal prototype to avoid an error.
18800 Use char because int might match the return type of a GCC
18801 builtin and then its argument prototype would still apply. */
18806 /* The GNU C library defines this for functions which it implements
18807 to always fail with ENOSYS. Some functions are actually named
18808 something starting with __ and the normal name is an alias. */
18809 #if defined __stub_$ac_func || defined __stub___$ac_func
18816 return $ac_func ();
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18825 *) ac_try_echo
=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1
>conftest.err
18832 cat conftest.err
>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest
$ac_exeext &&
18838 $as_test_x conftest
$ac_exeext; then
18839 eval "$as_ac_var=yes"
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.
$ac_ext >&5
18844 eval "$as_ac_var=no"
18847 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18848 conftest
$ac_exeext conftest.
$ac_ext
18850 ac_res
=`eval echo '${'$as_ac_var'}'`
18851 { echo "$as_me:$LINENO: result: $ac_res" >&5
18852 echo "${ECHO_T}$ac_res" >&6; }
18853 if test `eval echo '${'$as_ac_var'}'` = yes; then
18854 cat >>confdefs.h
<<_ACEOF
18855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18857 cat >conftest.
$ac_ext <<_ACEOF
18860 cat confdefs.h
>>conftest.
$ac_ext
18861 cat >>conftest.
$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 #include <unistd.h>
18872 rm -f conftest.
$ac_objext
18873 if { (ac_try
="$ac_compile"
18874 case "(($ac_try" in
18875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_compile") 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest.$ac_objext; then
18890 cat >>confdefs.h <<\_ACEOF
18891 #define GETPGRP_HAVE_ARG 1
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908 for ac_func in setpgrp
18910 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18932 # include <limits.h>
18934 # include <assert.h>
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18956 return $ac_func ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18965 *) ac_try_echo
=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1
>conftest.err
18972 cat conftest.err
>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest
$ac_exeext &&
18978 $as_test_x conftest
$ac_exeext; then
18979 eval "$as_ac_var=yes"
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.
$ac_ext >&5
18984 eval "$as_ac_var=no"
18987 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18988 conftest
$ac_exeext conftest.
$ac_ext
18990 ac_res
=`eval echo '${'$as_ac_var'}'`
18991 { echo "$as_me:$LINENO: result: $ac_res" >&5
18992 echo "${ECHO_T}$ac_res" >&6; }
18993 if test `eval echo '${'$as_ac_var'}'` = yes; then
18994 cat >>confdefs.h
<<_ACEOF
18995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18997 cat >conftest.
$ac_ext <<_ACEOF
19000 cat confdefs.h
>>conftest.
$ac_ext
19001 cat >>conftest.
$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 #include <unistd.h>
19012 rm -f conftest.
$ac_objext
19013 if { (ac_try
="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19021 grep -v '^ *+' conftest.er1 >conftest.err
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define SETPGRP_HAVE_ARG 1
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19048 for ac_func in gettimeofday
19050 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19064 #define $ac_func innocuous_$ac_func
19066 /* System header to define __stub macros and hopefully few prototypes,
19067 which can conflict with char $ac_func (); below.
19068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19069 <limits.h> exists even on freestanding compilers. */
19072 # include <limits.h>
19074 # include <assert.h>
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19086 /* The GNU C library defines this for functions which it implements
19087 to always fail with ENOSYS. Some functions are actually named
19088 something starting with __ and the normal name is an alias. */
19089 #if defined __stub_$ac_func || defined __stub___$ac_func
19096 return $ac_func ();
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19105 *) ac_try_echo
=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_link") 2>conftest.er1
19110 grep -v '^ *+' conftest.er1
>conftest.err
19112 cat conftest.err
>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && {
19115 test -z "$ac_c_werror_flag" ||
19116 test ! -s conftest.err
19117 } && test -s conftest
$ac_exeext &&
19118 $as_test_x conftest
$ac_exeext; then
19119 eval "$as_ac_var=yes"
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.
$ac_ext >&5
19124 eval "$as_ac_var=no"
19127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19128 conftest
$ac_exeext conftest.
$ac_ext
19130 ac_res
=`eval echo '${'$as_ac_var'}'`
19131 { echo "$as_me:$LINENO: result: $ac_res" >&5
19132 echo "${ECHO_T}$ac_res" >&6; }
19133 if test `eval echo '${'$as_ac_var'}'` = yes; then
19134 cat >>confdefs.h
<<_ACEOF
19135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19137 cat >conftest.
$ac_ext <<_ACEOF
19140 cat confdefs.h
>>conftest.
$ac_ext
19141 cat >>conftest.
$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 #include <sys/time.h>
19147 gettimeofday((struct timeval*)0,(struct timezone*)0);
19152 rm -f conftest.
$ac_objext
19153 if { (ac_try
="$ac_compile"
19154 case "(($ac_try" in
19155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_compile") 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } && {
19166 test -z "$ac_c_werror_flag" ||
19167 test ! -s conftest.err
19168 } && test -s conftest.$ac_objext; then
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19175 cat >>confdefs.h <<\_ACEOF
19176 #define GETTIMEOFDAY_NO_TZ 1
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 { echo "$as_me:$LINENO: checking for major" >&5
19189 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19197 #if defined(MAJOR_IN_MKDEV)
19198 #include <sys/mkdev.h>
19199 #elif defined(MAJOR_IN_SYSMACROS)
19200 #include <sys/sysmacros.h>
19202 #include <sys/types.h>
19209 makedev(major(0),minor(0));
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (ac_try="$ac_link"
19217 case "(($ac_try" in
19218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19219 *) ac_try_echo
=$ac_try;;
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_link") 2>conftest.er1
19224 grep -v '^ *+' conftest.er1
>conftest.err
19226 cat conftest.err
>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest
$ac_exeext &&
19232 $as_test_x conftest
$ac_exeext; then
19235 cat >>confdefs.h
<<\_ACEOF
19236 #define HAVE_DEVICE_MACROS 1
19239 { echo "$as_me:$LINENO: result: yes" >&5
19240 echo "${ECHO_T}yes" >&6; }
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.
$ac_ext >&5
19247 { echo "$as_me:$LINENO: result: no" >&5
19248 echo "${ECHO_T}no" >&6; }
19252 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19253 conftest
$ac_exeext conftest.
$ac_ext
19255 # On OSF/1 V5.1, getaddrinfo is available, but a define
19256 # for [no]getaddrinfo in netdb.h.
19257 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19258 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19259 cat >conftest.
$ac_ext <<_ACEOF
19262 cat confdefs.h
>>conftest.
$ac_ext
19263 cat >>conftest.
$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19266 #include <sys/types.h>
19267 #include <sys/socket.h>
19275 getaddrinfo(NULL, NULL, NULL, NULL);
19281 rm -f conftest.
$ac_objext conftest
$ac_exeext
19282 if { (ac_try
="$ac_link"
19283 case "(($ac_try" in
19284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext &&
19298 $as_test_x conftest$ac_exeext; then
19300 { echo "$as_me:$LINENO: result: yes" >&5
19301 echo "${ECHO_T}yes" >&6; }
19302 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19303 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19304 if test "$cross_compiling" = yes; then
19305 { echo "$as_me:$LINENO: result: buggy" >&5
19306 echo "${ECHO_T}buggy" >&6; }
19307 buggygetaddrinfo=yes
19309 cat >conftest.$ac_ext <<_ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19316 #include <sys/types.h>
19318 #include <string.h>
19319 #include <sys/socket.h>
19320 #include <netinet/in.h>
19324 int passive, gaierr, inet4 = 0, inet6 = 0;
19325 struct addrinfo hints, *ai, *aitop;
19326 char straddr[INET6_ADDRSTRLEN], strport[16];
19328 for (passive = 0; passive <= 1; passive++) {
19329 memset(&hints, 0, sizeof(hints));
19330 hints.ai_family = AF_UNSPEC;
19331 hints.ai_flags = passive ? AI_PASSIVE : 0;
19332 hints.ai_socktype = SOCK_STREAM;
19333 hints.ai_protocol = IPPROTO_TCP;
19334 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19335 (void)gai_strerror(gaierr);
19338 for (ai = aitop; ai; ai = ai->ai_next) {
19339 if (ai->ai_addr == NULL ||
19340 ai->ai_addrlen == 0 ||
19341 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19342 straddr, sizeof(straddr), strport, sizeof(strport),
19343 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19346 switch (ai->ai_family) {
19348 if (strcmp(strport, "54321") != 0) {
19352 if (strcmp(straddr, "0.0.0.0") != 0) {
19356 if (strcmp(straddr, "127.0.0.1") != 0) {
19363 if (strcmp(strport, "54321") != 0) {
19367 if (strcmp(straddr, "::") != 0) {
19371 if (strcmp(straddr, "::1") != 0) {
19381 /* another family support? */
19387 if (!(inet4 == 0 || inet4 == 2))
19389 if (!(inet6 == 0 || inet6 == 2))
19393 freeaddrinfo(aitop);
19398 freeaddrinfo(aitop);
19403 rm -f conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19407 *) ac_try_echo
=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19414 { (case "(($ac_try" in
19415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_try") 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 { echo "$as_me:$LINENO: result: good" >&5
19424 echo "${ECHO_T}good" >&6; }
19425 buggygetaddrinfo=no
19427 echo "$as_me: program exited with status $ac_status" >&5
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431 ( exit $ac_status )
19432 { echo "$as_me:$LINENO: result: buggy" >&5
19433 echo "${ECHO_T}buggy" >&6; }
19434 buggygetaddrinfo=yes
19436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19445 { echo "$as_me:$LINENO: result: no" >&5
19446 echo "${ECHO_T}no" >&6; }
19447 buggygetaddrinfo=yes
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452 conftest$ac_exeext conftest.$ac_ext
19454 if test "$buggygetaddrinfo" = "yes"; then
19455 if test "$ipv6" = "yes"; then
19456 echo 'Fatal: You must get working getaddrinfo() function.'
19457 echo ' or you can specify "--disable-ipv6"'.
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_GETADDRINFO 1
19468 for ac_func in getnameinfo
19470 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19484 #define $ac_func innocuous_$ac_func
19486 /* System header to define __stub macros and hopefully few prototypes,
19487 which can conflict with char $ac_func (); below.
19488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19489 <limits.h> exists even on freestanding compilers. */
19492 # include <limits.h>
19494 # include <assert.h>
19499 /* Override any GCC internal prototype to avoid an error.
19500 Use char because int might match the return type of a GCC
19501 builtin and then its argument prototype would still apply. */
19506 /* The GNU C library defines this for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
19509 #if defined __stub_$ac_func || defined __stub___$ac_func
19516 return $ac_func ();
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (ac_try="$ac_link"
19523 case "(($ac_try" in
19524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19525 *) ac_try_echo
=$ac_try;;
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_link") 2>conftest.er1
19530 grep -v '^ *+' conftest.er1
>conftest.err
19532 cat conftest.err
>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest
$ac_exeext &&
19538 $as_test_x conftest
$ac_exeext; then
19539 eval "$as_ac_var=yes"
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.
$ac_ext >&5
19544 eval "$as_ac_var=no"
19547 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19548 conftest
$ac_exeext conftest.
$ac_ext
19550 ac_res
=`eval echo '${'$as_ac_var'}'`
19551 { echo "$as_me:$LINENO: result: $ac_res" >&5
19552 echo "${ECHO_T}$ac_res" >&6; }
19553 if test `eval echo '${'$as_ac_var'}'` = yes; then
19554 cat >>confdefs.h
<<_ACEOF
19555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19562 # checks for structures
19563 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19564 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19565 if test "${ac_cv_header_time+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 cat >conftest.
$ac_ext <<_ACEOF
19571 cat confdefs.h
>>conftest.
$ac_ext
19572 cat >>conftest.
$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 #include <sys/types.h>
19575 #include <sys/time.h>
19581 if ((struct tm *) 0)
19587 rm -f conftest.
$ac_objext
19588 if { (ac_try
="$ac_compile"
19589 case "(($ac_try" in
19590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } && {
19601 test -z "$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 } && test -s conftest.$ac_objext; then
19604 ac_cv_header_time=yes
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_cv_header_time=no
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19615 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19616 if test $ac_cv_header_time = yes; then
19618 cat >>confdefs.h <<\_ACEOF
19619 #define TIME_WITH_SYS_TIME 1
19624 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19626 if test "${ac_cv_struct_tm+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 #include <sys/types.h>
19642 int *p = &tm.tm_sec;
19648 rm -f conftest.$ac_objext
19649 if { (ac_try="$ac_compile"
19650 case "(($ac_try" in
19651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19652 *) ac_try_echo
=$ac_try;;
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_compile") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1
>conftest.err
19659 cat conftest.err
>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest.
$ac_objext; then
19665 ac_cv_struct_tm
=time.h
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.
$ac_ext >&5
19670 ac_cv_struct_tm
=sys
/time.h
19673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19675 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19676 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19677 if test $ac_cv_struct_tm = sys
/time.h
; then
19679 cat >>confdefs.h
<<\_ACEOF
19680 #define TM_IN_SYS_TIME 1
19685 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19686 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19687 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 cat >conftest.
$ac_ext <<_ACEOF
19693 cat confdefs.h
>>conftest.
$ac_ext
19694 cat >>conftest.
$ac_ext <<_ACEOF
19695 /* end confdefs.h. */
19696 #include <sys/types.h>
19697 #include <$ac_cv_struct_tm>
19703 static struct tm ac_aggr;
19704 if (ac_aggr.tm_zone)
19710 rm -f conftest.
$ac_objext
19711 if { (ac_try
="$ac_compile"
19712 case "(($ac_try" in
19713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_cv_member_struct_tm_tm_zone=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 #include <sys/types.h>
19739 #include <$ac_cv_struct_tm>
19745 static struct tm ac_aggr;
19746 if (sizeof ac_aggr.tm_zone)
19752 rm -f conftest.$ac_objext
19753 if { (ac_try="$ac_compile"
19754 case "(($ac_try" in
19755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19756 *) ac_try_echo
=$ac_try;;
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_compile") 2>conftest.er1
19761 grep -v '^ *+' conftest.er1
>conftest.err
19763 cat conftest.err
>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } && {
19766 test -z "$ac_c_werror_flag" ||
19767 test ! -s conftest.err
19768 } && test -s conftest.
$ac_objext; then
19769 ac_cv_member_struct_tm_tm_zone
=yes
19771 echo "$as_me: failed program was:" >&5
19772 sed 's/^/| /' conftest.
$ac_ext >&5
19774 ac_cv_member_struct_tm_tm_zone
=no
19777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19782 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19783 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19784 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19786 cat >>confdefs.h
<<_ACEOF
19787 #define HAVE_STRUCT_TM_TM_ZONE 1
19793 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19795 cat >>confdefs.h
<<\_ACEOF
19796 #define HAVE_TM_ZONE 1
19800 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19801 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19802 if test "${ac_cv_have_decl_tzname+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 cat >conftest.
$ac_ext <<_ACEOF
19808 cat confdefs.h
>>conftest.
$ac_ext
19809 cat >>conftest.
$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19824 rm -f conftest.
$ac_objext
19825 if { (ac_try
="$ac_compile"
19826 case "(($ac_try" in
19827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_compile") 2>conftest.er1
19833 grep -v '^ *+' conftest.er1 >conftest.err
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } && {
19838 test -z "$ac_c_werror_flag" ||
19839 test ! -s conftest.err
19840 } && test -s conftest.$ac_objext; then
19841 ac_cv_have_decl_tzname=yes
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 ac_cv_have_decl_tzname=no
19849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19852 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19853 if test $ac_cv_have_decl_tzname = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define HAVE_DECL_TZNAME 1
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_DECL_TZNAME 0
19869 { echo "$as_me:$LINENO: checking for tzname" >&5
19870 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19871 if test "${ac_cv_var_tzname+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19881 #if !HAVE_DECL_TZNAME
19882 extern char *tzname[];
19888 return tzname[0][0];
19893 rm -f conftest.$ac_objext conftest$ac_exeext
19894 if { (ac_try="$ac_link"
19895 case "(($ac_try" in
19896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19897 *) ac_try_echo
=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_link") 2>conftest.er1
19902 grep -v '^ *+' conftest.er1
>conftest.err
19904 cat conftest.err
>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } && {
19907 test -z "$ac_c_werror_flag" ||
19908 test ! -s conftest.err
19909 } && test -s conftest
$ac_exeext &&
19910 $as_test_x conftest
$ac_exeext; then
19911 ac_cv_var_tzname
=yes
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.
$ac_ext >&5
19916 ac_cv_var_tzname
=no
19919 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19920 conftest
$ac_exeext conftest.
$ac_ext
19922 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19923 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19924 if test $ac_cv_var_tzname = yes; then
19926 cat >>confdefs.h
<<\_ACEOF
19927 #define HAVE_TZNAME 1
19933 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19934 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19935 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >conftest.
$ac_ext <<_ACEOF
19941 cat confdefs.h
>>conftest.
$ac_ext
19942 cat >>conftest.
$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 $ac_includes_default
19948 static struct stat ac_aggr;
19949 if (ac_aggr.st_rdev)
19955 rm -f conftest.
$ac_objext
19956 if { (ac_try
="$ac_compile"
19957 case "(($ac_try" in
19958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_compile") 2>conftest.er1
19964 grep -v '^ *+' conftest.er1 >conftest.err
19966 cat conftest.err >&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && {
19969 test -z "$ac_c_werror_flag" ||
19970 test ! -s conftest.err
19971 } && test -s conftest.$ac_objext; then
19972 ac_cv_member_struct_stat_st_rdev=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 $ac_includes_default
19987 static struct stat ac_aggr;
19988 if (sizeof ac_aggr.st_rdev)
19994 rm -f conftest.$ac_objext
19995 if { (ac_try="$ac_compile"
19996 case "(($ac_try" in
19997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19998 *) ac_try_echo
=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1
>conftest.err
20005 cat conftest.err
>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest.
$ac_objext; then
20011 ac_cv_member_struct_stat_st_rdev
=yes
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.
$ac_ext >&5
20016 ac_cv_member_struct_stat_st_rdev
=no
20019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20024 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20025 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20026 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20028 cat >>confdefs.h
<<_ACEOF
20029 #define HAVE_STRUCT_STAT_ST_RDEV 1
20035 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20036 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20037 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20040 cat >conftest.
$ac_ext <<_ACEOF
20043 cat confdefs.h
>>conftest.
$ac_ext
20044 cat >>conftest.
$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 $ac_includes_default
20050 static struct stat ac_aggr;
20051 if (ac_aggr.st_blksize)
20057 rm -f conftest.
$ac_objext
20058 if { (ac_try
="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_compile") 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && {
20071 test -z "$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20073 } && test -s conftest.$ac_objext; then
20074 ac_cv_member_struct_stat_st_blksize=yes
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 $ac_includes_default
20089 static struct stat ac_aggr;
20090 if (sizeof ac_aggr.st_blksize)
20096 rm -f conftest.$ac_objext
20097 if { (ac_try="$ac_compile"
20098 case "(($ac_try" in
20099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20100 *) ac_try_echo
=$ac_try;;
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_compile") 2>conftest.er1
20105 grep -v '^ *+' conftest.er1
>conftest.err
20107 cat conftest.err
>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest.
$ac_objext; then
20113 ac_cv_member_struct_stat_st_blksize
=yes
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.
$ac_ext >&5
20118 ac_cv_member_struct_stat_st_blksize
=no
20121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20126 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20128 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20130 cat >>confdefs.h
<<_ACEOF
20131 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20137 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20138 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20139 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 cat >conftest.
$ac_ext <<_ACEOF
20145 cat confdefs.h
>>conftest.
$ac_ext
20146 cat >>conftest.
$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 $ac_includes_default
20152 static struct stat ac_aggr;
20153 if (ac_aggr.st_flags)
20159 rm -f conftest.
$ac_objext
20160 if { (ac_try
="$ac_compile"
20161 case "(($ac_try" in
20162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_compile") 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest.$ac_objext; then
20176 ac_cv_member_struct_stat_st_flags=yes
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 $ac_includes_default
20191 static struct stat ac_aggr;
20192 if (sizeof ac_aggr.st_flags)
20198 rm -f conftest.$ac_objext
20199 if { (ac_try="$ac_compile"
20200 case "(($ac_try" in
20201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20202 *) ac_try_echo
=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_compile") 2>conftest.er1
20207 grep -v '^ *+' conftest.er1
>conftest.err
20209 cat conftest.err
>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest.
$ac_objext; then
20215 ac_cv_member_struct_stat_st_flags
=yes
20217 echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.
$ac_ext >&5
20220 ac_cv_member_struct_stat_st_flags
=no
20223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20229 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20230 if test $ac_cv_member_struct_stat_st_flags = yes; then
20232 cat >>confdefs.h
<<_ACEOF
20233 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20239 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20240 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20241 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 cat >conftest.
$ac_ext <<_ACEOF
20247 cat confdefs.h
>>conftest.
$ac_ext
20248 cat >>conftest.
$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 $ac_includes_default
20254 static struct stat ac_aggr;
20255 if (ac_aggr.st_gen)
20261 rm -f conftest.
$ac_objext
20262 if { (ac_try
="$ac_compile"
20263 case "(($ac_try" in
20264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_compile") 2>conftest.er1
20270 grep -v '^ *+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } && {
20275 test -z "$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20277 } && test -s conftest.$ac_objext; then
20278 ac_cv_member_struct_stat_st_gen=yes
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20293 static struct stat ac_aggr;
20294 if (sizeof ac_aggr.st_gen)
20300 rm -f conftest.$ac_objext
20301 if { (ac_try="$ac_compile"
20302 case "(($ac_try" in
20303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20304 *) ac_try_echo
=$ac_try;;
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_compile") 2>conftest.er1
20309 grep -v '^ *+' conftest.er1
>conftest.err
20311 cat conftest.err
>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest.
$ac_objext; then
20317 ac_cv_member_struct_stat_st_gen
=yes
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.
$ac_ext >&5
20322 ac_cv_member_struct_stat_st_gen
=no
20325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20330 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20331 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20332 if test $ac_cv_member_struct_stat_st_gen = yes; then
20334 cat >>confdefs.h
<<_ACEOF
20335 #define HAVE_STRUCT_STAT_ST_GEN 1
20341 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20342 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20343 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 cat >conftest.
$ac_ext <<_ACEOF
20349 cat confdefs.h
>>conftest.
$ac_ext
20350 cat >>conftest.
$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20352 $ac_includes_default
20356 static struct stat ac_aggr;
20357 if (ac_aggr.st_birthtime)
20363 rm -f conftest.
$ac_objext
20364 if { (ac_try
="$ac_compile"
20365 case "(($ac_try" in
20366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest.$ac_objext; then
20380 ac_cv_member_struct_stat_st_birthtime=yes
20382 echo "$as_me: failed program was:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 $ac_includes_default
20395 static struct stat ac_aggr;
20396 if (sizeof ac_aggr.st_birthtime)
20402 rm -f conftest.$ac_objext
20403 if { (ac_try="$ac_compile"
20404 case "(($ac_try" in
20405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20406 *) ac_try_echo
=$ac_try;;
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_compile") 2>conftest.er1
20411 grep -v '^ *+' conftest.er1
>conftest.err
20413 cat conftest.err
>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest.
$ac_objext; then
20419 ac_cv_member_struct_stat_st_birthtime
=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.
$ac_ext >&5
20424 ac_cv_member_struct_stat_st_birthtime
=no
20427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20432 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20433 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20434 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20436 cat >>confdefs.h
<<_ACEOF
20437 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20443 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20444 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20445 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 cat >conftest.
$ac_ext <<_ACEOF
20451 cat confdefs.h
>>conftest.
$ac_ext
20452 cat >>conftest.
$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 $ac_includes_default
20458 static struct stat ac_aggr;
20459 if (ac_aggr.st_blocks)
20465 rm -f conftest.
$ac_objext
20466 if { (ac_try
="$ac_compile"
20467 case "(($ac_try" in
20468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_compile") 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } && {
20479 test -z "$ac_c_werror_flag" ||
20480 test ! -s conftest.err
20481 } && test -s conftest.$ac_objext; then
20482 ac_cv_member_struct_stat_st_blocks=yes
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 $ac_includes_default
20497 static struct stat ac_aggr;
20498 if (sizeof ac_aggr.st_blocks)
20504 rm -f conftest.$ac_objext
20505 if { (ac_try="$ac_compile"
20506 case "(($ac_try" in
20507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20508 *) ac_try_echo
=$ac_try;;
20510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_compile") 2>conftest.er1
20513 grep -v '^ *+' conftest.er1
>conftest.err
20515 cat conftest.err
>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && {
20518 test -z "$ac_c_werror_flag" ||
20519 test ! -s conftest.err
20520 } && test -s conftest.
$ac_objext; then
20521 ac_cv_member_struct_stat_st_blocks
=yes
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.
$ac_ext >&5
20526 ac_cv_member_struct_stat_st_blocks
=no
20529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20535 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20536 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20538 cat >>confdefs.h
<<_ACEOF
20539 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20543 cat >>confdefs.h
<<\_ACEOF
20544 #define HAVE_ST_BLOCKS 1
20548 case " $LIBOBJS " in
20549 *" fileblocks.$ac_objext "* ) ;;
20550 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
20558 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20559 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20560 if test "${ac_cv_header_time_altzone+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 cat >conftest.
$ac_ext <<_ACEOF
20566 cat confdefs.h
>>conftest.
$ac_ext
20567 cat >>conftest.
$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20578 rm -f conftest.
$ac_objext
20579 if { (ac_try
="$ac_compile"
20580 case "(($ac_try" in
20581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_compile") 2>conftest.er1
20587 grep -v '^ *+' conftest.er1 >conftest.err
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest.$ac_objext; then
20595 ac_cv_header_time_altzone=yes
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_cv_header_time_altzone=no
20603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20607 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20608 if test $ac_cv_header_time_altzone = yes; then
20610 cat >>confdefs.h <<\_ACEOF
20611 #define HAVE_ALTZONE 1
20617 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20618 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20626 #include <sys/types.h>
20627 #include <sys/select.h>
20628 #include <sys/time.h>
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20642 *) ac_try_echo
=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1
>conftest.err
20649 cat conftest.err
>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.
$ac_objext; then
20657 cat >>confdefs.h
<<\_ACEOF
20658 #define SYS_SELECT_WITH_SYS_TIME 1
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.
$ac_ext >&5
20670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20671 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20672 echo "${ECHO_T}$was_it_defined" >&6; }
20674 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20675 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20676 if test "${ac_cv_struct_addrinfo+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 cat >conftest.
$ac_ext <<_ACEOF
20682 cat confdefs.h
>>conftest.
$ac_ext
20683 cat >>conftest.
$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 # include <netdb.h>
20695 rm -f conftest.
$ac_objext
20696 if { (ac_try
="$ac_compile"
20697 case "(($ac_try" in
20698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_compile") 2>conftest.er1
20704 grep -v '^ *+' conftest.er1 >conftest.err
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } && {
20709 test -z "$ac_c_werror_flag" ||
20710 test ! -s conftest.err
20711 } && test -s conftest.$ac_objext; then
20712 ac_cv_struct_addrinfo=yes
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 ac_cv_struct_addrinfo=no
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20724 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20725 if test $ac_cv_struct_addrinfo = yes; then
20727 cat >>confdefs.h <<\_ACEOF
20728 #define HAVE_ADDRINFO 1
20733 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20734 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20735 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 # include <sys/types.h>
20746 # include <sys/socket.h>
20750 struct sockaddr_storage s
20755 rm -f conftest.$ac_objext
20756 if { (ac_try="$ac_compile"
20757 case "(($ac_try" in
20758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20759 *) ac_try_echo
=$ac_try;;
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_compile") 2>conftest.er1
20764 grep -v '^ *+' conftest.er1
>conftest.err
20766 cat conftest.err
>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && {
20769 test -z "$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 } && test -s conftest.
$ac_objext; then
20772 ac_cv_struct_sockaddr_storage
=yes
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.
$ac_ext >&5
20777 ac_cv_struct_sockaddr_storage
=no
20780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20783 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20784 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20785 if test $ac_cv_struct_sockaddr_storage = yes; then
20787 cat >>confdefs.h
<<\_ACEOF
20788 #define HAVE_SOCKADDR_STORAGE 1
20793 # checks for compiler characteristics
20796 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20797 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20798 if test "${ac_cv_c_char_unsigned+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 cat >conftest.
$ac_ext <<_ACEOF
20804 cat confdefs.h
>>conftest.
$ac_ext
20805 cat >>conftest.
$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 $ac_includes_default
20811 static int test_array [1 - 2 * !(((char) -1) < 0)];
20818 rm -f conftest.
$ac_objext
20819 if { (ac_try
="$ac_compile"
20820 case "(($ac_try" in
20821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_compile") 2>conftest.er1
20827 grep -v '^ *+' conftest.er1 >conftest.err
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && {
20832 test -z "$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 } && test -s conftest.$ac_objext; then
20835 ac_cv_c_char_unsigned=no
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_cv_c_char_unsigned=yes
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20846 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20847 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20848 cat >>confdefs.h <<\_ACEOF
20849 #define __CHAR_UNSIGNED__ 1
20854 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20855 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20856 if test "${ac_cv_c_const+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20869 /* FIXME: Include the comments suggested by Paul. */
20870 #ifndef __cplusplus
20871 /* Ultrix mips cc rejects this. */
20872 typedef int charset[2];
20874 /* SunOS 4.1.1 cc rejects this. */
20875 char const *const *pcpcc;
20877 /* NEC SVR4.0.2 mips cc rejects this. */
20878 struct point {int x, y;};
20879 static struct point const zero = {0,0};
20880 /* AIX XL C 1.02.0.0 rejects this.
20881 It does not let you subtract one const X* pointer from another in
20882 an arm of an if-expression whose if-part is not a constant
20884 const char *g = "string";
20885 pcpcc = &g + (g ? g-g : 0);
20886 /* HPUX 7.0 cc rejects these. */
20888 ppc = (char**) pcpcc;
20889 pcpcc = (char const *const *) ppc;
20890 { /* SCO 3.2v4 cc rejects this. */
20892 char const *s = 0 ? (char *) 0 : (char const *) 0;
20897 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20898 int x[] = {25, 17};
20899 const int *foo = &x[0];
20902 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20903 typedef const int *iptr;
20907 { /* AIX XL C 1.02.0.0 rejects this saying
20908 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20909 struct s { int j; const int *ap[3]; };
20910 struct s *b; b->j = 5;
20912 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20913 const int foo = 10;
20914 if (!foo) return 0;
20916 return !cs[0] && !zero.x;
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20927 *) ac_try_echo
=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1
>conftest.err
20934 cat conftest.err
>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.
$ac_objext; then
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.
$ac_ext >&5
20948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20950 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20951 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20952 if test $ac_cv_c_const = no
; then
20954 cat >>confdefs.h
<<\_ACEOF
20962 { echo "$as_me:$LINENO: checking for working volatile" >&5
20963 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20964 cat >conftest.
$ac_ext <<_ACEOF
20967 cat confdefs.h
>>conftest.
$ac_ext
20968 cat >>conftest.
$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20974 volatile int x; x = 0;
20979 rm -f conftest.
$ac_objext
20980 if { (ac_try
="$ac_compile"
20981 case "(($ac_try" in
20982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_compile") 2>conftest.er1
20988 grep -v '^ *+' conftest.er1 >conftest.err
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest.$ac_objext; then
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21002 cat >>confdefs.h <<\_ACEOF
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 { echo "$as_me:$LINENO: result: $works" >&5
21011 echo "${ECHO_T}$works" >&6; }
21014 { echo "$as_me:$LINENO: checking for working signed char" >&5
21015 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21016 cat >conftest.$ac_ext <<_ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21031 rm -f conftest.$ac_objext
21032 if { (ac_try="$ac_compile"
21033 case "(($ac_try" in
21034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21035 *) ac_try_echo
=$ac_try;;
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_compile") 2>conftest.er1
21040 grep -v '^ *+' conftest.er1
>conftest.err
21042 cat conftest.err
>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } && {
21045 test -z "$ac_c_werror_flag" ||
21046 test ! -s conftest.err
21047 } && test -s conftest.
$ac_objext; then
21050 echo "$as_me: failed program was:" >&5
21051 sed 's/^/| /' conftest.
$ac_ext >&5
21054 cat >>confdefs.h
<<\_ACEOF
21061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21062 { echo "$as_me:$LINENO: result: $works" >&5
21063 echo "${ECHO_T}$works" >&6; }
21066 { echo "$as_me:$LINENO: checking for prototypes" >&5
21067 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21068 cat >conftest.
$ac_ext <<_ACEOF
21071 cat confdefs.h
>>conftest.
$ac_ext
21072 cat >>conftest.
$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 int foo(int x) { return 0; }
21083 rm -f conftest.
$ac_objext
21084 if { (ac_try
="$ac_compile"
21085 case "(($ac_try" in
21086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_compile") 2>conftest.er1
21092 grep -v '^ *+' conftest.er1 >conftest.err
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && {
21097 test -z "$ac_c_werror_flag" ||
21098 test ! -s conftest.err
21099 } && test -s conftest.$ac_objext; then
21102 cat >>confdefs.h <<\_ACEOF
21103 #define HAVE_PROTOTYPES 1
21106 have_prototypes=yes
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21117 echo "${ECHO_T}$have_prototypes" >&6; }
21120 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21121 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21122 cat >conftest.$ac_ext <<_ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21129 #include <stdarg.h>
21130 int foo(int x, ...) {
21134 va_arg(va, char *);
21135 va_arg(va, double);
21142 return foo(10, "", 3.14);
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21151 *) ac_try_echo
=$ac_try;;
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_compile") 2>conftest.er1
21156 grep -v '^ *+' conftest.er1
>conftest.err
21158 cat conftest.err
>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest.
$ac_objext; then
21166 cat >>confdefs.h
<<\_ACEOF
21167 #define HAVE_STDARG_PROTOTYPES 1
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.
$ac_ext >&5
21179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21180 { echo "$as_me:$LINENO: result: $works" >&5
21181 echo "${ECHO_T}$works" >&6; }
21183 # check for socketpair
21184 { echo "$as_me:$LINENO: checking for socketpair" >&5
21185 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21186 cat >conftest.
$ac_ext <<_ACEOF
21189 cat confdefs.h
>>conftest.
$ac_ext
21190 cat >>conftest.
$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21193 #include <sys/types.h>
21194 #include <sys/socket.h>
21204 rm -f conftest.
$ac_objext
21205 if { (ac_try
="$ac_compile"
21206 case "(($ac_try" in
21207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_compile") 2>conftest.er1
21213 grep -v '^ *+' conftest.er1 >conftest.err
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } && {
21218 test -z "$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 } && test -s conftest.$ac_objext; then
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_SOCKETPAIR 1
21226 { echo "$as_me:$LINENO: result: yes" >&5
21227 echo "${ECHO_T}yes" >&6; }
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 { echo "$as_me:$LINENO: result: no" >&5
21233 echo "${ECHO_T}no" >&6; }
21237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239 # check if sockaddr has sa_len member
21240 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21241 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21242 cat >conftest.$ac_ext <<_ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248 #include <sys/types.h>
21249 #include <sys/socket.h>
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21263 *) ac_try_echo
=$ac_try;;
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21268 grep -v '^ *+' conftest.er1
>conftest.err
21270 cat conftest.err
>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.
$ac_objext; then
21276 { echo "$as_me:$LINENO: result: yes" >&5
21277 echo "${ECHO_T}yes" >&6; }
21279 cat >>confdefs.h
<<\_ACEOF
21280 #define HAVE_SOCKADDR_SA_LEN 1
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.
$ac_ext >&5
21287 { echo "$as_me:$LINENO: result: no" >&5
21288 echo "${ECHO_T}no" >&6; }
21291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21293 va_list_is_array
=no
21294 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21295 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21296 cat >conftest.
$ac_ext <<_ACEOF
21299 cat confdefs.h
>>conftest.
$ac_ext
21300 cat >>conftest.
$ac_ext <<_ACEOF
21301 /* end confdefs.h. */
21303 #ifdef HAVE_STDARG_PROTOTYPES
21304 #include <stdarg.h>
21306 #include <varargs.h>
21312 va_list list1, list2; list1 = list2;
21317 rm -f conftest.
$ac_objext
21318 if { (ac_try
="$ac_compile"
21319 case "(($ac_try" in
21320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_compile") 2>conftest.er1
21326 grep -v '^ *+' conftest.er1 >conftest.err
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } && {
21331 test -z "$ac_c_werror_flag" ||
21332 test ! -s conftest.err
21333 } && test -s conftest.$ac_objext; then
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21341 cat >>confdefs.h <<\_ACEOF
21342 #define VA_LIST_IS_ARRAY 1
21345 va_list_is_array=yes
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21351 echo "${ECHO_T}$va_list_is_array" >&6; }
21353 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21357 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21358 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21359 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21370 #define gethostbyname_r innocuous_gethostbyname_r
21372 /* System header to define __stub macros and hopefully few prototypes,
21373 which can conflict with char gethostbyname_r (); below.
21374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21375 <limits.h> exists even on freestanding compilers. */
21378 # include <limits.h>
21380 # include <assert.h>
21383 #undef gethostbyname_r
21385 /* Override any GCC internal prototype to avoid an error.
21386 Use char because int might match the return type of a GCC
21387 builtin and then its argument prototype would still apply. */
21391 char gethostbyname_r ();
21392 /* The GNU C library defines this for functions which it implements
21393 to always fail with ENOSYS. Some functions are actually named
21394 something starting with __ and the normal name is an alias. */
21395 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21402 return gethostbyname_r ();
21407 rm -f conftest.$ac_objext conftest$ac_exeext
21408 if { (ac_try="$ac_link"
21409 case "(($ac_try" in
21410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21411 *) ac_try_echo
=$ac_try;;
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_link") 2>conftest.er1
21416 grep -v '^ *+' conftest.er1
>conftest.err
21418 cat conftest.err
>&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest
$ac_exeext &&
21424 $as_test_x conftest
$ac_exeext; then
21425 ac_cv_func_gethostbyname_r
=yes
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.
$ac_ext >&5
21430 ac_cv_func_gethostbyname_r
=no
21433 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21434 conftest
$ac_exeext conftest.
$ac_ext
21436 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21437 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21438 if test $ac_cv_func_gethostbyname_r = yes; then
21440 cat >>confdefs.h
<<\_ACEOF
21441 #define HAVE_GETHOSTBYNAME_R 1
21444 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21445 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21447 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21448 cat >conftest.
$ac_ext <<_ACEOF
21451 cat confdefs.h
>>conftest.
$ac_ext
21452 cat >>conftest.
$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 # include <netdb.h>
21462 struct hostent *he, *res;
21467 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21473 rm -f conftest.
$ac_objext
21474 if { (ac_try
="$ac_compile"
21475 case "(($ac_try" in
21476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21482 grep -v '^ *+' conftest.er1 >conftest.err
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } && {
21487 test -z "$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21489 } && test -s conftest.$ac_objext; then
21491 cat >>confdefs.h <<\_ACEOF
21492 #define HAVE_GETHOSTBYNAME_R 1
21496 cat >>confdefs.h <<\_ACEOF
21497 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21500 { echo "$as_me:$LINENO: result: yes" >&5
21501 echo "${ECHO_T}yes" >&6; }
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21508 { echo "$as_me:$LINENO: result: no" >&5
21509 echo "${ECHO_T}no" >&6; }
21510 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21511 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21519 # include <netdb.h>
21526 struct hostent *he;
21531 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21537 rm -f conftest.$ac_objext
21538 if { (ac_try="$ac_compile"
21539 case "(($ac_try" in
21540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21541 *) ac_try_echo
=$ac_try;;
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_compile") 2>conftest.er1
21546 grep -v '^ *+' conftest.er1
>conftest.err
21548 cat conftest.err
>&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest.
$ac_objext; then
21555 cat >>confdefs.h
<<\_ACEOF
21556 #define HAVE_GETHOSTBYNAME_R 1
21560 cat >>confdefs.h
<<\_ACEOF
21561 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21564 { echo "$as_me:$LINENO: result: yes" >&5
21565 echo "${ECHO_T}yes" >&6; }
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.
$ac_ext >&5
21572 { echo "$as_me:$LINENO: result: no" >&5
21573 echo "${ECHO_T}no" >&6; }
21574 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21575 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21576 cat >conftest.
$ac_ext <<_ACEOF
21579 cat confdefs.h
>>conftest.
$ac_ext
21580 cat >>conftest.
$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21583 # include <netdb.h>
21590 struct hostent *he;
21591 struct hostent_data data;
21593 (void) gethostbyname_r(name, he, &data);
21599 rm -f conftest.
$ac_objext
21600 if { (ac_try
="$ac_compile"
21601 case "(($ac_try" in
21602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_compile") 2>conftest.er1
21608 grep -v '^ *+' conftest.er1 >conftest.err
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } && {
21613 test -z "$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21615 } && test -s conftest.$ac_objext; then
21617 cat >>confdefs.h <<\_ACEOF
21618 #define HAVE_GETHOSTBYNAME_R 1
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21626 { echo "$as_me:$LINENO: result: yes" >&5
21627 echo "${ECHO_T}yes" >&6; }
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21634 { echo "$as_me:$LINENO: result: no" >&5
21635 echo "${ECHO_T}no" >&6; }
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 for ac_func in gethostbyname
21655 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21669 #define $ac_func innocuous_$ac_func
21671 /* System header to define __stub macros and hopefully few prototypes,
21672 which can conflict with char $ac_func (); below.
21673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21674 <limits.h> exists even on freestanding compilers. */
21677 # include <limits.h>
21679 # include <assert.h>
21684 /* Override any GCC internal prototype to avoid an error.
21685 Use char because int might match the return type of a GCC
21686 builtin and then its argument prototype would still apply. */
21691 /* The GNU C library defines this for functions which it implements
21692 to always fail with ENOSYS. Some functions are actually named
21693 something starting with __ and the normal name is an alias. */
21694 #if defined __stub_$ac_func || defined __stub___$ac_func
21701 return $ac_func ();
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (ac_try="$ac_link"
21708 case "(($ac_try" in
21709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21710 *) ac_try_echo
=$ac_try;;
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_link") 2>conftest.er1
21715 grep -v '^ *+' conftest.er1
>conftest.err
21717 cat conftest.err
>&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest
$ac_exeext &&
21723 $as_test_x conftest
$ac_exeext; then
21724 eval "$as_ac_var=yes"
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.
$ac_ext >&5
21729 eval "$as_ac_var=no"
21732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21733 conftest
$ac_exeext conftest.
$ac_ext
21735 ac_res
=`eval echo '${'$as_ac_var'}'`
21736 { echo "$as_me:$LINENO: result: $ac_res" >&5
21737 echo "${ECHO_T}$ac_res" >&6; }
21738 if test `eval echo '${'$as_ac_var'}'` = yes; then
21739 cat >>confdefs.h
<<_ACEOF
21740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21755 # checks for system services
21758 # Linux requires this for correct f.p. operations
21759 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21760 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21761 if test "${ac_cv_func___fpu_control+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 cat >conftest.
$ac_ext <<_ACEOF
21767 cat confdefs.h
>>conftest.
$ac_ext
21768 cat >>conftest.
$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21772 #define __fpu_control innocuous___fpu_control
21774 /* System header to define __stub macros and hopefully few prototypes,
21775 which can conflict with char __fpu_control (); below.
21776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21777 <limits.h> exists even on freestanding compilers. */
21780 # include <limits.h>
21782 # include <assert.h>
21785 #undef __fpu_control
21787 /* Override any GCC internal prototype to avoid an error.
21788 Use char because int might match the return type of a GCC
21789 builtin and then its argument prototype would still apply. */
21793 char __fpu_control ();
21794 /* The GNU C library defines this for functions which it implements
21795 to always fail with ENOSYS. Some functions are actually named
21796 something starting with __ and the normal name is an alias. */
21797 #if defined __stub___fpu_control || defined __stub_____fpu_control
21804 return __fpu_control ();
21809 rm -f conftest.
$ac_objext conftest
$ac_exeext
21810 if { (ac_try
="$ac_link"
21811 case "(($ac_try" in
21812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_link") 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_c_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest$ac_exeext &&
21826 $as_test_x conftest$ac_exeext; then
21827 ac_cv_func___fpu_control=yes
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21832 ac_cv_func___fpu_control=no
21835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21836 conftest$ac_exeext conftest.$ac_ext
21838 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21839 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21840 if test $ac_cv_func___fpu_control = yes; then
21844 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21845 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21846 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21849 ac_check_lib_save_LIBS=$LIBS
21850 LIBS="-lieee $LIBS"
21851 cat >conftest.$ac_ext <<_ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21858 /* Override any GCC internal prototype to avoid an error.
21859 Use char because int might match the return type of a GCC
21860 builtin and then its argument prototype would still apply. */
21864 char __fpu_control ();
21868 return __fpu_control ();
21873 rm -f conftest.$ac_objext conftest$ac_exeext
21874 if { (ac_try="$ac_link"
21875 case "(($ac_try" in
21876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21877 *) ac_try_echo
=$ac_try;;
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_link") 2>conftest.er1
21882 grep -v '^ *+' conftest.er1
>conftest.err
21884 cat conftest.err
>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && {
21887 test -z "$ac_c_werror_flag" ||
21888 test ! -s conftest.err
21889 } && test -s conftest
$ac_exeext &&
21890 $as_test_x conftest
$ac_exeext; then
21891 ac_cv_lib_ieee___fpu_control
=yes
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.
$ac_ext >&5
21896 ac_cv_lib_ieee___fpu_control
=no
21899 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21900 conftest
$ac_exeext conftest.
$ac_ext
21901 LIBS
=$ac_check_lib_save_LIBS
21903 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21904 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21905 if test $ac_cv_lib_ieee___fpu_control = yes; then
21906 cat >>confdefs.h
<<_ACEOF
21907 #define HAVE_LIBIEEE 1
21910 LIBS
="-lieee $LIBS"
21918 # Check for --with-fpectl
21919 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21920 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21922 # Check whether --with-fpectl was given.
21923 if test "${with_fpectl+set}" = set; then
21924 withval
=$with_fpectl;
21925 if test "$withval" != no
21928 cat >>confdefs.h
<<\_ACEOF
21929 #define WANT_SIGFPE_HANDLER 1
21932 { echo "$as_me:$LINENO: result: yes" >&5
21933 echo "${ECHO_T}yes" >&6; }
21934 else { echo "$as_me:$LINENO: result: no" >&5
21935 echo "${ECHO_T}no" >&6; }
21938 { echo "$as_me:$LINENO: result: no" >&5
21939 echo "${ECHO_T}no" >&6; }
21943 # check for --with-libm=...
21945 case $ac_sys_system in
21949 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21950 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21952 # Check whether --with-libm was given.
21953 if test "${with_libm+set}" = set; then
21954 withval
=$with_libm;
21955 if test "$withval" = no
21957 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21958 echo "${ECHO_T}force LIBM empty" >&6; }
21959 elif test "$withval" != yes
21961 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21962 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21963 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21964 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21965 { (exit 1); exit 1; }; }
21968 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21969 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21973 # check for --with-libc=...
21975 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21976 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21978 # Check whether --with-libc was given.
21979 if test "${with_libc+set}" = set; then
21980 withval
=$with_libc;
21981 if test "$withval" = no
21983 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21984 echo "${ECHO_T}force LIBC empty" >&6; }
21985 elif test "$withval" != yes
21987 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21988 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21989 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21990 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21991 { (exit 1); exit 1; }; }
21994 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21995 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21999 # **************************************************
22000 # * Check for various properties of floating point *
22001 # **************************************************
22003 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
22004 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
22005 if test "${ac_cv_little_endian_double+set}" = set; then
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 if test "$cross_compiling" = yes; then
22010 ac_cv_little_endian_double
=no
22012 cat >conftest.
$ac_ext <<_ACEOF
22015 cat confdefs.h
>>conftest.
$ac_ext
22016 cat >>conftest.
$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22019 #include <string.h>
22021 double x = 9006104071832581.0;
22022 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22029 rm -f conftest
$ac_exeext
22030 if { (ac_try
="$ac_link"
22031 case "(($ac_try" in
22032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_link") 2>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22040 { (case "(($ac_try" in
22041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22042 *) ac_try_echo
=$ac_try;;
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_try") 2>&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; }; then
22049 ac_cv_little_endian_double
=yes
22051 echo "$as_me: program exited with status $ac_status" >&5
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.
$ac_ext >&5
22055 ( exit $ac_status )
22056 ac_cv_little_endian_double
=no
22058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22064 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22065 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22066 if test "$ac_cv_little_endian_double" = yes
22069 cat >>confdefs.h
<<\_ACEOF
22070 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22075 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22076 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22077 if test "${ac_cv_big_endian_double+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22081 if test "$cross_compiling" = yes; then
22082 ac_cv_big_endian_double
=no
22084 cat >conftest.
$ac_ext <<_ACEOF
22087 cat confdefs.h
>>conftest.
$ac_ext
22088 cat >>conftest.
$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22091 #include <string.h>
22093 double x = 9006104071832581.0;
22094 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22101 rm -f conftest
$ac_exeext
22102 if { (ac_try
="$ac_link"
22103 case "(($ac_try" in
22104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_link") 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22112 { (case "(($ac_try" in
22113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22114 *) ac_try_echo
=$ac_try;;
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_try") 2>&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 ac_cv_big_endian_double
=yes
22123 echo "$as_me: program exited with status $ac_status" >&5
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.
$ac_ext >&5
22127 ( exit $ac_status )
22128 ac_cv_big_endian_double
=no
22130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22136 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22137 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22138 if test "$ac_cv_big_endian_double" = yes
22141 cat >>confdefs.h
<<\_ACEOF
22142 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22147 # Some ARM platforms use a mixed-endian representation for doubles.
22148 # While Python doesn't currently have full support for these platforms
22149 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22150 # conversions work.
22151 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22152 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22153 if test "${ac_cv_mixed_endian_double+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22157 if test "$cross_compiling" = yes; then
22158 ac_cv_mixed_endian_double
=no
22160 cat >conftest.
$ac_ext <<_ACEOF
22163 cat confdefs.h
>>conftest.
$ac_ext
22164 cat >>conftest.
$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22167 #include <string.h>
22169 double x = 9006104071832581.0;
22170 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22177 rm -f conftest
$ac_exeext
22178 if { (ac_try
="$ac_link"
22179 case "(($ac_try" in
22180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22181 *) ac_try_echo=$ac_try;;
22183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184 (eval "$ac_link") 2>&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22188 { (case "(($ac_try" in
22189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22190 *) ac_try_echo
=$ac_try;;
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_try") 2>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; }; then
22197 ac_cv_mixed_endian_double
=yes
22199 echo "$as_me: program exited with status $ac_status" >&5
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.
$ac_ext >&5
22203 ( exit $ac_status )
22204 ac_cv_mixed_endian_double
=no
22206 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22212 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22213 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22214 if test "$ac_cv_mixed_endian_double" = yes
22217 cat >>confdefs.h
<<\_ACEOF
22218 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22223 # The short float repr introduced in Python 3.1 requires the
22224 # correctly-rounded string <-> double conversion functions from
22225 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22226 # rounding; this is a problem on x86, where the x87 FPU has a default
22227 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22228 # using inline assembler to get and set the x87 FPU control word.
22229 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22231 # Check that it's okay to use gcc inline assembler to get and set
22232 # x87 control word. It should be, but you never know...
22233 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22234 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22235 cat >conftest.
$ac_ext <<_ACEOF
22238 cat confdefs.h
>>conftest.
$ac_ext
22239 cat >>conftest.
$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22247 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22248 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22254 rm -f conftest.
$ac_objext
22255 if { (ac_try
="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_compile") 2>conftest.er1
22263 grep -v '^ *+' conftest.er1 >conftest.err
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest.$ac_objext; then
22271 have_gcc_asm_for_x87=yes
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 have_gcc_asm_for_x87=no
22279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22281 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22282 if test "$have_gcc_asm_for_x87" = yes
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_GCC_ASM_FOR_X87 1
22292 # Detect whether system arithmetic is subject to x87-style double
22293 # rounding issues. The result of this test has little meaning on non
22294 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22295 # mode is round-to-nearest and double rounding issues are present, and
22296 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22297 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22298 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22299 # $BASECFLAGS may affect the result
22301 CC="$CC $BASECFLAGS"
22302 if test "$cross_compiling" = yes; then
22303 ac_cv_x87_double_rounding=no
22305 cat >conftest.$ac_ext <<_ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22312 #include <stdlib.h>
22315 volatile double x, y, z;
22316 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22317 x = 0.99999999999999989; /* 1-2**-53 */
22321 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22327 /* both tests show evidence of double rounding */
22332 rm -f conftest$ac_exeext
22333 if { (ac_try="$ac_link"
22334 case "(($ac_try" in
22335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22336 *) ac_try_echo
=$ac_try;;
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_link") 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22343 { (case "(($ac_try" in
22344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_try") 2>&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 ac_cv_x87_double_rounding=no
22354 echo "$as_me: program exited with status $ac_status" >&5
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ( exit $ac_status )
22359 ac_cv_x87_double_rounding=yes
22361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22366 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22367 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22368 if test "$ac_cv_x87_double_rounding" = yes
22371 cat >>confdefs.h <<\_ACEOF
22372 #define X87_DOUBLE_ROUNDING 1
22377 # ************************************
22378 # * Check for mathematical functions *
22379 # ************************************
22384 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22385 # -0. on some architectures.
22386 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22387 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22388 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 if test "$cross_compiling" = yes; then
22393 ac_cv_tanh_preserves_zero_sign=no
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22403 #include <stdlib.h>
22405 /* return 0 if either negative zeros don't exist
22406 on this platform or if negative zeros exist
22407 and tanh(-0.) == -0. */
22408 if (atan2(0., -1.) == atan2(-0., -1.) ||
22409 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22414 rm -f conftest$ac_exeext
22415 if { (ac_try="$ac_link"
22416 case "(($ac_try" in
22417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22418 *) ac_try_echo
=$ac_try;;
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_link") 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22425 { (case "(($ac_try" in
22426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_try") 2>&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22434 ac_cv_tanh_preserves_zero_sign=yes
22436 echo "$as_me: program exited with status $ac_status" >&5
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ( exit $ac_status )
22441 ac_cv_tanh_preserves_zero_sign=no
22443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22449 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22450 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22451 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22454 cat >>confdefs.h <<\_ACEOF
22455 #define TANH_PRESERVES_ZERO_SIGN 1
22469 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22471 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22485 #define $ac_func innocuous_$ac_func
22487 /* System header to define __stub macros and hopefully few prototypes,
22488 which can conflict with char $ac_func (); below.
22489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22490 <limits.h> exists even on freestanding compilers. */
22493 # include <limits.h>
22495 # include <assert.h>
22500 /* Override any GCC internal prototype to avoid an error.
22501 Use char because int might match the return type of a GCC
22502 builtin and then its argument prototype would still apply. */
22507 /* The GNU C library defines this for functions which it implements
22508 to always fail with ENOSYS. Some functions are actually named
22509 something starting with __ and the normal name is an alias. */
22510 #if defined __stub_$ac_func || defined __stub___$ac_func
22517 return $ac_func ();
22522 rm -f conftest.$ac_objext conftest$ac_exeext
22523 if { (ac_try="$ac_link"
22524 case "(($ac_try" in
22525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22526 *) ac_try_echo
=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_link") 2>conftest.er1
22531 grep -v '^ *+' conftest.er1
>conftest.err
22533 cat conftest.err
>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest
$ac_exeext &&
22539 $as_test_x conftest
$ac_exeext; then
22540 eval "$as_ac_var=yes"
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.
$ac_ext >&5
22545 eval "$as_ac_var=no"
22548 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22549 conftest
$ac_exeext conftest.
$ac_ext
22551 ac_res
=`eval echo '${'$as_ac_var'}'`
22552 { echo "$as_me:$LINENO: result: $ac_res" >&5
22553 echo "${ECHO_T}$ac_res" >&6; }
22554 if test `eval echo '${'$as_ac_var'}'` = yes; then
22555 cat >>confdefs.h
<<_ACEOF
22556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22562 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22563 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22564 if test "${ac_cv_have_decl_isinf+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 cat >conftest.
$ac_ext <<_ACEOF
22570 cat confdefs.h
>>conftest.
$ac_ext
22571 cat >>conftest.
$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22586 rm -f conftest.
$ac_objext
22587 if { (ac_try
="$ac_compile"
22588 case "(($ac_try" in
22589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_compile") 2>conftest.er1
22595 grep -v '^ *+' conftest.er1 >conftest.err
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } && {
22600 test -z "$ac_c_werror_flag" ||
22601 test ! -s conftest.err
22602 } && test -s conftest.$ac_objext; then
22603 ac_cv_have_decl_isinf=yes
22605 echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22608 ac_cv_have_decl_isinf=no
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22614 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22615 if test $ac_cv_have_decl_isinf = yes; then
22617 cat >>confdefs.h <<_ACEOF
22618 #define HAVE_DECL_ISINF 1
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_DECL_ISINF 0
22629 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22630 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22631 if test "${ac_cv_have_decl_isnan+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22634 cat >conftest.$ac_ext <<_ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22653 rm -f conftest.$ac_objext
22654 if { (ac_try="$ac_compile"
22655 case "(($ac_try" in
22656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22657 *) ac_try_echo
=$ac_try;;
22659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660 (eval "$ac_compile") 2>conftest.er1
22662 grep -v '^ *+' conftest.er1
>conftest.err
22664 cat conftest.err
>&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } && {
22667 test -z "$ac_c_werror_flag" ||
22668 test ! -s conftest.err
22669 } && test -s conftest.
$ac_objext; then
22670 ac_cv_have_decl_isnan
=yes
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.
$ac_ext >&5
22675 ac_cv_have_decl_isnan
=no
22678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22680 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22681 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22682 if test $ac_cv_have_decl_isnan = yes; then
22684 cat >>confdefs.h
<<_ACEOF
22685 #define HAVE_DECL_ISNAN 1
22690 cat >>confdefs.h
<<_ACEOF
22691 #define HAVE_DECL_ISNAN 0
22696 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22697 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22698 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 cat >conftest.
$ac_ext <<_ACEOF
22704 cat confdefs.h
>>conftest.
$ac_ext
22705 cat >>conftest.
$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22720 rm -f conftest.
$ac_objext
22721 if { (ac_try
="$ac_compile"
22722 case "(($ac_try" in
22723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_compile") 2>conftest.er1
22729 grep -v '^ *+' conftest.er1 >conftest.err
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && {
22734 test -z "$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 } && test -s conftest.$ac_objext; then
22737 ac_cv_have_decl_isfinite=yes
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 ac_cv_have_decl_isfinite=no
22745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22747 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22748 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22749 if test $ac_cv_have_decl_isfinite = yes; then
22751 cat >>confdefs.h <<_ACEOF
22752 #define HAVE_DECL_ISFINITE 1
22757 cat >>confdefs.h <<_ACEOF
22758 #define HAVE_DECL_ISFINITE 0
22768 # For multiprocessing module, check that sem_open
22769 # actually works. For FreeBSD versions <= 7.2,
22770 # the kernel module that provides POSIX semaphores
22771 # isn't loaded by default, so an attempt to call
22772 # sem_open results in a 'Signal 12' error.
22773 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22774 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22775 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 if test "$cross_compiling" = yes; then
22779 ac_cv_posix_semaphores_enabled=yes
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22788 #include <unistd.h>
22791 #include <semaphore.h>
22792 #include <sys/stat.h>
22795 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22796 if (a == SEM_FAILED) {
22797 perror("sem_open");
22801 sem_unlink("/autoconf");
22806 rm -f conftest$ac_exeext
22807 if { (ac_try="$ac_link"
22808 case "(($ac_try" in
22809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22810 *) ac_try_echo
=$ac_try;;
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813 (eval "$ac_link") 2>&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22817 { (case "(($ac_try" in
22818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_try") 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_cv_posix_semaphores_enabled=yes
22828 echo "$as_me: program exited with status $ac_status" >&5
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ( exit $ac_status )
22833 ac_cv_posix_semaphores_enabled=no
22835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22843 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22844 if test $ac_cv_posix_semaphores_enabled = no
22847 cat >>confdefs.h <<\_ACEOF
22848 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22853 # Multiprocessing check for broken sem_getvalue
22854 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22855 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22856 if test "$cross_compiling" = yes; then
22857 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22858 See \`config.log
' for more details." >&5
22859 echo "$as_me: error: cannot run test program while cross compiling
22860 See \`config.log' for more details.
" >&2;}
22861 { (exit 1); exit 1; }; }
22863 cat >conftest.$ac_ext <<_ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22870 #include <unistd.h>
22873 #include <semaphore.h>
22874 #include <sys/stat.h>
22877 sem_t *a = sem_open("/autocftw
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22881 perror("sem_open
");
22885 res = sem_getvalue(a, &count);
22887 sem_unlink("/autocftw
");
22888 return res==-1 ? 1 : 0;
22893 rm -f conftest$ac_exeext
22894 if { (ac_try="$ac_link"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_link") 2>&5
22902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22904 { (case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_try") 2>&5
22911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22912 (exit $ac_status); }; }; then
22913 { echo "$as_me:$LINENO: result
: no
" >&5
22914 echo "${ECHO_T}no
" >&6; }
22916 echo "$as_me: program exited with status
$ac_status" >&5
22917 echo "$as_me: failed program was
:" >&5
22918 sed 's/^/| /' conftest.$ac_ext >&5
22920 ( exit $ac_status )
22921 { echo "$as_me:$LINENO: result
: yes" >&5
22922 echo "${ECHO_T}yes" >&6; }
22924 cat >>confdefs.h <<\_ACEOF
22925 #define HAVE_BROKEN_SEM_GETVALUE 1
22930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22935 # determine what size digit to use for Python's longs
22936 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22937 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22938 # Check whether --enable-big-digits was given.
22939 if test "${enable_big_digits+set}" = set; then
22940 enableval=$enable_big_digits; case $enable_big_digits in
22942 enable_big_digits=30 ;;
22944 enable_big_digits=15 ;;
22948 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22949 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22950 { (exit 1); exit 1; }; } ;;
22952 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22953 echo "${ECHO_T}$enable_big_digits" >&6; }
22955 cat >>confdefs.h <<_ACEOF
22956 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22961 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22962 echo "${ECHO_T}no value specified
" >&6; }
22966 # check for wchar.h
22967 if test "${ac_cv_header_wchar_h+set}" = set; then
22968 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22969 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22970 if test "${ac_cv_header_wchar_h+set}" = set; then
22971 echo $ECHO_N "(cached
) $ECHO_C" >&6
22973 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22974 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22976 # Is the header compilable?
22977 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22978 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 $ac_includes_default
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_compile") 2>conftest.er1
22997 grep -v '^ *+' conftest.er1 >conftest.err
22999 cat conftest.err >&5
23000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23001 (exit $ac_status); } && {
23002 test -z "$ac_c_werror_flag" ||
23003 test ! -s conftest.err
23004 } && test -s conftest.$ac_objext; then
23005 ac_header_compiler=yes
23007 echo "$as_me: failed program was
:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ac_header_compiler=no
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23015 echo "${ECHO_T}$ac_header_compiler" >&6; }
23017 # Is the header present?
23018 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
23019 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23028 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23034 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23036 grep -v '^ *+' conftest.er1 >conftest.err
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23040 (exit $ac_status); } >/dev/null && {
23041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23042 test ! -s conftest.err
23044 ac_header_preproc=yes
23046 echo "$as_me: failed program was
:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ac_header_preproc=no
23052 rm -f conftest.err conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23054 echo "${ECHO_T}$ac_header_preproc" >&6; }
23056 # So? What about this header?
23057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23059 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23060 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23061 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
23062 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
23063 ac_header_preproc=yes
23066 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
23067 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
23068 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
23069 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
23070 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
23071 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
23072 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23073 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23074 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
23075 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
23076 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
23077 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
23079 ## -------------------------------------- ##
23080 ## Report this to http://bugs.python.org/ ##
23081 ## -------------------------------------- ##
23083 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23086 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
23087 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
23088 if test "${ac_cv_header_wchar_h+set}" = set; then
23089 echo $ECHO_N "(cached
) $ECHO_C" >&6
23091 ac_cv_header_wchar_h=$ac_header_preproc
23093 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
23094 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23097 if test $ac_cv_header_wchar_h = yes; then
23100 cat >>confdefs.h <<\_ACEOF
23101 #define HAVE_WCHAR_H 1
23113 # determine wchar_t size
23114 if test "$wchar_h" = yes
23116 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
23117 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
23118 if test "${ac_cv_type_wchar_t+set}" = set; then
23119 echo $ECHO_N "(cached
) $ECHO_C" >&6
23121 cat >conftest.$ac_ext <<_ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23129 typedef wchar_t ac__type_new_;
23133 if ((ac__type_new_ *) 0)
23135 if (sizeof (ac__type_new_))
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest.$ac_objext; then
23158 ac_cv_type_wchar_t=yes
23160 echo "$as_me: failed program was
:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163 ac_cv_type_wchar_t=no
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
23169 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23171 # The cast to long int works around a bug in the HP C Compiler
23172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23174 # This bug is HP SR number 8606223364.
23175 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
23176 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
23177 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23178 echo $ECHO_N "(cached
) $ECHO_C" >&6
23180 if test "$cross_compiling" = yes; then
23181 # Depending upon the size, compute the lo and hi bounds.
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23190 typedef wchar_t ac__type_sizeof_;
23194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23210 grep -v '^ *+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23228 typedef wchar_t ac__type_sizeof_;
23232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23239 rm -f conftest.$ac_objext
23240 if { (ac_try="$ac_compile"
23241 case "(($ac_try" in
23242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23243 *) ac_try_echo=$ac_try;;
23245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23246 (eval "$ac_compile") 2>conftest.er1
23248 grep -v '^ *+' conftest.er1 >conftest.err
23250 cat conftest.err >&5
23251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23252 (exit $ac_status); } && {
23253 test -z "$ac_c_werror_flag" ||
23254 test ! -s conftest.err
23255 } && test -s conftest.$ac_objext; then
23256 ac_hi=$ac_mid; break
23258 echo "$as_me: failed program was
:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 ac_lo=`expr $ac_mid + 1`
23262 if test $ac_lo -le $ac_mid; then
23266 ac_mid=`expr 2 '*' $ac_mid + 1`
23269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 echo "$as_me: failed program was
:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23275 cat >conftest.$ac_ext <<_ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23283 typedef wchar_t ac__type_sizeof_;
23287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23294 rm -f conftest.$ac_objext
23295 if { (ac_try="$ac_compile"
23296 case "(($ac_try" in
23297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_compile") 2>conftest.er1
23303 grep -v '^ *+' conftest.er1 >conftest.err
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23307 (exit $ac_status); } && {
23308 test -z "$ac_c_werror_flag" ||
23309 test ! -s conftest.err
23310 } && test -s conftest.$ac_objext; then
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23321 typedef wchar_t ac__type_sizeof_;
23325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_compile") 2>conftest.er1
23341 grep -v '^ *+' conftest.er1 >conftest.err
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest.$ac_objext; then
23349 ac_lo=$ac_mid; break
23351 echo "$as_me: failed program was
:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 ac_hi=`expr '(' $ac_mid ')' - 1`
23355 if test $ac_mid -le $ac_hi; then
23359 ac_mid=`expr 2 '*' $ac_mid`
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365 echo "$as_me: failed program was
:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 # Binary search between lo and hi bounds.
23376 while test "x
$ac_lo" != "x
$ac_hi"; do
23377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23386 typedef wchar_t ac__type_sizeof_;
23390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23397 rm -f conftest.$ac_objext
23398 if { (ac_try="$ac_compile"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_compile") 2>conftest.er1
23406 grep -v '^ *+' conftest.er1 >conftest.err
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23410 (exit $ac_status); } && {
23411 test -z "$ac_c_werror_flag" ||
23412 test ! -s conftest.err
23413 } && test -s conftest.$ac_objext; then
23416 echo "$as_me: failed program was
:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 ac_lo=`expr '(' $ac_mid ')' + 1`
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23426 '') if test "$ac_cv_type_wchar_t" = yes; then
23427 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23428 See \
`config.log' for more details." >&5
23429 echo "$as_me: error: cannot compute sizeof (wchar_t)
23430 See \`config.log
' for more details." >&2;}
23431 { (exit 77); exit 77; }; }
23433 ac_cv_sizeof_wchar_t=0
23437 cat >conftest.$ac_ext <<_ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23445 typedef wchar_t ac__type_sizeof_;
23446 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23447 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23449 #include <stdlib.h>
23454 FILE *f = fopen ("conftest.val", "w");
23457 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23459 long int i = longval ();
23460 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23462 fprintf (f, "%ld\n", i);
23466 unsigned long int i = ulongval ();
23467 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23469 fprintf (f, "%lu\n", i);
23471 return ferror (f) || fclose (f) != 0;
23477 rm -f conftest$ac_exeext
23478 if { (ac_try="$ac_link"
23479 case "(($ac_try" in
23480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484 (eval "$ac_link") 2>&5
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23488 { (case "(($ac_try" in
23489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490 *) ac_try_echo=$ac_try;;
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493 (eval "$ac_try") 2>&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; }; then
23497 ac_cv_sizeof_wchar_t=`cat conftest.val`
23499 echo "$as_me: program exited with status $ac_status" >&5
23500 echo "$as_me: failed program was:" >&5
23501 sed 's
/^
/|
/' conftest.$ac_ext >&5
23503 ( exit $ac_status )
23504 if test "$ac_cv_type_wchar_t" = yes; then
23505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23506 See \`config.log' for more details.
" >&5
23507 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23508 See \
`config.log' for more details." >&2;}
23509 { (exit 77); exit 77; }; }
23511 ac_cv_sizeof_wchar_t=0
23514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23518 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23519 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23523 cat >>confdefs.h <<_ACEOF
23524 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23530 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23531 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23533 cat >conftest.$ac_ext <<_ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23541 #if TCL_UTF_MAX != 6
23542 # error "NOT UCS4_TCL"
23552 rm -f conftest.$ac_objext
23553 if { (ac_try="$ac_compile"
23554 case "(($ac_try" in
23555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23556 *) ac_try_echo
=$ac_try;;
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_compile") 2>conftest.er1
23561 grep -v '^ *+' conftest.er1
>conftest.err
23563 cat conftest.err
>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && {
23566 test -z "$ac_c_werror_flag" ||
23567 test ! -s conftest.err
23568 } && test -s conftest.
$ac_objext; then
23571 cat >>confdefs.h
<<\_ACEOF
23572 #define HAVE_UCS4_TCL 1
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.
$ac_ext >&5
23584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23585 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23586 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23588 # check whether wchar_t is signed or not
23589 if test "$wchar_h" = yes
23591 # check whether wchar_t is signed or not
23592 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23593 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23594 if test "${ac_cv_wchar_t_signed+set}" = set; then
23595 echo $ECHO_N "(cached) $ECHO_C" >&6
23598 if test "$cross_compiling" = yes; then
23599 ac_cv_wchar_t_signed
=yes
23601 cat >conftest.
$ac_ext <<_ACEOF
23604 cat confdefs.h
>>conftest.
$ac_ext
23605 cat >>conftest.
$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23611 /* Success: exit code 0 */
23612 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23616 rm -f conftest
$ac_exeext
23617 if { (ac_try
="$ac_link"
23618 case "(($ac_try" in
23619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_link") 2>&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23627 { (case "(($ac_try" in
23628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23629 *) ac_try_echo
=$ac_try;;
23631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23632 (eval "$ac_try") 2>&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; }; then
23636 ac_cv_wchar_t_signed
=yes
23638 echo "$as_me: program exited with status $ac_status" >&5
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.
$ac_ext >&5
23642 ( exit $ac_status )
23643 ac_cv_wchar_t_signed
=no
23645 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23651 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23652 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23655 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23656 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23658 # Check whether --with-wide-unicode was given.
23659 if test "${with_wide_unicode+set}" = set; then
23660 withval
=$with_wide_unicode;
23661 if test "$withval" != no
23662 then unicode_size
="4"
23663 else unicode_size
="2"
23668 case "$have_ucs4_tcl" in
23669 yes) unicode_size
="4" ;;
23670 *) unicode_size
="2" ;;
23678 case "$unicode_size" in
23679 4) cat >>confdefs.h
<<\_ACEOF
23680 #define Py_UNICODE_SIZE 4
23683 *) cat >>confdefs.h
<<\_ACEOF
23684 #define Py_UNICODE_SIZE 2
23692 # wchar_t is only usable if it maps to an unsigned type
23693 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23694 -a "$ac_cv_wchar_t_signed" = "no"
23696 PY_UNICODE_TYPE
="wchar_t"
23698 cat >>confdefs.h
<<\_ACEOF
23699 #define HAVE_USABLE_WCHAR_T 1
23702 cat >>confdefs.h
<<\_ACEOF
23703 #define PY_UNICODE_TYPE wchar_t
23706 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23708 PY_UNICODE_TYPE
="unsigned short"
23709 cat >>confdefs.h
<<\_ACEOF
23710 #define PY_UNICODE_TYPE unsigned short
23713 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23715 PY_UNICODE_TYPE
="unsigned long"
23716 cat >>confdefs.h
<<\_ACEOF
23717 #define PY_UNICODE_TYPE unsigned long
23721 PY_UNICODE_TYPE
="no type found"
23723 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23724 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23726 # check for endianness
23727 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23728 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23729 if test "${ac_cv_c_bigendian+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 # See if sys/param.h defines the BYTE_ORDER macro.
23733 cat >conftest.
$ac_ext <<_ACEOF
23736 cat confdefs.h
>>conftest.
$ac_ext
23737 cat >>conftest.
$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #include <sys/types.h>
23740 #include <sys/param.h>
23745 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23746 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23747 bogus endian macros
23754 rm -f conftest.
$ac_objext
23755 if { (ac_try
="$ac_compile"
23756 case "(($ac_try" in
23757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_compile") 2>conftest.er1
23763 grep -v '^ *+' conftest.er1 >conftest.err
23765 cat conftest.err >&5
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest.$ac_objext; then
23771 # It does; now see whether it defined to BIG_ENDIAN or not.
23772 cat >conftest.$ac_ext <<_ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h. */
23778 #include <sys/types.h>
23779 #include <sys/param.h>
23784 #if BYTE_ORDER != BIG_ENDIAN
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23796 *) ac_try_echo
=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_compile") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1
>conftest.err
23803 cat conftest.err
>&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest.
$ac_objext; then
23809 ac_cv_c_bigendian
=yes
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.
$ac_ext >&5
23814 ac_cv_c_bigendian
=no
23817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.
$ac_ext >&5
23822 # It does not; compile a test program.
23823 if test "$cross_compiling" = yes; then
23824 # try to guess the endianness by grepping values into an object file
23825 ac_cv_c_bigendian
=unknown
23826 cat >conftest.
$ac_ext <<_ACEOF
23829 cat confdefs.h
>>conftest.
$ac_ext
23830 cat >>conftest.
$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23833 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23834 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23835 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23836 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23837 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23841 _ascii (); _ebcdic ();
23846 rm -f conftest.
$ac_objext
23847 if { (ac_try
="$ac_compile"
23848 case "(($ac_try" in
23849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23850 *) ac_try_echo=$ac_try;;
23852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23853 (eval "$ac_compile") 2>conftest.er1
23855 grep -v '^ *+' conftest.er1 >conftest.err
23857 cat conftest.err >&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); } && {
23860 test -z "$ac_c_werror_flag" ||
23861 test ! -s conftest.err
23862 } && test -s conftest.$ac_objext; then
23863 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23864 ac_cv_c_bigendian=yes
23866 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23867 if test "$ac_cv_c_bigendian" = unknown; then
23868 ac_cv_c_bigendian=no
23870 # finding both strings is unlikely to happen, but who knows?
23871 ac_cv_c_bigendian=unknown
23875 echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 cat >conftest.$ac_ext <<_ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 $ac_includes_default
23894 /* Are we little or big endian? From Harbison&Steele. */
23898 char c[sizeof (long int)];
23901 return u.c[sizeof (long int) - 1] == 1;
23907 rm -f conftest$ac_exeext
23908 if { (ac_try="$ac_link"
23909 case "(($ac_try" in
23910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23911 *) ac_try_echo
=$ac_try;;
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_link") 2>&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23918 { (case "(($ac_try" in
23919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23920 *) ac_try_echo=$ac_try;;
23922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923 (eval "$ac_try") 2>&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23927 ac_cv_c_bigendian=no
23929 echo "$as_me: program exited with status $ac_status" >&5
23930 echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ( exit $ac_status )
23934 ac_cv_c_bigendian=yes
23936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23944 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23945 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23946 case $ac_cv_c_bigendian in
23949 cat >>confdefs.h <<\_ACEOF
23950 #define WORDS_BIGENDIAN 1
23956 { { echo "$as_me:$LINENO: error: unknown endianness
23957 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23958 echo "$as_me: error: unknown endianness
23959 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23960 { (exit 1); exit 1; }; } ;;
23964 # Check whether right shifting a negative integer extends the sign bit
23965 # or fills with zeros (like the Cray J90, according to Tim Peters).
23966 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23967 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23968 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23972 if test "$cross_compiling" = yes; then
23973 ac_cv_rshift_extends_sign=yes
23975 cat >conftest.$ac_ext <<_ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23984 exit(((-1)>>3 == -1) ? 0 : 1);
23988 rm -f conftest$ac_exeext
23989 if { (ac_try="$ac_link"
23990 case "(($ac_try" in
23991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23992 *) ac_try_echo
=$ac_try;;
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_link") 2>&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23999 { (case "(($ac_try" in
24000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_try") 2>&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 ac_cv_rshift_extends_sign=yes
24010 echo "$as_me: program exited with status $ac_status" >&5
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ( exit $ac_status )
24015 ac_cv_rshift_extends_sign=no
24017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24023 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24024 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24025 if test "$ac_cv_rshift_extends_sign" = no
24028 cat >>confdefs.h <<\_ACEOF
24029 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24034 # check for getc_unlocked and related locking functions
24035 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24036 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24037 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24038 echo $ECHO_N "(cached) $ECHO_C" >&6
24041 cat >conftest.$ac_ext <<_ACEOF
24044 cat confdefs.h >>conftest.$ac_ext
24045 cat >>conftest.$ac_ext <<_ACEOF
24046 /* end confdefs.h. */
24052 FILE *f = fopen("/dev/null", "r");
24061 rm -f conftest.$ac_objext conftest$ac_exeext
24062 if { (ac_try="$ac_link"
24063 case "(($ac_try" in
24064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24065 *) ac_try_echo
=$ac_try;;
24067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24068 (eval "$ac_link") 2>conftest.er1
24070 grep -v '^ *+' conftest.er1
>conftest.err
24072 cat conftest.err
>&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); } && {
24075 test -z "$ac_c_werror_flag" ||
24076 test ! -s conftest.err
24077 } && test -s conftest
$ac_exeext &&
24078 $as_test_x conftest
$ac_exeext; then
24079 ac_cv_have_getc_unlocked
=yes
24081 echo "$as_me: failed program was:" >&5
24082 sed 's/^/| /' conftest.
$ac_ext >&5
24084 ac_cv_have_getc_unlocked
=no
24087 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24088 conftest
$ac_exeext conftest.
$ac_ext
24091 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24092 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24093 if test "$ac_cv_have_getc_unlocked" = yes
24096 cat >>confdefs.h
<<\_ACEOF
24097 #define HAVE_GETC_UNLOCKED 1
24102 # check where readline lives
24103 # save the value of LIBS so we don't actually link Python with readline
24104 LIBS_no_readline
=$LIBS
24106 # On some systems we need to link readline to a termcap compatible
24107 # library. NOTE: Keep the precedence of listed libraries synchronised
24109 py_cv_lib_readline
=no
24110 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24111 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24112 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
24113 if test -z "$py_libtermcap"; then
24114 READLINE_LIBS
="-lreadline"
24116 READLINE_LIBS
="-lreadline -l$py_libtermcap"
24118 LIBS
="$READLINE_LIBS $LIBS_no_readline"
24119 cat >conftest.
$ac_ext <<_ACEOF
24122 cat confdefs.h
>>conftest.
$ac_ext
24123 cat >>conftest.
$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24126 /* Override any GCC internal prototype to avoid an error.
24127 Use char because int might match the return type of a GCC
24128 builtin and then its argument prototype would still apply. */
24136 return readline ();
24141 rm -f conftest.
$ac_objext conftest
$ac_exeext
24142 if { (ac_try
="$ac_link"
24143 case "(($ac_try" in
24144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24145 *) ac_try_echo=$ac_try;;
24147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148 (eval "$ac_link") 2>conftest.er1
24150 grep -v '^ *+' conftest.er1 >conftest.err
24152 cat conftest.err >&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } && {
24155 test -z "$ac_c_werror_flag" ||
24156 test ! -s conftest.err
24157 } && test -s conftest$ac_exeext &&
24158 $as_test_x conftest$ac_exeext; then
24159 py_cv_lib_readline=yes
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24168 conftest$ac_exeext conftest.$ac_ext
24169 if test $py_cv_lib_readline = yes; then
24173 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24174 #AC_SUBST([READLINE_LIBS])
24175 if test $py_cv_lib_readline = no; then
24176 { echo "$as_me:$LINENO: result: none" >&5
24177 echo "${ECHO_T}none" >&6; }
24179 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24180 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24182 cat >>confdefs.h <<\_ACEOF
24183 #define HAVE_LIBREADLINE 1
24188 # check for readline 2.1
24189 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24190 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24191 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24192 echo $ECHO_N "(cached) $ECHO_C" >&6
24194 ac_check_lib_save_LIBS=$LIBS
24195 LIBS="-lreadline $READLINE_LIBS $LIBS"
24196 cat >conftest.$ac_ext <<_ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24203 /* Override any GCC internal prototype to avoid an error.
24204 Use char because int might match the return type of a GCC
24205 builtin and then its argument prototype would still apply. */
24209 char rl_callback_handler_install ();
24213 return rl_callback_handler_install ();
24218 rm -f conftest.$ac_objext conftest$ac_exeext
24219 if { (ac_try="$ac_link"
24220 case "(($ac_try" in
24221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24222 *) ac_try_echo
=$ac_try;;
24224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24225 (eval "$ac_link") 2>conftest.er1
24227 grep -v '^ *+' conftest.er1
>conftest.err
24229 cat conftest.err
>&5
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); } && {
24232 test -z "$ac_c_werror_flag" ||
24233 test ! -s conftest.err
24234 } && test -s conftest
$ac_exeext &&
24235 $as_test_x conftest
$ac_exeext; then
24236 ac_cv_lib_readline_rl_callback_handler_install
=yes
24238 echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.
$ac_ext >&5
24241 ac_cv_lib_readline_rl_callback_handler_install
=no
24244 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24245 conftest
$ac_exeext conftest.
$ac_ext
24246 LIBS
=$ac_check_lib_save_LIBS
24248 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24249 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24250 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24252 cat >>confdefs.h
<<\_ACEOF
24253 #define HAVE_RL_CALLBACK 1
24259 # check for readline 2.2
24260 cat >conftest.
$ac_ext <<_ACEOF
24263 cat confdefs.h
>>conftest.
$ac_ext
24264 cat >>conftest.
$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 #include <readline/readline.h>
24268 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24269 case "(($ac_try" in
24270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24271 *) ac_try_echo=$ac_try;;
24273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24276 grep -v '^ *+' conftest.er1 >conftest.err
24278 cat conftest.err >&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } >/dev/null && {
24281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24282 test ! -s conftest.err
24286 echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24292 rm -f conftest.err conftest.$ac_ext
24293 if test $have_readline = yes
24295 cat >conftest.$ac_ext <<_ACEOF
24298 cat confdefs.h >>conftest.$ac_ext
24299 cat >>conftest.$ac_ext <<_ACEOF
24300 /* end confdefs.h. */
24301 #include <readline/readline.h>
24304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24305 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24307 cat >>confdefs.h <<\_ACEOF
24308 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24314 cat >conftest.$ac_ext <<_ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 #include <readline/readline.h>
24323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24324 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24326 cat >>confdefs.h <<\_ACEOF
24327 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24335 # check for readline 4.0
24336 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24337 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24338 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6
24341 ac_check_lib_save_LIBS=$LIBS
24342 LIBS="-lreadline $READLINE_LIBS $LIBS"
24343 cat >conftest.$ac_ext <<_ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24350 /* Override any GCC internal prototype to avoid an error.
24351 Use char because int might match the return type of a GCC
24352 builtin and then its argument prototype would still apply. */
24356 char rl_pre_input_hook ();
24360 return rl_pre_input_hook ();
24365 rm -f conftest.$ac_objext conftest$ac_exeext
24366 if { (ac_try="$ac_link"
24367 case "(($ac_try" in
24368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24369 *) ac_try_echo
=$ac_try;;
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_link") 2>conftest.er1
24374 grep -v '^ *+' conftest.er1
>conftest.err
24376 cat conftest.err
>&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest
$ac_exeext &&
24382 $as_test_x conftest
$ac_exeext; then
24383 ac_cv_lib_readline_rl_pre_input_hook
=yes
24385 echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.
$ac_ext >&5
24388 ac_cv_lib_readline_rl_pre_input_hook
=no
24391 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24392 conftest
$ac_exeext conftest.
$ac_ext
24393 LIBS
=$ac_check_lib_save_LIBS
24395 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24396 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24397 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24399 cat >>confdefs.h
<<\_ACEOF
24400 #define HAVE_RL_PRE_INPUT_HOOK 1
24407 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24408 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24409 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24412 ac_check_lib_save_LIBS
=$LIBS
24413 LIBS
="-lreadline $READLINE_LIBS $LIBS"
24414 cat >conftest.
$ac_ext <<_ACEOF
24417 cat confdefs.h
>>conftest.
$ac_ext
24418 cat >>conftest.
$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24421 /* Override any GCC internal prototype to avoid an error.
24422 Use char because int might match the return type of a GCC
24423 builtin and then its argument prototype would still apply. */
24427 char rl_completion_display_matches_hook ();
24431 return rl_completion_display_matches_hook ();
24436 rm -f conftest.
$ac_objext conftest
$ac_exeext
24437 if { (ac_try
="$ac_link"
24438 case "(($ac_try" in
24439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_link") 2>conftest.er1
24445 grep -v '^ *+' conftest.er1 >conftest.err
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest$ac_exeext &&
24453 $as_test_x conftest$ac_exeext; then
24454 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24466 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24467 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24468 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24470 cat >>confdefs.h <<\_ACEOF
24471 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24477 # check for readline 4.2
24478 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24479 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24480 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 ac_check_lib_save_LIBS=$LIBS
24484 LIBS="-lreadline $READLINE_LIBS $LIBS"
24485 cat >conftest.$ac_ext <<_ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24492 /* Override any GCC internal prototype to avoid an error.
24493 Use char because int might match the return type of a GCC
24494 builtin and then its argument prototype would still apply. */
24498 char rl_completion_matches ();
24502 return rl_completion_matches ();
24507 rm -f conftest.$ac_objext conftest$ac_exeext
24508 if { (ac_try="$ac_link"
24509 case "(($ac_try" in
24510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24511 *) ac_try_echo
=$ac_try;;
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514 (eval "$ac_link") 2>conftest.er1
24516 grep -v '^ *+' conftest.er1
>conftest.err
24518 cat conftest.err
>&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && {
24521 test -z "$ac_c_werror_flag" ||
24522 test ! -s conftest.err
24523 } && test -s conftest
$ac_exeext &&
24524 $as_test_x conftest
$ac_exeext; then
24525 ac_cv_lib_readline_rl_completion_matches
=yes
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.
$ac_ext >&5
24530 ac_cv_lib_readline_rl_completion_matches
=no
24533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24534 conftest
$ac_exeext conftest.
$ac_ext
24535 LIBS
=$ac_check_lib_save_LIBS
24537 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24538 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24539 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24541 cat >>confdefs.h
<<\_ACEOF
24542 #define HAVE_RL_COMPLETION_MATCHES 1
24548 # also in readline 4.2
24549 cat >conftest.
$ac_ext <<_ACEOF
24552 cat confdefs.h
>>conftest.
$ac_ext
24553 cat >>conftest.
$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 #include <readline/readline.h>
24557 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24558 case "(($ac_try" in
24559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev/null && {
24570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24571 test ! -s conftest.err
24575 echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24581 rm -f conftest.err conftest.$ac_ext
24582 if test $have_readline = yes
24584 cat >conftest.$ac_ext <<_ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24590 #include <readline/readline.h>
24593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24594 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24596 cat >>confdefs.h <<\_ACEOF
24597 #define HAVE_RL_CATCH_SIGNAL 1
24605 # End of readline checks: restore LIBS
24606 LIBS=$LIBS_no_readline
24608 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24609 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24610 if test "${ac_cv_broken_nice+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 if test "$cross_compiling" = yes; then
24615 ac_cv_broken_nice=no
24617 cat >conftest.$ac_ext <<_ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24626 int val1 = nice(1);
24627 if (val1 != -1 && val1 == nice(2))
24633 rm -f conftest$ac_exeext
24634 if { (ac_try="$ac_link"
24635 case "(($ac_try" in
24636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24637 *) ac_try_echo
=$ac_try;;
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640 (eval "$ac_link") 2>&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24644 { (case "(($ac_try" in
24645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_try") 2>&5
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; }; then
24653 ac_cv_broken_nice=yes
24655 echo "$as_me: program exited with status $ac_status" >&5
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 ( exit $ac_status )
24660 ac_cv_broken_nice=no
24662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24668 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24669 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24670 if test "$ac_cv_broken_nice" = yes
24673 cat >>confdefs.h <<\_ACEOF
24674 #define HAVE_BROKEN_NICE 1
24679 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24680 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24681 if test "$cross_compiling" = yes; then
24682 ac_cv_broken_poll=no
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24695 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24699 int poll_test = poll (&poll_struct, 1, 0);
24705 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24716 rm -f conftest$ac_exeext
24717 if { (ac_try="$ac_link"
24718 case "(($ac_try" in
24719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24720 *) ac_try_echo
=$ac_try;;
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_link") 2>&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24727 { (case "(($ac_try" in
24728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_try") 2>&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 ac_cv_broken_poll=yes
24738 echo "$as_me: program exited with status $ac_status" >&5
24739 echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24742 ( exit $ac_status )
24743 ac_cv_broken_poll=no
24745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24749 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24750 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24751 if test "$ac_cv_broken_poll" = yes
24754 cat >>confdefs.h <<\_ACEOF
24755 #define HAVE_BROKEN_POLL 1
24760 # Before we can test tzset, we need to check if struct tm has a tm_zone
24761 # (which is not required by ISO C or UNIX spec) and/or if we support
24763 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24764 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24765 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <sys/types.h>
24775 #include <$ac_cv_struct_tm>
24781 static struct tm ac_aggr;
24782 if (ac_aggr.tm_zone)
24788 rm -f conftest.$ac_objext
24789 if { (ac_try="$ac_compile"
24790 case "(($ac_try" in
24791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24792 *) ac_try_echo
=$ac_try;;
24794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24795 (eval "$ac_compile") 2>conftest.er1
24797 grep -v '^ *+' conftest.er1
>conftest.err
24799 cat conftest.err
>&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } && {
24802 test -z "$ac_c_werror_flag" ||
24803 test ! -s conftest.err
24804 } && test -s conftest.
$ac_objext; then
24805 ac_cv_member_struct_tm_tm_zone
=yes
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.
$ac_ext >&5
24810 cat >conftest.
$ac_ext <<_ACEOF
24813 cat confdefs.h
>>conftest.
$ac_ext
24814 cat >>conftest.
$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 #include <sys/types.h>
24817 #include <$ac_cv_struct_tm>
24823 static struct tm ac_aggr;
24824 if (sizeof ac_aggr.tm_zone)
24830 rm -f conftest.
$ac_objext
24831 if { (ac_try
="$ac_compile"
24832 case "(($ac_try" in
24833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_compile") 2>conftest.er1
24839 grep -v '^ *+' conftest.er1 >conftest.err
24841 cat conftest.err >&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && {
24844 test -z "$ac_c_werror_flag" ||
24845 test ! -s conftest.err
24846 } && test -s conftest.$ac_objext; then
24847 ac_cv_member_struct_tm_tm_zone=yes
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24852 ac_cv_member_struct_tm_tm_zone=no
24855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24862 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24864 cat >>confdefs.h <<_ACEOF
24865 #define HAVE_STRUCT_TM_TM_ZONE 1
24871 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24873 cat >>confdefs.h <<\_ACEOF
24874 #define HAVE_TM_ZONE 1
24878 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24879 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24880 if test "${ac_cv_have_decl_tzname+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 cat >conftest.$ac_ext <<_ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24906 *) ac_try_echo
=$ac_try;;
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_compile") 2>conftest.er1
24911 grep -v '^ *+' conftest.er1
>conftest.err
24913 cat conftest.err
>&5
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); } && {
24916 test -z "$ac_c_werror_flag" ||
24917 test ! -s conftest.err
24918 } && test -s conftest.
$ac_objext; then
24919 ac_cv_have_decl_tzname
=yes
24921 echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.
$ac_ext >&5
24924 ac_cv_have_decl_tzname
=no
24927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24929 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24930 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24931 if test $ac_cv_have_decl_tzname = yes; then
24933 cat >>confdefs.h
<<_ACEOF
24934 #define HAVE_DECL_TZNAME 1
24939 cat >>confdefs.h
<<_ACEOF
24940 #define HAVE_DECL_TZNAME 0
24947 { echo "$as_me:$LINENO: checking for tzname" >&5
24948 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24949 if test "${ac_cv_var_tzname+set}" = set; then
24950 echo $ECHO_N "(cached) $ECHO_C" >&6
24952 cat >conftest.
$ac_ext <<_ACEOF
24955 cat confdefs.h
>>conftest.
$ac_ext
24956 cat >>conftest.
$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24959 #if !HAVE_DECL_TZNAME
24960 extern char *tzname[];
24966 return tzname[0][0];
24971 rm -f conftest.
$ac_objext conftest
$ac_exeext
24972 if { (ac_try
="$ac_link"
24973 case "(($ac_try" in
24974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_link") 2>conftest.er1
24980 grep -v '^ *+' conftest.er1 >conftest.err
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest$ac_exeext &&
24988 $as_test_x conftest$ac_exeext; then
24989 ac_cv_var_tzname=yes
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ac_cv_var_tzname=no
24997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24998 conftest$ac_exeext conftest.$ac_ext
25000 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25001 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25002 if test $ac_cv_var_tzname = yes; then
25004 cat >>confdefs.h <<\_ACEOF
25005 #define HAVE_TZNAME 1
25012 # check tzset(3) exists and works like we expect it to
25013 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25014 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25015 if test "${ac_cv_working_tzset+set}" = set; then
25016 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 if test "$cross_compiling" = yes; then
25020 ac_cv_working_tzset=no
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25029 #include <stdlib.h>
25031 #include <string.h>
25034 extern char *tzname[];
25039 /* Note that we need to ensure that not only does tzset(3)
25040 do 'something' with localtime, but it works as documented
25041 in the library reference and as expected by the test suite.
25042 This includes making sure that tzname is set properly if
25043 tm->tm_zone does not exist since it is the alternative way
25044 of getting timezone info.
25046 Red Hat 6.2 doesn't understand the southern hemisphere
25047 after New Year's Day.
25050 time_t groundhogday = 1044144000; /* GMT-based */
25051 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25053 putenv("TZ=UTC+0");
25055 if (localtime(&groundhogday)->tm_hour != 0)
25058 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25059 if (strcmp(tzname[0], "UTC") ||
25060 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25064 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25066 if (localtime(&groundhogday)->tm_hour != 19)
25069 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25073 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25075 if (localtime(&groundhogday)->tm_hour != 11)
25078 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25082 #if HAVE_STRUCT_TM_TM_ZONE
25083 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25085 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25093 rm -f conftest$ac_exeext
25094 if { (ac_try="$ac_link"
25095 case "(($ac_try" in
25096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25097 *) ac_try_echo
=$ac_try;;
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100 (eval "$ac_link") 2>&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25104 { (case "(($ac_try" in
25105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_try") 2>&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; }; then
25113 ac_cv_working_tzset=yes
25115 echo "$as_me: program exited with status $ac_status" >&5
25116 echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25119 ( exit $ac_status )
25120 ac_cv_working_tzset=no
25122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25128 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25129 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25130 if test "$ac_cv_working_tzset" = yes
25133 cat >>confdefs.h <<\_ACEOF
25134 #define HAVE_WORKING_TZSET 1
25139 # Look for subsecond timestamps in struct stat
25140 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25141 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25142 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25143 echo $ECHO_N "(cached) $ECHO_C" >&6
25145 cat >conftest.$ac_ext <<_ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 #include <sys/stat.h>
25157 st.st_mtim.tv_nsec = 1;
25163 rm -f conftest.$ac_objext
25164 if { (ac_try="$ac_compile"
25165 case "(($ac_try" in
25166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25167 *) ac_try_echo
=$ac_try;;
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170 (eval "$ac_compile") 2>conftest.er1
25172 grep -v '^ *+' conftest.er1
>conftest.err
25174 cat conftest.err
>&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } && {
25177 test -z "$ac_c_werror_flag" ||
25178 test ! -s conftest.err
25179 } && test -s conftest.
$ac_objext; then
25180 ac_cv_stat_tv_nsec
=yes
25182 echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.
$ac_ext >&5
25185 ac_cv_stat_tv_nsec
=no
25188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25191 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25192 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25193 if test "$ac_cv_stat_tv_nsec" = yes
25196 cat >>confdefs.h
<<\_ACEOF
25197 #define HAVE_STAT_TV_NSEC 1
25202 # Look for BSD style subsecond timestamps in struct stat
25203 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25204 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25205 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25208 cat >conftest.
$ac_ext <<_ACEOF
25211 cat confdefs.h
>>conftest.
$ac_ext
25212 cat >>conftest.
$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25214 #include <sys/stat.h>
25220 st.st_mtimespec.tv_nsec = 1;
25226 rm -f conftest.
$ac_objext
25227 if { (ac_try
="$ac_compile"
25228 case "(($ac_try" in
25229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233 (eval "$ac_compile") 2>conftest.er1
25235 grep -v '^ *+' conftest.er1 >conftest.err
25237 cat conftest.err >&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } && {
25240 test -z "$ac_c_werror_flag" ||
25241 test ! -s conftest.err
25242 } && test -s conftest.$ac_objext; then
25243 ac_cv_stat_tv_nsec2=yes
25245 echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25248 ac_cv_stat_tv_nsec2=no
25251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25254 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25255 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25256 if test "$ac_cv_stat_tv_nsec2" = yes
25259 cat >>confdefs.h <<\_ACEOF
25260 #define HAVE_STAT_TV_NSEC2 1
25265 # On HP/UX 11.0, mvwdelch is a block with a return statement
25266 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25267 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25268 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 cat >conftest.$ac_ext <<_ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h. */
25277 #include <curses.h>
25283 rtn = mvwdelch(0,0,0);
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25293 *) ac_try_echo
=$ac_try;;
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296 (eval "$ac_compile") 2>conftest.er1
25298 grep -v '^ *+' conftest.er1
>conftest.err
25300 cat conftest.err
>&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } && {
25303 test -z "$ac_c_werror_flag" ||
25304 test ! -s conftest.err
25305 } && test -s conftest.
$ac_objext; then
25306 ac_cv_mvwdelch_is_expression
=yes
25308 echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.
$ac_ext >&5
25311 ac_cv_mvwdelch_is_expression
=no
25314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25317 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25318 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25320 if test "$ac_cv_mvwdelch_is_expression" = yes
25323 cat >>confdefs.h
<<\_ACEOF
25324 #define MVWDELCH_IS_EXPRESSION 1
25329 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25330 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25331 if test "${ac_cv_window_has_flags+set}" = set; then
25332 echo $ECHO_N "(cached) $ECHO_C" >&6
25334 cat >conftest.
$ac_ext <<_ACEOF
25337 cat confdefs.h
>>conftest.
$ac_ext
25338 cat >>conftest.
$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25340 #include <curses.h>
25352 rm -f conftest.
$ac_objext
25353 if { (ac_try
="$ac_compile"
25354 case "(($ac_try" in
25355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25356 *) ac_try_echo=$ac_try;;
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359 (eval "$ac_compile") 2>conftest.er1
25361 grep -v '^ *+' conftest.er1 >conftest.err
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } && {
25366 test -z "$ac_c_werror_flag" ||
25367 test ! -s conftest.err
25368 } && test -s conftest.$ac_objext; then
25369 ac_cv_window_has_flags=yes
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_cv_window_has_flags=no
25377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25380 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25381 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25384 if test "$ac_cv_window_has_flags" = yes
25387 cat >>confdefs.h <<\_ACEOF
25388 #define WINDOW_HAS_FLAGS 1
25393 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25394 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25395 cat >conftest.$ac_ext <<_ACEOF
25398 cat confdefs.h >>conftest.$ac_ext
25399 cat >>conftest.$ac_ext <<_ACEOF
25400 /* end confdefs.h. */
25401 #include <curses.h>
25405 void *x=is_term_resized
25410 rm -f conftest.$ac_objext
25411 if { (ac_try="$ac_compile"
25412 case "(($ac_try" in
25413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25414 *) ac_try_echo
=$ac_try;;
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417 (eval "$ac_compile") 2>conftest.er1
25419 grep -v '^ *+' conftest.er1
>conftest.err
25421 cat conftest.err
>&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); } && {
25424 test -z "$ac_c_werror_flag" ||
25425 test ! -s conftest.err
25426 } && test -s conftest.
$ac_objext; then
25428 cat >>confdefs.h
<<\_ACEOF
25429 #define HAVE_CURSES_IS_TERM_RESIZED 1
25432 { echo "$as_me:$LINENO: result: yes" >&5
25433 echo "${ECHO_T}yes" >&6; }
25435 echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.
$ac_ext >&5
25438 { echo "$as_me:$LINENO: result: no" >&5
25439 echo "${ECHO_T}no" >&6; }
25443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25445 { echo "$as_me:$LINENO: checking for resize_term" >&5
25446 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25447 cat >conftest.
$ac_ext <<_ACEOF
25450 cat confdefs.h
>>conftest.
$ac_ext
25451 cat >>conftest.
$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 #include <curses.h>
25457 void *x=resize_term
25462 rm -f conftest.
$ac_objext
25463 if { (ac_try
="$ac_compile"
25464 case "(($ac_try" in
25465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25469 (eval "$ac_compile") 2>conftest.er1
25471 grep -v '^ *+' conftest.er1 >conftest.err
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } && {
25476 test -z "$ac_c_werror_flag" ||
25477 test ! -s conftest.err
25478 } && test -s conftest.$ac_objext; then
25480 cat >>confdefs.h <<\_ACEOF
25481 #define HAVE_CURSES_RESIZE_TERM 1
25484 { echo "$as_me:$LINENO: result: yes" >&5
25485 echo "${ECHO_T}yes" >&6; }
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 { echo "$as_me:$LINENO: result: no" >&5
25491 echo "${ECHO_T}no" >&6; }
25495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25498 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25499 cat >conftest.$ac_ext <<_ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h. */
25505 #include <curses.h>
25514 rm -f conftest.$ac_objext
25515 if { (ac_try="$ac_compile"
25516 case "(($ac_try" in
25517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25518 *) ac_try_echo
=$ac_try;;
25520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25521 (eval "$ac_compile") 2>conftest.er1
25523 grep -v '^ *+' conftest.er1
>conftest.err
25525 cat conftest.err
>&5
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); } && {
25528 test -z "$ac_c_werror_flag" ||
25529 test ! -s conftest.err
25530 } && test -s conftest.
$ac_objext; then
25532 cat >>confdefs.h
<<\_ACEOF
25533 #define HAVE_CURSES_RESIZETERM 1
25536 { echo "$as_me:$LINENO: result: yes" >&5
25537 echo "${ECHO_T}yes" >&6; }
25539 echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.
$ac_ext >&5
25542 { echo "$as_me:$LINENO: result: no" >&5
25543 echo "${ECHO_T}no" >&6; }
25547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25549 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25550 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25552 if test -r /dev
/ptmx
25554 { echo "$as_me:$LINENO: result: yes" >&5
25555 echo "${ECHO_T}yes" >&6; }
25557 cat >>confdefs.h
<<\_ACEOF
25558 #define HAVE_DEV_PTMX 1
25562 { echo "$as_me:$LINENO: result: no" >&5
25563 echo "${ECHO_T}no" >&6; }
25566 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25567 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25569 if test -r /dev
/ptc
25571 { echo "$as_me:$LINENO: result: yes" >&5
25572 echo "${ECHO_T}yes" >&6; }
25574 cat >>confdefs.h
<<\_ACEOF
25575 #define HAVE_DEV_PTC 1
25579 { echo "$as_me:$LINENO: result: no" >&5
25580 echo "${ECHO_T}no" >&6; }
25583 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25584 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25585 if test "$cross_compiling" = yes; then
25586 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25587 See \`config.log' for more details." >&5
25588 echo "$as_me: error: cannot run test program while cross compiling
25589 See \`config.log' for more details." >&2;}
25590 { (exit 1); exit 1; }; }
25592 cat >conftest.
$ac_ext <<_ACEOF
25595 cat confdefs.h
>>conftest.
$ac_ext
25596 cat >>conftest.
$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25599 #include <stddef.h>
25600 #include <string.h>
25602 #ifdef HAVE_SYS_TYPES_H
25603 #include <sys/types.h>
25606 #ifdef HAVE_SSIZE_T
25607 typedef ssize_t Py_ssize_t;
25608 #elif SIZEOF_VOID_P == SIZEOF_LONG
25609 typedef long Py_ssize_t;
25611 typedef int Py_ssize_t;
25618 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25621 if (strcmp(buffer, "123"))
25624 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25627 if (strcmp(buffer, "-123"))
25633 rm -f conftest
$ac_exeext
25634 if { (ac_try
="$ac_link"
25635 case "(($ac_try" in
25636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640 (eval "$ac_link") 2>&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25644 { (case "(($ac_try" in
25645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25646 *) ac_try_echo
=$ac_try;;
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649 (eval "$ac_try") 2>&5
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); }; }; then
25653 { echo "$as_me:$LINENO: result: yes" >&5
25654 echo "${ECHO_T}yes" >&6; }
25656 cat >>confdefs.h
<<\_ACEOF
25657 #define PY_FORMAT_SIZE_T "z"
25661 echo "$as_me: program exited with status $ac_status" >&5
25662 echo "$as_me: failed program was:" >&5
25663 sed 's/^/| /' conftest.
$ac_ext >&5
25665 ( exit $ac_status )
25666 { echo "$as_me:$LINENO: result: no" >&5
25667 echo "${ECHO_T}no" >&6; }
25669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25674 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25675 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25676 if test "${ac_cv_type_socklen_t+set}" = set; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
25679 cat >conftest.
$ac_ext <<_ACEOF
25682 cat confdefs.h
>>conftest.
$ac_ext
25683 cat >>conftest.
$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25686 #ifdef HAVE_SYS_TYPES_H
25687 #include <sys/types.h>
25689 #ifdef HAVE_SYS_SOCKET_H
25690 #include <sys/socket.h>
25694 typedef socklen_t ac__type_new_;
25698 if ((ac__type_new_ *) 0)
25700 if (sizeof (ac__type_new_))
25706 rm -f conftest.
$ac_objext
25707 if { (ac_try
="$ac_compile"
25708 case "(($ac_try" in
25709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25710 *) ac_try_echo=$ac_try;;
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713 (eval "$ac_compile") 2>conftest.er1
25715 grep -v '^ *+' conftest.er1 >conftest.err
25717 cat conftest.err >&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } && {
25720 test -z "$ac_c_werror_flag" ||
25721 test ! -s conftest.err
25722 } && test -s conftest.$ac_objext; then
25723 ac_cv_type_socklen_t=yes
25725 echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25728 ac_cv_type_socklen_t=no
25731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25734 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25735 if test $ac_cv_type_socklen_t = yes; then
25739 cat >>confdefs.h <<\_ACEOF
25740 #define socklen_t int
25746 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25747 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25748 if test "$cross_compiling" = yes; then
25749 ac_cv_broken_mbstowcs=no
25751 cat >conftest.$ac_ext <<_ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h. */
25761 const char *str = "text";
25762 len = mbstowcs(NULL, str, 0);
25767 rm -f conftest$ac_exeext
25768 if { (ac_try="$ac_link"
25769 case "(($ac_try" in
25770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25771 *) ac_try_echo
=$ac_try;;
25773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25774 (eval "$ac_link") 2>&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25778 { (case "(($ac_try" in
25779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_try") 2>&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787 ac_cv_broken_mbstowcs=no
25789 echo "$as_me: program exited with status $ac_status" >&5
25790 echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25793 ( exit $ac_status )
25794 ac_cv_broken_mbstowcs=yes
25796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25800 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25801 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25802 if test "$ac_cv_broken_mbstowcs" = yes
25805 cat >>confdefs.h <<\_ACEOF
25806 #define HAVE_BROKEN_MBSTOWCS 1
25811 # Check for --with-computed-gotos
25812 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25813 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25815 # Check whether --with-computed-gotos was given.
25816 if test "${with_computed_gotos+set}" = set; then
25817 withval=$with_computed_gotos;
25818 if test "$withval" != no
25821 cat >>confdefs.h <<\_ACEOF
25822 #define USE_COMPUTED_GOTOS 1
25825 { echo "$as_me:$LINENO: result: yes" >&5
25826 echo "${ECHO_T}yes" >&6; }
25827 else { echo "$as_me:$LINENO: result: no" >&5
25828 echo "${ECHO_T}no" >&6; }
25831 { echo "$as_me:$LINENO: result: no" >&5
25832 echo "${ECHO_T}no" >&6; }
25836 if test $ac_sys_system = Darwin
25838 LIBS="$LIBS -framework CoreFoundation"
25845 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25847 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25851 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25852 { echo "$as_me:$LINENO: checking for build directories" >&5
25853 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25854 for dir in $SRCDIRS; do
25855 if test ! -d $dir; then
25859 { echo "$as_me:$LINENO: result: done" >&5
25860 echo "${ECHO_T}done" >&6; }
25862 # generate output files
25863 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25865 cat >confcache <<\_ACEOF
25866 # This file is a shell script that caches the results of configure
25867 # tests run on this system so they can be shared between configure
25868 # scripts and configure runs, see configure's option --config-cache.
25869 # It is not useful on other systems. If it contains results you don't
25870 # want to keep, you may remove or edit it.
25872 # config.status only pays attention to the cache file if you give it
25873 # the --recheck option to rerun configure.
25875 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25877 # following values.
25881 # The following way of writing the cache mishandles newlines in values,
25882 # but we know of no workaround that is simple, portable, and efficient.
25883 # So, we kill variables containing newlines.
25884 # Ultrix sh set writes to stderr and can't be redirected directly,
25885 # and sets the high bit in the cache file unless we assign to the vars.
25887 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25888 eval ac_val
=\$
$ac_var
25892 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25893 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25896 _ | IFS | as_nl
) ;; #(
25897 *) $as_unset $ac_var ;;
25903 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25904 *${as_nl}ac_space
=\
*)
25905 # `set' does not quote correctly, so add quotes (double-quote
25906 # substitution turns \\\\ into \\, and sed turns \\ into \).
25909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25912 # `set' quotes correctly as required by POSIX, so do not add quotes.
25913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25924 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25926 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25927 if test -w "$cache_file"; then
25928 test "x$cache_file" != "x/dev/null" &&
25929 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25930 echo "$as_me: updating cache $cache_file" >&6;}
25931 cat confcache
>$cache_file
25933 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25934 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25939 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25940 # Let make expand exec_prefix.
25941 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25943 DEFS
=-DHAVE_CONFIG_H
25947 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25948 # 1. Remove the extension, and $U if already installed.
25949 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25950 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25952 # will be set to the directory where LIBOBJS objects are built.
25953 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25954 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25956 LIBOBJS
=$ac_libobjs
25958 LTLIBOBJS
=$ac_ltlibobjs
25962 : ${CONFIG_STATUS=./config.status}
25963 ac_clean_files_save
=$ac_clean_files
25964 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25965 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25966 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25967 cat >$CONFIG_STATUS <<_ACEOF
25969 # Generated by $as_me.
25970 # Run this file to recreate the current configuration.
25971 # Compiler output produced by configure, useful for debugging
25972 # configure, is in config.log if it exists.
25975 ac_cs_recheck=false
25977 SHELL=\${CONFIG_SHELL-$SHELL}
25980 cat >>$CONFIG_STATUS <<\_ACEOF
25981 ## --------------------- ##
25982 ## M4sh Initialization. ##
25983 ## --------------------- ##
25985 # Be more Bourne compatible
25986 DUALCASE
=1; export DUALCASE
# for MKS sh
25987 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25991 # is contrary to our usage. Disable this feature.
25992 alias -g '${1+"$@"}'='"$@"'
25993 setopt NO_GLOB_SUBST
25995 case `(set -o) 2>/dev/null` in
25996 *posix
*) set -o posix
;;
26005 # Avoid depending upon Character Ranges.
26006 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26007 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26008 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26009 as_cr_digits
='0123456789'
26010 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26012 # The user is always right.
26013 if test "${PATH_SEPARATOR+set}" != set; then
26014 echo "#! /bin/sh" >conf$$.sh
26015 echo "exit 0" >>conf$$.sh
26017 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26025 # Support unset when possible.
26026 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26034 # We need space, tab and new line, in precisely that order. Quoting is
26035 # there to prevent editors from complaining about space-tab.
26036 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26037 # splitting by setting IFS to empty value.)
26042 # Find who we are. Look in the path if we contain no directory separator.
26044 *[\\/]* ) as_myself
=$0 ;;
26045 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26046 for as_dir
in $PATH
26049 test -z "$as_dir" && as_dir
=.
26050 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26056 # We did not find ourselves, most probably we were run as `sh COMMAND'
26057 # in which case we are not to be found in the path.
26058 if test "x$as_myself" = x
; then
26061 if test ! -f "$as_myself"; then
26062 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26063 { (exit 1); exit 1; }
26066 # Work around bugs in pre-3.0 UWIN ksh.
26067 for as_var
in ENV MAIL MAILPATH
26068 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26076 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26077 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26078 LC_TELEPHONE LC_TIME
26080 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26081 eval $as_var=C
; export $as_var
26083 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26087 # Required to use basename.
26088 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26089 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26095 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26096 as_basename
=basename
26102 # Name of the executable.
26103 as_me
=`$as_basename -- "$0" ||
26104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26105 X"$0" : 'X\(//\)$' \| \
26106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26108 sed '/^.*\/\([^/][^/]*\)\/*$/{
26127 as_lineno_1
=$LINENO
26128 as_lineno_2
=$LINENO
26129 test "x$as_lineno_1" != "x$as_lineno_2" &&
26130 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26133 # uniformly replaced by the line number. The first 'sed' inserts a
26134 # line-number line after each line using $LINENO; the second 'sed'
26135 # does the real work. The second script uses 'N' to pair each
26136 # line-number line with the line containing $LINENO, and appends
26137 # trailing '-' during substitution so that $LINENO is not a special
26138 # case at line end.
26139 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26140 # scripts with optimization help from Paolo Bonzini. Blame Lee
26141 # E. McMahon (1931-1989) for sed's syntax. :-)
26153 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26156 ' >$as_me.lineno
&&
26157 chmod +x
"$as_me.lineno" ||
26158 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26159 { (exit 1); exit 1; }; }
26161 # Don't try to exec as it changes $[0], causing all sort of problems
26162 # (the dirname of $[0] is not the place where we might find the
26163 # original and so on. Autoconf is especially sensitive to this).
26164 .
"./$as_me.lineno"
26165 # Exit status is that of the last command.
26170 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26176 ECHO_C
= ECHO_N
= ECHO_T
=
26177 case `echo -n x` in
26179 case `echo 'x\c'` in
26180 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26187 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26188 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26194 rm -f conf$$ conf$$.exe conf$$.
file
26195 if test -d conf$$.dir
; then
26196 rm -f conf$$.dir
/conf$$.
file
26202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26204 # ... but there are two gotchas:
26205 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26206 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26207 # In both cases, we have to default to `cp -p'.
26208 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26210 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26215 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26216 rmdir conf$$.dir
2>/dev
/null
26218 if mkdir
-p .
2>/dev
/null
; then
26221 test -d .
/-p && rmdir .
/-p
26225 if test -x / >/dev
/null
2>&1; then
26226 as_test_x
='test -x'
26228 if ls -dL / >/dev
/null
2>&1; then
26235 if test -d "$1"; then
26241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26242 ???[sx]*):;;*)false;;esac;fi
26246 as_executable_p
=$as_test_x
26248 # Sed expression to map a string onto a valid CPP name.
26249 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26251 # Sed expression to map a string onto a valid variable name.
26252 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26257 # Save the log message, to keep $[0] and so on meaningful, and to
26258 # report actual input values of CONFIG_FILES etc. instead of their
26259 # values after options handling.
26261 This file was extended by python $as_me 3.1, which was
26262 generated by GNU Autoconf 2.61. Invocation command line was
26264 CONFIG_FILES = $CONFIG_FILES
26265 CONFIG_HEADERS = $CONFIG_HEADERS
26266 CONFIG_LINKS = $CONFIG_LINKS
26267 CONFIG_COMMANDS = $CONFIG_COMMANDS
26270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26275 cat >>$CONFIG_STATUS <<_ACEOF
26276 # Files that config.status was made for.
26277 config_files="$ac_config_files"
26278 config_headers="$ac_config_headers"
26282 cat >>$CONFIG_STATUS <<\_ACEOF
26284 \`$as_me' instantiates files from templates according to the
26285 current configuration.
26287 Usage: $0 [OPTIONS] [FILE]...
26289 -h, --help print this help, then exit
26290 -V, --version print version number and configuration settings, then exit
26291 -q, --quiet do not print progress messages
26292 -d, --debug don't remove temporary files
26293 --recheck update $as_me by reconfiguring in the same conditions
26294 --file=FILE[:TEMPLATE]
26295 instantiate the configuration file FILE
26296 --header=FILE[:TEMPLATE]
26297 instantiate the configuration header FILE
26299 Configuration files:
26302 Configuration headers:
26305 Report bugs to <bug-autoconf@gnu.org>."
26308 cat >>$CONFIG_STATUS <<_ACEOF
26310 python config.status 3.1
26311 configured by $0, generated by GNU Autoconf 2.61,
26312 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26314 Copyright (C) 2006 Free Software Foundation, Inc.
26315 This config.status script is free software; the Free Software Foundation
26316 gives unlimited permission to copy, distribute and modify it."
26323 cat >>$CONFIG_STATUS <<\_ACEOF
26324 # If no file are specified by the user, then we need to provide default
26325 # value. By we need to know if files were specified by the user.
26331 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26332 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26343 # Handling of the options.
26344 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26346 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26347 echo "$ac_cs_version"; exit ;;
26348 --debug |
--debu |
--deb |
--de |
--d |
-d )
26350 --file |
--fil |
--fi |
--f )
26352 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26353 ac_need_defaults
=false
;;
26354 --header |
--heade |
--head |
--hea )
26356 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26357 ac_need_defaults
=false
;;
26359 # Conflict between --help and --header
26360 { echo "$as_me: error: ambiguous option: $1
26361 Try \`$0 --help' for more information." >&2
26362 { (exit 1); exit 1; }; };;
26363 --help |
--hel |
-h )
26364 echo "$ac_cs_usage"; exit ;;
26365 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26366 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26369 # This is an error.
26370 -*) { echo "$as_me: error: unrecognized option: $1
26371 Try \`$0 --help' for more information." >&2
26372 { (exit 1); exit 1; }; } ;;
26374 *) ac_config_targets
="$ac_config_targets $1"
26375 ac_need_defaults
=false
;;
26381 ac_configure_extra_args
=
26383 if $ac_cs_silent; then
26385 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26389 cat >>$CONFIG_STATUS <<_ACEOF
26390 if \$ac_cs_recheck; then
26391 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26392 CONFIG_SHELL=$SHELL
26393 export CONFIG_SHELL
26394 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26398 cat >>$CONFIG_STATUS <<\_ACEOF
26402 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26403 ## Running $as_me. ##
26409 cat >>$CONFIG_STATUS <<_ACEOF
26412 cat >>$CONFIG_STATUS <<\_ACEOF
26414 # Handling of arguments.
26415 for ac_config_target
in $ac_config_targets
26417 case $ac_config_target in
26418 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
26419 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
26420 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26421 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26422 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26423 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
26424 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
26425 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
26427 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26428 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26429 { (exit 1); exit 1; }; };;
26434 # If the user did not use the arguments to specify the items to instantiate,
26435 # then the envvar interface is used. Set only those that are not.
26436 # We use the long form for the default assignment because of an extremely
26437 # bizarre bug on SunOS 4.1.3.
26438 if $ac_need_defaults; then
26439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26443 # Have a temporary directory for convenience. Make it in the build tree
26444 # simply because there is no reason against having it here, and in addition,
26445 # creating and moving files from /tmp can sometimes cause problems.
26446 # Hook for its removal unless debugging.
26447 # Note that there is a small window in which the directory will not be cleaned:
26448 # after its creation but before its name has been assigned to `$tmp'.
26452 trap 'exit_status=$?
26453 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26455 trap '{ (exit 1); exit 1; }' 1 2 13 15
26457 # Create a (secure) tmp directory for tmp files.
26460 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26461 test -n "$tmp" && test -d "$tmp"
26464 tmp
=.
/conf$$
-$RANDOM
26465 (umask 077 && mkdir
"$tmp")
26468 echo "$me: cannot create a temporary directory in ." >&2
26469 { (exit 1); exit 1; }
26473 # Set up the sed scripts for CONFIG_FILES section.
26476 # No need to generate the scripts if there are no CONFIG_FILES.
26477 # This happens for instance when ./config.status config.h
26478 if test -n "$CONFIG_FILES"; then
26485 for ac_last_try
in false false false false false
:; do
26486 cat >conf$
$subs.
sed <<_ACEOF
26487 SHELL!$SHELL$ac_delim
26488 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26489 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26490 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26491 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26492 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26493 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26494 exec_prefix!$exec_prefix$ac_delim
26495 prefix!$prefix$ac_delim
26496 program_transform_name!$program_transform_name$ac_delim
26497 bindir!$bindir$ac_delim
26498 sbindir!$sbindir$ac_delim
26499 libexecdir!$libexecdir$ac_delim
26500 datarootdir!$datarootdir$ac_delim
26501 datadir!$datadir$ac_delim
26502 sysconfdir!$sysconfdir$ac_delim
26503 sharedstatedir!$sharedstatedir$ac_delim
26504 localstatedir!$localstatedir$ac_delim
26505 includedir!$includedir$ac_delim
26506 oldincludedir!$oldincludedir$ac_delim
26507 docdir!$docdir$ac_delim
26508 infodir!$infodir$ac_delim
26509 htmldir!$htmldir$ac_delim
26510 dvidir!$dvidir$ac_delim
26511 pdfdir!$pdfdir$ac_delim
26512 psdir!$psdir$ac_delim
26513 libdir!$libdir$ac_delim
26514 localedir!$localedir$ac_delim
26515 mandir!$mandir$ac_delim
26516 DEFS!$DEFS$ac_delim
26517 ECHO_C!$ECHO_C$ac_delim
26518 ECHO_N!$ECHO_N$ac_delim
26519 ECHO_T!$ECHO_T$ac_delim
26520 LIBS!$LIBS$ac_delim
26521 build_alias!$build_alias$ac_delim
26522 host_alias!$host_alias$ac_delim
26523 target_alias!$target_alias$ac_delim
26524 VERSION!$VERSION$ac_delim
26525 SOVERSION!$SOVERSION$ac_delim
26526 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26527 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26528 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26529 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
26530 LIPO_64BIT_FLAGS!$LIPO_64BIT_FLAGS$ac_delim
26531 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26532 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26533 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26534 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26535 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26536 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26537 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26538 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26539 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26540 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26541 MACHDEP!$MACHDEP$ac_delim
26542 SGI_ABI!$SGI_ABI$ac_delim
26543 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26544 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26546 CFLAGS!$CFLAGS$ac_delim
26547 LDFLAGS!$LDFLAGS$ac_delim
26548 CPPFLAGS!$CPPFLAGS$ac_delim
26549 ac_ct_CC!$ac_ct_CC$ac_delim
26550 EXEEXT!$EXEEXT$ac_delim
26551 OBJEXT!$OBJEXT$ac_delim
26553 MAINCC!$MAINCC$ac_delim
26555 GREP!$GREP$ac_delim
26556 EGREP!$EGREP$ac_delim
26557 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26558 LIBRARY!$LIBRARY$ac_delim
26559 LDLIBRARY!$LDLIBRARY$ac_delim
26560 DLLLIBRARY!$DLLLIBRARY$ac_delim
26561 BLDLIBRARY!$BLDLIBRARY$ac_delim
26562 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26563 INSTSONAME!$INSTSONAME$ac_delim
26564 RUNSHARED!$RUNSHARED$ac_delim
26565 LINKCC!$LINKCC$ac_delim
26566 GNULD!$GNULD$ac_delim
26567 RANLIB!$RANLIB$ac_delim
26569 ARFLAGS!$ARFLAGS$ac_delim
26570 SVNVERSION!$SVNVERSION$ac_delim
26571 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26572 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26573 INSTALL_DATA!$INSTALL_DATA$ac_delim
26576 BASECFLAGS!$BASECFLAGS$ac_delim
26577 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26578 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26579 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26581 LDSHARED!$LDSHARED$ac_delim
26582 BLDSHARED!$BLDSHARED$ac_delim
26583 CCSHARED!$CCSHARED$ac_delim
26586 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26588 elif $ac_last_try; then
26589 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26590 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26591 { (exit 1); exit 1; }; }
26593 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26597 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26598 if test -n "$ac_eof"; then
26599 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26600 ac_eof
=`expr $ac_eof + 1`
26603 cat >>$CONFIG_STATUS <<_ACEOF
26604 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26608 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26609 s/^/s,@/; s/!/@,|#_!!_#|/
26612 s/'"$ac_delim"'$/,g/; t
26614 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26615 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26616 rm -f conf$
$subs.
sed
26617 cat >>$CONFIG_STATUS <<_ACEOF
26623 for ac_last_try
in false false false false false
:; do
26624 cat >conf$
$subs.
sed <<_ACEOF
26625 LINKFORSHARED!$LINKFORSHARED$ac_delim
26626 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26627 SHLIBS!$SHLIBS$ac_delim
26628 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26629 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26630 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26631 LDLAST!$LDLAST$ac_delim
26632 THREADOBJ!$THREADOBJ$ac_delim
26633 DLINCLDIR!$DLINCLDIR$ac_delim
26634 DYNLOADFILE!$DYNLOADFILE$ac_delim
26635 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26636 TRUE!$TRUE$ac_delim
26637 LIBOBJS!$LIBOBJS$ac_delim
26638 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26639 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26640 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26641 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26642 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26643 LIBM!$LIBM$ac_delim
26644 LIBC!$LIBC$ac_delim
26645 THREADHEADERS!$THREADHEADERS$ac_delim
26646 SRCDIRS!$SRCDIRS$ac_delim
26647 LTLIBOBJS!$LTLIBOBJS$ac_delim
26650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
26652 elif $ac_last_try; then
26653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26655 { (exit 1); exit 1; }; }
26657 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26661 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26662 if test -n "$ac_eof"; then
26663 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26664 ac_eof
=`expr $ac_eof + 1`
26667 cat >>$CONFIG_STATUS <<_ACEOF
26668 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26673 s/^/s,@/; s/!/@,|#_!!_#|/
26676 s/'"$ac_delim"'$/,g/; t
26678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26679 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26680 rm -f conf$
$subs.
sed
26681 cat >>$CONFIG_STATUS <<_ACEOF
26688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26690 # trailing colons and then remove the whole line if VPATH becomes empty
26691 # (actually we leave an empty line to preserve line numbers).
26692 if test "x$srcdir" = x.
; then
26693 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26694 s/:*\$(srcdir):*/:/
26695 s/:*\${srcdir}:*/:/
26697 s/^\([^=]*=[ ]*\):*/\1/
26703 cat >>$CONFIG_STATUS <<\_ACEOF
26704 fi # test -n "$CONFIG_FILES"
26707 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26710 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26712 case $ac_mode$ac_tag in
26714 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26715 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26716 { (exit 1); exit 1; }; };;
26717 :[FH
]-) ac_tag
=-:-;;
26718 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26735 -) ac_f
="$tmp/stdin";;
26736 *) # Look for the file first in the build tree, then in the source tree
26737 # (if the path is not absolute). The absolute path cannot be DOS-style,
26738 # because $ac_f cannot contain `:'.
26742 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26744 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26745 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26746 { (exit 1); exit 1; }; };;
26748 ac_file_inputs
="$ac_file_inputs $ac_f"
26751 # Let's still pretend it is `configure' which instantiates (i.e., don't
26752 # use $as_me), people would be surprised to read:
26753 # /* config.h. Generated by config.status. */
26754 configure_input
="Generated from "`IFS=:
26755 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26756 if test x
"$ac_file" != x-
; then
26757 configure_input
="$ac_file. $configure_input"
26758 { echo "$as_me:$LINENO: creating $ac_file" >&5
26759 echo "$as_me: creating $ac_file" >&6;}
26763 *:-:* |
*:-) cat >"$tmp/stdin";;
26768 ac_dir
=`$as_dirname -- "$ac_file" ||
26769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26770 X"$ac_file" : 'X\(//\)[^/]' \| \
26771 X"$ac_file" : 'X\(//\)$' \| \
26772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26778 /^X\(\/\/\)[^/].*/{
26793 -*) as_dir
=.
/$as_dir;;
26795 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26799 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26800 *) as_qdir
=$as_dir;;
26802 as_dirs
="'$as_qdir' $as_dirs"
26803 as_dir
=`$as_dirname -- "$as_dir" ||
26804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26805 X"$as_dir" : 'X\(//\)[^/]' \| \
26806 X"$as_dir" : 'X\(//\)$' \| \
26807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26813 /^X\(\/\/\)[^/].*/{
26826 test -d "$as_dir" && break
26828 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26829 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26830 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26831 { (exit 1); exit 1; }; }; }
26835 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26837 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26838 # A ".." for each directory in $ac_dir_suffix.
26839 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26840 case $ac_top_builddir_sub in
26841 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26842 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26845 ac_abs_top_builddir
=$ac_pwd
26846 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26847 # for backward compatibility:
26848 ac_top_builddir
=$ac_top_build_prefix
26851 .
) # We are building in place.
26853 ac_top_srcdir
=$ac_top_builddir_sub
26854 ac_abs_top_srcdir
=$ac_pwd ;;
26855 [\\/]* | ?
:[\\/]* ) # Absolute name.
26856 ac_srcdir
=$srcdir$ac_dir_suffix;
26857 ac_top_srcdir
=$srcdir
26858 ac_abs_top_srcdir
=$srcdir ;;
26859 *) # Relative name.
26860 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26861 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26862 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26864 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26874 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26875 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26879 cat >>$CONFIG_STATUS <<\_ACEOF
26880 # If the template does not know about datarootdir, expand it.
26881 # FIXME: This hack should be removed a few years after 2.60.
26882 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26884 case `sed -n '/datarootdir/ {
26893 ' $ac_file_inputs` in
26894 *datarootdir
*) ac_datarootdir_seen
=yes;;
26895 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26896 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26897 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26899 cat >>$CONFIG_STATUS <<_ACEOF
26900 ac_datarootdir_hack='
26901 s&@datadir@&$datadir&g
26902 s&@docdir@&$docdir&g
26903 s&@infodir@&$infodir&g
26904 s&@localedir@&$localedir&g
26905 s&@mandir@&$mandir&g
26906 s&\\\${datarootdir}&$datarootdir&g' ;;
26910 # Neutralize VPATH when `$srcdir' = `.'.
26911 # Shell code in configure.ac might set extrasub.
26912 # FIXME: do we really want to maintain this feature?
26913 cat >>$CONFIG_STATUS <<_ACEOF
26917 cat >>$CONFIG_STATUS <<\_ACEOF
26919 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26920 s
&@configure_input@
&$configure_input&;t t
26921 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26922 s
&@srcdir@
&$ac_srcdir&;t t
26923 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26924 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26925 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26926 s
&@builddir@
&$ac_builddir&;t t
26927 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26928 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26929 s
&@INSTALL@
&$ac_INSTALL&;t t
26930 $ac_datarootdir_hack
26931 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26934 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26936 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26937 which seems to be undefined. Please make sure it is defined." >&5
26938 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26939 which seems to be undefined. Please make sure it is defined." >&2;}
26943 -) cat "$tmp/out"; rm -f "$tmp/out";;
26944 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26953 # Transform confdefs.h into a sed script `conftest.defines', that
26954 # substitutes the proper values into config.h.in to produce config.h.
26955 rm -f conftest.defines conftest.
tail
26956 # First, append a space to every undef/define line, to ease matching.
26957 echo 's/$/ /' >conftest.defines
26958 # Then, protect against being on the right side of a sed subst, or in
26959 # an unquoted here document, in config.status. If some macros were
26960 # called several times there might be several #defines for the same
26961 # symbol, which is useless. But do not sort them, since the last
26962 # AC_DEFINE must be honored.
26963 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26964 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26965 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26966 # PARAMS is the parameter list in the macro definition--in most cases, it's
26967 # just an empty string.
26968 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26969 ac_dB
='\\)[ (].*,\\1define\\2'
26977 s/^[ ]*#[ ]*define[ ][ ]*//
26982 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26983 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26984 ' >>conftest.defines
26986 # Remove the space that was appended to ease matching.
26987 # Then replace #undef with comments. This is necessary, for
26988 # example, in the case of _POSIX_SOURCE, which is predefined and required
26989 # on some systems where configure will not decide to define it.
26990 # (The regexp can be short, since the line contains either #define or #undef.)
26992 s,^[ #]*u.*,/* & */,' >>conftest.defines
26994 # Break up conftest.defines:
26995 ac_max_sed_lines
=50
26997 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26998 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26999 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27001 ac_in
='$ac_file_inputs'
27002 ac_out
='"$tmp/out1"'
27003 ac_nxt
='"$tmp/out2"'
27007 # Write a here document:
27008 cat >>$CONFIG_STATUS <<_ACEOF
27009 # First, check the format of the line:
27010 cat >"\$tmp/defines.sed" <<\\CEOF
27011 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27012 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27016 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27018 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27019 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27020 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27021 grep . conftest.
tail >/dev
/null ||
break
27022 rm -f conftest.defines
27023 mv conftest.
tail conftest.defines
27025 rm -f conftest.defines conftest.
tail
27027 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27028 cat >>$CONFIG_STATUS <<\_ACEOF
27029 if test x
"$ac_file" != x-
; then
27030 echo "/* $configure_input */" >"$tmp/config.h"
27031 cat "$ac_result" >>"$tmp/config.h"
27032 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27033 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27034 echo "$as_me: $ac_file is unchanged" >&6;}
27037 mv "$tmp/config.h" $ac_file
27040 echo "/* $configure_input */"
27052 { (exit 0); exit 0; }
27054 chmod +x
$CONFIG_STATUS
27055 ac_clean_files
=$ac_clean_files_save
27058 # configure is writing to config.log, and then calls config.status.
27059 # config.status does its own redirection, appending to config.log.
27060 # Unfortunately, on DOS this fails, as config.log is still kept open
27061 # by configure, so config.status won't be able to write to it; its
27062 # output is simply discarded. So we exec the FD to /dev/null,
27063 # effectively closing config.log, so it can be properly (re)opened and
27064 # appended to by config.status. When coming back to configure, we
27065 # need to make the FD available again.
27066 if test "$no_create" != yes; then
27068 ac_config_status_args
=
27069 test "$silent" = yes &&
27070 ac_config_status_args
="$ac_config_status_args --quiet"
27072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27075 # would make configure fail if this is the last instruction.
27076 $ac_cs_success ||
{ (exit 1); exit 1; }
27080 echo "creating Modules/Setup"
27081 if test ! -f Modules
/Setup
27083 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27086 echo "creating Modules/Setup.local"
27087 if test ! -f Modules
/Setup.
local
27089 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27092 echo "creating Makefile"
27093 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27094 -s Modules Modules
/Setup.config \
27095 Modules
/Setup.
local Modules
/Setup
27096 mv config.c Modules