2 # From configure.in Revision: 57904 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.6'
579 PACKAGE_STRING
='python 2.6'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKPREFIX
663 PYTHONFRAMEWORKINSTALLDIR
664 FRAMEWORKINSTALLFIRST
666 FRAMEWORKALTINSTALLFIRST
667 FRAMEWORKALTINSTALLLAST
668 FRAMEWORKUNIXTOOLSPREFIX
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
724 HAVE_GETHOSTBYNAME_R_6_ARG
725 HAVE_GETHOSTBYNAME_R_5_ARG
726 HAVE_GETHOSTBYNAME_R_3_ARG
736 ac_precious_vars
='build_alias
747 # Initialize some variables set by options.
749 ac_init_version
=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
759 program_transform_name
=s
,x
,x
,
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir
='${exec_prefix}/bin'
774 sbindir
='${exec_prefix}/sbin'
775 libexecdir
='${exec_prefix}/libexec'
776 datarootdir
='${prefix}/share'
777 datadir
='${datarootdir}'
778 sysconfdir
='${prefix}/etc'
779 sharedstatedir
='${prefix}/com'
780 localstatedir
='${prefix}/var'
781 includedir
='${prefix}/include'
782 oldincludedir
='/usr/include'
783 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir
='${datarootdir}/info'
789 libdir
='${exec_prefix}/lib'
790 localedir
='${datarootdir}/locale'
791 mandir
='${datarootdir}/man'
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\
$ac_option
805 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
815 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
817 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
820 -build |
--build |
--buil |
--bui |
--bu)
821 ac_prev
=build_alias
;;
822 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
823 build_alias
=$ac_optarg ;;
825 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
826 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
827 ac_prev
=cache_file
;;
828 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
829 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
830 cache_file
=$ac_optarg ;;
833 cache_file
=config.cache
;;
835 -datadir |
--datadir |
--datadi |
--datad)
837 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
838 datadir
=$ac_optarg ;;
840 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
841 |
--dataroo |
--dataro |
--datar)
842 ac_prev
=datarootdir
;;
843 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
844 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
845 datarootdir
=$ac_optarg ;;
847 -disable-* |
--disable-*)
848 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_
$ac_feature=no
;;
856 -docdir |
--docdir |
--docdi |
--doc |
--do)
858 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
861 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
863 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
866 -enable-* |
--enable-*)
867 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_
$ac_feature=\
$ac_optarg ;;
875 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
876 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
877 |
--exec |
--exe |
--ex)
878 ac_prev
=exec_prefix
;;
879 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
880 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
881 |
--exec=* |
--exe=* |
--ex=*)
882 exec_prefix
=$ac_optarg ;;
884 -gas |
--gas |
--ga |
--g)
885 # Obsolete; use --with-gas.
888 -help |
--help |
--hel |
--he |
-h)
890 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
891 ac_init_help
=recursive
;;
892 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
893 ac_init_help
=short
;;
895 -host |
--host |
--hos |
--ho)
896 ac_prev
=host_alias
;;
897 -host=* |
--host=* |
--hos=* |
--ho=*)
898 host_alias
=$ac_optarg ;;
900 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
902 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
904 htmldir
=$ac_optarg ;;
906 -includedir |
--includedir |
--includedi |
--included |
--include \
907 |
--includ |
--inclu |
--incl |
--inc)
908 ac_prev
=includedir
;;
909 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
910 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
911 includedir
=$ac_optarg ;;
913 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
915 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
916 infodir
=$ac_optarg ;;
918 -libdir |
--libdir |
--libdi |
--libd)
920 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
923 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
924 |
--libexe |
--libex |
--libe)
925 ac_prev
=libexecdir
;;
926 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
927 |
--libexe=* |
--libex=* |
--libe=*)
928 libexecdir
=$ac_optarg ;;
930 -localedir |
--localedir |
--localedi |
--localed |
--locale)
932 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
933 localedir
=$ac_optarg ;;
935 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
936 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
937 ac_prev
=localstatedir
;;
938 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
939 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
940 localstatedir
=$ac_optarg ;;
942 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
944 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
948 # Obsolete; use --without-fp.
951 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
952 |
--no-cr |
--no-c |
-n)
955 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
956 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
959 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
960 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
961 |
--oldin |
--oldi |
--old |
--ol |
--o)
962 ac_prev
=oldincludedir
;;
963 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
964 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
965 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
966 oldincludedir
=$ac_optarg ;;
968 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
970 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
973 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
974 |
--program-pre |
--program-pr |
--program-p)
975 ac_prev
=program_prefix
;;
976 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
977 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
978 program_prefix
=$ac_optarg ;;
980 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
981 |
--program-suf |
--program-su |
--program-s)
982 ac_prev
=program_suffix
;;
983 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
984 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
985 program_suffix
=$ac_optarg ;;
987 -program-transform-name |
--program-transform-name \
988 |
--program-transform-nam |
--program-transform-na \
989 |
--program-transform-n |
--program-transform- \
990 |
--program-transform |
--program-transfor \
991 |
--program-transfo |
--program-transf \
992 |
--program-trans |
--program-tran \
993 |
--progr-tra |
--program-tr |
--program-t)
994 ac_prev
=program_transform_name
;;
995 -program-transform-name=* |
--program-transform-name=* \
996 |
--program-transform-nam=* |
--program-transform-na=* \
997 |
--program-transform-n=* |
--program-transform-=* \
998 |
--program-transform=* |
--program-transfor=* \
999 |
--program-transfo=* |
--program-transf=* \
1000 |
--program-trans=* |
--program-tran=* \
1001 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1002 program_transform_name
=$ac_optarg ;;
1004 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1006 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1007 pdfdir
=$ac_optarg ;;
1009 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1011 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1014 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1015 |
-silent |
--silent |
--silen |
--sile |
--sil)
1018 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1020 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1022 sbindir
=$ac_optarg ;;
1024 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1025 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1026 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1028 ac_prev
=sharedstatedir
;;
1029 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1030 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1031 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1033 sharedstatedir
=$ac_optarg ;;
1035 -site |
--site |
--sit)
1037 -site=* |
--site=* |
--sit=*)
1040 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1042 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1043 srcdir
=$ac_optarg ;;
1045 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1046 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1047 ac_prev
=sysconfdir
;;
1048 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1049 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1050 sysconfdir
=$ac_optarg ;;
1052 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1053 ac_prev
=target_alias
;;
1054 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1055 target_alias
=$ac_optarg ;;
1057 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1060 -version |
--version |
--versio |
--versi |
--vers |
-V)
1061 ac_init_version
=: ;;
1064 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=\
$ac_optarg ;;
1072 -without-* |
--without-*)
1073 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_
$ac_package=no
;;
1082 # Obsolete; use --with-x.
1085 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1086 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1087 ac_prev
=x_includes
;;
1088 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1089 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1090 x_includes
=$ac_optarg ;;
1092 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1093 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1094 ac_prev
=x_libraries
;;
1095 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1096 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1097 x_libraries
=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1105 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\
$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 if test -n "$ac_prev"; then
1125 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val
=\$
$ac_var
1138 [\\/$
]* | ?
:[\\/]* ) continue;;
1139 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1150 target
=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x
; then
1154 if test "x$build_alias" = x
; then
1155 cross_compiling
=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1164 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1166 test "$silent" = yes && exec 6>/dev
/null
1169 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di
=`ls -di .` &&
1171 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted
=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir
=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1211 ac_srcdir_defaulted
=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1231 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 for ac_var
in $ac_precious_vars; do
1234 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1236 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1247 \`configure' configures python 2.6 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive
) echo "Configuration of python 2.6:";;
1313 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1314 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1315 --enable-universalsdk[SDKDIR
]
1316 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
1317 --enable-framework[=INSTALLDIR
]
1318 Build
(MacOSX|Darwin
) framework
1319 --enable-shared disable
/enable building shared python library
1320 --enable-profiling enable C-level code profiling
1321 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1322 --enable-ipv6 Enable ipv6
(with ipv4
) support
1323 --disable-ipv6 Disable ipv6 support
1324 --enable-unicode[=ucs
[24]]
1325 Enable Unicode
strings (default is
yes)
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc never use gcc
1331 --with-cxx-main=<compiler
>
1332 compile main
() and link python executable with C
++
1334 --with-suffix=.exe
set executable suffix
1335 --with-pydebug build with Py_DEBUG defined
1336 --with-libs='lib1 ...' link against additional libs
1337 --with-system-ffi build _ctypes module using an installed ffi library
1338 --with-signal-module disable
/enable signal module
1339 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1340 --with(out
)-threads[=DIRECTORY
]
1341 disable
/enable thread support
1342 --with(out
)-thread[=DIRECTORY
]
1343 deprecated
; use
--with(out
)-threads
1344 --with-pth use GNU pth threading libraries
1345 --with(out
)-doc-strings disable
/enable documentation
strings
1346 --with(out
)-tsc enable
/disable timestamp counter profile
1347 --with(out
)-pymalloc disable
/enable specialized mallocs
1348 --with-wctype-functions use wctype.h functions
1349 --with-fpectl enable SIGFPE catching
1350 --with-libm=STRING math library
1351 --with-libc=STRING C library
1353 Some influential environment variables
:
1354 CC C compiler
command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1357 nonstandard directory
<lib dir
>
1358 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1359 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1360 you have headers
in a nonstandard directory
<include dir
>
1363 Use these variables to override the choices made by
`configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <http://www.python.org/python-bugs>.
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" || continue
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1394 .) # We are building in place.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1427 python configure 2.6
1428 generated by GNU Autoconf 2.61
1430 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1431 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1437 cat >config.log <<_ACEOF
1438 This file contains any messages produced by compilers while
1439 running configure, to aid debugging if configure makes a mistake.
1441 It was created by python $as_me 2.6, which was
1442 generated by GNU Autoconf 2.61. Invocation command line was
1454 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1455 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1456 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1457 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1458 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1460 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1461 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1463 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1465 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1467 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1469 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 echo "PATH: $as_dir"
1494 # Keep a trace of the command line.
1495 # Strip out --no-create and --no-recursion so they do not pile up.
1496 # Strip out --silent because we don't want to record it for future runs.
1497 # Also quote any args containing shell meta-characters.
1498 # Make two passes to allow for proper duplicate-argument suppression.
1502 ac_must_keep_next=false
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1513 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
1520 ac_must_keep_next=false # Got value, back to normal.
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531 -* ) ac_must_keep_next=true ;;
1534 ac_configure_args="$ac_configure_args '$ac_arg'"
1539 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542 # When interrupted or exit'd, cleanup temporary files, and complete
1543 # config.log. We remove comments because anyway the quotes in there
1544 # would cause problems or look ugly.
1545 # WARNING: Use '\'' to represent an apostrophe within the trap.
1546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1547 trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1553 ## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##
1558 # The following way of writing the cache mishandles newlines in values,
1560 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1561 eval ac_val=\$$ac_var
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1575 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1590 ## ----------------- ##
1591 ## Output variables. ##
1592 ## ----------------- ##
1595 for ac_var in $ac_subst_vars
1597 eval ac_val=\$$ac_var
1599 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 echo "$ac_var='\''$ac_val'\''"
1605 if test -n "$ac_subst_files"; then
1607 ## ------------------- ##
1608 ## File substitutions. ##
1609 ## ------------------- ##
1612 for ac_var in $ac_subst_files
1614 eval ac_val=\$$ac_var
1616 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 echo "$ac_var='\''$ac_val'\''"
1623 if test -s confdefs.h; then
1633 test "$ac_signal" != 0 &&
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1641 for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1647 rm -f -r conftest* confdefs.h
1649 # Predefined preprocessor variables.
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_NAME "$PACKAGE_NAME"
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_STRING "$PACKAGE_STRING"
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1676 # Let the site file select an alternate cache file if it wants to.
1677 # Prefer explicitly selected file to automatically selected ones.
1678 if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680 elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
1689 if test -r "$ac_site_file"; then
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691 echo "$as_me: loading site script $ac_site_file" >&6;}
1692 sed 's/^/| /' "$ac_site_file" >&5
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702 echo "$as_me: loading cache $cache_file" >&6;}
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710 echo "$as_me: creating cache $cache_file" >&6;}
1714 # Check that the precious variables saved in the cache have kept the same
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1725 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1729 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1736 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1737 echo "$as_me: former value
: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1739 echo "$as_me: current value
: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1757 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1758 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers pyconfig.h"
1803 # We don't use PACKAGE_ variables, and they cause conflicts
1804 # with other autoconf-based packages that include Python.h
1805 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1807 mv confdefs.h.new confdefs.h
1815 # The later defininition of _XOPEN_SOURCE disables certain features
1816 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1818 cat >>confdefs.h <<\_ACEOF
1819 #define _GNU_SOURCE 1
1823 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1824 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _NETBSD_SOURCE 1
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1836 cat >>confdefs.h <<\_ACEOF
1837 #define __BSD_VISIBLE 1
1841 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
1842 # also defined. This can be overridden by defining _BSD_SOURCE
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _BSD_SOURCE 1
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1852 cat >>confdefs.h <<\_ACEOF
1853 #define _BSD_TYPES 1
1857 define_xopen_source=yes
1859 # Arguments passed to configure.
1861 CONFIG_ARGS="$ac_configure_args"
1863 # Check whether --enable-universalsdk was given.
1864 if test "${enable_universalsdk+set}" = set; then
1865 enableval=$enable_universalsdk;
1868 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1874 enable_universalsdk=
1877 UNIVERSALSDK=$enableval
1884 enable_universalsdk=
1890 # Check whether --enable-framework was given.
1891 if test "${enable_framework+set}" = set; then
1892 enableval=$enable_framework;
1895 enableval=/Library/Frameworks
1900 PYTHONFRAMEWORKDIR=no-framework
1901 PYTHONFRAMEWORKPREFIX=
1902 PYTHONFRAMEWORKINSTALLDIR=
1903 FRAMEWORKINSTALLFIRST=
1904 FRAMEWORKINSTALLLAST=
1905 FRAMEWORKALTINSTALLFIRST=
1906 FRAMEWORKALTINSTALLLAST=
1907 if test "x${prefix}" = "xNONE"; then
1908 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1910 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1915 PYTHONFRAMEWORK=Python
1916 PYTHONFRAMEWORKDIR=Python.framework
1917 PYTHONFRAMEWORKPREFIX=$enableval
1918 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1919 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1920 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1921 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1922 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1923 if test "x${prefix}" = "xNONE" ; then
1924 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1926 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1928 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1930 # Add makefiles for Mac specific code to the list of output
1932 ac_config_files="$ac_config_files Mac/Makefile"
1934 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1936 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1943 PYTHONFRAMEWORKDIR=no-framework
1944 PYTHONFRAMEWORKPREFIX=
1945 PYTHONFRAMEWORKINSTALLDIR=
1946 FRAMEWORKINSTALLFIRST=
1947 FRAMEWORKINSTALLLAST=
1948 FRAMEWORKALTINSTALLFIRST=
1949 FRAMEWORKALTINSTALLLAST=
1950 if test "x${prefix}" = "xNONE" ; then
1951 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1953 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1970 ## AC_HELP_STRING(--with-dyld,
1971 ## Use (OpenStep|Rhapsody) dynamic linker))
1973 # Set name for machine-dependent library files
1975 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1976 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1977 if test -z "$MACHDEP"
1979 ac_sys_system=`uname
-s`
1980 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1981 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1982 ac_sys_release=`uname
-v`
1984 ac_sys_release=`uname
-r`
1986 ac_md_system=`echo $ac_sys_system |
1987 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
1988 ac_md_release=`echo $ac_sys_release |
1989 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
1990 MACHDEP="$ac_md_system$ac_md_release"
1993 cygwin*) MACHDEP="cygwin";;
1994 darwin*) MACHDEP="darwin";;
1995 atheos*) MACHDEP="atheos";;
1996 irix646) MACHDEP="irix6";;
1997 '') MACHDEP="unknown";;
2001 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2002 # disable features if it is defined, without any means to access these
2003 # features as extensions. For these systems, we skip the definition of
2004 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2005 # some feature, make sure there is no alternative way to access this
2006 # feature. Also, when using wildcards, make sure you have verified the
2007 # need for not defining _XOPEN_SOURCE on all systems matching the
2008 # wildcard, and that the wildcard does not include future systems
2009 # (which may remove their limitations).
2010 case $ac_sys_system/$ac_sys_release in
2011 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2012 # even though select is a POSIX function. Reported by J. Ribbens.
2013 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2014 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2015 define_xopen_source=no;;
2016 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2017 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2019 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2020 define_xopen_source=no;;
2021 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2022 # of union __?sigval. Reported by Stuart Bishop.
2024 define_xopen_source=no;;
2025 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2026 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2027 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2028 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2029 define_xopen_source=no;;
2030 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2031 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2033 define_xopen_source=no;;
2034 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2035 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2036 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2037 # This should hopefully be fixed in FreeBSD 4.9
2038 FreeBSD/4.8* | Darwin/6* )
2039 define_xopen_source=no;;
2040 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2041 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2042 # or has another value. By not (re)defining it, the defaults come in place.
2044 define_xopen_source=no;;
2046 if test `uname
-r` -eq 1; then
2047 define_xopen_source=no
2050 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2051 # disables platform specific features beyond repair.
2052 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2053 # has no effect, don't bother defining them
2055 define_xopen_source=no
2060 if test $define_xopen_source = yes
2062 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2063 # defined precisely as g++ defines it
2064 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2066 case $ac_sys_system/$ac_sys_release in
2067 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2069 cat >>confdefs.h <<\_ACEOF
2070 #define _XOPEN_SOURCE 500
2076 cat >>confdefs.h <<\_ACEOF
2077 #define _XOPEN_SOURCE 600
2083 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2084 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2085 # several APIs are not declared. Since this is also needed in some
2086 # cases for HP-UX, we define it globally.
2087 # except for Solaris 10, where it must not be defined,
2088 # as it implies XPG4.2
2089 case $ac_sys_system/$ac_sys_release in
2094 cat >>confdefs.h <<\_ACEOF
2095 #define _XOPEN_SOURCE_EXTENDED 1
2102 cat >>confdefs.h <<\_ACEOF
2103 #define _POSIX_C_SOURCE 200112L
2110 # SGI compilers allow the specification of the both the ABI and the
2111 # ISA on the command line. Depending on the values of these switches,
2112 # different and often incompatable code will be generated.
2114 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2115 # thus supply support for various ABI/ISA combinations. The MACHDEP
2116 # variable is also adjusted.
2119 if test ! -z "$SGI_ABI"
2122 LDFLAGS="$SGI_ABI $LDFLAGS"
2123 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2125 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2126 echo "${ECHO_T}$MACHDEP" >&6; }
2128 # And add extra plat-mac for darwin
2131 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2132 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2133 if test -z "$EXTRAPLATDIR"
2137 EXTRAPLATDIR="\$(PLATMACDIRS)"
2138 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2146 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2147 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2149 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2150 # it may influence the way we can build extensions, so distutils
2154 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2155 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2157 # checks for alternative programs
2159 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2160 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2161 # just to get things to compile and link. Users are free to override OPT
2162 # when running configure or make. The build should not break if they do.
2163 # BASECFLAGS should generally not be messed with, however.
2165 # XXX shouldn't some/most/all of this code be merged with the stuff later
2166 # on that fiddles with OPT and BASECFLAGS?
2167 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2168 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2170 # Check whether --with-gcc was given.
2171 if test "${with_gcc+set}" = set; then
2179 without_gcc=$withval;;
2183 case $ac_sys_system in
2187 case $BE_HOST_CPU in
2191 BASECFLAGS="$BASECFLAGS -export pragma"
2193 LDFLAGS="$LDFLAGS -nodup"
2201 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2202 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2203 { (exit 1); exit 1; }; }
2206 AR="\$(srcdir)/Modules/ar_beos"
2216 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2217 echo "${ECHO_T}$without_gcc" >&6; }
2219 # If the user switches compilers, we can't believe the cache
2220 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2222 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2223 (it is also a good idea to do 'make clean' before compiling)" >&5
2224 echo "$as_me: error: cached CC is different -- throw away $cache_file
2225 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2226 { (exit 1); exit 1; }; }
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2273 if test -z "$ac_cv_prog_CC"; then
2275 # Extract the first word of "gcc", so it can be a program name with args.
2276 set dummy gcc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_ac_ct_CC="gcc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2311 if test "x$ac_ct_CC" = x; then
2314 case $cross_compiling:$ac_tool_warned in
2316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet. If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&5
2319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2320 whose name does not start with the host triplet. If you think this
2321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2322 ac_tool_warned=yes ;;
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2333 set dummy ${ac_tool_prefix}cc; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_CC="${ac_tool_prefix}cc"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test -n "$CC"; then
2361 { echo "$as_me:$LINENO: result: $CC" >&5
2362 echo "${ECHO_T}$CC" >&6; }
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 if test $ac_prog_rejected = yes; then
2403 # We found a bogon in the path, so make sure we never use it.
2404 set dummy $ac_cv_prog_CC
2406 if test $# != 0; then
2407 # We chose a different compiler from the bogus one.
2408 # However, it has the same basename, so the bogon will be chosen
2409 # first if we set CC to just the basename; use the full file name.
2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417 if test -n "$CC"; then
2418 { echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6; }
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2427 if test -z "$CC"; then
2428 if test -n "$ac_tool_prefix"; then
2429 for ac_prog in cl.exe
2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 if test -n "$CC"; then
2460 { echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2468 test -n "$CC" && break
2471 if test -z "$CC"; then
2473 for ac_prog in cl.exe
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2512 test -n "$ac_ct_CC" && break
2515 if test "x$ac_ct_CC" = x; then
2518 case $cross_compiling:$ac_tool_warned in
2520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2535 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2536 See \`config.log
' for more details." >&5
2537 echo "$as_me: error: no acceptable C compiler found in \$PATH
2538 See \`config.log' for more details.
" >&2;}
2539 { (exit 1); exit 1; }; }
2541 # Provide some information about the compiler.
2542 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (ac_try="$ac_compiler --version >&5"
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compiler --version >&5") 2>&5
2552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2553 (exit $ac_status); }
2554 { (ac_try="$ac_compiler -v >&5"
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compiler -v >&5") 2>&5
2562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2563 (exit $ac_status); }
2564 { (ac_try="$ac_compiler -V >&5"
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compiler -V >&5") 2>&5
2572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2573 (exit $ac_status); }
2575 cat >conftest.$ac_ext <<_ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2590 ac_clean_files_save=$ac_clean_files
2591 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2592 # Try to create an executable without -o first, disregard a.out.
2593 # It will help us diagnose broken compilers, and finding out an intuition
2595 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2596 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2597 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2599 # List of possible output files, starting from the most likely.
2600 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2601 # only as a last resort. b.out is created by i960 compilers.
2602 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2604 # The IRIX 6 linker writes into existing files which may not be
2605 # executable, retaining their permissions. Remove them first so a
2606 # subsequent execution test works.
2608 for ac_file in $ac_files
2611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2612 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2617 if { (ac_try="$ac_link_default"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_link_default") 2>&5
2625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2626 (exit $ac_status); }; then
2627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2630 # so that the user can short-circuit this test for compilers unknown to
2632 for ac_file in $ac_files ''
2634 test -f "$ac_file" || continue
2636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2639 # We found the default executable, but exeext='' is most
2643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647 # We set ac_cv_exeext here because the later test for it is not
2648 # safe: cross compilers may not add the suffix if given an `-o'
2649 # argument, so we may need to know it at that point already.
2650 # Even if this section looks crufty: it has the advantage of
2657 test "$ac_cv_exeext" = no && ac_cv_exeext=
2663 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2664 echo "${ECHO_T}$ac_file" >&6; }
2665 if test -z "$ac_file"; then
2666 echo "$as_me: failed program was
:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2670 See \
`config.log' for more details." >&5
2671 echo "$as_me: error: C compiler cannot create executables
2672 See \`config.log
' for more details." >&2;}
2673 { (exit 77); exit 77; }; }
2676 ac_exeext=$ac_cv_exeext
2678 # Check that the compiler produces executables we can run. If not, either
2679 # the compiler is broken, or we cross compile.
2680 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2683 # If not cross compiling, check that we can run a simple program.
2684 if test "$cross_compiling" != yes; then
2685 if { ac_try='.
/$ac_file'
2686 { (case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_try") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2697 if test "$cross_compiling" = maybe; then
2700 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2701 If you meant to cross compile, use \`--host'.
2702 See \
`config.log' for more details." >&5
2703 echo "$as_me: error: cannot run C compiled programs.
2704 If you meant to cross compile, use \`--host'.
2705 See \`config.log' for more details.
" >&2;}
2706 { (exit 1); exit 1; }; }
2710 { echo "$as_me:$LINENO: result
: yes" >&5
2711 echo "${ECHO_T}yes" >&6; }
2713 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2714 ac_clean_files=$ac_clean_files_save
2715 # Check that the compiler produces executables we can run. If not, either
2716 # the compiler is broken, or we cross compile.
2717 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2718 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2719 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2720 echo "${ECHO_T}$cross_compiling" >&6; }
2722 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2723 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2724 if { (ac_try="$ac_link"
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_link") 2>&5
2732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2733 (exit $ac_status); }; then
2734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2738 for ac_file in conftest.exe conftest conftest.*; do
2739 test -f "$ac_file" || continue
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2749 See \
`config.log' for more details." >&5
2750 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2751 See \`config.log
' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2755 rm -f conftest$ac_cv_exeext
2756 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2757 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2759 rm -f conftest.$ac_ext
2760 EXEEXT=$ac_cv_exeext
2762 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2763 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2764 if test "${ac_cv_objext+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.o conftest.obj
2783 if { (ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; then
2793 for ac_file in conftest.o conftest.obj conftest.*; do
2794 test -f "$ac_file" || continue;
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2797 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2802 echo "$as_me: failed program was:" >&5
2803 sed 's
/^
/|
/' conftest.$ac_ext >&5
2805 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2806 See \`config.log' for more details.
" >&5
2807 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2808 See \
`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2812 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2815 echo "${ECHO_T}$ac_cv_objext" >&6; }
2816 OBJEXT=$ac_cv_objext
2818 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2819 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2820 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2841 rm -f conftest.$ac_objext
2842 if { (ac_try="$ac_compile"
2844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2845 *) ac_try_echo
=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compile") 2>conftest.er1
2850 grep -v '^ *+' conftest.er1
>conftest.err
2852 cat conftest.err
>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.
$ac_objext; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2867 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2870 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2872 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2873 ac_test_CFLAGS
=${CFLAGS+set}
2874 ac_save_CFLAGS
=$CFLAGS
2875 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_cc_g+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 ac_save_c_werror_flag
=$ac_c_werror_flag
2881 ac_c_werror_flag
=yes
2884 cat >conftest.
$ac_ext <<_ACEOF
2887 cat confdefs.h
>>conftest.
$ac_ext
2888 cat >>conftest.
$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2899 rm -f conftest.
$ac_objext
2900 if { (ac_try
="$ac_compile"
2902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest.$ac_objext; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2941 *) ac_try_echo
=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2946 grep -v '^ *+' conftest.er1
>conftest.err
2948 cat conftest.err
>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.
$ac_objext; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.
$ac_ext >&5
2959 ac_c_werror_flag
=$ac_save_c_werror_flag
2961 cat >conftest.
$ac_ext <<_ACEOF
2964 cat confdefs.h
>>conftest.
$ac_ext
2965 cat >>conftest.
$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2976 rm -f conftest.
$ac_objext
2977 if { (ac_try
="$ac_compile"
2979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_c_werror_flag=$ac_save_c_werror_flag
3010 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3011 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3012 if test "$ac_test_CFLAGS" = set; then
3013 CFLAGS=$ac_save_CFLAGS
3014 elif test $ac_cv_prog_cc_g = yes; then
3015 if test "$GCC" = yes; then
3021 if test "$GCC" = yes; then
3027 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3028 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cc_c89+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_cv_prog_cc_c89=no
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3042 #include <sys/types.h>
3043 #include <sys/stat.h>
3044 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3045 struct buf { int x; };
3046 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3047 static char *e (p, i)
3053 static char *f (char * (*g) (char **, int), char **p, ...)
3058 s = g (p, va_arg (v,int));
3063 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3064 function prototypes and stuff, but not '\xHH' hex character constants.
3065 These don't provoke an error unfortunately, instead are silently treated
3066 as 'x'. The following induces an error, until -std is added to get
3067 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3068 array size at least. It's necessary to write '\x00'==0 to get something
3069 that's true only with -std. */
3070 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3072 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3073 inside strings and character constants. */
3075 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3077 int test (int i, double x);
3078 struct s1 {int (*f) (int a);};
3079 struct s2 {int (*f) (double a);};
3080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3091 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3092 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3094 CC="$ac_save_CC $ac_arg"
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3099 *) ac_try_echo
=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1
>conftest.err
3106 cat conftest.err
>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.
$ac_objext; then
3112 ac_cv_prog_cc_c89
=$ac_arg
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3120 rm -f core conftest.err conftest.
$ac_objext
3121 test "x$ac_cv_prog_cc_c89" != "xno" && break
3123 rm -f conftest.
$ac_ext
3128 case "x$ac_cv_prog_cc_c89" in
3130 { echo "$as_me:$LINENO: result: none needed" >&5
3131 echo "${ECHO_T}none needed" >&6; } ;;
3133 { echo "$as_me:$LINENO: result: unsupported" >&5
3134 echo "${ECHO_T}unsupported" >&6; } ;;
3136 CC
="$CC $ac_cv_prog_cc_c89"
3137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3138 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3143 ac_cpp
='$CPP $CPPFLAGS'
3144 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3151 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3152 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3154 # Check whether --with-cxx_main was given.
3155 if test "${with_cxx_main+set}" = set; then
3156 withval
=$with_cxx_main;
3159 no
) with_cxx_main
=no
3161 yes) with_cxx_main
=yes
3163 *) with_cxx_main
=yes
3177 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3178 echo "${ECHO_T}$with_cxx_main" >&6; }
3184 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3185 set dummy g
++; ac_word
=$2
3186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3188 if test "${ac_cv_path_CXX+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3197 for as_dir
in notfound
3200 test -z "$as_dir" && as_dir
=.
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3216 if test -n "$CXX"; then
3217 { echo "$as_me:$LINENO: result: $CXX" >&5
3218 echo "${ECHO_T}$CXX" >&6; }
3220 { echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6; }
3225 cc
) # Extract the first word of "c++", so it can be a program name with args.
3226 set dummy c
++; ac_word
=$2
3227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3238 for as_dir
in notfound
3241 test -z "$as_dir" && as_dir
=.
3242 for ac_exec_ext
in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3257 if test -n "$CXX"; then
3258 { echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6; }
3261 { echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6; }
3267 if test "$CXX" = "notfound"
3274 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy
$ac_prog; ac_word
=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_CXX+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if test -n "$CXX"; then
3284 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_CXX
="$ac_prog"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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 test -n "$CXX" && break
3315 test -n "$CXX" || CXX
="notfound"
3317 if test "$CXX" = "notfound"
3322 if test "$preset_cxx" != "$CXX"
3324 { echo "$as_me:$LINENO: WARNING:
3326 By default, distutils will build C++ extension modules with \"$CXX\".
3327 If this is not intended, then set CXX on the configure command line.
3329 echo "$as_me: WARNING:
3331 By default, distutils will build C++ extension modules with \"$CXX\".
3332 If this is not intended, then set CXX on the configure command line.
3337 # checks for UNIX variants that set C preprocessor variables
3340 ac_cpp
='$CPP $CPPFLAGS'
3341 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3344 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3345 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3346 # On Suns, sometimes $CPP names a directory.
3347 if test -n "$CPP" && test -d "$CPP"; then
3350 if test -z "$CPP"; then
3351 if test "${ac_cv_prog_CPP+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 # Double quotes because CPP needs to be expanded
3355 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3358 for ac_c_preproc_warn_flag
in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.
$ac_ext <<_ACEOF
3369 cat confdefs.h
>>conftest.
$ac_ext
3370 cat >>conftest.
$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3373 # include <limits.h>
3375 # include <assert.h>
3379 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3419 *) ac_try_echo
=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424 grep -v '^ *+' conftest.er1
>conftest.err
3426 cat conftest.err
>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev
/null
&& {
3429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.
$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.
$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.
$ac_ext
3448 if $ac_preproc_ok; then
3460 { echo "$as_me:$LINENO: result: $CPP" >&5
3461 echo "${ECHO_T}$CPP" >&6; }
3463 for ac_c_preproc_warn_flag
in '' yes
3465 # Use a header file that comes with gcc, so configuring glibc
3466 # with a fresh cross-compiler works.
3467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468 # <limits.h> exists even on freestanding compilers.
3469 # On the NeXT, cc -E runs the code through the compiler's parser,
3470 # not just through cpp. "Syntax error" is here to catch this case.
3471 cat >conftest.
$ac_ext <<_ACEOF
3474 cat confdefs.h
>>conftest.
$ac_ext
3475 cat >>conftest.
$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3478 # include <limits.h>
3480 # include <assert.h>
3484 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3492 grep -v '^ *+' conftest.er1 >conftest.err
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } >/dev/null && {
3497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3498 test ! -s conftest.err
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Broken: fails on valid input.
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3524 *) ac_try_echo
=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1
>conftest.err
3531 cat conftest.err
>&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev
/null
&& {
3534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3537 # Broken: success on invalid input.
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.
$ac_ext >&5
3543 # Passes both tests.
3548 rm -f conftest.err conftest.
$ac_ext
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.err conftest.
$ac_ext
3553 if $ac_preproc_ok; then
3556 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details." >&5
3558 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }
3564 ac_cpp
='$CPP $CPPFLAGS'
3565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3570 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3571 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3572 if test "${ac_cv_path_GREP+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 # Extract the first word of "grep ggrep" to use in msg output
3576 if test -z "$GREP"; then
3577 set dummy
grep ggrep
; ac_prog_name
=$2
3578 if test "${ac_cv_path_GREP+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 ac_path_GREP_found
=false
3582 # Loop through the user's path and test for each of PROGNAME-LIST
3583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3584 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3587 test -z "$as_dir" && as_dir
=.
3588 for ac_prog
in grep ggrep
; do
3589 for ac_exec_ext
in '' $ac_executable_extensions; do
3590 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3591 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3592 # Check for GNU ac_path_GREP and select it if it is found.
3593 # Check for GNU $ac_path_GREP
3594 case `"$ac_path_GREP" --version 2>&1` in
3596 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3599 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3602 cat "conftest.in" "conftest.in" >"conftest.tmp"
3603 mv "conftest.tmp" "conftest.in"
3604 cp "conftest.in" "conftest.nl"
3605 echo 'GREP' >> "conftest.nl"
3606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3607 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3608 ac_count
=`expr $ac_count + 1`
3609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3610 # Best one so far, save it but keep looking for a better one
3611 ac_cv_path_GREP
="$ac_path_GREP"
3612 ac_path_GREP_max
=$ac_count
3614 # 10*(2^10) chars as input seems more than enough
3615 test $ac_count -gt 10 && break
3617 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3621 $ac_path_GREP_found && break 3
3631 GREP
="$ac_cv_path_GREP"
3632 if test -z "$GREP"; then
3633 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3634 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3635 { (exit 1); exit 1; }; }
3639 ac_cv_path_GREP
=$GREP
3644 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3645 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3646 GREP
="$ac_cv_path_GREP"
3649 { echo "$as_me:$LINENO: checking for egrep" >&5
3650 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3651 if test "${ac_cv_path_EGREP+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3655 then ac_cv_path_EGREP
="$GREP -E"
3657 # Extract the first word of "egrep" to use in msg output
3658 if test -z "$EGREP"; then
3659 set dummy
egrep; ac_prog_name
=$2
3660 if test "${ac_cv_path_EGREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_path_EGREP_found
=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3666 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3669 test -z "$as_dir" && as_dir
=.
3670 for ac_prog
in egrep; do
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3674 # Check for GNU ac_path_EGREP and select it if it is found.
3675 # Check for GNU $ac_path_EGREP
3676 case `"$ac_path_EGREP" --version 2>&1` in
3678 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'EGREP' >> "conftest.nl"
3688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3689 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3690 ac_count
=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_EGREP
="$ac_path_EGREP"
3694 ac_path_EGREP_max
=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3699 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3703 $ac_path_EGREP_found && break 3
3713 EGREP
="$ac_cv_path_EGREP"
3714 if test -z "$EGREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3721 ac_cv_path_EGREP
=$EGREP
3727 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3728 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3729 EGREP
="$ac_cv_path_EGREP"
3733 { echo "$as_me:$LINENO: checking for AIX" >&5
3734 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3735 cat >conftest.
$ac_ext <<_ACEOF
3738 cat confdefs.h
>>conftest.
$ac_ext
3739 cat >>conftest.
$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3747 $EGREP "yes" >/dev
/null
2>&1; then
3748 { echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6; }
3750 cat >>confdefs.h
<<\_ACEOF
3751 #define _ALL_SOURCE 1
3755 { echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6; }
3762 # Check for unsupported systems
3763 case $ac_sys_system/$ac_sys_release in
3765 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3766 echo See README
for details.
3771 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3772 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3774 # Check whether --with-suffix was given.
3775 if test "${with_suffix+set}" = set; then
3776 withval
=$with_suffix;
3780 *) EXEEXT
=$withval;;
3784 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3785 echo "${ECHO_T}$EXEEXT" >&6; }
3787 # Test whether we're running on a non-case-sensitive system, in which
3788 # case we give a warning if no ext is given
3790 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3791 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3792 if test ! -d CaseSensitiveTestDir
; then
3793 mkdir CaseSensitiveTestDir
3796 if test -d casesensitivetestdir
3798 { echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6; }
3802 { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3806 rmdir CaseSensitiveTestDir
3811 gcc
) CC
="$CC -D_HAVE_BSDI";;
3815 case $ac_sys_system in
3818 cc|
*/cc
) CC
="$CC -Ae";;
3822 cc
) CC
="$CC -Wl,-Bexport";;
3825 # Some functions have a prototype only with that define, e.g. confstr
3827 cat >>confdefs.h
<<\_ACEOF
3828 #define __EXTENSIONS__ 1
3836 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3837 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3838 if test -z "$LIBRARY"
3840 LIBRARY
='libpython$(VERSION).a'
3842 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3843 echo "${ECHO_T}$LIBRARY" >&6; }
3845 # LDLIBRARY is the name of the library to link against (as opposed to the
3846 # name of the library into which to insert object files). BLDLIBRARY is also
3847 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3848 # is blank as the main program is not linked directly against LDLIBRARY.
3849 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3850 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3851 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3852 # DLLLIBRARY is the shared (i.e., DLL) library.
3854 # RUNSHARED is used to run shared python without installed libraries
3856 # INSTSONAME is the name of the shared library that will be use to install
3857 # on the system - some systems like version suffix, others don't
3864 LDLIBRARY
="$LIBRARY"
3865 BLDLIBRARY
='$(LDLIBRARY)'
3866 INSTSONAME
='$(LDLIBRARY)'
3871 # LINKCC is the command that links the python executable -- default is $(CC).
3872 # If CXX is set, and if it is needed to link a main function that was
3873 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3874 # python might then depend on the C++ runtime
3875 # This is altered for AIX in order to build the export list before
3878 { echo "$as_me:$LINENO: checking LINKCC" >&5
3879 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3880 if test -z "$LINKCC"
3882 LINKCC
='$(PURIFY) $(MAINCC)'
3883 case $ac_sys_system in
3886 if test $ac_sys_release -ge 5 -o \
3887 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3890 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3892 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3895 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3896 echo "${ECHO_T}$LINKCC" >&6; }
3898 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3899 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3900 # Check whether --enable-shared was given.
3901 if test "${enable_shared+set}" = set; then
3902 enableval
=$enable_shared;
3906 if test -z "$enable_shared"
3908 case $ac_sys_system in
3910 enable_shared
="yes";;
3912 enable_shared
="no";;
3915 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3916 echo "${ECHO_T}$enable_shared" >&6; }
3918 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3919 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3920 # Check whether --enable-profiling was given.
3921 if test "${enable_profiling+set}" = set; then
3922 enableval
=$enable_profiling; ac_save_cc
="$CC"
3924 if test "$cross_compiling" = yes; then
3925 ac_enable_profiling
="no"
3927 cat >conftest.
$ac_ext <<_ACEOF
3930 cat confdefs.h
>>conftest.
$ac_ext
3931 cat >>conftest.
$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 int main() { return 0; }
3935 rm -f conftest
$ac_exeext
3936 if { (ac_try
="$ac_link"
3938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3942 (eval "$ac_link") 2>&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3946 { (case "(($ac_try" in
3947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3948 *) ac_try_echo
=$ac_try;;
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_try") 2>&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_enable_profiling
="yes"
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.
$ac_ext >&5
3962 ac_enable_profiling
="no"
3964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3971 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3972 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3974 case "$ac_enable_profiling" in
3976 BASECFLAGS
="-pg $BASECFLAGS"
3977 LDFLAGS
="-pg $LDFLAGS"
3981 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3982 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3984 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3985 # library that we build, but we do not want to link against it (we
3986 # will find it with a -framework option). For this reason there is an
3987 # extra variable BLDLIBRARY against which Python and the extension
3988 # modules are linked, BLDLIBRARY. This is normally the same as
3989 # LDLIBRARY, but empty for MacOSX framework builds.
3990 if test "$enable_framework"
3992 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3993 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3996 BLDLIBRARY
='$(LDLIBRARY)'
3999 # Other platforms follow
4000 if test $enable_shared = "yes"; then
4002 cat >>confdefs.h
<<\_ACEOF
4003 #define Py_ENABLE_SHARED 1
4006 case $ac_sys_system in
4008 LDLIBRARY
='libpython$(VERSION).so'
4011 LDLIBRARY
='libpython$(VERSION).dll.a'
4012 DLLLIBRARY
='libpython$(VERSION).dll'
4015 LDLIBRARY
='libpython$(VERSION).so'
4016 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4017 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4018 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4020 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4021 LDLIBRARY
='libpython$(VERSION).so'
4022 BLDLIBRARY
='-L. -lpython$(VERSION)'
4023 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4024 case $ac_sys_system in
4026 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4029 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4034 LDLIBRARY
='libpython$(VERSION).so'
4037 LDLIBRARY
='libpython$(VERSION).sl'
4040 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4041 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4044 LDLIBRARY
='libpython$(VERSION).so'
4045 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4046 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4049 LDLIBRARY
='libpython$(VERSION).so'
4050 BLDLIBRARY
='-L. -lpython$(VERSION)'
4051 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4054 else # shared is disabled
4055 case $ac_sys_system in
4057 BLDLIBRARY
='$(LIBRARY)'
4058 LDLIBRARY
='libpython$(VERSION).dll.a'
4063 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4064 echo "${ECHO_T}$LDLIBRARY" >&6; }
4066 if test -n "$ac_tool_prefix"; then
4067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4068 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4071 if test "${ac_cv_prog_RANLIB+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 if test -n "$RANLIB"; then
4075 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir
=.
4082 for ac_exec_ext
in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 RANLIB
=$ac_cv_prog_RANLIB
4095 if test -n "$RANLIB"; then
4096 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4097 echo "${ECHO_T}$RANLIB" >&6; }
4099 { echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6; }
4105 if test -z "$ac_cv_prog_RANLIB"; then
4106 ac_ct_RANLIB
=$RANLIB
4107 # Extract the first word of "ranlib", so it can be a program name with args.
4108 set dummy ranlib
; ac_word
=$2
4109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -n "$ac_ct_RANLIB"; then
4115 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4121 test -z "$as_dir" && as_dir
=.
4122 for ac_exec_ext
in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4135 if test -n "$ac_ct_RANLIB"; then
4136 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4137 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4139 { echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6; }
4143 if test "x$ac_ct_RANLIB" = x
; then
4146 case $cross_compiling:$ac_tool_warned in
4148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4149 whose name does not start with the host triplet. If you think this
4150 configuration is useful to you, please write to autoconf@gnu.org." >&5
4151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4152 whose name does not start with the host triplet. If you think this
4153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4154 ac_tool_warned
=yes ;;
4156 RANLIB
=$ac_ct_RANLIB
4159 RANLIB
="$ac_cv_prog_RANLIB"
4163 for ac_prog
in ar aal
4165 # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy
$ac_prog; ac_word
=$2
4167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4169 if test "${ac_cv_prog_AR+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 if test -n "$AR"; then
4173 ac_cv_prog_AR
="$AR" # Let the user override the test.
4175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir
=.
4180 for ac_exec_ext
in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_prog_AR
="$ac_prog"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 if test -n "$AR"; then
4194 { echo "$as_me:$LINENO: result: $AR" >&5
4195 echo "${ECHO_T}$AR" >&6; }
4197 { echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6; }
4202 test -n "$AR" && break
4204 test -n "$AR" || AR
="ar"
4208 # Extract the first word of "svnversion", so it can be a program name with args.
4209 set dummy svnversion
; ac_word
=$2
4210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 if test -n "$SVNVERSION"; then
4216 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir
=.
4223 for ac_exec_ext
in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_SVNVERSION
="found"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4236 SVNVERSION
=$ac_cv_prog_SVNVERSION
4237 if test -n "$SVNVERSION"; then
4238 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4239 echo "${ECHO_T}$SVNVERSION" >&6; }
4241 { echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6; }
4246 if test $SVNVERSION = found
4248 SVNVERSION
="svnversion \$(srcdir)"
4250 SVNVERSION
="echo exported"
4255 # install -d does not work on BSDI or HP-UX
4256 if test -z "$INSTALL"
4258 INSTALL
="${srcdir}/install-sh -c"
4262 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4263 if test -f "$ac_dir/install-sh"; then
4265 ac_install_sh
="$ac_aux_dir/install-sh -c"
4267 elif test -f "$ac_dir/install.sh"; then
4269 ac_install_sh
="$ac_aux_dir/install.sh -c"
4271 elif test -f "$ac_dir/shtool"; then
4273 ac_install_sh
="$ac_aux_dir/shtool install -c"
4277 if test -z "$ac_aux_dir"; then
4278 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4279 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4280 { (exit 1); exit 1; }; }
4283 # These three variables are undocumented and unsupported,
4284 # and are intended to be withdrawn in a future Autoconf release.
4285 # They can cause serious problems if a builder's source tree is in a directory
4286 # whose full name contains unusual characters.
4287 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4288 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4289 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4292 # Find a good install program. We prefer a C program (faster),
4293 # so one script is as good as another. But avoid the broken or
4294 # incompatible versions:
4295 # SysV /etc/install, /usr/sbin/install
4296 # SunOS /usr/etc/install
4297 # IRIX /sbin/install
4299 # AmigaOS /C/install, which installs bootblocks on floppy discs
4300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4303 # OS/2's system install, which has a completely different semantic
4304 # ./install, which can be erroneously created by make from ./install.sh.
4305 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4306 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4307 if test -z "$INSTALL"; then
4308 if test "${ac_cv_path_install+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir
=.
4316 # Account for people who put trailing slashes in PATH elements.
4318 .
/ | .
// |
/cC
/* | \
4319 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4320 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4323 # OSF1 and SCO ODT 3.0 have their own names for install.
4324 # Don't use installbsd from OSF since it installs stuff as root
4326 for ac_prog
in ginstall scoinst
install; do
4327 for ac_exec_ext
in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4329 if test $ac_prog = install &&
4330 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4331 # AIX install. It has an incompatible calling convention.
4333 elif test $ac_prog = install &&
4334 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4335 # program-specific install script used by HP pwplus--don't use.
4338 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4351 if test "${ac_cv_path_install+set}" = set; then
4352 INSTALL
=$ac_cv_path_install
4354 # As a last resort, use the slow shell script. Don't cache a
4355 # value for INSTALL within a source directory, because that will
4356 # break other packages using the cache if that directory is
4357 # removed, or if the value is a relative name.
4358 INSTALL
=$ac_install_sh
4361 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4362 echo "${ECHO_T}$INSTALL" >&6; }
4364 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4365 # It thinks the first close brace ends the variable substitution.
4366 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4368 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4370 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4373 # Not every filesystem supports hard links
4375 if test -z "$LN" ; then
4376 case $ac_sys_system in
4378 CYGWIN
*) LN
="ln -s";;
4379 atheos
*) LN
="ln -s";;
4384 # Check for --with-pydebug
4385 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4386 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4388 # Check whether --with-pydebug was given.
4389 if test "${with_pydebug+set}" = set; then
4390 withval
=$with_pydebug;
4391 if test "$withval" != no
4394 cat >>confdefs.h
<<\_ACEOF
4398 { echo "$as_me:$LINENO: result: yes" >&5
4399 echo "${ECHO_T}yes" >&6; };
4401 else { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4410 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4411 # merged with this chunk of code?
4413 # Optimizer/debugger flags
4414 # ------------------------
4415 # (The following bit of code is complicated enough - please keep things
4416 # indented properly. Just pretend you're editing Python code. ;-)
4418 # There are two parallel sets of case statements below, one that checks to
4419 # see if OPT was set and one that does BASECFLAGS setting based upon
4420 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4423 # tweak OPT based on compiler and platform, only if the user didn't set
4424 # it on the command line
4430 if test "$CC" != 'g++' ; then
4431 STRICT_PROTO
="-Wstrict-prototypes"
4433 case $ac_cv_prog_cc_g in
4435 if test "$Py_DEBUG" = 'true' ; then
4436 # Optimization messes up debuggers, so turn it off for
4438 OPT
="-g -Wall $STRICT_PROTO"
4440 OPT
="-g -O3 -Wall $STRICT_PROTO"
4444 OPT
="-O3 -Wall $STRICT_PROTO"
4447 case $ac_sys_system in
4448 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4458 # The current (beta) Monterey compiler dies with optimizations
4459 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4460 case $ac_sys_system in
4469 # tweak BASECFLAGS based on compiler and platform
4472 # Python violates C99 rules, by casting between incompatible
4473 # pointer types. GCC may generate bad code as a result of that,
4474 # so use -fno-strict-aliasing if supported.
4475 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4476 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4478 CC
="$CC -fno-strict-aliasing"
4479 if test "$cross_compiling" = yes; then
4480 ac_cv_no_strict_aliasing_ok
=no
4482 cat >conftest.
$ac_ext <<_ACEOF
4485 cat confdefs.h
>>conftest.
$ac_ext
4486 cat >>conftest.
$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 int main() { return 0; }
4490 rm -f conftest
$ac_exeext
4491 if { (ac_try
="$ac_link"
4493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_link") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4501 { (case "(($ac_try" in
4502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4503 *) ac_try_echo
=$ac_try;;
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_try") 2>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_cv_no_strict_aliasing_ok
=yes
4512 echo "$as_me: program exited with status $ac_status" >&5
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.
$ac_ext >&5
4517 ac_cv_no_strict_aliasing_ok
=no
4519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4524 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4525 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4526 if test $ac_cv_no_strict_aliasing_ok = yes
4528 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4530 case $ac_sys_system in
4532 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4534 # is there any other compiler on Darwin besides gcc?
4536 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
4537 if test "${enable_universalsdk}"; then
4538 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4543 BASECFLAGS
="$BASECFLAGS -mieee"
4549 case $ac_sys_system in
4550 OpenUNIX
*|UnixWare
*)
4551 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4554 BASECFLAGS
="$BASECFLAGS -ieee -std"
4557 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4563 if test "$Py_DEBUG" = 'true'; then
4569 if test "$ac_arch_flags"
4571 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4574 # disable check for icc since it seems to pass, but generates a warning
4577 ac_cv_opt_olimit_ok
=no
4580 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4581 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4582 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 CC
="$CC -OPT:Olimit=0"
4587 if test "$cross_compiling" = yes; then
4588 ac_cv_opt_olimit_ok
=no
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 int main() { return 0; }
4598 rm -f conftest
$ac_exeext
4599 if { (ac_try
="$ac_link"
4601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4611 *) ac_try_echo
=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_opt_olimit_ok
=yes
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4625 ac_cv_opt_olimit_ok
=no
4627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4634 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4635 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4636 if test $ac_cv_opt_olimit_ok = yes; then
4637 case $ac_sys_system in
4638 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4639 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4644 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4648 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4649 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4650 if test "${ac_cv_olimit_ok+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 CC
="$CC -Olimit 1500"
4655 if test "$cross_compiling" = yes; then
4658 cat >conftest.
$ac_ext <<_ACEOF
4661 cat confdefs.h
>>conftest.
$ac_ext
4662 cat >>conftest.
$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 int main() { return 0; }
4666 rm -f conftest
$ac_exeext
4667 if { (ac_try
="$ac_link"
4669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673 (eval "$ac_link") 2>&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4679 *) ac_try_echo
=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4688 echo "$as_me: program exited with status $ac_status" >&5
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.
$ac_ext >&5
4695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4702 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4703 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4704 if test $ac_cv_olimit_ok = yes; then
4705 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4709 # Check whether GCC supports PyArg_ParseTuple format
4710 if test "$GCC" = "yes"
4712 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4713 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4715 CFLAGS
="$CFLAGS -Werror"
4716 cat >conftest.
$ac_ext <<_ACEOF
4719 cat confdefs.h
>>conftest.
$ac_ext
4720 cat >>conftest.
$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4723 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4733 rm -f conftest.
$ac_objext
4734 if { (ac_try
="$ac_compile"
4736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_compile") 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } && {
4747 test -z "$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 } && test -s conftest.$ac_objext; then
4751 cat >>confdefs.h <<\_ACEOF
4752 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4755 { echo "$as_me:$LINENO: result: yes" >&5
4756 echo "${ECHO_T}yes" >&6; }
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 # On some compilers, pthreads are available without further options
4771 # (e.g. MacOS X). On some of these systems, the compiler will not
4772 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4773 # So we have to see first whether pthreads are available without
4774 # options before we can check whether -Kpthread improves anything.
4775 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4776 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4777 if test "${ac_cv_pthread_is_default+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test "$cross_compiling" = yes; then
4781 ac_cv_pthread_is_default=no
4783 cat >conftest.$ac_ext <<_ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4790 #include <pthread.h>
4792 void* routine(void* p){return NULL;}
4796 if(pthread_create(&p,NULL,routine,NULL)!=0)
4798 (void)pthread_detach(p);
4803 rm -f conftest$ac_exeext
4804 if { (ac_try="$ac_link"
4806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4807 *) ac_try_echo
=$ac_try;;
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_link") 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4814 { (case "(($ac_try" in
4815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_try") 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4824 ac_cv_pthread_is_default=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_pthread_is_default=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_pthread_is_default" >&5
4844 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4847 if test $ac_cv_pthread_is_default = yes
4851 # -Kpthread, if available, provides the right #defines
4852 # and linker options to make pthread_create available
4853 # Some compilers won't report that they do not support -Kpthread,
4854 # so we need to run a program to see whether it really made the
4855 # function available.
4856 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4857 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4858 if test "${ac_cv_kpthread+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 if test "$cross_compiling" = yes; then
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 #include <pthread.h>
4875 void* routine(void* p){return NULL;}
4879 if(pthread_create(&p,NULL,routine,NULL)!=0)
4881 (void)pthread_detach(p);
4886 rm -f conftest$ac_exeext
4887 if { (ac_try="$ac_link"
4889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4890 *) ac_try_echo
=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_link") 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4897 { (case "(($ac_try" in
4898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_try") 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4922 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4923 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4926 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4928 # -Kthread, if available, provides the right #defines
4929 # and linker options to make pthread_create available
4930 # Some compilers won't report that they do not support -Kthread,
4931 # so we need to run a program to see whether it really made the
4932 # function available.
4933 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4934 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4935 if test "${ac_cv_kthread+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test "$cross_compiling" = yes; then
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 #include <pthread.h>
4952 void* routine(void* p){return NULL;}
4956 if(pthread_create(&p,NULL,routine,NULL)!=0)
4958 (void)pthread_detach(p);
4963 rm -f conftest$ac_exeext
4964 if { (ac_try="$ac_link"
4966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4967 *) ac_try_echo
=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_link") 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4974 { (case "(($ac_try" in
4975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_try") 2>&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4985 echo "$as_me: program exited with status $ac_status" >&5
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4999 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5000 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5003 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5005 # -pthread, if available, provides the right #defines
5006 # and linker options to make pthread_create available
5007 # Some compilers won't report that they do not support -pthread,
5008 # so we need to run a program to see whether it really made the
5009 # function available.
5010 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5011 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5012 if test "${ac_cv_thread+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 if test "$cross_compiling" = yes; then
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5027 #include <pthread.h>
5029 void* routine(void* p){return NULL;}
5033 if(pthread_create(&p,NULL,routine,NULL)!=0)
5035 (void)pthread_detach(p);
5040 rm -f conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5044 *) ac_try_echo
=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5051 { (case "(($ac_try" in
5052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_try") 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5062 echo "$as_me: program exited with status $ac_status" >&5
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5076 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5077 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5080 # If we have set a CC compiler flag for thread support then
5081 # check if it works for CXX, too.
5085 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5086 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5089 if test "$ac_cv_kpthread" = "yes"
5091 CXX="$CXX -Kpthread"
5092 ac_cv_cxx_thread=yes
5093 elif test "$ac_cv_kthread" = "yes"
5096 ac_cv_cxx_thread=yes
5097 elif test "$ac_cv_pthread" = "yes"
5100 ac_cv_cxx_thread=yes
5103 if test $ac_cv_cxx_thread = yes
5105 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5106 $CXX -c conftest.$ac_ext 2>&5
5107 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5108 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5110 ac_cv_cxx_thread=yes
5116 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5117 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5122 # checks for header files
5123 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5124 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5125 if test "${ac_cv_header_stdc+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 cat >conftest.$ac_ext <<_ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5147 rm -f conftest.$ac_objext
5148 if { (ac_try="$ac_compile"
5150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5151 *) ac_try_echo
=$ac_try;;
5153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154 (eval "$ac_compile") 2>conftest.er1
5156 grep -v '^ *+' conftest.er1
>conftest.err
5158 cat conftest.err
>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } && {
5161 test -z "$ac_c_werror_flag" ||
5162 test ! -s conftest.err
5163 } && test -s conftest.
$ac_objext; then
5164 ac_cv_header_stdc
=yes
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.
$ac_ext >&5
5169 ac_cv_header_stdc
=no
5172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5174 if test $ac_cv_header_stdc = yes; then
5175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5176 cat >conftest.
$ac_ext <<_ACEOF
5179 cat confdefs.h
>>conftest.
$ac_ext
5180 cat >>conftest.
$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5186 $EGREP "memchr" >/dev
/null
2>&1; then
5189 ac_cv_header_stdc
=no
5195 if test $ac_cv_header_stdc = yes; then
5196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5197 cat >conftest.
$ac_ext <<_ACEOF
5200 cat confdefs.h
>>conftest.
$ac_ext
5201 cat >>conftest.
$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207 $EGREP "free" >/dev
/null
2>&1; then
5210 ac_cv_header_stdc
=no
5216 if test $ac_cv_header_stdc = yes; then
5217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5218 if test "$cross_compiling" = yes; then
5221 cat >conftest.
$ac_ext <<_ACEOF
5224 cat confdefs.h
>>conftest.
$ac_ext
5225 cat >>conftest.
$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5229 #if ((' ' & 0x0FF) == 0x020)
5230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5233 # define ISLOWER(c) \
5234 (('a' <= (c) && (c) <= 'i') \
5235 || ('j' <= (c) && (c) <= 'r') \
5236 || ('s' <= (c) && (c) <= 'z'))
5237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5245 for (i = 0; i < 256; i++)
5246 if (XOR (islower (i), ISLOWER (i))
5247 || toupper (i) != TOUPPER (i))
5252 rm -f conftest
$ac_exeext
5253 if { (ac_try
="$ac_link"
5255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_link") 2>&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5263 { (case "(($ac_try" in
5264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5265 *) ac_try_echo
=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_try") 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5274 echo "$as_me: program exited with status $ac_status" >&5
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.
$ac_ext >&5
5279 ac_cv_header_stdc
=no
5281 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5289 if test $ac_cv_header_stdc = yes; then
5291 cat >>confdefs.h
<<\_ACEOF
5292 #define STDC_HEADERS 1
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5307 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5308 inttypes.h stdint.h unistd.h
5310 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 cat >conftest.
$ac_ext <<_ACEOF
5319 cat confdefs.h
>>conftest.
$ac_ext
5320 cat >>conftest.
$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5324 #include <$ac_header>
5326 rm -f conftest.
$ac_objext
5327 if { (ac_try
="$ac_compile"
5329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compile") 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } && {
5340 test -z "$ac_c_werror_flag" ||
5341 test ! -s conftest.err
5342 } && test -s conftest.$ac_objext; then
5343 eval "$as_ac_Header=yes"
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 eval "$as_ac_Header=no"
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_res=`eval echo '${'$as_ac_Header'}'`
5354 { echo "$as_me:$LINENO: result: $ac_res" >&5
5355 echo "${ECHO_T}$ac_res" >&6; }
5356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5357 cat >>confdefs.h <<_ACEOF
5358 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5415 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5417 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5418 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5420 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
5422 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5424 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5425 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5426 bluetooth/bluetooth.h
5428 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 ac_res=`eval echo '${'$as_ac_Header'}'`
5436 { echo "$as_me:$LINENO: result: $ac_res" >&5
5437 echo "${ECHO_T}$ac_res" >&6; }
5439 # Is the header compilable?
5440 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5442 cat >conftest.$ac_ext <<_ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 $ac_includes_default
5449 #include <$ac_header>
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5455 *) ac_try_echo
=$ac_try;;
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_compile") 2>conftest.er1
5460 grep -v '^ *+' conftest.er1
>conftest.err
5462 cat conftest.err
>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } && {
5465 test -z "$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5467 } && test -s conftest.
$ac_objext; then
5468 ac_header_compiler
=yes
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.
$ac_ext >&5
5473 ac_header_compiler
=no
5476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5478 echo "${ECHO_T}$ac_header_compiler" >&6; }
5480 # Is the header present?
5481 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5483 cat >conftest.
$ac_ext <<_ACEOF
5486 cat confdefs.h
>>conftest.
$ac_ext
5487 cat >>conftest.
$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <$ac_header>
5491 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5499 grep -v '^ *+' conftest.er1 >conftest.err
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } >/dev/null && {
5504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5505 test ! -s conftest.err
5507 ac_header_preproc=yes
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_header_preproc=no
5515 rm -f conftest.err conftest.$ac_ext
5516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517 echo "${ECHO_T}$ac_header_preproc" >&6; }
5519 # So? What about this header?
5520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5526 ac_header_preproc=yes
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5542 ## ------------------------------------------------ ##
5543 ## Report this to http://www.python.org/python-bugs ##
5544 ## ------------------------------------------------ ##
5546 ) | sed "s/^/$as_me: WARNING: /" >&2
5549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 eval "$as_ac_Header=\$ac_header_preproc"
5556 ac_res=`eval echo '${'$as_ac_Header'}'`
5557 { echo "$as_me:$LINENO: result: $ac_res" >&5
5558 echo "${ECHO_T}$ac_res" >&6; }
5561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562 cat >>confdefs.h <<_ACEOF
5563 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5576 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5577 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5578 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5579 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <sys/types.h>
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5605 *) ac_try_echo
=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1
>conftest.err
5612 cat conftest.err
>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.
$ac_objext; then
5618 eval "$as_ac_Header=yes"
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.
$ac_ext >&5
5623 eval "$as_ac_Header=no"
5626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5628 ac_res
=`eval echo '${'$as_ac_Header'}'`
5629 { echo "$as_me:$LINENO: result: $ac_res" >&5
5630 echo "${ECHO_T}$ac_res" >&6; }
5631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5632 cat >>confdefs.h
<<_ACEOF
5633 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5636 ac_header_dirent
=$ac_hdr; break
5640 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5641 if test $ac_header_dirent = dirent.h
; then
5642 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5643 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5644 if test "${ac_cv_search_opendir+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_func_search_save_LIBS
=$LIBS
5648 cat >conftest.
$ac_ext <<_ACEOF
5651 cat confdefs.h
>>conftest.
$ac_ext
5652 cat >>conftest.
$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5655 /* Override any GCC internal prototype to avoid an error.
5656 Use char because int might match the return type of a GCC
5657 builtin and then its argument prototype would still apply. */
5670 for ac_lib
in '' dir
; do
5671 if test -z "$ac_lib"; then
5672 ac_res
="none required"
5675 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5677 rm -f conftest.
$ac_objext conftest
$ac_exeext
5678 if { (ac_try
="$ac_link"
5680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_link") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest$ac_exeext &&
5694 $as_test_x conftest$ac_exeext; then
5695 ac_cv_search_opendir=$ac_res
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5705 if test "${ac_cv_search_opendir+set}" = set; then
5709 if test "${ac_cv_search_opendir+set}" = set; then
5712 ac_cv_search_opendir=no
5715 LIBS=$ac_func_search_save_LIBS
5717 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5718 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5719 ac_res=$ac_cv_search_opendir
5720 if test "$ac_res" != no; then
5721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5726 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5728 if test "${ac_cv_search_opendir+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 ac_func_search_save_LIBS=$LIBS
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5739 /* Override any GCC internal prototype to avoid an error.
5740 Use char because int might match the return type of a GCC
5741 builtin and then its argument prototype would still apply. */
5754 for ac_lib in '' x; do
5755 if test -z "$ac_lib"; then
5756 ac_res="none required"
5759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5761 rm -f conftest.$ac_objext conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5765 *) ac_try_echo
=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>conftest.er1
5770 grep -v '^ *+' conftest.er1
>conftest.err
5772 cat conftest.err
>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_c_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest
$ac_exeext &&
5778 $as_test_x conftest
$ac_exeext; then
5779 ac_cv_search_opendir
=$ac_res
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5789 if test "${ac_cv_search_opendir+set}" = set; then
5793 if test "${ac_cv_search_opendir+set}" = set; then
5796 ac_cv_search_opendir
=no
5799 LIBS
=$ac_func_search_save_LIBS
5801 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5802 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5803 ac_res
=$ac_cv_search_opendir
5804 if test "$ac_res" != no
; then
5805 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5811 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5812 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5813 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 cat >conftest.
$ac_ext <<_ACEOF
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <sys/types.h>
5826 return makedev(0, 0);
5831 rm -f conftest.
$ac_objext conftest
$ac_exeext
5832 if { (ac_try
="$ac_link"
5834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_link") 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest$ac_exeext &&
5848 $as_test_x conftest$ac_exeext; then
5849 ac_cv_header_sys_types_h_makedev=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_cv_header_sys_types_h_makedev=no
5857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5858 conftest$ac_exeext conftest.$ac_ext
5861 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5862 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5864 if test $ac_cv_header_sys_types_h_makedev = no; then
5865 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5866 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5867 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5868 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5872 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5874 # Is the header compilable?
5875 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5876 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5884 #include <sys/mkdev.h>
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5890 *) ac_try_echo
=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1
>conftest.err
5897 cat conftest.err
>&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.
$ac_objext; then
5903 ac_header_compiler
=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.
$ac_ext >&5
5908 ac_header_compiler
=no
5911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5913 echo "${ECHO_T}$ac_header_compiler" >&6; }
5915 # Is the header present?
5916 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5917 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5918 cat >conftest.
$ac_ext <<_ACEOF
5921 cat confdefs.h
>>conftest.
$ac_ext
5922 cat >>conftest.
$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <sys/mkdev.h>
5926 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } >/dev/null && {
5939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5942 ac_header_preproc=yes
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_header_preproc=no
5950 rm -f conftest.err conftest.$ac_ext
5951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5952 echo "${ECHO_T}$ac_header_preproc" >&6; }
5954 # So? What about this header?
5955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5957 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5958 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5960 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5961 ac_header_preproc=yes
5964 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5965 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5967 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5969 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5971 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5973 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5977 ## ------------------------------------------------ ##
5978 ## Report this to http://www.python.org/python-bugs ##
5979 ## ------------------------------------------------ ##
5981 ) | sed "s/^/$as_me: WARNING: /" >&2
5984 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5985 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5986 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5991 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5992 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5995 if test $ac_cv_header_sys_mkdev_h = yes; then
5997 cat >>confdefs.h <<\_ACEOF
5998 #define MAJOR_IN_MKDEV 1
6005 if test $ac_cv_header_sys_mkdev_h = no; then
6006 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6007 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6008 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6009 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6013 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6015 # Is the header compilable?
6016 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6017 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6025 #include <sys/sysmacros.h>
6027 rm -f conftest.$ac_objext
6028 if { (ac_try="$ac_compile"
6030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6031 *) ac_try_echo
=$ac_try;;
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6036 grep -v '^ *+' conftest.er1
>conftest.err
6038 cat conftest.err
>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.
$ac_objext; then
6044 ac_header_compiler
=yes
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.
$ac_ext >&5
6049 ac_header_compiler
=no
6052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6054 echo "${ECHO_T}$ac_header_compiler" >&6; }
6056 # Is the header present?
6057 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6058 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6059 cat >conftest.
$ac_ext <<_ACEOF
6062 cat confdefs.h
>>conftest.
$ac_ext
6063 cat >>conftest.
$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <sys/sysmacros.h>
6067 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6075 grep -v '^ *+' conftest.er1 >conftest.err
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } >/dev/null && {
6080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6083 ac_header_preproc=yes
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 ac_header_preproc=no
6091 rm -f conftest.err conftest.$ac_ext
6092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6093 echo "${ECHO_T}$ac_header_preproc" >&6; }
6095 # So? What about this header?
6096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6098 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6099 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6101 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6102 ac_header_preproc=yes
6105 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6106 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6108 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6110 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6112 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6114 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6118 ## ------------------------------------------------ ##
6119 ## Report this to http://www.python.org/python-bugs ##
6120 ## ------------------------------------------------ ##
6122 ) | sed "s/^/$as_me: WARNING: /" >&2
6125 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6126 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6127 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6132 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6133 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6136 if test $ac_cv_header_sys_sysmacros_h = yes; then
6138 cat >>confdefs.h <<\_ACEOF
6139 #define MAJOR_IN_SYSMACROS 1
6149 # On Solaris, term.h requires curses.h
6151 for ac_header in term.h
6153 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6166 #ifdef HAVE_CURSES_H
6171 #include <$ac_header>
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6177 *) ac_try_echo
=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1
>conftest.err
6184 cat conftest.err
>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.
$ac_objext; then
6190 eval "$as_ac_Header=yes"
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.
$ac_ext >&5
6195 eval "$as_ac_Header=no"
6198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6200 ac_res
=`eval echo '${'$as_ac_Header'}'`
6201 { echo "$as_me:$LINENO: result: $ac_res" >&5
6202 echo "${ECHO_T}$ac_res" >&6; }
6203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6204 cat >>confdefs.h
<<_ACEOF
6205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213 # On Linux, netlink.h requires asm/types.h
6215 for ac_header
in linux
/netlink.h
6217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6220 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 cat >conftest.
$ac_ext <<_ACEOF
6226 cat confdefs.h
>>conftest.
$ac_ext
6227 cat >>conftest.
$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6230 #ifdef HAVE_ASM_TYPES_H
6231 #include <asm/types.h>
6233 #ifdef HAVE_SYS_SOCKET_H
6234 #include <sys/socket.h>
6238 #include <$ac_header>
6240 rm -f conftest.
$ac_objext
6241 if { (ac_try
="$ac_compile"
6243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && {
6254 test -z "$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6256 } && test -s conftest.$ac_objext; then
6257 eval "$as_ac_Header=yes"
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 eval "$as_ac_Header=no"
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6280 # checks for typedefs
6282 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6283 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6294 $EGREP "clock_t" >/dev/null 2>&1; then
6299 cat >>confdefs.h <<\_ACEOF
6300 #define clock_t long
6307 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6308 echo "${ECHO_T}$was_it_defined" >&6; }
6310 # Check whether using makedev requires defining _OSF_SOURCE
6311 { echo "$as_me:$LINENO: checking for makedev" >&5
6312 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <sys/types.h>
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6332 *) ac_try_echo
=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_link") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1
>conftest.err
6339 cat conftest.err
>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest
$ac_exeext &&
6345 $as_test_x conftest
$ac_exeext; then
6346 ac_cv_has_makedev
=yes
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.
$ac_ext >&5
6351 ac_cv_has_makedev
=no
6354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6355 conftest
$ac_exeext conftest.
$ac_ext
6356 if test "$ac_cv_has_makedev" = "no"; then
6357 # we didn't link, try if _OSF_SOURCE will allow us to link
6358 cat >conftest.
$ac_ext <<_ACEOF
6361 cat confdefs.h
>>conftest.
$ac_ext
6362 cat >>conftest.
$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6365 #define _OSF_SOURCE 1
6366 #include <sys/types.h>
6376 rm -f conftest.
$ac_objext conftest
$ac_exeext
6377 if { (ac_try
="$ac_link"
6379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_link") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext &&
6393 $as_test_x conftest$ac_exeext; then
6394 ac_cv_has_makedev=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_cv_has_makedev=no
6402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6403 conftest$ac_exeext conftest.$ac_ext
6404 if test "$ac_cv_has_makedev" = "yes"; then
6406 cat >>confdefs.h <<\_ACEOF
6407 #define _OSF_SOURCE 1
6412 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6413 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6414 if test "$ac_cv_has_makedev" = "yes"; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_MAKEDEV 1
6422 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6423 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6424 # defined, but the compiler does not support pragma redefine_extname,
6425 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6426 # structures (such as rlimit64) without declaring them. As a
6427 # work-around, disable LFS on such configurations
6430 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6431 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6439 #define _LARGEFILE_SOURCE 1
6440 #define _FILE_OFFSET_BITS 64
6441 #include <sys/resource.h>
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6455 *) ac_try_echo
=$ac_try;;
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6460 grep -v '^ *+' conftest.er1
>conftest.err
6462 cat conftest.err
>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.
$ac_objext; then
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.
$ac_ext >&5
6476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6477 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6478 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6479 if test "$sol_lfs_bug" = "yes"; then
6483 if test "$use_lfs" = "yes"; then
6484 # Two defines needed to enable largefile support on various platforms
6485 # These may affect some typedefs
6487 cat >>confdefs.h
<<\_ACEOF
6488 #define _LARGEFILE_SOURCE 1
6492 cat >>confdefs.h
<<\_ACEOF
6493 #define _FILE_OFFSET_BITS 64
6498 # Add some code to confdefs.h so that the test for off_t works on SCO
6499 cat >> confdefs.h
<<\EOF
6505 # Type availability checks
6506 { echo "$as_me:$LINENO: checking for mode_t" >&5
6507 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6508 if test "${ac_cv_type_mode_t+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 cat >conftest.
$ac_ext <<_ACEOF
6514 cat confdefs.h
>>conftest.
$ac_ext
6515 cat >>conftest.
$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6518 typedef mode_t ac__type_new_;
6522 if ((ac__type_new_ *) 0)
6524 if (sizeof (ac__type_new_))
6530 rm -f conftest.
$ac_objext
6531 if { (ac_try
="$ac_compile"
6533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6539 grep -v '^ *+' conftest.er1 >conftest.err
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_type_mode_t=yes
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_cv_type_mode_t=no
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6558 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6559 if test $ac_cv_type_mode_t = yes; then
6563 cat >>confdefs.h <<_ACEOF
6569 { echo "$as_me:$LINENO: checking for off_t" >&5
6570 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6571 if test "${ac_cv_type_off_t+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 $ac_includes_default
6581 typedef off_t ac__type_new_;
6585 if ((ac__type_new_ *) 0)
6587 if (sizeof (ac__type_new_))
6593 rm -f conftest.$ac_objext
6594 if { (ac_try="$ac_compile"
6596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6597 *) ac_try_echo
=$ac_try;;
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_compile") 2>conftest.er1
6602 grep -v '^ *+' conftest.er1
>conftest.err
6604 cat conftest.err
>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest.
$ac_objext; then
6610 ac_cv_type_off_t
=yes
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.
$ac_ext >&5
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6620 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6621 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6622 if test $ac_cv_type_off_t = yes; then
6626 cat >>confdefs.h
<<_ACEOF
6627 #define off_t long int
6632 { echo "$as_me:$LINENO: checking for pid_t" >&5
6633 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6634 if test "${ac_cv_type_pid_t+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 cat >conftest.
$ac_ext <<_ACEOF
6640 cat confdefs.h
>>conftest.
$ac_ext
6641 cat >>conftest.
$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 $ac_includes_default
6644 typedef pid_t ac__type_new_;
6648 if ((ac__type_new_ *) 0)
6650 if (sizeof (ac__type_new_))
6656 rm -f conftest.
$ac_objext
6657 if { (ac_try
="$ac_compile"
6659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_compile") 2>conftest.er1
6665 grep -v '^ *+' conftest.er1 >conftest.err
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_c_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest.$ac_objext; then
6673 ac_cv_type_pid_t=yes
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6684 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6685 if test $ac_cv_type_pid_t = yes; then
6689 cat >>confdefs.h <<_ACEOF
6695 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6696 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6697 if test "${ac_cv_type_signal+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 #include <sys/types.h>
6712 return *(signal (0, 0)) (0) == 1;
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6721 *) ac_try_echo
=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6726 grep -v '^ *+' conftest.er1
>conftest.err
6728 cat conftest.err
>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && {
6731 test -z "$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6733 } && test -s conftest.
$ac_objext; then
6734 ac_cv_type_signal
=int
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.
$ac_ext >&5
6739 ac_cv_type_signal
=void
6742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6745 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6747 cat >>confdefs.h
<<_ACEOF
6748 #define RETSIGTYPE $ac_cv_type_signal
6752 { echo "$as_me:$LINENO: checking for size_t" >&5
6753 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6754 if test "${ac_cv_type_size_t+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 cat >conftest.
$ac_ext <<_ACEOF
6760 cat confdefs.h
>>conftest.
$ac_ext
6761 cat >>conftest.
$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6764 typedef size_t ac__type_new_;
6768 if ((ac__type_new_ *) 0)
6770 if (sizeof (ac__type_new_))
6776 rm -f conftest.
$ac_objext
6777 if { (ac_try
="$ac_compile"
6779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6785 grep -v '^ *+' conftest.er1 >conftest.err
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_cv_type_size_t=yes
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6798 ac_cv_type_size_t=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6805 if test $ac_cv_type_size_t = yes; then
6809 cat >>confdefs.h <<_ACEOF
6810 #define size_t unsigned int
6815 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6816 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6817 if test "${ac_cv_type_uid_t+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 #include <sys/types.h>
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "uid_t" >/dev/null 2>&1; then
6831 ac_cv_type_uid_t=yes
6838 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6839 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6840 if test $ac_cv_type_uid_t = no; then
6842 cat >>confdefs.h <<\_ACEOF
6847 cat >>confdefs.h <<\_ACEOF
6853 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6854 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6855 if test "${ac_cv_type_ssize_t+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 cat >conftest.$ac_ext <<_ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6865 typedef ssize_t ac__type_new_;
6869 if ((ac__type_new_ *) 0)
6871 if (sizeof (ac__type_new_))
6877 rm -f conftest.$ac_objext
6878 if { (ac_try="$ac_compile"
6880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6881 *) ac_try_echo
=$ac_try;;
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_compile") 2>conftest.er1
6886 grep -v '^ *+' conftest.er1
>conftest.err
6888 cat conftest.err
>&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest.
$ac_objext; then
6894 ac_cv_type_ssize_t
=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.
$ac_ext >&5
6899 ac_cv_type_ssize_t
=no
6902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6904 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6905 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6906 if test $ac_cv_type_ssize_t = yes; then
6908 cat >>confdefs.h
<<\_ACEOF
6909 #define HAVE_SSIZE_T 1
6915 # Sizes of various common basic types
6916 # ANSI C requires sizeof(char) == 1, so no need to check it
6917 { echo "$as_me:$LINENO: checking for int" >&5
6918 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6919 if test "${ac_cv_type_int+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 cat >conftest.
$ac_ext <<_ACEOF
6925 cat confdefs.h
>>conftest.
$ac_ext
6926 cat >>conftest.
$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 typedef int ac__type_new_;
6933 if ((ac__type_new_ *) 0)
6935 if (sizeof (ac__type_new_))
6941 rm -f conftest.
$ac_objext
6942 if { (ac_try
="$ac_compile"
6944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948 (eval "$ac_compile") 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_c_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest.$ac_objext; then
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6969 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6971 # The cast to long int works around a bug in the HP C Compiler
6972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6973 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6974 # This bug is HP SR number 8606223364.
6975 { echo "$as_me:$LINENO: checking size of int" >&5
6976 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6977 if test "${ac_cv_sizeof_int+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 if test "$cross_compiling" = yes; then
6981 # Depending upon the size, compute the lo and hi bounds.
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 typedef int ac__type_sizeof_;
6993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7000 rm -f conftest.$ac_objext
7001 if { (ac_try="$ac_compile"
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7009 grep -v '^
*+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 $ac_includes_default
7026 typedef int ac__type_sizeof_;
7030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7037 rm -f conftest.$ac_objext
7038 if { (ac_try="$ac_compile"
7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041 *) ac_try_echo=$ac_try;;
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_compile") 2>conftest.er1
7046 grep -v '^
*+' conftest.er1 >conftest.err
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest.$ac_objext; then
7054 ac_hi=$ac_mid; break
7056 echo "$as_me: failed program was:" >&5
7057 sed 's
/^
/|
/' conftest.$ac_ext >&5
7059 ac_lo=`expr $ac_mid + 1`
7060 if test $ac_lo -le $ac_mid; then
7064 ac_mid=`expr 2 '*' $ac_mid + 1`
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 echo "$as_me: failed program was:" >&5
7071 sed 's
/^
/|
/' conftest.$ac_ext >&5
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 $ac_includes_default
7080 typedef int ac__type_sizeof_;
7084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7091 rm -f conftest.$ac_objext
7092 if { (ac_try="$ac_compile"
7094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095 *) ac_try_echo=$ac_try;;
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098 (eval "$ac_compile") 2>conftest.er1
7100 grep -v '^
*+' conftest.er1 >conftest.err
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } && {
7105 test -z "$ac_c_werror_flag" ||
7106 test ! -s conftest.err
7107 } && test -s conftest.$ac_objext; then
7110 cat >conftest.$ac_ext <<_ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7117 typedef int ac__type_sizeof_;
7121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7137 grep -v '^
*+' conftest.er1 >conftest.err
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 ac_lo=$ac_mid; break
7147 echo "$as_me: failed program was:" >&5
7148 sed 's
/^
/|
/' conftest.$ac_ext >&5
7150 ac_hi=`expr '(' $ac_mid ')' - 1`
7151 if test $ac_mid -le $ac_hi; then
7155 ac_mid=`expr 2 '*' $ac_mid`
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me: failed program was:" >&5
7162 sed 's
/^
/|
/' conftest.$ac_ext >&5
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 # Binary search between lo and hi bounds.
7172 while test "x$ac_lo" != "x$ac_hi"; do
7173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7181 typedef int ac__type_sizeof_;
7185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7192 rm -f conftest.$ac_objext
7193 if { (ac_try="$ac_compile"
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7201 grep -v '^
*+' conftest.er1 >conftest.err
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.$ac_objext; then
7211 echo "$as_me: failed program was:" >&5
7212 sed 's
/^
/|
/' conftest.$ac_ext >&5
7214 ac_lo=`expr '(' $ac_mid ')' + 1`
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 ?*) ac_cv_sizeof_int=$ac_lo;;
7221 '') if test "$ac_cv_type_int" = yes; then
7222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7223 See \`config.log' for more details.
" >&5
7224 echo "$as_me: error
: cannot compute sizeof
(int
)
7225 See \
`config.log' for more details." >&2;}
7226 { (exit 77); exit 77; }; }
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 $ac_includes_default
7239 typedef int ac__type_sizeof_;
7240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7248 FILE *f = fopen ("conftest.val", "w");
7251 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7253 long int i = longval ();
7254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7256 fprintf (f, "%ld\n", i);
7260 unsigned long int i = ulongval ();
7261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7263 fprintf (f, "%lu\n", i);
7265 return ferror (f) || fclose (f) != 0;
7271 rm -f conftest$ac_exeext
7272 if { (ac_try="$ac_link"
7274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7275 *) ac_try_echo
=$ac_try;;
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_link") 2>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7282 { (case "(($ac_try" in
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_try") 2>&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_sizeof_int=`cat conftest.val
`
7293 echo "$as_me: program exited with status $ac_status" >&5
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7298 if test "$ac_cv_type_int" = yes; then
7299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7300 See \`config.log
' for more details." >&5
7301 echo "$as_me: error: cannot compute sizeof (int)
7302 See \`config.log' for more details.
" >&2;}
7303 { (exit 77); exit 77; }; }
7308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7312 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7313 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7317 cat >>confdefs.h <<_ACEOF
7318 #define SIZEOF_INT $ac_cv_sizeof_int
7322 { echo "$as_me:$LINENO: checking
for long
" >&5
7323 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7324 if test "${ac_cv_type_long+set}" = set; then
7325 echo $ECHO_N "(cached
) $ECHO_C" >&6
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7334 typedef long ac__type_new_;
7338 if ((ac__type_new_ *) 0)
7340 if (sizeof (ac__type_new_))
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7355 grep -v '^ *+' conftest.er1 >conftest.err
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7365 echo "$as_me: failed program was
:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7374 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7376 # The cast to long int works around a bug in the HP C Compiler
7377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7379 # This bug is HP SR number 8606223364.
7380 { echo "$as_me:$LINENO: checking size of long
" >&5
7381 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7382 if test "${ac_cv_sizeof_long+set}" = set; then
7383 echo $ECHO_N "(cached
) $ECHO_C" >&6
7385 if test "$cross_compiling" = yes; then
7386 # Depending upon the size, compute the lo and hi bounds.
7387 cat >conftest.$ac_ext <<_ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7394 typedef long ac__type_sizeof_;
7398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1 >conftest.err
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 $ac_includes_default
7431 typedef long ac__type_sizeof_;
7435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7442 rm -f conftest.$ac_objext
7443 if { (ac_try="$ac_compile"
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7451 grep -v '^ *+' conftest.er1 >conftest.err
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7459 ac_hi=$ac_mid; break
7461 echo "$as_me: failed program was
:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 ac_lo=`expr $ac_mid + 1`
7465 if test $ac_lo -le $ac_mid; then
7469 ac_mid=`expr 2 '*' $ac_mid + 1`
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 echo "$as_me: failed program was
:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 $ac_includes_default
7485 typedef long ac__type_sizeof_;
7489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7515 cat >conftest.$ac_ext <<_ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7522 typedef long ac__type_sizeof_;
7526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1 >conftest.err
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7550 ac_lo=$ac_mid; break
7552 echo "$as_me: failed program was
:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_hi=`expr '(' $ac_mid ')' - 1`
7556 if test $ac_mid -le $ac_hi; then
7560 ac_mid=`expr 2 '*' $ac_mid`
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 echo "$as_me: failed program was
:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 # Binary search between lo and hi bounds.
7577 while test "x
$ac_lo" != "x
$ac_hi"; do
7578 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 $ac_includes_default
7586 typedef long ac__type_sizeof_;
7590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
7616 echo "$as_me: failed program was
:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_lo=`expr '(' $ac_mid ')' + 1`
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 ?*) ac_cv_sizeof_long=$ac_lo;;
7626 '') if test "$ac_cv_type_long" = yes; then
7627 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7628 See \
`config.log' for more details." >&5
7629 echo "$as_me: error: cannot compute sizeof (long)
7630 See \`config.log
' for more details." >&2;}
7631 { (exit 77); exit 77; }; }
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 $ac_includes_default
7644 typedef long ac__type_sizeof_;
7645 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7646 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7653 FILE *f = fopen ("conftest.val", "w");
7656 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7658 long int i = longval ();
7659 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7661 fprintf (f, "%ld\n", i);
7665 unsigned long int i = ulongval ();
7666 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7668 fprintf (f, "%lu\n", i);
7670 return ferror (f) || fclose (f) != 0;
7676 rm -f conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7687 { (case "(($ac_try" in
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_try") 2>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_sizeof_long=`cat conftest.val`
7698 echo "$as_me: program exited with status $ac_status" >&5
7699 echo "$as_me: failed program was:" >&5
7700 sed 's
/^
/|
/' conftest.$ac_ext >&5
7703 if test "$ac_cv_type_long" = yes; then
7704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7705 See \`config.log' for more details.
" >&5
7706 echo "$as_me: error
: cannot compute sizeof
(long
)
7707 See \
`config.log' for more details." >&2;}
7708 { (exit 77); exit 77; }; }
7713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7717 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7718 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7722 cat >>confdefs.h <<_ACEOF
7723 #define SIZEOF_LONG $ac_cv_sizeof_long
7727 { echo "$as_me:$LINENO: checking for void *" >&5
7728 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7729 if test "${ac_cv_type_void_p+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 $ac_includes_default
7739 typedef void * ac__type_new_;
7743 if ((ac__type_new_ *) 0)
7745 if (sizeof (ac__type_new_))
7751 rm -f conftest.$ac_objext
7752 if { (ac_try="$ac_compile"
7754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7755 *) ac_try_echo
=$ac_try;;
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_compile") 2>conftest.er1
7760 grep -v '^ *+' conftest.er1
>conftest.err
7762 cat conftest.err
>&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && {
7765 test -z "$ac_c_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest.
$ac_objext; then
7768 ac_cv_type_void_p
=yes
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.
$ac_ext >&5
7773 ac_cv_type_void_p
=no
7776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7778 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7779 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7781 # The cast to long int works around a bug in the HP C Compiler
7782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7784 # This bug is HP SR number 8606223364.
7785 { echo "$as_me:$LINENO: checking size of void *" >&5
7786 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7787 if test "${ac_cv_sizeof_void_p+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 if test "$cross_compiling" = yes; then
7791 # Depending upon the size, compute the lo and hi bounds.
7792 cat >conftest.
$ac_ext <<_ACEOF
7795 cat confdefs.h
>>conftest.
$ac_ext
7796 cat >>conftest.
$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 typedef void * ac__type_sizeof_;
7803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7810 rm -f conftest.
$ac_objext
7811 if { (ac_try
="$ac_compile"
7813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_compile") 2>conftest.er1
7819 grep -v '^ *+' conftest.er1 >conftest.err
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest.$ac_objext; then
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 $ac_includes_default
7836 typedef void * ac__type_sizeof_;
7840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7851 *) ac_try_echo
=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1
>conftest.err
7858 cat conftest.err
>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.
$ac_objext; then
7864 ac_hi
=$ac_mid; break
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.
$ac_ext >&5
7869 ac_lo
=`expr $ac_mid + 1`
7870 if test $ac_lo -le $ac_mid; then
7874 ac_mid
=`expr 2 '*' $ac_mid + 1`
7877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.
$ac_ext >&5
7883 cat >conftest.
$ac_ext <<_ACEOF
7886 cat confdefs.h
>>conftest.
$ac_ext
7887 cat >>conftest.
$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 $ac_includes_default
7890 typedef void * ac__type_sizeof_;
7894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7901 rm -f conftest.
$ac_objext
7902 if { (ac_try
="$ac_compile"
7904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 $ac_includes_default
7927 typedef void * ac__type_sizeof_;
7931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7942 *) ac_try_echo
=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1
>conftest.err
7949 cat conftest.err
>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.
$ac_objext; then
7955 ac_lo
=$ac_mid; break
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.
$ac_ext >&5
7960 ac_hi
=`expr '(' $ac_mid ')' - 1`
7961 if test $ac_mid -le $ac_hi; then
7965 ac_mid
=`expr 2 '*' $ac_mid`
7968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.
$ac_ext >&5
7977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 # Binary search between lo and hi bounds.
7982 while test "x$ac_lo" != "x$ac_hi"; do
7983 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7984 cat >conftest.
$ac_ext <<_ACEOF
7987 cat confdefs.h
>>conftest.
$ac_ext
7988 cat >>conftest.
$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 $ac_includes_default
7991 typedef void * ac__type_sizeof_;
7995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8002 rm -f conftest.
$ac_objext
8003 if { (ac_try
="$ac_compile"
8005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_lo=`expr '(' $ac_mid ')' + 1`
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8031 '') if test "$ac_cv_type_void_p" = yes; then
8032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8033 See \`config.log
' for more details." >&5
8034 echo "$as_me: error: cannot compute sizeof (void *)
8035 See \`config.log' for more details.
" >&2;}
8036 { (exit 77); exit 77; }; }
8038 ac_cv_sizeof_void_p=0
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 $ac_includes_default
8049 typedef void * ac__type_sizeof_;
8050 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8051 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8058 FILE *f = fopen ("conftest.val
", "w
");
8061 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8063 long int i = longval ();
8064 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8066 fprintf (f, "%ld
\n", i);
8070 unsigned long int i = ulongval ();
8071 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8073 fprintf (f, "%lu
\n", i);
8075 return ferror (f) || fclose (f) != 0;
8081 rm -f conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>&5
8090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8092 { (case "(($ac_try" in
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_try") 2>&5
8099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_cv_sizeof_void_p=`cat conftest.val`
8103 echo "$as_me: program exited with status
$ac_status" >&5
8104 echo "$as_me: failed program was
:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8108 if test "$ac_cv_type_void_p" = yes; then
8109 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8110 See \
`config.log' for more details." >&5
8111 echo "$as_me: error: cannot compute sizeof (void *)
8112 See \`config.log
' for more details." >&2;}
8113 { (exit 77); exit 77; }; }
8115 ac_cv_sizeof_void_p=0
8118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8122 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8123 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8127 cat >>confdefs.h <<_ACEOF
8128 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8132 { echo "$as_me:$LINENO: checking for short" >&5
8133 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8134 if test "${ac_cv_type_short+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8144 typedef short ac__type_new_;
8148 if ((ac__type_new_ *) 0)
8150 if (sizeof (ac__type_new_))
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8165 grep -v '^
*+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 ac_cv_type_short=yes
8175 echo "$as_me: failed program was:" >&5
8176 sed 's
/^
/|
/' conftest.$ac_ext >&5
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8184 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8186 # The cast to long int works around a bug in the HP C Compiler
8187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8189 # This bug is HP SR number 8606223364.
8190 { echo "$as_me:$LINENO: checking size of short" >&5
8191 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8192 if test "${ac_cv_sizeof_short+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 if test "$cross_compiling" = yes; then
8196 # Depending upon the size, compute the lo and hi bounds.
8197 cat >conftest.
$ac_ext <<_ACEOF
8200 cat confdefs.h
>>conftest.
$ac_ext
8201 cat >>conftest.
$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 $ac_includes_default
8204 typedef short ac__type_sizeof_;
8208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8215 rm -f conftest.
$ac_objext
8216 if { (ac_try
="$ac_compile"
8218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_compile") 2>conftest.er1
8224 grep -v '^ *+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest.$ac_objext; then
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8241 typedef short ac__type_sizeof_;
8245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8256 *) ac_try_echo
=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1
>conftest.err
8263 cat conftest.err
>&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.
$ac_objext; then
8269 ac_hi
=$ac_mid; break
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.
$ac_ext >&5
8274 ac_lo
=`expr $ac_mid + 1`
8275 if test $ac_lo -le $ac_mid; then
8279 ac_mid
=`expr 2 '*' $ac_mid + 1`
8282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.
$ac_ext >&5
8288 cat >conftest.
$ac_ext <<_ACEOF
8291 cat confdefs.h
>>conftest.
$ac_ext
8292 cat >>conftest.
$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 $ac_includes_default
8295 typedef short ac__type_sizeof_;
8299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8306 rm -f conftest.
$ac_objext
8307 if { (ac_try
="$ac_compile"
8309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest.$ac_objext; then
8325 cat >conftest.$ac_ext <<_ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 $ac_includes_default
8332 typedef short ac__type_sizeof_;
8336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8347 *) ac_try_echo
=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1
>conftest.err
8354 cat conftest.err
>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.
$ac_objext; then
8360 ac_lo
=$ac_mid; break
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.
$ac_ext >&5
8365 ac_hi
=`expr '(' $ac_mid ')' - 1`
8366 if test $ac_mid -le $ac_hi; then
8370 ac_mid
=`expr 2 '*' $ac_mid`
8373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.
$ac_ext >&5
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8386 # Binary search between lo and hi bounds.
8387 while test "x$ac_lo" != "x$ac_hi"; do
8388 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8389 cat >conftest.
$ac_ext <<_ACEOF
8392 cat confdefs.h
>>conftest.
$ac_ext
8393 cat >>conftest.
$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 typedef short ac__type_sizeof_;
8400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8407 rm -f conftest.
$ac_objext
8408 if { (ac_try
="$ac_compile"
8410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_lo=`expr '(' $ac_mid ')' + 1`
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 ?*) ac_cv_sizeof_short=$ac_lo;;
8436 '') if test "$ac_cv_type_short" = yes; then
8437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8438 See \`config.log
' for more details." >&5
8439 echo "$as_me: error: cannot compute sizeof (short)
8440 See \`config.log' for more details.
" >&2;}
8441 { (exit 77); exit 77; }; }
8443 ac_cv_sizeof_short=0
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 $ac_includes_default
8454 typedef short ac__type_sizeof_;
8455 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8456 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8463 FILE *f = fopen ("conftest.val
", "w
");
8466 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8468 long int i = longval ();
8469 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8471 fprintf (f, "%ld
\n", i);
8475 unsigned long int i = ulongval ();
8476 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8478 fprintf (f, "%lu
\n", i);
8480 return ferror (f) || fclose (f) != 0;
8486 rm -f conftest$ac_exeext
8487 if { (ac_try="$ac_link"
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_link") 2>&5
8495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8497 { (case "(($ac_try" in
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_try") 2>&5
8504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_sizeof_short=`cat conftest.val`
8508 echo "$as_me: program exited with status
$ac_status" >&5
8509 echo "$as_me: failed program was
:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8513 if test "$ac_cv_type_short" = yes; then
8514 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8515 See \
`config.log' for more details." >&5
8516 echo "$as_me: error: cannot compute sizeof (short)
8517 See \`config.log
' for more details." >&2;}
8518 { (exit 77); exit 77; }; }
8520 ac_cv_sizeof_short=0
8523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8527 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8528 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8532 cat >>confdefs.h <<_ACEOF
8533 #define SIZEOF_SHORT $ac_cv_sizeof_short
8537 { echo "$as_me:$LINENO: checking for float" >&5
8538 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8539 if test "${ac_cv_type_float+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 $ac_includes_default
8549 typedef float ac__type_new_;
8553 if ((ac__type_new_ *) 0)
8555 if (sizeof (ac__type_new_))
8561 rm -f conftest.$ac_objext
8562 if { (ac_try="$ac_compile"
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8570 grep -v '^
*+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_type_float=yes
8580 echo "$as_me: failed program was:" >&5
8581 sed 's
/^
/|
/' conftest.$ac_ext >&5
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8589 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8591 # The cast to long int works around a bug in the HP C Compiler
8592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8594 # This bug is HP SR number 8606223364.
8595 { echo "$as_me:$LINENO: checking size of float" >&5
8596 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8597 if test "${ac_cv_sizeof_float+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 if test "$cross_compiling" = yes; then
8601 # Depending upon the size, compute the lo and hi bounds.
8602 cat >conftest.
$ac_ext <<_ACEOF
8605 cat confdefs.h
>>conftest.
$ac_ext
8606 cat >>conftest.
$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 $ac_includes_default
8609 typedef float ac__type_sizeof_;
8613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8620 rm -f conftest.
$ac_objext
8621 if { (ac_try
="$ac_compile"
8623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8629 grep -v '^ *+' conftest.er1 >conftest.err
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && {
8634 test -z "$ac_c_werror_flag" ||
8635 test ! -s conftest.err
8636 } && test -s conftest.$ac_objext; then
8639 cat >conftest.$ac_ext <<_ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8646 typedef float ac__type_sizeof_;
8650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8657 rm -f conftest.$ac_objext
8658 if { (ac_try="$ac_compile"
8660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8661 *) ac_try_echo
=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_compile") 2>conftest.er1
8666 grep -v '^ *+' conftest.er1
>conftest.err
8668 cat conftest.err
>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && {
8671 test -z "$ac_c_werror_flag" ||
8672 test ! -s conftest.err
8673 } && test -s conftest.
$ac_objext; then
8674 ac_hi
=$ac_mid; break
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.
$ac_ext >&5
8679 ac_lo
=`expr $ac_mid + 1`
8680 if test $ac_lo -le $ac_mid; then
8684 ac_mid
=`expr 2 '*' $ac_mid + 1`
8687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.
$ac_ext >&5
8693 cat >conftest.
$ac_ext <<_ACEOF
8696 cat confdefs.h
>>conftest.
$ac_ext
8697 cat >>conftest.
$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 $ac_includes_default
8700 typedef float ac__type_sizeof_;
8704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8711 rm -f conftest.
$ac_objext
8712 if { (ac_try
="$ac_compile"
8714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_compile") 2>conftest.er1
8720 grep -v '^ *+' conftest.er1 >conftest.err
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } && {
8725 test -z "$ac_c_werror_flag" ||
8726 test ! -s conftest.err
8727 } && test -s conftest.$ac_objext; then
8730 cat >conftest.$ac_ext <<_ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 $ac_includes_default
8737 typedef float ac__type_sizeof_;
8741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8748 rm -f conftest.$ac_objext
8749 if { (ac_try="$ac_compile"
8751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8752 *) ac_try_echo
=$ac_try;;
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8757 grep -v '^ *+' conftest.er1
>conftest.err
8759 cat conftest.err
>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.
$ac_objext; then
8765 ac_lo
=$ac_mid; break
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.
$ac_ext >&5
8770 ac_hi
=`expr '(' $ac_mid ')' - 1`
8771 if test $ac_mid -le $ac_hi; then
8775 ac_mid
=`expr 2 '*' $ac_mid`
8778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.
$ac_ext >&5
8787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8791 # Binary search between lo and hi bounds.
8792 while test "x$ac_lo" != "x$ac_hi"; do
8793 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8794 cat >conftest.
$ac_ext <<_ACEOF
8797 cat confdefs.h
>>conftest.
$ac_ext
8798 cat >>conftest.
$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 typedef float ac__type_sizeof_;
8805 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8812 rm -f conftest.
$ac_objext
8813 if { (ac_try
="$ac_compile"
8815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_compile") 2>conftest.er1
8821 grep -v '^ *+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && {
8826 test -z "$ac_c_werror_flag" ||
8827 test ! -s conftest.err
8828 } && test -s conftest.$ac_objext; then
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8834 ac_lo=`expr '(' $ac_mid ')' + 1`
8837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 ?*) ac_cv_sizeof_float=$ac_lo;;
8841 '') if test "$ac_cv_type_float" = yes; then
8842 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8843 See \`config.log
' for more details." >&5
8844 echo "$as_me: error: cannot compute sizeof (float)
8845 See \`config.log' for more details.
" >&2;}
8846 { (exit 77); exit 77; }; }
8848 ac_cv_sizeof_float=0
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8859 typedef float ac__type_sizeof_;
8860 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8861 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8868 FILE *f = fopen ("conftest.val
", "w
");
8871 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8873 long int i = longval ();
8874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8876 fprintf (f, "%ld
\n", i);
8880 unsigned long int i = ulongval ();
8881 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8883 fprintf (f, "%lu
\n", i);
8885 return ferror (f) || fclose (f) != 0;
8891 rm -f conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_link") 2>&5
8900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8902 { (case "(($ac_try" in
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_try") 2>&5
8909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_sizeof_float=`cat conftest.val`
8913 echo "$as_me: program exited with status
$ac_status" >&5
8914 echo "$as_me: failed program was
:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8918 if test "$ac_cv_type_float" = yes; then
8919 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8920 See \
`config.log' for more details." >&5
8921 echo "$as_me: error: cannot compute sizeof (float)
8922 See \`config.log
' for more details." >&2;}
8923 { (exit 77); exit 77; }; }
8925 ac_cv_sizeof_float=0
8928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8932 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8933 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8937 cat >>confdefs.h <<_ACEOF
8938 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8942 { echo "$as_me:$LINENO: checking for double" >&5
8943 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8944 if test "${ac_cv_type_double+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 $ac_includes_default
8954 typedef double ac__type_new_;
8958 if ((ac__type_new_ *) 0)
8960 if (sizeof (ac__type_new_))
8966 rm -f conftest.$ac_objext
8967 if { (ac_try="$ac_compile"
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_compile") 2>conftest.er1
8975 grep -v '^
*+' conftest.er1 >conftest.err
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && {
8980 test -z "$ac_c_werror_flag" ||
8981 test ! -s conftest.err
8982 } && test -s conftest.$ac_objext; then
8983 ac_cv_type_double=yes
8985 echo "$as_me: failed program was:" >&5
8986 sed 's
/^
/|
/' conftest.$ac_ext >&5
8988 ac_cv_type_double=no
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8994 echo "${ECHO_T}$ac_cv_type_double" >&6; }
8996 # The cast to long int works around a bug in the HP C Compiler
8997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8999 # This bug is HP SR number 8606223364.
9000 { echo "$as_me:$LINENO: checking size of double" >&5
9001 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9002 if test "${ac_cv_sizeof_double+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 if test "$cross_compiling" = yes; then
9006 # Depending upon the size, compute the lo and hi bounds.
9007 cat >conftest.
$ac_ext <<_ACEOF
9010 cat confdefs.h
>>conftest.
$ac_ext
9011 cat >>conftest.
$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 $ac_includes_default
9014 typedef double ac__type_sizeof_;
9018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9025 rm -f conftest.
$ac_objext
9026 if { (ac_try
="$ac_compile"
9028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032 (eval "$ac_compile") 2>conftest.er1
9034 grep -v '^ *+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest.$ac_objext; then
9044 cat >conftest.$ac_ext <<_ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9050 $ac_includes_default
9051 typedef double ac__type_sizeof_;
9055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9066 *) ac_try_echo
=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1
>conftest.err
9073 cat conftest.err
>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.
$ac_objext; then
9079 ac_hi
=$ac_mid; break
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.
$ac_ext >&5
9084 ac_lo
=`expr $ac_mid + 1`
9085 if test $ac_lo -le $ac_mid; then
9089 ac_mid
=`expr 2 '*' $ac_mid + 1`
9092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.
$ac_ext >&5
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 typedef double ac__type_sizeof_;
9109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9116 rm -f conftest.
$ac_objext
9117 if { (ac_try
="$ac_compile"
9119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 $ac_includes_default
9142 typedef double ac__type_sizeof_;
9146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9153 rm -f conftest.$ac_objext
9154 if { (ac_try="$ac_compile"
9156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9157 *) ac_try_echo
=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_compile") 2>conftest.er1
9162 grep -v '^ *+' conftest.er1
>conftest.err
9164 cat conftest.err
>&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest.
$ac_objext; then
9170 ac_lo
=$ac_mid; break
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.
$ac_ext >&5
9175 ac_hi
=`expr '(' $ac_mid ')' - 1`
9176 if test $ac_mid -le $ac_hi; then
9180 ac_mid
=`expr 2 '*' $ac_mid`
9183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.
$ac_ext >&5
9192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9196 # Binary search between lo and hi bounds.
9197 while test "x$ac_lo" != "x$ac_hi"; do
9198 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9206 typedef double ac__type_sizeof_;
9210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9217 rm -f conftest.
$ac_objext
9218 if { (ac_try
="$ac_compile"
9220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_compile") 2>conftest.er1
9226 grep -v '^ *+' conftest.er1 >conftest.err
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest.$ac_objext; then
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_lo=`expr '(' $ac_mid ')' + 1`
9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 ?*) ac_cv_sizeof_double=$ac_lo;;
9246 '') if test "$ac_cv_type_double" = yes; then
9247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9248 See \`config.log
' for more details." >&5
9249 echo "$as_me: error: cannot compute sizeof (double)
9250 See \`config.log' for more details.
" >&2;}
9251 { (exit 77); exit 77; }; }
9253 ac_cv_sizeof_double=0
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9264 typedef double ac__type_sizeof_;
9265 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9266 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9273 FILE *f = fopen ("conftest.val
", "w
");
9276 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9278 long int i = longval ();
9279 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9281 fprintf (f, "%ld
\n", i);
9285 unsigned long int i = ulongval ();
9286 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9288 fprintf (f, "%lu
\n", i);
9290 return ferror (f) || fclose (f) != 0;
9296 rm -f conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_link") 2>&5
9305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9307 { (case "(($ac_try" in
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_try") 2>&5
9314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 ac_cv_sizeof_double=`cat conftest.val`
9318 echo "$as_me: program exited with status
$ac_status" >&5
9319 echo "$as_me: failed program was
:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9323 if test "$ac_cv_type_double" = yes; then
9324 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9325 See \
`config.log' for more details." >&5
9326 echo "$as_me: error: cannot compute sizeof (double)
9327 See \`config.log
' for more details." >&2;}
9328 { (exit 77); exit 77; }; }
9330 ac_cv_sizeof_double=0
9333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9337 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9338 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9342 cat >>confdefs.h <<_ACEOF
9343 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9347 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9348 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9349 if test "${ac_cv_type_fpos_t+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 $ac_includes_default
9359 typedef fpos_t ac__type_new_;
9363 if ((ac__type_new_ *) 0)
9365 if (sizeof (ac__type_new_))
9371 rm -f conftest.$ac_objext
9372 if { (ac_try="$ac_compile"
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
9380 grep -v '^
*+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
9388 ac_cv_type_fpos_t=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's
/^
/|
/' conftest.$ac_ext >&5
9393 ac_cv_type_fpos_t=no
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9399 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9401 # The cast to long int works around a bug in the HP C Compiler
9402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9404 # This bug is HP SR number 8606223364.
9405 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9406 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9407 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 if test "$cross_compiling" = yes; then
9411 # Depending upon the size, compute the lo and hi bounds.
9412 cat >conftest.
$ac_ext <<_ACEOF
9415 cat confdefs.h
>>conftest.
$ac_ext
9416 cat >>conftest.
$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 $ac_includes_default
9419 typedef fpos_t ac__type_sizeof_;
9423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9430 rm -f conftest.
$ac_objext
9431 if { (ac_try
="$ac_compile"
9433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_compile") 2>conftest.er1
9439 grep -v '^ *+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_c_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest.$ac_objext; then
9449 cat >conftest.$ac_ext <<_ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9455 $ac_includes_default
9456 typedef fpos_t ac__type_sizeof_;
9460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9467 rm -f conftest.$ac_objext
9468 if { (ac_try="$ac_compile"
9470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9471 *) ac_try_echo
=$ac_try;;
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_compile") 2>conftest.er1
9476 grep -v '^ *+' conftest.er1
>conftest.err
9478 cat conftest.err
>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest.
$ac_objext; then
9484 ac_hi
=$ac_mid; break
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.
$ac_ext >&5
9489 ac_lo
=`expr $ac_mid + 1`
9490 if test $ac_lo -le $ac_mid; then
9494 ac_mid
=`expr 2 '*' $ac_mid + 1`
9497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.
$ac_ext >&5
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 $ac_includes_default
9510 typedef fpos_t ac__type_sizeof_;
9514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9521 rm -f conftest.
$ac_objext
9522 if { (ac_try
="$ac_compile"
9524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_compile") 2>conftest.er1
9530 grep -v '^ *+' conftest.er1 >conftest.err
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest.$ac_objext; then
9540 cat >conftest.$ac_ext <<_ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 $ac_includes_default
9547 typedef fpos_t ac__type_sizeof_;
9551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9558 rm -f conftest.$ac_objext
9559 if { (ac_try="$ac_compile"
9561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9562 *) ac_try_echo
=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_compile") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1
>conftest.err
9569 cat conftest.err
>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } && {
9572 test -z "$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 } && test -s conftest.
$ac_objext; then
9575 ac_lo
=$ac_mid; break
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.
$ac_ext >&5
9580 ac_hi
=`expr '(' $ac_mid ')' - 1`
9581 if test $ac_mid -le $ac_hi; then
9585 ac_mid
=`expr 2 '*' $ac_mid`
9588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.
$ac_ext >&5
9597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9601 # Binary search between lo and hi bounds.
9602 while test "x$ac_lo" != "x$ac_hi"; do
9603 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9604 cat >conftest.
$ac_ext <<_ACEOF
9607 cat confdefs.h
>>conftest.
$ac_ext
9608 cat >>conftest.
$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9611 typedef fpos_t ac__type_sizeof_;
9615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9622 rm -f conftest.
$ac_objext
9623 if { (ac_try
="$ac_compile"
9625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_compile") 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest.$ac_objext; then
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_lo=`expr '(' $ac_mid ')' + 1`
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9651 '') if test "$ac_cv_type_fpos_t" = yes; then
9652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9653 See \`config.log
' for more details." >&5
9654 echo "$as_me: error: cannot compute sizeof (fpos_t)
9655 See \`config.log' for more details.
" >&2;}
9656 { (exit 77); exit 77; }; }
9658 ac_cv_sizeof_fpos_t=0
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9669 typedef fpos_t ac__type_sizeof_;
9670 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9671 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9678 FILE *f = fopen ("conftest.val
", "w
");
9681 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9683 long int i = longval ();
9684 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9686 fprintf (f, "%ld
\n", i);
9690 unsigned long int i = ulongval ();
9691 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9693 fprintf (f, "%lu
\n", i);
9695 return ferror (f) || fclose (f) != 0;
9701 rm -f conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>&5
9710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9712 { (case "(($ac_try" in
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_try") 2>&5
9719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_sizeof_fpos_t=`cat conftest.val`
9723 echo "$as_me: program exited with status
$ac_status" >&5
9724 echo "$as_me: failed program was
:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9728 if test "$ac_cv_type_fpos_t" = yes; then
9729 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9730 See \
`config.log' for more details." >&5
9731 echo "$as_me: error: cannot compute sizeof (fpos_t)
9732 See \`config.log
' for more details." >&2;}
9733 { (exit 77); exit 77; }; }
9735 ac_cv_sizeof_fpos_t=0
9738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9742 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9743 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9747 cat >>confdefs.h <<_ACEOF
9748 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9752 { echo "$as_me:$LINENO: checking for size_t" >&5
9753 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9754 if test "${ac_cv_type_size_t+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 typedef size_t ac__type_new_;
9768 if ((ac__type_new_ *) 0)
9770 if (sizeof (ac__type_new_))
9776 rm -f conftest.$ac_objext
9777 if { (ac_try="$ac_compile"
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_compile") 2>conftest.er1
9785 grep -v '^
*+' conftest.er1 >conftest.err
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } && {
9790 test -z "$ac_c_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest.$ac_objext; then
9793 ac_cv_type_size_t=yes
9795 echo "$as_me: failed program was:" >&5
9796 sed 's
/^
/|
/' conftest.$ac_ext >&5
9798 ac_cv_type_size_t=no
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9806 # The cast to long int works around a bug in the HP C Compiler
9807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9809 # This bug is HP SR number 8606223364.
9810 { echo "$as_me:$LINENO: checking size of size_t" >&5
9811 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9812 if test "${ac_cv_sizeof_size_t+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 if test "$cross_compiling" = yes; then
9816 # Depending upon the size, compute the lo and hi bounds.
9817 cat >conftest.
$ac_ext <<_ACEOF
9820 cat confdefs.h
>>conftest.
$ac_ext
9821 cat >>conftest.
$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9824 typedef size_t ac__type_sizeof_;
9828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9835 rm -f conftest.
$ac_objext
9836 if { (ac_try
="$ac_compile"
9838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 $ac_includes_default
9861 typedef size_t ac__type_sizeof_;
9865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9872 rm -f conftest.$ac_objext
9873 if { (ac_try="$ac_compile"
9875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9876 *) ac_try_echo
=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_compile") 2>conftest.er1
9881 grep -v '^ *+' conftest.er1
>conftest.err
9883 cat conftest.err
>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest.
$ac_objext; then
9889 ac_hi
=$ac_mid; break
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.
$ac_ext >&5
9894 ac_lo
=`expr $ac_mid + 1`
9895 if test $ac_lo -le $ac_mid; then
9899 ac_mid
=`expr 2 '*' $ac_mid + 1`
9902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.
$ac_ext >&5
9908 cat >conftest.
$ac_ext <<_ACEOF
9911 cat confdefs.h
>>conftest.
$ac_ext
9912 cat >>conftest.
$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 $ac_includes_default
9915 typedef size_t ac__type_sizeof_;
9919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9926 rm -f conftest.
$ac_objext
9927 if { (ac_try
="$ac_compile"
9929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_compile") 2>conftest.er1
9935 grep -v '^ *+' conftest.er1 >conftest.err
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } && {
9940 test -z "$ac_c_werror_flag" ||
9941 test ! -s conftest.err
9942 } && test -s conftest.$ac_objext; then
9945 cat >conftest.$ac_ext <<_ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 $ac_includes_default
9952 typedef size_t ac__type_sizeof_;
9956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9963 rm -f conftest.$ac_objext
9964 if { (ac_try="$ac_compile"
9966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9967 *) ac_try_echo
=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_compile") 2>conftest.er1
9972 grep -v '^ *+' conftest.er1
>conftest.err
9974 cat conftest.err
>&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest.
$ac_objext; then
9980 ac_lo
=$ac_mid; break
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.
$ac_ext >&5
9985 ac_hi
=`expr '(' $ac_mid ')' - 1`
9986 if test $ac_mid -le $ac_hi; then
9990 ac_mid
=`expr 2 '*' $ac_mid`
9993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.
$ac_ext >&5
10002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10006 # Binary search between lo and hi bounds.
10007 while test "x$ac_lo" != "x$ac_hi"; do
10008 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10009 cat >conftest.
$ac_ext <<_ACEOF
10012 cat confdefs.h
>>conftest.
$ac_ext
10013 cat >>conftest.
$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 $ac_includes_default
10016 typedef size_t ac__type_sizeof_;
10020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10027 rm -f conftest.
$ac_objext
10028 if { (ac_try
="$ac_compile"
10029 case "(($ac_try" in
10030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_compile") 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest.$ac_objext; then
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_lo=`expr '(' $ac_mid ')' + 1`
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10056 '') if test "$ac_cv_type_size_t" = yes; then
10057 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10058 See \`config.log
' for more details." >&5
10059 echo "$as_me: error: cannot compute sizeof (size_t)
10060 See \`config.log' for more details.
" >&2;}
10061 { (exit 77); exit 77; }; }
10063 ac_cv_sizeof_size_t=0
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 $ac_includes_default
10074 typedef size_t ac__type_sizeof_;
10075 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10076 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10078 #include <stdlib.h>
10083 FILE *f = fopen ("conftest.val
", "w
");
10086 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10088 long int i = longval ();
10089 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10091 fprintf (f, "%ld
\n", i);
10095 unsigned long int i = ulongval ();
10096 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10098 fprintf (f, "%lu
\n", i);
10100 return ferror (f) || fclose (f) != 0;
10106 rm -f conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>&5
10115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
10124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_sizeof_size_t=`cat conftest.val`
10128 echo "$as_me: program exited with status
$ac_status" >&5
10129 echo "$as_me: failed program was
:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ( exit $ac_status )
10133 if test "$ac_cv_type_size_t" = yes; then
10134 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10135 See \
`config.log' for more details." >&5
10136 echo "$as_me: error: cannot compute sizeof (size_t)
10137 See \`config.log
' for more details." >&2;}
10138 { (exit 77); exit 77; }; }
10140 ac_cv_sizeof_size_t=0
10143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10147 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10148 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10152 cat >>confdefs.h <<_ACEOF
10153 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10158 { echo "$as_me:$LINENO: checking for long long support" >&5
10159 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10171 long long x; x = (long long)0;
10176 rm -f conftest.$ac_objext
10177 if { (ac_try="$ac_compile"
10178 case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_compile") 2>conftest.er1
10185 grep -v '^
*+' conftest.er1 >conftest.err
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && {
10190 test -z "$ac_c_werror_flag" ||
10191 test ! -s conftest.err
10192 } && test -s conftest.$ac_objext; then
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_LONG_LONG 1
10202 echo "$as_me: failed program was:" >&5
10203 sed 's
/^
/|
/' conftest.$ac_ext >&5
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10210 echo "${ECHO_T}$have_long_long" >&6; }
10211 if test "$have_long_long" = yes ; then
10212 { echo "$as_me:$LINENO: checking for long long" >&5
10213 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10214 if test "${ac_cv_type_long_long+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 cat >conftest.$ac_ext <<_ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 $ac_includes_default
10224 typedef long long ac__type_new_;
10228 if ((ac__type_new_ *) 0)
10230 if (sizeof (ac__type_new_))
10236 rm -f conftest.$ac_objext
10237 if { (ac_try="$ac_compile"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_compile") 2>conftest.er1
10245 grep -v '^
*+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest.$ac_objext; then
10253 ac_cv_type_long_long=yes
10255 echo "$as_me: failed program was:" >&5
10256 sed 's
/^
/|
/' conftest.$ac_ext >&5
10258 ac_cv_type_long_long=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10264 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10266 # The cast to long int works around a bug in the HP C Compiler
10267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10269 # This bug is HP SR number 8606223364.
10270 { echo "$as_me:$LINENO: checking size of long long" >&5
10271 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10272 if test "${ac_cv_sizeof_long_long+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 if test "$cross_compiling" = yes; then
10276 # Depending upon the size, compute the lo and hi bounds.
10277 cat >conftest.
$ac_ext <<_ACEOF
10280 cat confdefs.h
>>conftest.
$ac_ext
10281 cat >>conftest.
$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 $ac_includes_default
10284 typedef long long ac__type_sizeof_;
10288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10295 rm -f conftest.
$ac_objext
10296 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
10304 grep -v '^ *+' conftest.er1 >conftest.err
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest.$ac_objext; then
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10321 typedef long long ac__type_sizeof_;
10325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10332 rm -f conftest.$ac_objext
10333 if { (ac_try="$ac_compile"
10334 case "(($ac_try" in
10335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10336 *) ac_try_echo
=$ac_try;;
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_compile") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1
>conftest.err
10343 cat conftest.err
>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest.
$ac_objext; then
10349 ac_hi
=$ac_mid; break
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.
$ac_ext >&5
10354 ac_lo
=`expr $ac_mid + 1`
10355 if test $ac_lo -le $ac_mid; then
10359 ac_mid
=`expr 2 '*' $ac_mid + 1`
10362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.
$ac_ext >&5
10368 cat >conftest.
$ac_ext <<_ACEOF
10371 cat confdefs.h
>>conftest.
$ac_ext
10372 cat >>conftest.
$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 typedef long long ac__type_sizeof_;
10379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10386 rm -f conftest.
$ac_objext
10387 if { (ac_try
="$ac_compile"
10388 case "(($ac_try" in
10389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.$ac_objext; then
10405 cat >conftest.$ac_ext <<_ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 $ac_includes_default
10412 typedef long long ac__type_sizeof_;
10416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10423 rm -f conftest.$ac_objext
10424 if { (ac_try="$ac_compile"
10425 case "(($ac_try" in
10426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10427 *) ac_try_echo
=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_compile") 2>conftest.er1
10432 grep -v '^ *+' conftest.er1
>conftest.err
10434 cat conftest.err
>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest.
$ac_objext; then
10440 ac_lo
=$ac_mid; break
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.
$ac_ext >&5
10445 ac_hi
=`expr '(' $ac_mid ')' - 1`
10446 if test $ac_mid -le $ac_hi; then
10450 ac_mid
=`expr 2 '*' $ac_mid`
10453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.
$ac_ext >&5
10462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10466 # Binary search between lo and hi bounds.
10467 while test "x$ac_lo" != "x$ac_hi"; do
10468 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10469 cat >conftest.
$ac_ext <<_ACEOF
10472 cat confdefs.h
>>conftest.
$ac_ext
10473 cat >>conftest.
$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 typedef long long ac__type_sizeof_;
10480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10487 rm -f conftest.
$ac_objext
10488 if { (ac_try
="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10496 grep -v '^ *+' conftest.er1 >conftest.err
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_lo=`expr '(' $ac_mid ')' + 1`
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10516 '') if test "$ac_cv_type_long_long" = yes; then
10517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10518 See \`config.log
' for more details." >&5
10519 echo "$as_me: error: cannot compute sizeof (long long)
10520 See \`config.log' for more details.
" >&2;}
10521 { (exit 77); exit 77; }; }
10523 ac_cv_sizeof_long_long=0
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 typedef long long ac__type_sizeof_;
10535 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10536 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10538 #include <stdlib.h>
10543 FILE *f = fopen ("conftest.val
", "w
");
10546 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10548 long int i = longval ();
10549 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10551 fprintf (f, "%ld
\n", i);
10555 unsigned long int i = ulongval ();
10556 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10558 fprintf (f, "%lu
\n", i);
10560 return ferror (f) || fclose (f) != 0;
10566 rm -f conftest$ac_exeext
10567 if { (ac_try="$ac_link"
10568 case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_link") 2>&5
10575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10577 { (case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_try") 2>&5
10584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_sizeof_long_long=`cat conftest.val`
10588 echo "$as_me: program exited with status
$ac_status" >&5
10589 echo "$as_me: failed program was
:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ( exit $ac_status )
10593 if test "$ac_cv_type_long_long" = yes; then
10594 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
10595 See \
`config.log' for more details." >&5
10596 echo "$as_me: error: cannot compute sizeof (long long)
10597 See \`config.log
' for more details." >&2;}
10598 { (exit 77); exit 77; }; }
10600 ac_cv_sizeof_long_long=0
10603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10608 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10612 cat >>confdefs.h <<_ACEOF
10613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10619 { echo "$as_me:$LINENO: checking for _Bool support" >&5
10620 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
10622 cat >conftest.$ac_ext <<_ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10632 _Bool x; x = (_Bool)0;
10637 rm -f conftest.$ac_objext
10638 if { (ac_try="$ac_compile"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_compile") 2>conftest.er1
10646 grep -v '^
*+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest.$ac_objext; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_C99_BOOL 1
10663 echo "$as_me: failed program was:" >&5
10664 sed 's
/^
/|
/' conftest.$ac_ext >&5
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10671 echo "${ECHO_T}$have_c99_bool" >&6; }
10672 if test "$have_c99_bool" = yes ; then
10673 { echo "$as_me:$LINENO: checking for _Bool" >&5
10674 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10675 if test "${ac_cv_type__Bool+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10685 typedef _Bool ac__type_new_;
10689 if ((ac__type_new_ *) 0)
10691 if (sizeof (ac__type_new_))
10697 rm -f conftest.$ac_objext
10698 if { (ac_try="$ac_compile"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_compile") 2>conftest.er1
10706 grep -v '^
*+' conftest.er1 >conftest.err
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest.$ac_objext; then
10714 ac_cv_type__Bool=yes
10716 echo "$as_me: failed program was:" >&5
10717 sed 's
/^
/|
/' conftest.$ac_ext >&5
10719 ac_cv_type__Bool=no
10722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10725 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10727 # The cast to long int works around a bug in the HP C Compiler
10728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10730 # This bug is HP SR number 8606223364.
10731 { echo "$as_me:$LINENO: checking size of _Bool" >&5
10732 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
10733 if test "${ac_cv_sizeof__Bool+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 if test "$cross_compiling" = yes; then
10737 # Depending upon the size, compute the lo and hi bounds.
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 $ac_includes_default
10745 typedef _Bool ac__type_sizeof_;
10749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10756 rm -f conftest.
$ac_objext
10757 if { (ac_try
="$ac_compile"
10758 case "(($ac_try" in
10759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_compile") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest.$ac_objext; then
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10782 typedef _Bool ac__type_sizeof_;
10786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10793 rm -f conftest.$ac_objext
10794 if { (ac_try="$ac_compile"
10795 case "(($ac_try" in
10796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10797 *) ac_try_echo
=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_compile") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1
>conftest.err
10804 cat conftest.err
>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest.
$ac_objext; then
10810 ac_hi
=$ac_mid; break
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.
$ac_ext >&5
10815 ac_lo
=`expr $ac_mid + 1`
10816 if test $ac_lo -le $ac_mid; then
10820 ac_mid
=`expr 2 '*' $ac_mid + 1`
10823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.
$ac_ext >&5
10829 cat >conftest.
$ac_ext <<_ACEOF
10832 cat confdefs.h
>>conftest.
$ac_ext
10833 cat >>conftest.
$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 $ac_includes_default
10836 typedef _Bool ac__type_sizeof_;
10840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10847 rm -f conftest.
$ac_objext
10848 if { (ac_try
="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
10856 grep -v '^ *+' conftest.er1 >conftest.err
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest.$ac_objext; then
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 $ac_includes_default
10873 typedef _Bool ac__type_sizeof_;
10877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10888 *) ac_try_echo
=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1
>conftest.err
10895 cat conftest.err
>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest.
$ac_objext; then
10901 ac_lo
=$ac_mid; break
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.
$ac_ext >&5
10906 ac_hi
=`expr '(' $ac_mid ')' - 1`
10907 if test $ac_mid -le $ac_hi; then
10911 ac_mid
=`expr 2 '*' $ac_mid`
10914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.
$ac_ext >&5
10923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10927 # Binary search between lo and hi bounds.
10928 while test "x$ac_lo" != "x$ac_hi"; do
10929 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10930 cat >conftest.
$ac_ext <<_ACEOF
10933 cat confdefs.h
>>conftest.
$ac_ext
10934 cat >>conftest.
$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 $ac_includes_default
10937 typedef _Bool ac__type_sizeof_;
10941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10948 rm -f conftest.
$ac_objext
10949 if { (ac_try
="$ac_compile"
10950 case "(($ac_try" in
10951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_compile") 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } && {
10962 test -z "$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10964 } && test -s conftest.$ac_objext; then
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ac_lo=`expr '(' $ac_mid ')' + 1`
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 ?*) ac_cv_sizeof__Bool=$ac_lo;;
10977 '') if test "$ac_cv_type__Bool" = yes; then
10978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
10979 See \`config.log
' for more details." >&5
10980 echo "$as_me: error: cannot compute sizeof (_Bool)
10981 See \`config.log' for more details.
" >&2;}
10982 { (exit 77); exit 77; }; }
10984 ac_cv_sizeof__Bool=0
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 $ac_includes_default
10995 typedef _Bool ac__type_sizeof_;
10996 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10997 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10999 #include <stdlib.h>
11004 FILE *f = fopen ("conftest.val
", "w
");
11007 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11009 long int i = longval ();
11010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11012 fprintf (f, "%ld
\n", i);
11016 unsigned long int i = ulongval ();
11017 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11019 fprintf (f, "%lu
\n", i);
11021 return ferror (f) || fclose (f) != 0;
11027 rm -f conftest$ac_exeext
11028 if { (ac_try="$ac_link"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_link") 2>&5
11036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_sizeof__Bool=`cat conftest.val`
11049 echo "$as_me: program exited with status
$ac_status" >&5
11050 echo "$as_me: failed program was
:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ( exit $ac_status )
11054 if test "$ac_cv_type__Bool" = yes; then
11055 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11056 See \
`config.log' for more details." >&5
11057 echo "$as_me: error: cannot compute sizeof (_Bool)
11058 See \`config.log
' for more details." >&2;}
11059 { (exit 77); exit 77; }; }
11061 ac_cv_sizeof__Bool=0
11064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11068 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11069 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11073 cat >>confdefs.h <<_ACEOF
11074 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11080 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11081 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11082 if test "${ac_cv_type_uintptr_t+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 cat >conftest.$ac_ext <<_ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #ifdef HAVE_STDINT_H
11092 #include <stdint.h>
11095 typedef uintptr_t ac__type_new_;
11099 if ((ac__type_new_ *) 0)
11101 if (sizeof (ac__type_new_))
11107 rm -f conftest.$ac_objext
11108 if { (ac_try="$ac_compile"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_compile") 2>conftest.er1
11116 grep -v '^
*+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && {
11121 test -z "$ac_c_werror_flag" ||
11122 test ! -s conftest.err
11123 } && test -s conftest.$ac_objext; then
11124 ac_cv_type_uintptr_t=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's
/^
/|
/' conftest.$ac_ext >&5
11129 ac_cv_type_uintptr_t=no
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11135 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11136 if test $ac_cv_type_uintptr_t = yes; then
11138 cat >>confdefs.h <<_ACEOF
11139 #define HAVE_UINTPTR_T 1
11142 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11143 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11144 if test "${ac_cv_type_uintptr_t+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 typedef uintptr_t ac__type_new_;
11158 if ((ac__type_new_ *) 0)
11160 if (sizeof (ac__type_new_))
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_compile") 2>conftest.er1
11175 grep -v '^
*+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest.$ac_objext; then
11183 ac_cv_type_uintptr_t=yes
11185 echo "$as_me: failed program was:" >&5
11186 sed 's
/^
/|
/' conftest.$ac_ext >&5
11188 ac_cv_type_uintptr_t=no
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11194 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11196 # The cast to long int works around a bug in the HP C Compiler
11197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11199 # This bug is HP SR number 8606223364.
11200 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11201 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11202 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 if test "$cross_compiling" = yes; then
11206 # Depending upon the size, compute the lo and hi bounds.
11207 cat >conftest.
$ac_ext <<_ACEOF
11210 cat confdefs.h
>>conftest.
$ac_ext
11211 cat >>conftest.
$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 typedef uintptr_t ac__type_sizeof_;
11218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11225 rm -f conftest.
$ac_objext
11226 if { (ac_try
="$ac_compile"
11227 case "(($ac_try" in
11228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_compile") 2>conftest.er1
11234 grep -v '^ *+' conftest.er1 >conftest.err
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } && {
11239 test -z "$ac_c_werror_flag" ||
11240 test ! -s conftest.err
11241 } && test -s conftest.$ac_objext; then
11244 cat >conftest.$ac_ext <<_ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 $ac_includes_default
11251 typedef uintptr_t ac__type_sizeof_;
11255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11262 rm -f conftest.$ac_objext
11263 if { (ac_try="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11266 *) ac_try_echo
=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1
>conftest.err
11273 cat conftest.err
>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.
$ac_objext; then
11279 ac_hi
=$ac_mid; break
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.
$ac_ext >&5
11284 ac_lo
=`expr $ac_mid + 1`
11285 if test $ac_lo -le $ac_mid; then
11289 ac_mid
=`expr 2 '*' $ac_mid + 1`
11292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.
$ac_ext >&5
11298 cat >conftest.
$ac_ext <<_ACEOF
11301 cat confdefs.h
>>conftest.
$ac_ext
11302 cat >>conftest.
$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 $ac_includes_default
11305 typedef uintptr_t ac__type_sizeof_;
11309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11316 rm -f conftest.
$ac_objext
11317 if { (ac_try
="$ac_compile"
11318 case "(($ac_try" in
11319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_compile") 2>conftest.er1
11325 grep -v '^ *+' conftest.er1 >conftest.err
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest.$ac_objext; then
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 $ac_includes_default
11342 typedef uintptr_t ac__type_sizeof_;
11346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11353 rm -f conftest.$ac_objext
11354 if { (ac_try="$ac_compile"
11355 case "(($ac_try" in
11356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11357 *) ac_try_echo
=$ac_try;;
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_compile") 2>conftest.er1
11362 grep -v '^ *+' conftest.er1
>conftest.err
11364 cat conftest.err
>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest.
$ac_objext; then
11370 ac_lo
=$ac_mid; break
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.
$ac_ext >&5
11375 ac_hi
=`expr '(' $ac_mid ')' - 1`
11376 if test $ac_mid -le $ac_hi; then
11380 ac_mid
=`expr 2 '*' $ac_mid`
11383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.
$ac_ext >&5
11392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11396 # Binary search between lo and hi bounds.
11397 while test "x$ac_lo" != "x$ac_hi"; do
11398 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11399 cat >conftest.
$ac_ext <<_ACEOF
11402 cat confdefs.h
>>conftest.
$ac_ext
11403 cat >>conftest.
$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 $ac_includes_default
11406 typedef uintptr_t ac__type_sizeof_;
11410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11417 rm -f conftest.
$ac_objext
11418 if { (ac_try
="$ac_compile"
11419 case "(($ac_try" in
11420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_compile") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest.$ac_objext; then
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_lo=`expr '(' $ac_mid ')' + 1`
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11446 '') if test "$ac_cv_type_uintptr_t" = yes; then
11447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11448 See \`config.log
' for more details." >&5
11449 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11450 See \`config.log' for more details.
" >&2;}
11451 { (exit 77); exit 77; }; }
11453 ac_cv_sizeof_uintptr_t=0
11457 cat >conftest.$ac_ext <<_ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 $ac_includes_default
11464 typedef uintptr_t ac__type_sizeof_;
11465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11468 #include <stdlib.h>
11473 FILE *f = fopen ("conftest.val
", "w
");
11476 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11478 long int i = longval ();
11479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11481 fprintf (f, "%ld
\n", i);
11485 unsigned long int i = ulongval ();
11486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11488 fprintf (f, "%lu
\n", i);
11490 return ferror (f) || fclose (f) != 0;
11496 rm -f conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>&5
11505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11518 echo "$as_me: program exited with status
$ac_status" >&5
11519 echo "$as_me: failed program was
:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ( exit $ac_status )
11523 if test "$ac_cv_type_uintptr_t" = yes; then
11524 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
11525 See \
`config.log' for more details." >&5
11526 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11527 See \`config.log
' for more details." >&2;}
11528 { (exit 77); exit 77; }; }
11530 ac_cv_sizeof_uintptr_t=0
11533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11538 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11542 cat >>confdefs.h <<_ACEOF
11543 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11551 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
11552 { echo "$as_me:$LINENO: checking size of off_t" >&5
11553 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11554 if test "${ac_cv_sizeof_off_t+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 if test "$cross_compiling" = yes; then
11558 ac_cv_sizeof_off_t
=4
11560 cat >conftest.
$ac_ext <<_ACEOF
11563 cat confdefs.h
>>conftest.
$ac_ext
11564 cat >>conftest.
$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11567 #include <sys/types.h>
11570 FILE *f=fopen("conftestval", "w");
11572 fprintf(f, "%d\n", sizeof(off_t));
11576 rm -f conftest
$ac_exeext
11577 if { (ac_try
="$ac_link"
11578 case "(($ac_try" in
11579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_link") 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11589 *) ac_try_echo
=$ac_try;;
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_sizeof_off_t
=`cat conftestval`
11598 echo "$as_me: program exited with status $ac_status" >&5
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.
$ac_ext >&5
11602 ( exit $ac_status )
11603 ac_cv_sizeof_off_t
=0
11605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11612 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11613 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
11615 cat >>confdefs.h
<<_ACEOF
11616 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11620 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11621 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
11622 if test "$have_long_long" = yes -a \
11623 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11624 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11626 cat >>confdefs.h
<<\_ACEOF
11627 #define HAVE_LARGEFILE_SUPPORT 1
11630 { echo "$as_me:$LINENO: result: yes" >&5
11631 echo "${ECHO_T}yes" >&6; }
11633 { echo "$as_me:$LINENO: result: no" >&5
11634 echo "${ECHO_T}no" >&6; }
11637 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11638 { echo "$as_me:$LINENO: checking size of time_t" >&5
11639 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
11640 if test "${ac_cv_sizeof_time_t+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 if test "$cross_compiling" = yes; then
11644 ac_cv_sizeof_time_t
=4
11646 cat >conftest.
$ac_ext <<_ACEOF
11649 cat confdefs.h
>>conftest.
$ac_ext
11650 cat >>conftest.
$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11656 FILE *f=fopen("conftestval", "w");
11658 fprintf(f, "%d\n", sizeof(time_t));
11662 rm -f conftest
$ac_exeext
11663 if { (ac_try
="$ac_link"
11664 case "(($ac_try" in
11665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_link") 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11673 { (case "(($ac_try" in
11674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11675 *) ac_try_echo
=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_sizeof_time_t
=`cat conftestval`
11684 echo "$as_me: program exited with status $ac_status" >&5
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.
$ac_ext >&5
11688 ( exit $ac_status )
11689 ac_cv_sizeof_time_t
=0
11691 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11699 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
11701 cat >>confdefs.h
<<_ACEOF
11702 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11707 # if have pthread_t then define SIZEOF_PTHREAD_T
11709 if test "$ac_cv_kpthread" = "yes"
11710 then CC
="$CC -Kpthread"
11711 elif test "$ac_cv_kthread" = "yes"
11712 then CC
="$CC -Kthread"
11713 elif test "$ac_cv_pthread" = "yes"
11714 then CC
="$CC -pthread"
11716 { echo "$as_me:$LINENO: checking for pthread_t" >&5
11717 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
11719 cat >conftest.
$ac_ext <<_ACEOF
11722 cat confdefs.h
>>conftest.
$ac_ext
11723 cat >>conftest.
$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 #include <pthread.h>
11729 pthread_t x; x = *(pthread_t*)0;
11734 rm -f conftest.
$ac_objext
11735 if { (ac_try
="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_compile") 2>conftest.er1
11743 grep -v '^ *+' conftest.er1 >conftest.err
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest.$ac_objext; then
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11761 echo "${ECHO_T}$have_pthread_t" >&6; }
11762 if test "$have_pthread_t" = yes ; then
11763 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11764 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
11765 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
11766 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 if test "$cross_compiling" = yes; then
11770 ac_cv_sizeof_pthread_t=4
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11779 #include <pthread.h>
11782 FILE *f=fopen("conftestval", "w");
11784 fprintf(f, "%d\n", sizeof(pthread_t));
11788 rm -f conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11792 *) ac_try_echo
=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11799 { (case "(($ac_try" in
11800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_cv_sizeof_pthread_t=`cat conftestval
`
11810 echo "$as_me: program exited with status $ac_status" >&5
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ( exit $ac_status )
11815 ac_cv_sizeof_pthread_t=0
11817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11824 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11825 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
11827 cat >>confdefs.h <<_ACEOF
11828 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11834 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11835 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
11836 # Check whether --enable-toolbox-glue was given.
11837 if test "${enable_toolbox_glue+set}" = set; then
11838 enableval=$enable_toolbox_glue;
11842 if test -z "$enable_toolbox_glue"
11844 case $ac_sys_system/$ac_sys_release in
11846 enable_toolbox_glue="yes";;
11848 enable_toolbox_glue="no";;
11851 case "$enable_toolbox_glue" in
11853 extra_machdep_objs="Python/mactoolboxglue.o"
11854 extra_undefs="-u _PyMac_Error"
11856 cat >>confdefs.h <<\_ACEOF
11857 #define USE_TOOLBOX_OBJECT_GLUE 1
11862 extra_machdep_objs=""
11866 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11867 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
11870 case $ac_sys_system/$ac_sys_release in
11871 Darwin/[01567]\..*)
11872 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11875 OTHER_LIBTOOL_OPT=""
11880 case $ac_sys_system/$ac_sys_release in
11881 Darwin/[01567]\..*)
11882 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11883 if test "${enable_universalsdk}"; then
11886 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
11888 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11889 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11891 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
11892 if test ${gcc_version} '<' 4.0
11894 LIBTOOL_CRUFT="-lcc_dynamic"
11898 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
11899 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11900 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11903 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
11904 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
11905 if test "$enable_framework"
11907 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11908 # -F. is needed to allow linking to the framework while
11909 # in the build location.
11911 cat >>confdefs.h <<\_ACEOF
11912 #define WITH_NEXT_FRAMEWORK 1
11915 { echo "$as_me:$LINENO: result: yes" >&5
11916 echo "${ECHO_T}yes" >&6; }
11918 { echo "$as_me:$LINENO: result: no" >&5
11919 echo "${ECHO_T}no" >&6; }
11922 { echo "$as_me:$LINENO: checking for dyld" >&5
11923 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
11924 case $ac_sys_system/$ac_sys_release in
11927 cat >>confdefs.h <<\_ACEOF
11928 #define WITH_DYLD 1
11931 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
11932 echo "${ECHO_T}always on for Darwin" >&6; }
11935 { echo "$as_me:$LINENO: result: no" >&5
11936 echo "${ECHO_T}no" >&6; }
11940 # Set info about shared libraries.
11946 # SO is the extension of shared libraries `(including the dot
!)
11947 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11948 { echo "$as_me:$LINENO: checking SO" >&5
11949 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
11952 case $ac_sys_system in
11963 # this might also be a termcap variable, see #610332
11965 echo '====================================================================='
11967 echo '+ WARNING: You have set SO in your environment. +'
11968 echo '+ Do you really mean to change the extension for shared libraries? +'
11969 echo '+ Continuing in 10 seconds to let you to ponder. +'
11971 echo '====================================================================='
11974 { echo "$as_me:$LINENO: result: $SO" >&5
11975 echo "${ECHO_T}$SO" >&6; }
11977 cat >>confdefs.h
<<_ACEOF
11978 #define SHLIB_EXT "$SO"
11981 # LDSHARED is the ld *command* used to create shared library
11982 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11983 # (Shared libraries in this instance are shared modules to be loaded into
11984 # Python, as opposed to building Python itself as a shared library.)
11985 { echo "$as_me:$LINENO: checking LDSHARED" >&5
11986 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
11987 if test -z "$LDSHARED"
11989 case $ac_sys_system/$ac_sys_release in
11991 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11992 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11995 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11996 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11998 IRIX
/5*) LDSHARED
="ld -shared";;
11999 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12001 if test "$GCC" = "yes"
12002 then LDSHARED
='$(CC) -shared'
12003 else LDSHARED
='$(CC) -G';
12005 hp
*|HP
*) LDSHARED
="ld -b";;
12006 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
12008 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12009 if test "$enable_framework" ; then
12010 # Link against the framework. All externals should be defined.
12011 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12012 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12014 # No framework. Ignore undefined symbols, assuming they come from Python
12015 LDSHARED
="$LDSHARED -undefined suppress"
12017 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12018 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12019 if test "$enable_framework" ; then
12020 # Link against the framework. All externals should be defined.
12021 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12022 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12024 # No framework, use the Python app as bundle-loader
12025 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12026 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12029 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12030 # This allows an extension to be used in any Python
12031 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12032 if test ${cur_target} '>' 10.2; then
12035 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12037 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12038 # environment with a value that is the same as what we'll use
12039 # in the Makefile to ensure that we'll get the same compiler
12040 # environment during configure and build time.
12041 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12042 export MACOSX_DEPLOYMENT_TARGET
12044 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12045 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12047 if test "${enable_universalsdk}"; then
12048 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12050 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12051 BLDSHARED
="$LDSHARED"
12053 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12054 if test "$enable_framework" ; then
12055 # Link against the framework. All externals should be defined.
12056 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12057 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12059 # No framework, use the Python app as bundle-loader
12060 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12061 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12065 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
12066 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12068 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12070 LDSHARED
="$CC -shared ${LDFLAGS}"
12072 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12075 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12077 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12080 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12081 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12084 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12088 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12089 OpenUNIX
*|UnixWare
*)
12090 if test "$GCC" = "yes"
12091 then LDSHARED
='$(CC) -shared'
12092 else LDSHARED
='$(CC) -G'
12094 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12095 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12096 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12097 atheos
*) LDSHARED
="gcc -shared";;
12101 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12102 echo "${ECHO_T}$LDSHARED" >&6; }
12103 BLDSHARED
=${BLDSHARED-$LDSHARED}
12104 # CCSHARED are the C *flags* used to create objects to go into a shared
12105 # library (module) -- this is only needed for a few systems
12106 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12107 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12108 if test -z "$CCSHARED"
12110 case $ac_sys_system/$ac_sys_release in
12111 SunOS
*) if test "$GCC" = yes;
12112 then CCSHARED
="-fPIC";
12113 elif test `uname -p` = sparc
;
12114 then CCSHARED
="-xcode=pic32";
12115 else CCSHARED
="-Kpic";
12117 hp
*|HP
*) if test "$GCC" = yes;
12118 then CCSHARED
="-fPIC";
12119 else CCSHARED
="+z";
12121 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12122 BSD
/OS
*/4*) CCSHARED
="-fpic";;
12123 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12124 OpenUNIX
*|UnixWare
*)
12125 if test "$GCC" = "yes"
12126 then CCSHARED
="-fPIC"
12127 else CCSHARED
="-KPIC"
12130 if test "$GCC" = "yes"
12131 then CCSHARED
="-fPIC"
12132 else CCSHARED
="-Kpic -belf"
12134 Monterey
*) CCSHARED
="-G";;
12135 IRIX
*/6*) case $CC in
12136 *gcc
*) CCSHARED
="-shared";;
12139 atheos
*) CCSHARED
="-fPIC";;
12142 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12143 echo "${ECHO_T}$CCSHARED" >&6; }
12144 # LINKFORSHARED are the flags passed to the $(CC) command that links
12145 # the python executable -- this is only needed for a few systems
12146 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12147 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12148 if test -z "$LINKFORSHARED"
12150 case $ac_sys_system/$ac_sys_release in
12151 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
12153 LINKFORSHARED
="-Wl,-E -Wl,+s";;
12154 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12155 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12156 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12157 # -u libsys_s pulls in all symbols in libsys
12159 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12161 # not used by the core itself but which needs to be in the core so
12162 # that dynamically loaded extension modules have access to it.
12163 # -prebind is no longer used, because it actually seems to give a
12164 # slowdown in stead of a speedup, maybe due to the large number of
12165 # dynamic loads Python does.
12167 LINKFORSHARED
="$extra_undefs"
12168 if test "$enable_framework"
12170 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12172 LINKFORSHARED
="$LINKFORSHARED";;
12173 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
12174 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
12175 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
12176 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
12177 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12179 LINKFORSHARED
="-Wl,--export-dynamic"
12181 SunOS
/5*) case $CC in
12183 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
12185 LINKFORSHARED
="-Xlinker --export-dynamic"
12189 if test $enable_shared = "no"
12191 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
12195 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12196 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12199 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12200 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12201 if test ! "$LIBRARY" = "$LDLIBRARY"
12203 case $ac_sys_system in
12205 # Cygwin needs CCSHARED when building extension DLLs
12206 # but not when building the interpreter DLL.
12207 CFLAGSFORSHARED
='';;
12209 CFLAGSFORSHARED
='$(CCSHARED)'
12212 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12213 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12215 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12216 # library (with --enable-shared).
12217 # For platforms on which shared libraries are not allowed to have unresolved
12218 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12219 # if it is not required, since it creates a dependency of the shared library
12220 # to LIBS. This, in turn, means that applications linking the shared libpython
12221 # don't need to link LIBS explicitly. The default should be only changed
12222 # on systems where this approach causes problems.
12224 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12225 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12226 case "$ac_sys_system" in
12230 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12231 echo "${ECHO_T}$SHLIBS" >&6; }
12234 # checks for libraries
12236 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 ac_check_lib_save_LIBS
=$LIBS
12243 cat >conftest.
$ac_ext <<_ACEOF
12246 cat confdefs.h
>>conftest.
$ac_ext
12247 cat >>conftest.
$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12265 rm -f conftest.
$ac_objext conftest
$ac_exeext
12266 if { (ac_try
="$ac_link"
12267 case "(($ac_try" in
12268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest$ac_exeext &&
12282 $as_test_x conftest$ac_exeext; then
12283 ac_cv_lib_dl_dlopen=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_lib_dl_dlopen=no
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12296 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12297 if test $ac_cv_lib_dl_dlopen = yes; then
12298 cat >>confdefs.h <<_ACEOF
12299 #define HAVE_LIBDL 1
12305 # Dynamic linking for SunOS/Solaris and SYSV
12307 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12308 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_check_lib_save_LIBS=$LIBS
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12331 return shl_load ();
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12340 *) ac_try_echo
=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1
>conftest.err
12347 cat conftest.err
>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest
$ac_exeext &&
12353 $as_test_x conftest
$ac_exeext; then
12354 ac_cv_lib_dld_shl_load
=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.
$ac_ext >&5
12359 ac_cv_lib_dld_shl_load
=no
12362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12363 conftest
$ac_exeext conftest.
$ac_ext
12364 LIBS
=$ac_check_lib_save_LIBS
12366 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12367 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12368 if test $ac_cv_lib_dld_shl_load = yes; then
12369 cat >>confdefs.h
<<_ACEOF
12370 #define HAVE_LIBDLD 1
12376 # Dynamic linking for HP-UX
12378 # only check for sem_ini if thread support is requested
12379 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12380 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12381 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12382 if test "${ac_cv_search_sem_init+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 ac_func_search_save_LIBS
=$LIBS
12386 cat >conftest.
$ac_ext <<_ACEOF
12389 cat confdefs.h
>>conftest.
$ac_ext
12390 cat >>conftest.
$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12403 return sem_init ();
12408 for ac_lib
in '' pthread rt posix4
; do
12409 if test -z "$ac_lib"; then
12410 ac_res
="none required"
12413 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12415 rm -f conftest.
$ac_objext conftest
$ac_exeext
12416 if { (ac_try
="$ac_link"
12417 case "(($ac_try" in
12418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest$ac_exeext &&
12432 $as_test_x conftest$ac_exeext; then
12433 ac_cv_search_sem_init=$ac_res
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12443 if test "${ac_cv_search_sem_init+set}" = set; then
12447 if test "${ac_cv_search_sem_init+set}" = set; then
12450 ac_cv_search_sem_init=no
12452 rm conftest.$ac_ext
12453 LIBS=$ac_func_search_save_LIBS
12455 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12456 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12457 ac_res=$ac_cv_search_sem_init
12458 if test "$ac_res" != no; then
12459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12462 # 'Real Time' functions on Solaris
12463 # posix4 on Solaris 2.6
12464 # pthread (first!) on Linux
12467 # check if we need libintl for locale functions
12468 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12469 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12470 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_check_lib_save_LIBS=$LIBS
12474 LIBS="-lintl $LIBS"
12475 cat >conftest.$ac_ext <<_ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12488 char textdomain ();
12492 return textdomain ();
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1
>conftest.err
12508 cat conftest.err
>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest
$ac_exeext &&
12514 $as_test_x conftest
$ac_exeext; then
12515 ac_cv_lib_intl_textdomain
=yes
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.
$ac_ext >&5
12520 ac_cv_lib_intl_textdomain
=no
12523 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12524 conftest
$ac_exeext conftest.
$ac_ext
12525 LIBS
=$ac_check_lib_save_LIBS
12527 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12528 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12529 if test $ac_cv_lib_intl_textdomain = yes; then
12531 cat >>confdefs.h
<<\_ACEOF
12532 #define WITH_LIBINTL 1
12538 # checks for system dependent C++ extensions support
12539 case "$ac_sys_system" in
12540 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12541 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12542 cat >conftest.
$ac_ext <<_ACEOF
12545 cat confdefs.h
>>conftest.
$ac_ext
12546 cat >>conftest.
$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #include "/usr/lpp/xlC/include/load.h"
12552 loadAndInit("", 0, "")
12557 rm -f conftest.
$ac_objext conftest
$ac_exeext
12558 if { (ac_try
="$ac_link"
12559 case "(($ac_try" in
12560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_link") 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && {
12571 test -z "$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 } && test -s conftest$ac_exeext &&
12574 $as_test_x conftest$ac_exeext; then
12576 cat >>confdefs.h <<\_ACEOF
12577 #define AIX_GENUINE_CPLUSPLUS 1
12580 { echo "$as_me:$LINENO: result: yes" >&5
12581 echo "${ECHO_T}yes" >&6; }
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 { echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6; }
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591 conftest$ac_exeext conftest.$ac_ext;;
12595 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12596 # BeOS' sockets are stashed in libnet.
12597 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12598 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
12599 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 ac_check_lib_save_LIBS=$LIBS
12604 cat >conftest.$ac_ext <<_ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12630 *) ac_try_echo
=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_link") 2>conftest.er1
12635 grep -v '^ *+' conftest.er1
>conftest.err
12637 cat conftest.err
>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest
$ac_exeext &&
12643 $as_test_x conftest
$ac_exeext; then
12644 ac_cv_lib_nsl_t_open
=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.
$ac_ext >&5
12649 ac_cv_lib_nsl_t_open
=no
12652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12653 conftest
$ac_exeext conftest.
$ac_ext
12654 LIBS
=$ac_check_lib_save_LIBS
12656 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12657 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
12658 if test $ac_cv_lib_nsl_t_open = yes; then
12662 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12663 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
12664 if test "${ac_cv_lib_socket_socket+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 ac_check_lib_save_LIBS
=$LIBS
12668 LIBS
="-lsocket $LIBS $LIBS"
12669 cat >conftest.
$ac_ext <<_ACEOF
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12691 rm -f conftest.
$ac_objext conftest
$ac_exeext
12692 if { (ac_try
="$ac_link"
12693 case "(($ac_try" in
12694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_link") 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_c_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest$ac_exeext &&
12708 $as_test_x conftest$ac_exeext; then
12709 ac_cv_lib_socket_socket=yes
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 ac_cv_lib_socket_socket=no
12717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12721 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12722 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
12723 if test $ac_cv_lib_socket_socket = yes; then
12724 LIBS="-lsocket $LIBS"
12728 case "$ac_sys_system" in
12730 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12731 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
12732 if test "${ac_cv_lib_net_socket+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lnet $LIBS $LIBS"
12737 cat >conftest.$ac_ext <<_ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12744 /* Override any GCC internal prototype to avoid an error.
12745 Use char because int might match the return type of a GCC
12746 builtin and then its argument prototype would still apply. */
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (ac_try="$ac_link"
12761 case "(($ac_try" in
12762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12763 *) ac_try_echo
=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1
>conftest.err
12770 cat conftest.err
>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest
$ac_exeext &&
12776 $as_test_x conftest
$ac_exeext; then
12777 ac_cv_lib_net_socket
=yes
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.
$ac_ext >&5
12782 ac_cv_lib_net_socket
=no
12785 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12786 conftest
$ac_exeext conftest.
$ac_ext
12787 LIBS
=$ac_check_lib_save_LIBS
12789 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12790 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
12791 if test $ac_cv_lib_net_socket = yes; then
12798 { echo "$as_me:$LINENO: checking for --with-libs" >&5
12799 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
12801 # Check whether --with-libs was given.
12802 if test "${with_libs+set}" = set; then
12803 withval
=$with_libs;
12804 { echo "$as_me:$LINENO: result: $withval" >&5
12805 echo "${ECHO_T}$withval" >&6; }
12806 LIBS
="$withval $LIBS"
12809 { echo "$as_me:$LINENO: result: no" >&5
12810 echo "${ECHO_T}no" >&6; }
12814 # Check for use of the system libffi library
12815 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12816 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
12818 # Check whether --with-system_ffi was given.
12819 if test "${with_system_ffi+set}" = set; then
12820 withval
=$with_system_ffi;
12824 if test -z "$with_system_ffi"
12825 then with_system_ffi
="no"
12827 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12828 echo "${ECHO_T}$with_system_ffi" >&6; }
12830 # Determine if signalmodule should be used.
12833 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12834 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
12836 # Check whether --with-signal-module was given.
12837 if test "${with_signal_module+set}" = set; then
12838 withval
=$with_signal_module;
12842 if test -z "$with_signal_module"
12843 then with_signal_module
="yes"
12845 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
12846 echo "${ECHO_T}$with_signal_module" >&6; }
12848 if test "${with_signal_module}" = "yes"; then
12849 USE_SIGNAL_MODULE
=""
12852 USE_SIGNAL_MODULE
="#"
12853 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
12856 # This is used to generate Setup.config
12858 USE_THREAD_MODULE
=""
12860 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12861 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
12864 # Check whether --with-dec-threads was given.
12865 if test "${with_dec_threads+set}" = set; then
12866 withval
=$with_dec_threads;
12867 { echo "$as_me:$LINENO: result: $withval" >&5
12868 echo "${ECHO_T}$withval" >&6; }
12870 if test "${with_thread+set}" != set; then
12871 with_thread
="$withval";
12874 { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12879 # Templates for things AC_DEFINEd more than once.
12880 # For a single AC_DEFINE, no template is needed.
12888 { echo "$as_me:$LINENO: checking for --with-threads" >&5
12889 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
12891 # Check whether --with-threads was given.
12892 if test "${with_threads+set}" = set; then
12893 withval
=$with_threads;
12897 # --with-thread is deprecated, but check for it anyway
12899 # Check whether --with-thread was given.
12900 if test "${with_thread+set}" = set; then
12901 withval
=$with_thread; with_threads
=$with_thread
12905 if test -z "$with_threads"
12906 then with_threads
="yes"
12908 { echo "$as_me:$LINENO: result: $with_threads" >&5
12909 echo "${ECHO_T}$with_threads" >&6; }
12912 if test "$with_threads" = "no"
12914 USE_THREAD_MODULE
="#"
12915 elif test "$ac_cv_pthread_is_default" = yes
12917 cat >>confdefs.h
<<\_ACEOF
12918 #define WITH_THREAD 1
12921 # Defining _REENTRANT on system with POSIX threads should not hurt.
12922 cat >>confdefs.h
<<\_ACEOF
12923 #define _REENTRANT 1
12927 THREADOBJ
="Python/thread.o"
12928 elif test "$ac_cv_kpthread" = "yes"
12931 if test "$ac_cv_cxx_thread" = "yes"; then
12932 CXX
="$CXX -Kpthread"
12934 cat >>confdefs.h
<<\_ACEOF
12935 #define WITH_THREAD 1
12939 THREADOBJ
="Python/thread.o"
12940 elif test "$ac_cv_kthread" = "yes"
12943 if test "$ac_cv_cxx_thread" = "yes"; then
12944 CXX
="$CXX -Kthread"
12946 cat >>confdefs.h
<<\_ACEOF
12947 #define WITH_THREAD 1
12951 THREADOBJ
="Python/thread.o"
12952 elif test "$ac_cv_pthread" = "yes"
12955 if test "$ac_cv_cxx_thread" = "yes"; then
12956 CXX
="$CXX -pthread"
12958 cat >>confdefs.h
<<\_ACEOF
12959 #define WITH_THREAD 1
12963 THREADOBJ
="Python/thread.o"
12965 if test ! -z "$with_threads" -a -d "$with_threads"
12966 then LDFLAGS
="$LDFLAGS -L$with_threads"
12968 if test ! -z "$withval" -a -d "$withval"
12969 then LDFLAGS
="$LDFLAGS -L$withval"
12972 # According to the POSIX spec, a pthreads implementation must
12973 # define _POSIX_THREADS in unistd.h. Some apparently don't
12974 # (e.g. gnu pth with pthread emulation)
12975 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12976 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
12977 cat >conftest.
$ac_ext <<_ACEOF
12980 cat confdefs.h
>>conftest.
$ac_ext
12981 cat >>conftest.
$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12984 #include <unistd.h>
12985 #ifdef _POSIX_THREADS
12990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12991 $EGREP "yes" >/dev
/null
2>&1; then
12992 unistd_defines_pthreads
=yes
12994 unistd_defines_pthreads
=no
12998 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12999 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13001 cat >>confdefs.h
<<\_ACEOF
13002 #define _REENTRANT 1
13005 if test "${ac_cv_header_cthreads_h+set}" = set; then
13006 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13007 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13008 if test "${ac_cv_header_cthreads_h+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13012 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13014 # Is the header compilable?
13015 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13016 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13017 cat >conftest.
$ac_ext <<_ACEOF
13020 cat confdefs.h
>>conftest.
$ac_ext
13021 cat >>conftest.
$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 $ac_includes_default
13024 #include <cthreads.h>
13026 rm -f conftest.
$ac_objext
13027 if { (ac_try
="$ac_compile"
13028 case "(($ac_try" in
13029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_compile") 2>conftest.er1
13035 grep -v '^ *+' conftest.er1 >conftest.err
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } && {
13040 test -z "$ac_c_werror_flag" ||
13041 test ! -s conftest.err
13042 } && test -s conftest.$ac_objext; then
13043 ac_header_compiler=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_header_compiler=no
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13053 echo "${ECHO_T}$ac_header_compiler" >&6; }
13055 # Is the header present?
13056 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13057 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13058 cat >conftest.$ac_ext <<_ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 #include <cthreads.h>
13066 if { (ac_try="$ac_cpp conftest.$ac_ext"
13067 case "(($ac_try" in
13068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13069 *) ac_try_echo
=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1
>conftest.err
13076 cat conftest.err
>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } >/dev
/null
&& {
13079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13082 ac_header_preproc
=yes
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.
$ac_ext >&5
13087 ac_header_preproc
=no
13090 rm -f conftest.err conftest.
$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13092 echo "${ECHO_T}$ac_header_preproc" >&6; }
13094 # So? What about this header?
13095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13097 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13098 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13100 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13101 ac_header_preproc
=yes
13104 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13105 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13107 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13109 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13111 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13112 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13113 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13114 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13115 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13117 ## ------------------------------------------------ ##
13118 ## Report this to http://www.python.org/python-bugs ##
13119 ## ------------------------------------------------ ##
13121 ) |
sed "s/^/$as_me: WARNING: /" >&2
13124 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13125 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13126 if test "${ac_cv_header_cthreads_h+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 ac_cv_header_cthreads_h
=$ac_header_preproc
13131 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13132 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13135 if test $ac_cv_header_cthreads_h = yes; then
13136 cat >>confdefs.h
<<\_ACEOF
13137 #define WITH_THREAD 1
13140 cat >>confdefs.h
<<\_ACEOF
13141 #define C_THREADS 1
13145 cat >>confdefs.h
<<\_ACEOF
13146 #define HURD_C_THREADS 1
13149 LIBS
="$LIBS -lthreads"
13150 THREADOBJ
="Python/thread.o"
13153 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13154 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13155 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13156 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13160 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13162 # Is the header compilable?
13163 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13164 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13165 cat >conftest.
$ac_ext <<_ACEOF
13168 cat confdefs.h
>>conftest.
$ac_ext
13169 cat >>conftest.
$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 $ac_includes_default
13172 #include <mach/cthreads.h>
13174 rm -f conftest.
$ac_objext
13175 if { (ac_try
="$ac_compile"
13176 case "(($ac_try" in
13177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_compile") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest.$ac_objext; then
13191 ac_header_compiler=yes
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ac_header_compiler=no
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13201 echo "${ECHO_T}$ac_header_compiler" >&6; }
13203 # Is the header present?
13204 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13205 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13206 cat >conftest.$ac_ext <<_ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 #include <mach/cthreads.h>
13214 if { (ac_try="$ac_cpp conftest.$ac_ext"
13215 case "(($ac_try" in
13216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13217 *) ac_try_echo
=$ac_try;;
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1
>conftest.err
13224 cat conftest.err
>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } >/dev
/null
&& {
13227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13230 ac_header_preproc
=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.
$ac_ext >&5
13235 ac_header_preproc
=no
13238 rm -f conftest.err conftest.
$ac_ext
13239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240 echo "${ECHO_T}$ac_header_preproc" >&6; }
13242 # So? What about this header?
13243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13245 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13246 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13248 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13249 ac_header_preproc
=yes
13252 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13253 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13255 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13257 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13259 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13260 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13261 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13263 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13265 ## ------------------------------------------------ ##
13266 ## Report this to http://www.python.org/python-bugs ##
13267 ## ------------------------------------------------ ##
13269 ) |
sed "s/^/$as_me: WARNING: /" >&2
13272 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13273 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13274 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
13279 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13280 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13283 if test $ac_cv_header_mach_cthreads_h = yes; then
13284 cat >>confdefs.h
<<\_ACEOF
13285 #define WITH_THREAD 1
13288 cat >>confdefs.h
<<\_ACEOF
13289 #define C_THREADS 1
13293 cat >>confdefs.h
<<\_ACEOF
13294 #define MACH_C_THREADS 1
13297 THREADOBJ
="Python/thread.o"
13300 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13301 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13303 # Check whether --with-pth was given.
13304 if test "${with_pth+set}" = set; then
13305 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13306 echo "${ECHO_T}$withval" >&6; }
13307 cat >>confdefs.h
<<\_ACEOF
13308 #define WITH_THREAD 1
13312 cat >>confdefs.h
<<\_ACEOF
13317 THREADOBJ
="Python/thread.o"
13319 { echo "$as_me:$LINENO: result: no" >&5
13320 echo "${ECHO_T}no" >&6; }
13322 # Just looking for pthread_create in libpthread is not enough:
13323 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13324 # So we really have to include pthread.h, and then link.
13326 LIBS
="$LIBS -lpthread"
13327 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13328 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13329 cat >conftest.
$ac_ext <<_ACEOF
13332 cat confdefs.h
>>conftest.
$ac_ext
13333 cat >>conftest.
$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 #include <pthread.h>
13337 void * start_routine (void *arg) { exit (0); }
13342 pthread_create (NULL, NULL, start_routine, NULL)
13347 rm -f conftest.
$ac_objext conftest
$ac_exeext
13348 if { (ac_try
="$ac_link"
13349 case "(($ac_try" in
13350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13366 { echo "$as_me:$LINENO: result: yes" >&5
13367 echo "${ECHO_T}yes" >&6; }
13368 cat >>confdefs.h <<\_ACEOF
13369 #define WITH_THREAD 1
13373 THREADOBJ="Python/thread.o"
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13380 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13381 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13382 if test "${ac_cv_func_pthread_detach+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 cat >conftest.$ac_ext <<_ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13391 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13393 #define pthread_detach innocuous_pthread_detach
13395 /* System header to define __stub macros and hopefully few prototypes,
13396 which can conflict with char pthread_detach (); below.
13397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13398 <limits.h> exists even on freestanding compilers. */
13401 # include <limits.h>
13403 # include <assert.h>
13406 #undef pthread_detach
13408 /* Override any GCC internal prototype to avoid an error.
13409 Use char because int might match the return type of a GCC
13410 builtin and then its argument prototype would still apply. */
13414 char pthread_detach ();
13415 /* The GNU C library defines this for functions which it implements
13416 to always fail with ENOSYS. Some functions are actually named
13417 something starting with __ and the normal name is an alias. */
13418 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13425 return pthread_detach ();
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (ac_try="$ac_link"
13432 case "(($ac_try" in
13433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13434 *) ac_try_echo
=$ac_try;;
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_link") 2>conftest.er1
13439 grep -v '^ *+' conftest.er1
>conftest.err
13441 cat conftest.err
>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } && {
13444 test -z "$ac_c_werror_flag" ||
13445 test ! -s conftest.err
13446 } && test -s conftest
$ac_exeext &&
13447 $as_test_x conftest
$ac_exeext; then
13448 ac_cv_func_pthread_detach
=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.
$ac_ext >&5
13453 ac_cv_func_pthread_detach
=no
13456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13457 conftest
$ac_exeext conftest.
$ac_ext
13459 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13460 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13461 if test $ac_cv_func_pthread_detach = yes; then
13462 cat >>confdefs.h
<<\_ACEOF
13463 #define WITH_THREAD 1
13467 THREADOBJ
="Python/thread.o"
13470 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13471 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13472 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13473 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13477 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13479 # Is the header compilable?
13480 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13481 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13482 cat >conftest.
$ac_ext <<_ACEOF
13485 cat confdefs.h
>>conftest.
$ac_ext
13486 cat >>conftest.
$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 $ac_includes_default
13489 #include <atheos/threads.h>
13491 rm -f conftest.
$ac_objext
13492 if { (ac_try
="$ac_compile"
13493 case "(($ac_try" in
13494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_compile") 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest.$ac_objext; then
13508 ac_header_compiler=yes
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_header_compiler=no
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13518 echo "${ECHO_T}$ac_header_compiler" >&6; }
13520 # Is the header present?
13521 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13522 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13523 cat >conftest.$ac_ext <<_ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 #include <atheos/threads.h>
13531 if { (ac_try="$ac_cpp conftest.$ac_ext"
13532 case "(($ac_try" in
13533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13534 *) ac_try_echo
=$ac_try;;
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13539 grep -v '^ *+' conftest.er1
>conftest.err
13541 cat conftest.err
>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } >/dev
/null
&& {
13544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13545 test ! -s conftest.err
13547 ac_header_preproc
=yes
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.
$ac_ext >&5
13552 ac_header_preproc
=no
13555 rm -f conftest.err conftest.
$ac_ext
13556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13557 echo "${ECHO_T}$ac_header_preproc" >&6; }
13559 # So? What about this header?
13560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13562 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13563 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13565 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13566 ac_header_preproc
=yes
13569 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13570 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13572 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13574 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13575 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13576 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13577 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13578 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13580 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13582 ## ------------------------------------------------ ##
13583 ## Report this to http://www.python.org/python-bugs ##
13584 ## ------------------------------------------------ ##
13586 ) |
sed "s/^/$as_me: WARNING: /" >&2
13589 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13590 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13591 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 ac_cv_header_atheos_threads_h
=$ac_header_preproc
13596 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13597 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13600 if test $ac_cv_header_atheos_threads_h = yes; then
13601 cat >>confdefs.h
<<\_ACEOF
13602 #define WITH_THREAD 1
13606 cat >>confdefs.h
<<\_ACEOF
13607 #define ATHEOS_THREADS 1
13610 THREADOBJ
="Python/thread.o"
13613 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13614 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13615 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13616 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13620 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13622 # Is the header compilable?
13623 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13624 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
13625 cat >conftest.
$ac_ext <<_ACEOF
13628 cat confdefs.h
>>conftest.
$ac_ext
13629 cat >>conftest.
$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13631 $ac_includes_default
13632 #include <kernel/OS.h>
13634 rm -f conftest.
$ac_objext
13635 if { (ac_try
="$ac_compile"
13636 case "(($ac_try" in
13637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13643 grep -v '^ *+' conftest.er1 >conftest.err
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest.$ac_objext; then
13651 ac_header_compiler=yes
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ac_header_compiler=no
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13661 echo "${ECHO_T}$ac_header_compiler" >&6; }
13663 # Is the header present?
13664 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13665 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include <kernel/OS.h>
13674 if { (ac_try="$ac_cpp conftest.$ac_ext"
13675 case "(($ac_try" in
13676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13677 *) ac_try_echo
=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1
>conftest.err
13684 cat conftest.err
>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } >/dev
/null
&& {
13687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13690 ac_header_preproc
=yes
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.
$ac_ext >&5
13695 ac_header_preproc
=no
13698 rm -f conftest.err conftest.
$ac_ext
13699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13700 echo "${ECHO_T}$ac_header_preproc" >&6; }
13702 # So? What about this header?
13703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13705 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13706 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13707 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13708 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13709 ac_header_preproc
=yes
13712 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13713 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13715 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13716 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13717 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13718 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13719 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13721 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13723 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13725 ## ------------------------------------------------ ##
13726 ## Report this to http://www.python.org/python-bugs ##
13727 ## ------------------------------------------------ ##
13729 ) |
sed "s/^/$as_me: WARNING: /" >&2
13732 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13733 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13734 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 ac_cv_header_kernel_OS_h
=$ac_header_preproc
13739 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13740 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13743 if test $ac_cv_header_kernel_OS_h = yes; then
13744 cat >>confdefs.h
<<\_ACEOF
13745 #define WITH_THREAD 1
13749 cat >>confdefs.h
<<\_ACEOF
13750 #define BEOS_THREADS 1
13753 THREADOBJ
="Python/thread.o"
13756 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13757 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
13758 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 ac_check_lib_save_LIBS
=$LIBS
13762 LIBS
="-lpthreads $LIBS"
13763 cat >conftest.
$ac_ext <<_ACEOF
13766 cat confdefs.h
>>conftest.
$ac_ext
13767 cat >>conftest.
$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13770 /* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13776 char pthread_create ();
13780 return pthread_create ();
13785 rm -f conftest.
$ac_objext conftest
$ac_exeext
13786 if { (ac_try
="$ac_link"
13787 case "(($ac_try" in
13788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest$ac_exeext &&
13802 $as_test_x conftest$ac_exeext; then
13803 ac_cv_lib_pthreads_pthread_create=yes
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_cv_lib_pthreads_pthread_create=no
13811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13815 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13816 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
13817 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13818 cat >>confdefs.h <<\_ACEOF
13819 #define WITH_THREAD 1
13823 LIBS="$LIBS -lpthreads"
13824 THREADOBJ="Python/thread.o"
13827 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13828 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
13829 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 ac_check_lib_save_LIBS=$LIBS
13834 cat >conftest.$ac_ext <<_ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 /* Override any GCC internal prototype to avoid an error.
13842 Use char because int might match the return type of a GCC
13843 builtin and then its argument prototype would still apply. */
13847 char pthread_create ();
13851 return pthread_create ();
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (ac_try="$ac_link"
13858 case "(($ac_try" in
13859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13860 *) ac_try_echo
=$ac_try;;
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_link") 2>conftest.er1
13865 grep -v '^ *+' conftest.er1
>conftest.err
13867 cat conftest.err
>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } && {
13870 test -z "$ac_c_werror_flag" ||
13871 test ! -s conftest.err
13872 } && test -s conftest
$ac_exeext &&
13873 $as_test_x conftest
$ac_exeext; then
13874 ac_cv_lib_c_r_pthread_create
=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.
$ac_ext >&5
13879 ac_cv_lib_c_r_pthread_create
=no
13882 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13883 conftest
$ac_exeext conftest.
$ac_ext
13884 LIBS
=$ac_check_lib_save_LIBS
13886 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13887 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
13888 if test $ac_cv_lib_c_r_pthread_create = yes; then
13889 cat >>confdefs.h
<<\_ACEOF
13890 #define WITH_THREAD 1
13895 THREADOBJ
="Python/thread.o"
13898 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13899 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
13900 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 ac_check_lib_save_LIBS
=$LIBS
13904 LIBS
="-lpthread $LIBS"
13905 cat >conftest.
$ac_ext <<_ACEOF
13908 cat confdefs.h
>>conftest.
$ac_ext
13909 cat >>conftest.
$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13918 char __pthread_create_system ();
13922 return __pthread_create_system ();
13927 rm -f conftest.
$ac_objext conftest
$ac_exeext
13928 if { (ac_try
="$ac_link"
13929 case "(($ac_try" in
13930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_link") 2>conftest.er1
13936 grep -v '^ *+' conftest.er1 >conftest.err
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } && {
13941 test -z "$ac_c_werror_flag" ||
13942 test ! -s conftest.err
13943 } && test -s conftest$ac_exeext &&
13944 $as_test_x conftest$ac_exeext; then
13945 ac_cv_lib_pthread___pthread_create_system=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_lib_pthread___pthread_create_system=no
13953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13958 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
13959 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13960 cat >>confdefs.h <<\_ACEOF
13961 #define WITH_THREAD 1
13965 LIBS="$LIBS -lpthread"
13966 THREADOBJ="Python/thread.o"
13969 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13970 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
13971 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 ac_check_lib_save_LIBS=$LIBS
13976 cat >conftest.$ac_ext <<_ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13983 /* Override any GCC internal prototype to avoid an error.
13984 Use char because int might match the return type of a GCC
13985 builtin and then its argument prototype would still apply. */
13989 char pthread_create ();
13993 return pthread_create ();
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (ac_try="$ac_link"
14000 case "(($ac_try" in
14001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14002 *) ac_try_echo
=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1
>conftest.err
14009 cat conftest.err
>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } && {
14012 test -z "$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14014 } && test -s conftest
$ac_exeext &&
14015 $as_test_x conftest
$ac_exeext; then
14016 ac_cv_lib_cma_pthread_create
=yes
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.
$ac_ext >&5
14021 ac_cv_lib_cma_pthread_create
=no
14024 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14025 conftest
$ac_exeext conftest.
$ac_ext
14026 LIBS
=$ac_check_lib_save_LIBS
14028 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14029 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14030 if test $ac_cv_lib_cma_pthread_create = yes; then
14031 cat >>confdefs.h
<<\_ACEOF
14032 #define WITH_THREAD 1
14037 THREADOBJ
="Python/thread.o"
14040 USE_THREAD_MODULE
="#"
14060 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14061 conftest
$ac_exeext conftest.
$ac_ext
14071 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14072 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14073 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 ac_check_lib_save_LIBS
=$LIBS
14078 cat >conftest.
$ac_ext <<_ACEOF
14081 cat confdefs.h
>>conftest.
$ac_ext
14082 cat >>conftest.
$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14095 return usconfig ();
14100 rm -f conftest.
$ac_objext conftest
$ac_exeext
14101 if { (ac_try
="$ac_link"
14102 case "(($ac_try" in
14103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14109 grep -v '^ *+' conftest.er1 >conftest.err
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } && {
14114 test -z "$ac_c_werror_flag" ||
14115 test ! -s conftest.err
14116 } && test -s conftest$ac_exeext &&
14117 $as_test_x conftest$ac_exeext; then
14118 ac_cv_lib_mpc_usconfig=yes
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_cv_lib_mpc_usconfig=no
14126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14131 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14132 if test $ac_cv_lib_mpc_usconfig = yes; then
14133 cat >>confdefs.h <<\_ACEOF
14134 #define WITH_THREAD 1
14138 THREADOBJ="Python/thread.o"
14139 USE_THREAD_MODULE=""
14143 if test "$posix_threads" != "yes"; then
14144 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14145 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14146 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_check_lib_save_LIBS=$LIBS
14150 LIBS="-lthread $LIBS"
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14158 /* Override any GCC internal prototype to avoid an error.
14159 Use char because int might match the return type of a GCC
14160 builtin and then its argument prototype would still apply. */
14164 char thr_create ();
14168 return thr_create ();
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (ac_try="$ac_link"
14175 case "(($ac_try" in
14176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14177 *) ac_try_echo
=$ac_try;;
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_link") 2>conftest.er1
14182 grep -v '^ *+' conftest.er1
>conftest.err
14184 cat conftest.err
>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest
$ac_exeext &&
14190 $as_test_x conftest
$ac_exeext; then
14191 ac_cv_lib_thread_thr_create
=yes
14193 echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.
$ac_ext >&5
14196 ac_cv_lib_thread_thr_create
=no
14199 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14200 conftest
$ac_exeext conftest.
$ac_ext
14201 LIBS
=$ac_check_lib_save_LIBS
14203 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14204 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14205 if test $ac_cv_lib_thread_thr_create = yes; then
14206 cat >>confdefs.h
<<\_ACEOF
14207 #define WITH_THREAD 1
14210 LIBS
="$LIBS -lthread"
14211 THREADOBJ
="Python/thread.o"
14212 USE_THREAD_MODULE
=""
14217 if test "$USE_THREAD_MODULE" != "#"
14219 # If the above checks didn't disable threads, (at least) OSF1
14220 # needs this '-threads' argument during linking.
14221 case $ac_sys_system in
14222 OSF1
) LDLAST
=-threads;;
14227 if test "$posix_threads" = "yes"; then
14228 if test "$unistd_defines_pthreads" = "no"; then
14230 cat >>confdefs.h
<<\_ACEOF
14231 #define _POSIX_THREADS 1
14236 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14237 case $ac_sys_system/$ac_sys_release in
14239 cat >>confdefs.h
<<\_ACEOF
14240 #define HAVE_PTHREAD_DESTRUCTOR 1
14245 cat >>confdefs.h
<<\_ACEOF
14246 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14252 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14253 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14254 if test "${ac_cv_pthread_system_supported+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 if test "$cross_compiling" = yes; then
14258 ac_cv_pthread_system_supported
=no
14260 cat >conftest.
$ac_ext <<_ACEOF
14263 cat confdefs.h
>>conftest.
$ac_ext
14264 cat >>conftest.
$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <pthread.h>
14267 void *foo(void *parm) {
14271 pthread_attr_t attr;
14273 if (pthread_attr_init(&attr)) exit(-1);
14274 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14275 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14279 rm -f conftest
$ac_exeext
14280 if { (ac_try
="$ac_link"
14281 case "(($ac_try" in
14282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_link") 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14292 *) ac_try_echo
=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_pthread_system_supported
=yes
14301 echo "$as_me: program exited with status $ac_status" >&5
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.
$ac_ext >&5
14305 ( exit $ac_status )
14306 ac_cv_pthread_system_supported
=no
14308 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14315 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14316 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14317 if test "$ac_cv_pthread_system_supported" = "yes"; then
14319 cat >>confdefs.h
<<\_ACEOF
14320 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14325 for ac_func
in pthread_sigmask
14327 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14330 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 cat >conftest.
$ac_ext <<_ACEOF
14336 cat confdefs.h
>>conftest.
$ac_ext
14337 cat >>conftest.
$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14341 #define $ac_func innocuous_$ac_func
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char $ac_func (); below.
14345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14346 <limits.h> exists even on freestanding compilers. */
14349 # include <limits.h>
14351 # include <assert.h>
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14363 /* The GNU C library defines this for functions which it implements
14364 to always fail with ENOSYS. Some functions are actually named
14365 something starting with __ and the normal name is an alias. */
14366 #if defined __stub_$ac_func || defined __stub___$ac_func
14373 return $ac_func ();
14378 rm -f conftest.
$ac_objext conftest
$ac_exeext
14379 if { (ac_try
="$ac_link"
14380 case "(($ac_try" in
14381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_link") 2>conftest.er1
14387 grep -v '^ *+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest$ac_exeext &&
14395 $as_test_x conftest$ac_exeext; then
14396 eval "$as_ac_var=yes"
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 eval "$as_ac_var=no"
14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14405 conftest$ac_exeext conftest.$ac_ext
14407 ac_res=`eval echo '${'$as_ac_var'}'`
14408 { echo "$as_me:$LINENO: result: $ac_res" >&5
14409 echo "${ECHO_T}$ac_res" >&6; }
14410 if test `eval echo '${'$as_ac_var'}'` = yes; then
14411 cat >>confdefs.h <<_ACEOF
14412 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14414 case $ac_sys_system in
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14429 # Check for enable-ipv6
14432 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14433 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14434 # Check whether --enable-ipv6 was given.
14435 if test "${enable_ipv6+set}" = set; then
14436 enableval=$enable_ipv6; case "$enableval" in
14438 { echo "$as_me:$LINENO: result: no" >&5
14439 echo "${ECHO_T}no" >&6; }
14442 *) { echo "$as_me:$LINENO: result: yes" >&5
14443 echo "${ECHO_T}yes" >&6; }
14444 cat >>confdefs.h <<\_ACEOF
14445 #define ENABLE_IPV6 1
14453 if test "$cross_compiling" = yes; then
14454 { echo "$as_me:$LINENO: result: no" >&5
14455 echo "${ECHO_T}no" >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 /* AF_INET6 available check */
14466 #include <sys/types.h>
14467 #include <sys/socket.h>
14470 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14477 rm -f conftest$ac_exeext
14478 if { (ac_try="$ac_link"
14479 case "(($ac_try" in
14480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14481 *) ac_try_echo
=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_link") 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14488 { (case "(($ac_try" in
14489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_try") 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 { echo "$as_me:$LINENO: result: yes" >&5
14498 echo "${ECHO_T}yes" >&6; }
14501 echo "$as_me: program exited with status $ac_status" >&5
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ( exit $ac_status )
14506 { echo "$as_me:$LINENO: result: no" >&5
14507 echo "${ECHO_T}no" >&6; }
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14515 if test "$ipv6" = "yes"; then
14516 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14517 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <sys/types.h>
14525 #include <netinet/in.h>
14529 struct sockaddr_in6 x;
14535 rm -f conftest.$ac_objext
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14539 *) ac_try_echo
=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_compile") 2>conftest.er1
14544 grep -v '^ *+' conftest.er1
>conftest.err
14546 cat conftest.err
>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest.
$ac_objext; then
14552 { echo "$as_me:$LINENO: result: yes" >&5
14553 echo "${ECHO_T}yes" >&6; }
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.
$ac_ext >&5
14559 { echo "$as_me:$LINENO: result: no" >&5
14560 echo "${ECHO_T}no" >&6; }
14564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14567 if test "$ipv6" = "yes"; then
14568 cat >>confdefs.h
<<\_ACEOF
14569 #define ENABLE_IPV6 1
14581 if test "$ipv6" = "yes"; then
14582 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14583 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
14584 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
14588 cat >conftest.
$ac_ext <<_ACEOF
14591 cat confdefs.h
>>conftest.
$ac_ext
14592 cat >>conftest.
$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14595 #include <netinet/in.h>
14596 #ifdef IPV6_INRIA_VERSION
14600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14601 $EGREP "yes" >/dev
/null
2>&1; then
14608 cat >conftest.
$ac_ext <<_ACEOF
14611 cat confdefs.h
>>conftest.
$ac_ext
14612 cat >>conftest.
$ac_ext <<_ACEOF
14613 /* end confdefs.h. */
14615 #include <netinet/in.h>
14620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14621 $EGREP "yes" >/dev
/null
2>&1; then
14624 ipv6libdir
=/usr
/local
/v
6/lib
14631 cat >conftest.
$ac_ext <<_ACEOF
14634 cat confdefs.h
>>conftest.
$ac_ext
14635 cat >>conftest.
$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14638 #include <features.h>
14639 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14644 $EGREP "yes" >/dev
/null
2>&1; then
14652 if test -d /usr
/inet6
; then
14655 ipv6libdir
=/usr
/inet
6/lib
14656 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
14660 if test -f /etc
/netconfig
; then
14661 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
14668 cat >conftest.
$ac_ext <<_ACEOF
14671 cat confdefs.h
>>conftest.
$ac_ext
14672 cat >>conftest.
$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 #include <sys/param.h>
14676 #ifdef _TOSHIBA_INET6
14680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14681 $EGREP "yes" >/dev
/null
2>&1; then
14684 ipv6libdir
=/usr
/local
/v
6/lib
14690 cat >conftest.
$ac_ext <<_ACEOF
14693 cat confdefs.h
>>conftest.
$ac_ext
14694 cat >>conftest.
$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14697 #include </usr/local/v6/include/sys/v6config.h>
14702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14703 $EGREP "yes" >/dev
/null
2>&1; then
14706 ipv6libdir
=/usr
/local
/v
6/lib
;
14707 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
14713 cat >conftest.
$ac_ext <<_ACEOF
14716 cat confdefs.h
>>conftest.
$ac_ext
14717 cat >>conftest.
$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 #include <sys/param.h>
14721 #ifdef _ZETA_MINAMI_INET6
14725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14726 $EGREP "yes" >/dev
/null
2>&1; then
14729 ipv6libdir
=/usr
/local
/v
6/lib
14735 if test "$ipv6type" != "unknown"; then
14739 { echo "$as_me:$LINENO: result: $ipv6type" >&5
14740 echo "${ECHO_T}$ipv6type" >&6; }
14743 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14744 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
14745 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
14746 echo "using lib$ipv6lib"
14748 if test $ipv6trylibc = "yes"; then
14751 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14752 echo "You need to fetch lib$ipv6lib.a from appropriate"
14753 echo 'ipv6 kit and compile beforehand.'
14759 # Check for --with-doc-strings
14760 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14761 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
14763 # Check whether --with-doc-strings was given.
14764 if test "${with_doc_strings+set}" = set; then
14765 withval
=$with_doc_strings;
14769 if test -z "$with_doc_strings"
14770 then with_doc_strings
="yes"
14772 if test "$with_doc_strings" != "no"
14775 cat >>confdefs.h
<<\_ACEOF
14776 #define WITH_DOC_STRINGS 1
14780 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14781 echo "${ECHO_T}$with_doc_strings" >&6; }
14783 # Check for Python-specific malloc support
14784 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
14785 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
14787 # Check whether --with-tsc was given.
14788 if test "${with_tsc+set}" = set; then
14790 if test "$withval" != no
14793 cat >>confdefs.h
<<\_ACEOF
14797 { echo "$as_me:$LINENO: result: yes" >&5
14798 echo "${ECHO_T}yes" >&6; }
14799 else { echo "$as_me:$LINENO: result: no" >&5
14800 echo "${ECHO_T}no" >&6; }
14803 { echo "$as_me:$LINENO: result: no" >&5
14804 echo "${ECHO_T}no" >&6; }
14808 # Check for Python-specific malloc support
14809 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14810 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
14812 # Check whether --with-pymalloc was given.
14813 if test "${with_pymalloc+set}" = set; then
14814 withval
=$with_pymalloc;
14818 if test -z "$with_pymalloc"
14819 then with_pymalloc
="yes"
14821 if test "$with_pymalloc" != "no"
14824 cat >>confdefs.h
<<\_ACEOF
14825 #define WITH_PYMALLOC 1
14829 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14830 echo "${ECHO_T}$with_pymalloc" >&6; }
14832 # Check for --with-wctype-functions
14833 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14834 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
14836 # Check whether --with-wctype-functions was given.
14837 if test "${with_wctype_functions+set}" = set; then
14838 withval
=$with_wctype_functions;
14839 if test "$withval" != no
14842 cat >>confdefs.h
<<\_ACEOF
14843 #define WANT_WCTYPE_FUNCTIONS 1
14846 { echo "$as_me:$LINENO: result: yes" >&5
14847 echo "${ECHO_T}yes" >&6; }
14848 else { echo "$as_me:$LINENO: result: no" >&5
14849 echo "${ECHO_T}no" >&6; }
14852 { echo "$as_me:$LINENO: result: no" >&5
14853 echo "${ECHO_T}no" >&6; }
14857 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14861 # the dlopen() function means we might want to use dynload_shlib.o. some
14862 # platforms, such as AIX, have dlopen(), but don't want to use it.
14864 for ac_func
in dlopen
14866 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14869 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 cat >conftest.
$ac_ext <<_ACEOF
14875 cat confdefs.h
>>conftest.
$ac_ext
14876 cat >>conftest.
$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14880 #define $ac_func innocuous_$ac_func
14882 /* System header to define __stub macros and hopefully few prototypes,
14883 which can conflict with char $ac_func (); below.
14884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14885 <limits.h> exists even on freestanding compilers. */
14888 # include <limits.h>
14890 # include <assert.h>
14895 /* Override any GCC internal prototype to avoid an error.
14896 Use char because int might match the return type of a GCC
14897 builtin and then its argument prototype would still apply. */
14902 /* The GNU C library defines this for functions which it implements
14903 to always fail with ENOSYS. Some functions are actually named
14904 something starting with __ and the normal name is an alias. */
14905 #if defined __stub_$ac_func || defined __stub___$ac_func
14912 return $ac_func ();
14917 rm -f conftest.
$ac_objext conftest
$ac_exeext
14918 if { (ac_try
="$ac_link"
14919 case "(($ac_try" in
14920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_link") 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } && {
14931 test -z "$ac_c_werror_flag" ||
14932 test ! -s conftest.err
14933 } && test -s conftest$ac_exeext &&
14934 $as_test_x conftest$ac_exeext; then
14935 eval "$as_ac_var=yes"
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 eval "$as_ac_var=no"
14943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14944 conftest$ac_exeext conftest.$ac_ext
14946 ac_res=`eval echo '${'$as_ac_var'}'`
14947 { echo "$as_me:$LINENO: result: $ac_res" >&5
14948 echo "${ECHO_T}$ac_res" >&6; }
14949 if test `eval echo '${'$as_ac_var'}'` = yes; then
14950 cat >>confdefs.h <<_ACEOF
14951 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14958 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14959 # loading of modules.
14961 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14962 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
14963 if test -z "$DYNLOADFILE"
14965 case $ac_sys_system/$ac_sys_release in
14966 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14967 if test "$ac_cv_func_dlopen" = yes
14968 then DYNLOADFILE="dynload_shlib.o"
14969 else DYNLOADFILE="dynload_aix.o"
14972 BeOS*) DYNLOADFILE="dynload_beos.o";;
14973 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14974 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14975 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14976 atheos*) DYNLOADFILE="dynload_atheos.o";;
14978 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14979 # out any dynamic loading
14980 if test "$ac_cv_func_dlopen" = yes
14981 then DYNLOADFILE="dynload_shlib.o"
14982 else DYNLOADFILE="dynload_stub.o"
14987 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14988 echo "${ECHO_T}$DYNLOADFILE" >&6; }
14989 if test "$DYNLOADFILE" != "dynload_stub.o"
14992 cat >>confdefs.h <<\_ACEOF
14993 #define HAVE_DYNAMIC_LOADING 1
14998 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15001 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15002 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15003 if test -z "$MACHDEP_OBJS"
15005 MACHDEP_OBJS=$extra_machdep_objs
15007 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15009 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15010 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15012 # checks for library functions
15091 for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \
15092 ctermid execv fork fpathconf ftime ftruncate \
15093 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15094 getpriority getpwent getspnam getspent getsid getwd \
15095 kill killpg lchflags lchown lstat mkfifo mknod mktime \
15096 mremap nice pathconf pause plock poll pthread_init \
15097 putenv readlink realpath \
15098 select setegid seteuid setgid \
15099 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15100 sigaction siginterrupt sigrelse strftime \
15101 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15102 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15104 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15118 #define $ac_func innocuous_$ac_func
15120 /* System header to define __stub macros and hopefully few prototypes,
15121 which can conflict with char $ac_func (); below.
15122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15123 <limits.h> exists even on freestanding compilers. */
15126 # include <limits.h>
15128 # include <assert.h>
15133 /* Override any GCC internal prototype to avoid an error.
15134 Use char because int might match the return type of a GCC
15135 builtin and then its argument prototype would still apply. */
15140 /* The GNU C library defines this for functions which it implements
15141 to always fail with ENOSYS. Some functions are actually named
15142 something starting with __ and the normal name is an alias. */
15143 #if defined __stub_$ac_func || defined __stub___$ac_func
15150 return $ac_func ();
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15159 *) ac_try_echo
=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1
>conftest.err
15166 cat conftest.err
>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && {
15169 test -z "$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest
$ac_exeext &&
15172 $as_test_x conftest
$ac_exeext; then
15173 eval "$as_ac_var=yes"
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.
$ac_ext >&5
15178 eval "$as_ac_var=no"
15181 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15182 conftest
$ac_exeext conftest.
$ac_ext
15184 ac_res
=`eval echo '${'$as_ac_var'}'`
15185 { echo "$as_me:$LINENO: result: $ac_res" >&5
15186 echo "${ECHO_T}$ac_res" >&6; }
15187 if test `eval echo '${'$as_ac_var'}'` = yes; then
15188 cat >>confdefs.h
<<_ACEOF
15189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15196 # For some functions, having a definition is not sufficient, since
15197 # we want to take their address.
15198 { echo "$as_me:$LINENO: checking for chroot" >&5
15199 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15200 cat >conftest.
$ac_ext <<_ACEOF
15203 cat confdefs.h
>>conftest.
$ac_ext
15204 cat >>conftest.
$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 #include <unistd.h>
15215 rm -f conftest.
$ac_objext
15216 if { (ac_try
="$ac_compile"
15217 case "(($ac_try" in
15218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest.$ac_objext; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_CHROOT 1
15237 { echo "$as_me:$LINENO: result: yes" >&5
15238 echo "${ECHO_T}yes" >&6; }
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 { echo "$as_me:$LINENO: result: no" >&5
15244 echo "${ECHO_T}no" >&6; }
15248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: checking for link" >&5
15250 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 #include <unistd.h>
15266 rm -f conftest.$ac_objext
15267 if { (ac_try="$ac_compile"
15268 case "(($ac_try" in
15269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15270 *) ac_try_echo
=$ac_try;;
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_compile") 2>conftest.er1
15275 grep -v '^ *+' conftest.er1
>conftest.err
15277 cat conftest.err
>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
15282 } && test -s conftest.
$ac_objext; then
15284 cat >>confdefs.h
<<\_ACEOF
15285 #define HAVE_LINK 1
15288 { echo "$as_me:$LINENO: result: yes" >&5
15289 echo "${ECHO_T}yes" >&6; }
15291 echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.
$ac_ext >&5
15294 { echo "$as_me:$LINENO: result: no" >&5
15295 echo "${ECHO_T}no" >&6; }
15299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15300 { echo "$as_me:$LINENO: checking for symlink" >&5
15301 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15302 cat >conftest.
$ac_ext <<_ACEOF
15305 cat confdefs.h
>>conftest.
$ac_ext
15306 cat >>conftest.
$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 #include <unistd.h>
15317 rm -f conftest.
$ac_objext
15318 if { (ac_try
="$ac_compile"
15319 case "(($ac_try" in
15320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_compile") 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } && {
15331 test -z "$ac_c_werror_flag" ||
15332 test ! -s conftest.err
15333 } && test -s conftest.$ac_objext; then
15335 cat >>confdefs.h <<\_ACEOF
15336 #define HAVE_SYMLINK 1
15339 { echo "$as_me:$LINENO: result: yes" >&5
15340 echo "${ECHO_T}yes" >&6; }
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 { echo "$as_me:$LINENO: result: no" >&5
15346 echo "${ECHO_T}no" >&6; }
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351 { echo "$as_me:$LINENO: checking for fchdir" >&5
15352 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include <unistd.h>
15368 rm -f conftest.$ac_objext
15369 if { (ac_try="$ac_compile"
15370 case "(($ac_try" in
15371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15372 *) ac_try_echo
=$ac_try;;
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_compile") 2>conftest.er1
15377 grep -v '^ *+' conftest.er1
>conftest.err
15379 cat conftest.err
>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } && {
15382 test -z "$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15384 } && test -s conftest.
$ac_objext; then
15386 cat >>confdefs.h
<<\_ACEOF
15387 #define HAVE_FCHDIR 1
15390 { echo "$as_me:$LINENO: result: yes" >&5
15391 echo "${ECHO_T}yes" >&6; }
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.
$ac_ext >&5
15396 { echo "$as_me:$LINENO: result: no" >&5
15397 echo "${ECHO_T}no" >&6; }
15401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15402 { echo "$as_me:$LINENO: checking for fsync" >&5
15403 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15404 cat >conftest.
$ac_ext <<_ACEOF
15407 cat confdefs.h
>>conftest.
$ac_ext
15408 cat >>conftest.
$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <unistd.h>
15419 rm -f conftest.
$ac_objext
15420 if { (ac_try
="$ac_compile"
15421 case "(($ac_try" in
15422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_compile") 2>conftest.er1
15428 grep -v '^ *+' conftest.er1 >conftest.err
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } && {
15433 test -z "$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 } && test -s conftest.$ac_objext; then
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_FSYNC 1
15441 { echo "$as_me:$LINENO: result: yes" >&5
15442 echo "${ECHO_T}yes" >&6; }
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 { echo "$as_me:$LINENO: result: no" >&5
15448 echo "${ECHO_T}no" >&6; }
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15454 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15455 cat >conftest.$ac_ext <<_ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #include <unistd.h>
15470 rm -f conftest.$ac_objext
15471 if { (ac_try="$ac_compile"
15472 case "(($ac_try" in
15473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15474 *) ac_try_echo
=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_compile") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1
>conftest.err
15481 cat conftest.err
>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest.
$ac_objext; then
15488 cat >>confdefs.h
<<\_ACEOF
15489 #define HAVE_FDATASYNC 1
15492 { echo "$as_me:$LINENO: result: yes" >&5
15493 echo "${ECHO_T}yes" >&6; }
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.
$ac_ext >&5
15498 { echo "$as_me:$LINENO: result: no" >&5
15499 echo "${ECHO_T}no" >&6; }
15503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15505 # On some systems (eg. FreeBSD 5), we would find a definition of the
15506 # functions ctermid_r, setgroups in the library, but no prototype
15507 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15508 # address to avoid compiler warnings and potential miscompilations
15509 # because of the missing prototypes.
15511 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
15512 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
15513 cat >conftest.
$ac_ext <<_ACEOF
15516 cat confdefs.h
>>conftest.
$ac_ext
15517 cat >>conftest.
$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15520 #include "confdefs.h"
15526 void* p = ctermid_r
15531 rm -f conftest.
$ac_objext
15532 if { (ac_try
="$ac_compile"
15533 case "(($ac_try" in
15534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_compile") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } && {
15545 test -z "$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 } && test -s conftest.$ac_objext; then
15549 cat >>confdefs.h <<\_ACEOF
15550 #define HAVE_CTERMID_R 1
15553 { echo "$as_me:$LINENO: result: yes" >&5
15554 echo "${ECHO_T}yes" >&6; }
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 { echo "$as_me:$LINENO: result: no" >&5
15560 echo "${ECHO_T}no" >&6; }
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 { echo "$as_me:$LINENO: checking for flock" >&5
15567 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
15568 cat >conftest.$ac_ext <<_ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15575 #include "confdefs.h"
15576 #include <sys/file.h>
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15590 *) ac_try_echo
=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1
>conftest.err
15597 cat conftest.err
>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } && {
15600 test -z "$ac_c_werror_flag" ||
15601 test ! -s conftest.err
15602 } && test -s conftest.
$ac_objext; then
15604 cat >>confdefs.h
<<\_ACEOF
15605 #define HAVE_FLOCK 1
15608 { echo "$as_me:$LINENO: result: yes" >&5
15609 echo "${ECHO_T}yes" >&6; }
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.
$ac_ext >&5
15614 { echo "$as_me:$LINENO: result: no" >&5
15615 echo "${ECHO_T}no" >&6; }
15619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15621 { echo "$as_me:$LINENO: checking for getpagesize" >&5
15622 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15623 cat >conftest.
$ac_ext <<_ACEOF
15626 cat confdefs.h
>>conftest.
$ac_ext
15627 cat >>conftest.
$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15630 #include "confdefs.h"
15631 #include <unistd.h>
15636 void* p = getpagesize
15641 rm -f conftest.
$ac_objext
15642 if { (ac_try
="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest.$ac_objext; then
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_GETPAGESIZE 1
15663 { echo "$as_me:$LINENO: result: yes" >&5
15664 echo "${ECHO_T}yes" >&6; }
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 { echo "$as_me:$LINENO: result: no" >&5
15670 echo "${ECHO_T}no" >&6; }
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 for ac_prog in true
15678 # Extract the first word of "$ac_prog", so it can be a program name with args.
15679 set dummy $ac_prog; ac_word=$2
15680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15682 if test "${ac_cv_prog_TRUE+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 if test -n "$TRUE"; then
15686 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $PATH
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15695 ac_cv_prog_TRUE="$ac_prog"
15696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15705 TRUE=$ac_cv_prog_TRUE
15706 if test -n "$TRUE"; then
15707 { echo "$as_me:$LINENO: result: $TRUE" >&5
15708 echo "${ECHO_T}$TRUE" >&6; }
15710 { echo "$as_me:$LINENO: result: no" >&5
15711 echo "${ECHO_T}no" >&6; }
15715 test -n "$TRUE" && break
15717 test -n "$TRUE" || TRUE="/bin/true"
15720 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15721 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
15722 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 ac_check_lib_save_LIBS=$LIBS
15727 cat >conftest.$ac_ext <<_ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15734 /* Override any GCC internal prototype to avoid an error.
15735 Use char because int might match the return type of a GCC
15736 builtin and then its argument prototype would still apply. */
15744 return inet_aton ();
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15753 *) ac_try_echo
=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1
>conftest.err
15760 cat conftest.err
>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest
$ac_exeext &&
15766 $as_test_x conftest
$ac_exeext; then
15767 ac_cv_lib_c_inet_aton
=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.
$ac_ext >&5
15772 ac_cv_lib_c_inet_aton
=no
15775 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15776 conftest
$ac_exeext conftest.
$ac_ext
15777 LIBS
=$ac_check_lib_save_LIBS
15779 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15780 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
15781 if test $ac_cv_lib_c_inet_aton = yes; then
15785 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15786 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
15787 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 ac_check_lib_save_LIBS
=$LIBS
15791 LIBS
="-lresolv $LIBS"
15792 cat >conftest.
$ac_ext <<_ACEOF
15795 cat confdefs.h
>>conftest.
$ac_ext
15796 cat >>conftest.
$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15799 /* Override any GCC internal prototype to avoid an error.
15800 Use char because int might match the return type of a GCC
15801 builtin and then its argument prototype would still apply. */
15809 return inet_aton ();
15814 rm -f conftest.
$ac_objext conftest
$ac_exeext
15815 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest$ac_exeext &&
15831 $as_test_x conftest$ac_exeext; then
15832 ac_cv_lib_resolv_inet_aton=yes
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_cv_lib_resolv_inet_aton=no
15840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15841 conftest$ac_exeext conftest.$ac_ext
15842 LIBS=$ac_check_lib_save_LIBS
15844 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15845 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
15846 if test $ac_cv_lib_resolv_inet_aton = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_LIBRESOLV 1
15851 LIBS="-lresolv $LIBS"
15859 case $ac_sys_system/$ac_sys_release in
15861 _CUR_CFLAGS="${CFLAGS}"
15862 _CUR_LDFLAGS="${LDFLAGS}"
15863 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15864 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15868 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15869 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
15870 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 ac_check_lib_save_LIBS=$LIBS
15875 cat >conftest.$ac_ext <<_ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15882 /* Override any GCC internal prototype to avoid an error.
15883 Use char because int might match the return type of a GCC
15884 builtin and then its argument prototype would still apply. */
15888 char inflateCopy ();
15892 return inflateCopy ();
15897 rm -f conftest.$ac_objext conftest$ac_exeext
15898 if { (ac_try="$ac_link"
15899 case "(($ac_try" in
15900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15901 *) ac_try_echo
=$ac_try;;
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_link") 2>conftest.er1
15906 grep -v '^ *+' conftest.er1
>conftest.err
15908 cat conftest.err
>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } && {
15911 test -z "$ac_c_werror_flag" ||
15912 test ! -s conftest.err
15913 } && test -s conftest
$ac_exeext &&
15914 $as_test_x conftest
$ac_exeext; then
15915 ac_cv_lib_z_inflateCopy
=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.
$ac_ext >&5
15920 ac_cv_lib_z_inflateCopy
=no
15923 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15924 conftest
$ac_exeext conftest.
$ac_ext
15925 LIBS
=$ac_check_lib_save_LIBS
15927 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15928 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
15929 if test $ac_cv_lib_z_inflateCopy = yes; then
15931 cat >>confdefs.h
<<\_ACEOF
15932 #define HAVE_ZLIB_COPY 1
15938 case $ac_sys_system/$ac_sys_release in
15940 CFLAGS
="${_CUR_CFLAGS}"
15941 LDFLAGS
="${_CUR_LDFLAGS}"
15945 { echo "$as_me:$LINENO: checking for hstrerror" >&5
15946 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
15947 cat >conftest.
$ac_ext <<_ACEOF
15950 cat confdefs.h
>>conftest.
$ac_ext
15951 cat >>conftest.
$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15954 #include "confdefs.h"
15960 void* p = hstrerror; hstrerror(0)
15965 rm -f conftest.
$ac_objext conftest
$ac_exeext
15966 if { (ac_try
="$ac_link"
15967 case "(($ac_try" in
15968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_link") 2>conftest.er1
15974 grep -v '^ *+' conftest.er1 >conftest.err
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } && {
15979 test -z "$ac_c_werror_flag" ||
15980 test ! -s conftest.err
15981 } && test -s conftest$ac_exeext &&
15982 $as_test_x conftest$ac_exeext; then
15984 cat >>confdefs.h <<\_ACEOF
15985 #define HAVE_HSTRERROR 1
15988 { echo "$as_me:$LINENO: result: yes" >&5
15989 echo "${ECHO_T}yes" >&6; }
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16000 conftest$ac_exeext conftest.$ac_ext
16002 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16003 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 #include "confdefs.h"
16012 #include <sys/types.h>
16013 #include <sys/socket.h>
16014 #include <netinet/in.h>
16015 #include <arpa/inet.h>
16020 void* p = inet_aton;inet_aton(0,0)
16025 rm -f conftest.$ac_objext conftest$ac_exeext
16026 if { (ac_try="$ac_link"
16027 case "(($ac_try" in
16028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16029 *) ac_try_echo
=$ac_try;;
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_link") 2>conftest.er1
16034 grep -v '^ *+' conftest.er1
>conftest.err
16036 cat conftest.err
>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest
$ac_exeext &&
16042 $as_test_x conftest
$ac_exeext; then
16044 cat >>confdefs.h
<<\_ACEOF
16045 #define HAVE_INET_ATON 1
16048 { echo "$as_me:$LINENO: result: yes" >&5
16049 echo "${ECHO_T}yes" >&6; }
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.
$ac_ext >&5
16054 { echo "$as_me:$LINENO: result: no" >&5
16055 echo "${ECHO_T}no" >&6; }
16059 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16060 conftest
$ac_exeext conftest.
$ac_ext
16062 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16063 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16064 cat >conftest.
$ac_ext <<_ACEOF
16067 cat confdefs.h
>>conftest.
$ac_ext
16068 cat >>conftest.
$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16071 #include "confdefs.h"
16072 #include <sys/types.h>
16073 #include <sys/socket.h>
16074 #include <netinet/in.h>
16075 #include <arpa/inet.h>
16080 void* p = inet_pton
16085 rm -f conftest.
$ac_objext
16086 if { (ac_try
="$ac_compile"
16087 case "(($ac_try" in
16088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_compile") 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest.$ac_objext; then
16103 cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_INET_PTON 1
16107 { echo "$as_me:$LINENO: result: yes" >&5
16108 echo "${ECHO_T}yes" >&6; }
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 { echo "$as_me:$LINENO: result: no" >&5
16114 echo "${ECHO_T}no" >&6; }
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 # On some systems, setgroups is in unistd.h, on others, in grp.h
16121 { echo "$as_me:$LINENO: checking for setgroups" >&5
16122 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16130 #include "confdefs.h"
16131 #include <unistd.h>
16139 void* p = setgroups
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16148 *) ac_try_echo
=$ac_try;;
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16153 grep -v '^ *+' conftest.er1
>conftest.err
16155 cat conftest.err
>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && {
16158 test -z "$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16160 } && test -s conftest.
$ac_objext; then
16162 cat >>confdefs.h
<<\_ACEOF
16163 #define HAVE_SETGROUPS 1
16166 { echo "$as_me:$LINENO: result: yes" >&5
16167 echo "${ECHO_T}yes" >&6; }
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.
$ac_ext >&5
16172 { echo "$as_me:$LINENO: result: no" >&5
16173 echo "${ECHO_T}no" >&6; }
16177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16179 # check for openpty and forkpty
16182 for ac_func
in openpty
16184 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16187 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 cat >conftest.
$ac_ext <<_ACEOF
16193 cat confdefs.h
>>conftest.
$ac_ext
16194 cat >>conftest.
$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16198 #define $ac_func innocuous_$ac_func
16200 /* System header to define __stub macros and hopefully few prototypes,
16201 which can conflict with char $ac_func (); below.
16202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16203 <limits.h> exists even on freestanding compilers. */
16206 # include <limits.h>
16208 # include <assert.h>
16213 /* Override any GCC internal prototype to avoid an error.
16214 Use char because int might match the return type of a GCC
16215 builtin and then its argument prototype would still apply. */
16220 /* The GNU C library defines this for functions which it implements
16221 to always fail with ENOSYS. Some functions are actually named
16222 something starting with __ and the normal name is an alias. */
16223 #if defined __stub_$ac_func || defined __stub___$ac_func
16230 return $ac_func ();
16235 rm -f conftest.
$ac_objext conftest
$ac_exeext
16236 if { (ac_try
="$ac_link"
16237 case "(($ac_try" in
16238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_link") 2>conftest.er1
16244 grep -v '^ *+' conftest.er1 >conftest.err
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && {
16249 test -z "$ac_c_werror_flag" ||
16250 test ! -s conftest.err
16251 } && test -s conftest$ac_exeext &&
16252 $as_test_x conftest$ac_exeext; then
16253 eval "$as_ac_var=yes"
16255 echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16258 eval "$as_ac_var=no"
16261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16262 conftest$ac_exeext conftest.$ac_ext
16264 ac_res=`eval echo '${'$as_ac_var'}'`
16265 { echo "$as_me:$LINENO: result: $ac_res" >&5
16266 echo "${ECHO_T}$ac_res" >&6; }
16267 if test `eval echo '${'$as_ac_var'}'` = yes; then
16268 cat >>confdefs.h <<_ACEOF
16269 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16273 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16274 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16275 if test "${ac_cv_lib_util_openpty+set}" = set; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 ac_check_lib_save_LIBS=$LIBS
16279 LIBS="-lutil $LIBS"
16280 cat >conftest.$ac_ext <<_ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16287 /* Override any GCC internal prototype to avoid an error.
16288 Use char because int might match the return type of a GCC
16289 builtin and then its argument prototype would still apply. */
16302 rm -f conftest.$ac_objext conftest$ac_exeext
16303 if { (ac_try="$ac_link"
16304 case "(($ac_try" in
16305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16306 *) ac_try_echo
=$ac_try;;
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_link") 2>conftest.er1
16311 grep -v '^ *+' conftest.er1
>conftest.err
16313 cat conftest.err
>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
16318 } && test -s conftest
$ac_exeext &&
16319 $as_test_x conftest
$ac_exeext; then
16320 ac_cv_lib_util_openpty
=yes
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.
$ac_ext >&5
16325 ac_cv_lib_util_openpty
=no
16328 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16329 conftest
$ac_exeext conftest.
$ac_ext
16330 LIBS
=$ac_check_lib_save_LIBS
16332 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16333 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
16334 if test $ac_cv_lib_util_openpty = yes; then
16335 cat >>confdefs.h
<<\_ACEOF
16336 #define HAVE_OPENPTY 1
16338 LIBS
="$LIBS -lutil"
16340 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16341 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
16342 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 ac_check_lib_save_LIBS
=$LIBS
16347 cat >conftest.
$ac_ext <<_ACEOF
16350 cat confdefs.h
>>conftest.
$ac_ext
16351 cat >>conftest.
$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16354 /* Override any GCC internal prototype to avoid an error.
16355 Use char because int might match the return type of a GCC
16356 builtin and then its argument prototype would still apply. */
16369 rm -f conftest.
$ac_objext conftest
$ac_exeext
16370 if { (ac_try
="$ac_link"
16371 case "(($ac_try" in
16372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_link") 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest$ac_exeext &&
16386 $as_test_x conftest$ac_exeext; then
16387 ac_cv_lib_bsd_openpty=yes
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ac_cv_lib_bsd_openpty=no
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396 conftest$ac_exeext conftest.$ac_ext
16397 LIBS=$ac_check_lib_save_LIBS
16399 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16400 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
16401 if test $ac_cv_lib_bsd_openpty = yes; then
16402 cat >>confdefs.h <<\_ACEOF
16403 #define HAVE_OPENPTY 1
16416 for ac_func in forkpty
16418 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 cat >conftest.$ac_ext <<_ACEOF
16427 cat confdefs.h >>conftest.$ac_ext
16428 cat >>conftest.$ac_ext <<_ACEOF
16429 /* end confdefs.h. */
16430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16432 #define $ac_func innocuous_$ac_func
16434 /* System header to define __stub macros and hopefully few prototypes,
16435 which can conflict with char $ac_func (); below.
16436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16437 <limits.h> exists even on freestanding compilers. */
16440 # include <limits.h>
16442 # include <assert.h>
16447 /* Override any GCC internal prototype to avoid an error.
16448 Use char because int might match the return type of a GCC
16449 builtin and then its argument prototype would still apply. */
16454 /* The GNU C library defines this for functions which it implements
16455 to always fail with ENOSYS. Some functions are actually named
16456 something starting with __ and the normal name is an alias. */
16457 #if defined __stub_$ac_func || defined __stub___$ac_func
16464 return $ac_func ();
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (ac_try="$ac_link"
16471 case "(($ac_try" in
16472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16473 *) ac_try_echo
=$ac_try;;
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_link") 2>conftest.er1
16478 grep -v '^ *+' conftest.er1
>conftest.err
16480 cat conftest.err
>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } && {
16483 test -z "$ac_c_werror_flag" ||
16484 test ! -s conftest.err
16485 } && test -s conftest
$ac_exeext &&
16486 $as_test_x conftest
$ac_exeext; then
16487 eval "$as_ac_var=yes"
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.
$ac_ext >&5
16492 eval "$as_ac_var=no"
16495 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16496 conftest
$ac_exeext conftest.
$ac_ext
16498 ac_res
=`eval echo '${'$as_ac_var'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16501 if test `eval echo '${'$as_ac_var'}'` = yes; then
16502 cat >>confdefs.h
<<_ACEOF
16503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16507 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16508 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
16509 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 ac_check_lib_save_LIBS
=$LIBS
16513 LIBS
="-lutil $LIBS"
16514 cat >conftest.
$ac_ext <<_ACEOF
16517 cat confdefs.h
>>conftest.
$ac_ext
16518 cat >>conftest.
$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16521 /* Override any GCC internal prototype to avoid an error.
16522 Use char because int might match the return type of a GCC
16523 builtin and then its argument prototype would still apply. */
16536 rm -f conftest.
$ac_objext conftest
$ac_exeext
16537 if { (ac_try
="$ac_link"
16538 case "(($ac_try" in
16539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_link") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } && {
16550 test -z "$ac_c_werror_flag" ||
16551 test ! -s conftest.err
16552 } && test -s conftest$ac_exeext &&
16553 $as_test_x conftest$ac_exeext; then
16554 ac_cv_lib_util_forkpty=yes
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_cv_lib_util_forkpty=no
16562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16563 conftest$ac_exeext conftest.$ac_ext
16564 LIBS=$ac_check_lib_save_LIBS
16566 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16567 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
16568 if test $ac_cv_lib_util_forkpty = yes; then
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_FORKPTY 1
16572 LIBS="$LIBS -lutil"
16574 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16575 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
16576 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 ac_check_lib_save_LIBS=$LIBS
16581 cat >conftest.$ac_ext <<_ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16588 /* Override any GCC internal prototype to avoid an error.
16589 Use char because int might match the return type of a GCC
16590 builtin and then its argument prototype would still apply. */
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (ac_try="$ac_link"
16605 case "(($ac_try" in
16606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16607 *) ac_try_echo
=$ac_try;;
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_link") 2>conftest.er1
16612 grep -v '^ *+' conftest.er1
>conftest.err
16614 cat conftest.err
>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } && {
16617 test -z "$ac_c_werror_flag" ||
16618 test ! -s conftest.err
16619 } && test -s conftest
$ac_exeext &&
16620 $as_test_x conftest
$ac_exeext; then
16621 ac_cv_lib_bsd_forkpty
=yes
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.
$ac_ext >&5
16626 ac_cv_lib_bsd_forkpty
=no
16629 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16630 conftest
$ac_exeext conftest.
$ac_ext
16631 LIBS
=$ac_check_lib_save_LIBS
16633 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16634 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
16635 if test $ac_cv_lib_bsd_forkpty = yes; then
16636 cat >>confdefs.h
<<\_ACEOF
16637 #define HAVE_FORKPTY 1
16650 # check for long file support functions
16657 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16659 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16662 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 cat >conftest.
$ac_ext <<_ACEOF
16668 cat confdefs.h
>>conftest.
$ac_ext
16669 cat >>conftest.
$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16673 #define $ac_func innocuous_$ac_func
16675 /* System header to define __stub macros and hopefully few prototypes,
16676 which can conflict with char $ac_func (); below.
16677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16678 <limits.h> exists even on freestanding compilers. */
16681 # include <limits.h>
16683 # include <assert.h>
16688 /* Override any GCC internal prototype to avoid an error.
16689 Use char because int might match the return type of a GCC
16690 builtin and then its argument prototype would still apply. */
16695 /* The GNU C library defines this for functions which it implements
16696 to always fail with ENOSYS. Some functions are actually named
16697 something starting with __ and the normal name is an alias. */
16698 #if defined __stub_$ac_func || defined __stub___$ac_func
16705 return $ac_func ();
16710 rm -f conftest.
$ac_objext conftest
$ac_exeext
16711 if { (ac_try
="$ac_link"
16712 case "(($ac_try" in
16713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_link") 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest$ac_exeext &&
16727 $as_test_x conftest$ac_exeext; then
16728 eval "$as_ac_var=yes"
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 eval "$as_ac_var=no"
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16739 ac_res=`eval echo '${'$as_ac_var'}'`
16740 { echo "$as_me:$LINENO: result: $ac_res" >&5
16741 echo "${ECHO_T}$ac_res" >&6; }
16742 if test `eval echo '${'$as_ac_var'}'` = yes; then
16743 cat >>confdefs.h <<_ACEOF
16744 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16756 for ac_func in dup2 getcwd strdup strerror memmove
16758 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 cat >conftest.$ac_ext <<_ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16772 #define $ac_func innocuous_$ac_func
16774 /* System header to define __stub macros and hopefully few prototypes,
16775 which can conflict with char $ac_func (); below.
16776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16777 <limits.h> exists even on freestanding compilers. */
16780 # include <limits.h>
16782 # include <assert.h>
16787 /* Override any GCC internal prototype to avoid an error.
16788 Use char because int might match the return type of a GCC
16789 builtin and then its argument prototype would still apply. */
16794 /* The GNU C library defines this for functions which it implements
16795 to always fail with ENOSYS. Some functions are actually named
16796 something starting with __ and the normal name is an alias. */
16797 #if defined __stub_$ac_func || defined __stub___$ac_func
16804 return $ac_func ();
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16813 *) ac_try_echo
=$ac_try;;
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1
>conftest.err
16820 cat conftest.err
>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && {
16823 test -z "$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16825 } && test -s conftest
$ac_exeext &&
16826 $as_test_x conftest
$ac_exeext; then
16827 eval "$as_ac_var=yes"
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.
$ac_ext >&5
16832 eval "$as_ac_var=no"
16835 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16836 conftest
$ac_exeext conftest.
$ac_ext
16838 ac_res
=`eval echo '${'$as_ac_var'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841 if test `eval echo '${'$as_ac_var'}'` = yes; then
16842 cat >>confdefs.h
<<_ACEOF
16843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16847 case " $LIBOBJS " in
16848 *" $ac_func.$ac_objext "* ) ;;
16849 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
16858 for ac_func
in getpgrp
16860 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16863 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 cat >conftest.
$ac_ext <<_ACEOF
16869 cat confdefs.h
>>conftest.
$ac_ext
16870 cat >>conftest.
$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16874 #define $ac_func innocuous_$ac_func
16876 /* System header to define __stub macros and hopefully few prototypes,
16877 which can conflict with char $ac_func (); below.
16878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16879 <limits.h> exists even on freestanding compilers. */
16882 # include <limits.h>
16884 # include <assert.h>
16889 /* Override any GCC internal prototype to avoid an error.
16890 Use char because int might match the return type of a GCC
16891 builtin and then its argument prototype would still apply. */
16896 /* The GNU C library defines this for functions which it implements
16897 to always fail with ENOSYS. Some functions are actually named
16898 something starting with __ and the normal name is an alias. */
16899 #if defined __stub_$ac_func || defined __stub___$ac_func
16906 return $ac_func ();
16911 rm -f conftest.
$ac_objext conftest
$ac_exeext
16912 if { (ac_try
="$ac_link"
16913 case "(($ac_try" in
16914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_link") 2>conftest.er1
16920 grep -v '^ *+' conftest.er1 >conftest.err
16922 cat conftest.err >&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } && {
16925 test -z "$ac_c_werror_flag" ||
16926 test ! -s conftest.err
16927 } && test -s conftest$ac_exeext &&
16928 $as_test_x conftest$ac_exeext; then
16929 eval "$as_ac_var=yes"
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 eval "$as_ac_var=no"
16937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16938 conftest$ac_exeext conftest.$ac_ext
16940 ac_res=`eval echo '${'$as_ac_var'}'`
16941 { echo "$as_me:$LINENO: result: $ac_res" >&5
16942 echo "${ECHO_T}$ac_res" >&6; }
16943 if test `eval echo '${'$as_ac_var'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <unistd.h>
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16966 *) ac_try_echo
=$ac_try;;
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1
>conftest.err
16973 cat conftest.err
>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest.
$ac_objext; then
16980 cat >>confdefs.h
<<\_ACEOF
16981 #define GETPGRP_HAVE_ARG 1
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.
$ac_ext >&5
16992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16998 for ac_func
in setpgrp
17000 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17003 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 cat >conftest.
$ac_ext <<_ACEOF
17009 cat confdefs.h
>>conftest.
$ac_ext
17010 cat >>conftest.
$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17014 #define $ac_func innocuous_$ac_func
17016 /* System header to define __stub macros and hopefully few prototypes,
17017 which can conflict with char $ac_func (); below.
17018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17019 <limits.h> exists even on freestanding compilers. */
17022 # include <limits.h>
17024 # include <assert.h>
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17036 /* The GNU C library defines this for functions which it implements
17037 to always fail with ENOSYS. Some functions are actually named
17038 something starting with __ and the normal name is an alias. */
17039 #if defined __stub_$ac_func || defined __stub___$ac_func
17046 return $ac_func ();
17051 rm -f conftest.
$ac_objext conftest
$ac_exeext
17052 if { (ac_try
="$ac_link"
17053 case "(($ac_try" in
17054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_link") 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest$ac_exeext &&
17068 $as_test_x conftest$ac_exeext; then
17069 eval "$as_ac_var=yes"
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 eval "$as_ac_var=no"
17077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17078 conftest$ac_exeext conftest.$ac_ext
17080 ac_res=`eval echo '${'$as_ac_var'}'`
17081 { echo "$as_me:$LINENO: result: $ac_res" >&5
17082 echo "${ECHO_T}$ac_res" >&6; }
17083 if test `eval echo '${'$as_ac_var'}'` = yes; then
17084 cat >>confdefs.h <<_ACEOF
17085 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17087 cat >conftest.$ac_ext <<_ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 #include <unistd.h>
17102 rm -f conftest.$ac_objext
17103 if { (ac_try="$ac_compile"
17104 case "(($ac_try" in
17105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17106 *) ac_try_echo
=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_compile") 2>conftest.er1
17111 grep -v '^ *+' conftest.er1
>conftest.err
17113 cat conftest.err
>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } && {
17116 test -z "$ac_c_werror_flag" ||
17117 test ! -s conftest.err
17118 } && test -s conftest.
$ac_objext; then
17120 cat >>confdefs.h
<<\_ACEOF
17121 #define SETPGRP_HAVE_ARG 1
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.
$ac_ext >&5
17132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17138 for ac_func
in gettimeofday
17140 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 cat >conftest.
$ac_ext <<_ACEOF
17149 cat confdefs.h
>>conftest.
$ac_ext
17150 cat >>conftest.
$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154 #define $ac_func innocuous_$ac_func
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17162 # include <limits.h>
17164 # include <assert.h>
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17186 return $ac_func ();
17191 rm -f conftest.
$ac_objext conftest
$ac_exeext
17192 if { (ac_try
="$ac_link"
17193 case "(($ac_try" in
17194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest$ac_exeext &&
17208 $as_test_x conftest$ac_exeext; then
17209 eval "$as_ac_var=yes"
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 eval "$as_ac_var=no"
17217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17218 conftest$ac_exeext conftest.$ac_ext
17220 ac_res=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/time.h>
17237 gettimeofday((struct timeval*)0,(struct timezone*)0);
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17246 *) ac_try_echo
=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_compile") 2>conftest.er1
17251 grep -v '^ *+' conftest.er1
>conftest.err
17253 cat conftest.err
>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && {
17256 test -z "$ac_c_werror_flag" ||
17257 test ! -s conftest.err
17258 } && test -s conftest.
$ac_objext; then
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.
$ac_ext >&5
17265 cat >>confdefs.h
<<\_ACEOF
17266 #define GETTIMEOFDAY_NO_TZ 1
17272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17278 { echo "$as_me:$LINENO: checking for major" >&5
17279 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
17280 cat >conftest.
$ac_ext <<_ACEOF
17283 cat confdefs.h
>>conftest.
$ac_ext
17284 cat >>conftest.
$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17287 #if defined(MAJOR_IN_MKDEV)
17288 #include <sys/mkdev.h>
17289 #elif defined(MAJOR_IN_SYSMACROS)
17290 #include <sys/sysmacros.h>
17292 #include <sys/types.h>
17299 makedev(major(0),minor(0));
17305 rm -f conftest.
$ac_objext conftest
$ac_exeext
17306 if { (ac_try
="$ac_link"
17307 case "(($ac_try" in
17308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17314 grep -v '^ *+' conftest.er1 >conftest.err
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest$ac_exeext &&
17322 $as_test_x conftest$ac_exeext; then
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_DEVICE_MACROS 1
17329 { echo "$as_me:$LINENO: result: yes" >&5
17330 echo "${ECHO_T}yes" >&6; }
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17337 { echo "$as_me:$LINENO: result: no" >&5
17338 echo "${ECHO_T}no" >&6; }
17342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17343 conftest$ac_exeext conftest.$ac_ext
17345 # On OSF/1 V5.1, getaddrinfo is available, but a define
17346 # for [no]getaddrinfo in netdb.h.
17347 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17348 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17356 #include <sys/types.h>
17357 #include <sys/socket.h>
17365 getaddrinfo(NULL, NULL, NULL, NULL);
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17375 *) ac_try_echo
=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17380 grep -v '^ *+' conftest.er1
>conftest.err
17382 cat conftest.err
>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest
$ac_exeext &&
17388 $as_test_x conftest
$ac_exeext; then
17390 { echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6; }
17392 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17393 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
17394 if test "$cross_compiling" = yes; then
17395 { echo "$as_me:$LINENO: result: buggy" >&5
17396 echo "${ECHO_T}buggy" >&6; }
17397 buggygetaddrinfo
=yes
17399 cat >conftest.
$ac_ext <<_ACEOF
17402 cat confdefs.h
>>conftest.
$ac_ext
17403 cat >>conftest.
$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17406 #include <sys/types.h>
17408 #include <string.h>
17409 #include <sys/socket.h>
17410 #include <netinet/in.h>
17414 int passive, gaierr, inet4 = 0, inet6 = 0;
17415 struct addrinfo hints, *ai, *aitop;
17416 char straddr[INET6_ADDRSTRLEN], strport[16];
17418 for (passive = 0; passive <= 1; passive++) {
17419 memset(&hints, 0, sizeof(hints));
17420 hints.ai_family = AF_UNSPEC;
17421 hints.ai_flags = passive ? AI_PASSIVE : 0;
17422 hints.ai_socktype = SOCK_STREAM;
17423 hints.ai_protocol = IPPROTO_TCP;
17424 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17425 (void)gai_strerror(gaierr);
17428 for (ai = aitop; ai; ai = ai->ai_next) {
17429 if (ai->ai_addr == NULL ||
17430 ai->ai_addrlen == 0 ||
17431 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17432 straddr, sizeof(straddr), strport, sizeof(strport),
17433 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17436 switch (ai->ai_family) {
17438 if (strcmp(strport, "54321") != 0) {
17442 if (strcmp(straddr, "0.0.0.0") != 0) {
17446 if (strcmp(straddr, "127.0.0.1") != 0) {
17453 if (strcmp(strport, "54321") != 0) {
17457 if (strcmp(straddr, "::") != 0) {
17461 if (strcmp(straddr, "::1") != 0) {
17471 /* another family support? */
17477 if (!(inet4 == 0 || inet4 == 2))
17479 if (!(inet6 == 0 || inet6 == 2))
17483 freeaddrinfo(aitop);
17488 freeaddrinfo(aitop);
17493 rm -f conftest
$ac_exeext
17494 if { (ac_try
="$ac_link"
17495 case "(($ac_try" in
17496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17504 { (case "(($ac_try" in
17505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17506 *) ac_try_echo
=$ac_try;;
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_try") 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 { echo "$as_me:$LINENO: result: good" >&5
17514 echo "${ECHO_T}good" >&6; }
17515 buggygetaddrinfo
=no
17517 echo "$as_me: program exited with status $ac_status" >&5
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.
$ac_ext >&5
17521 ( exit $ac_status )
17522 { echo "$as_me:$LINENO: result: buggy" >&5
17523 echo "${ECHO_T}buggy" >&6; }
17524 buggygetaddrinfo
=yes
17526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.
$ac_ext >&5
17535 { echo "$as_me:$LINENO: result: no" >&5
17536 echo "${ECHO_T}no" >&6; }
17537 buggygetaddrinfo
=yes
17541 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17542 conftest
$ac_exeext conftest.
$ac_ext
17544 if test "$buggygetaddrinfo" = "yes"; then
17545 if test "$ipv6" = "yes"; then
17546 echo 'Fatal: You must get working getaddrinfo() function.'
17547 echo ' or you can specify "--disable-ipv6"'.
17552 cat >>confdefs.h
<<\_ACEOF
17553 #define HAVE_GETADDRINFO 1
17558 for ac_func
in getnameinfo
17560 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17563 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 cat >conftest.
$ac_ext <<_ACEOF
17569 cat confdefs.h
>>conftest.
$ac_ext
17570 cat >>conftest.
$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574 #define $ac_func innocuous_$ac_func
17576 /* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char $ac_func (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17582 # include <limits.h>
17584 # include <assert.h>
17589 /* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17596 /* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599 #if defined __stub_$ac_func || defined __stub___$ac_func
17606 return $ac_func ();
17611 rm -f conftest.
$ac_objext conftest
$ac_exeext
17612 if { (ac_try
="$ac_link"
17613 case "(($ac_try" in
17614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && {
17625 test -z "$ac_c_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
17629 eval "$as_ac_var=yes"
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 eval "$as_ac_var=no"
17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638 conftest$ac_exeext conftest.$ac_ext
17640 ac_res=`eval echo '${'$as_ac_var'}'`
17641 { echo "$as_me:$LINENO: result: $ac_res" >&5
17642 echo "${ECHO_T}$ac_res" >&6; }
17643 if test `eval echo '${'$as_ac_var'}'` = yes; then
17644 cat >>confdefs.h <<_ACEOF
17645 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17652 # checks for structures
17653 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17654 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17655 if test "${ac_cv_header_time+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 cat >conftest.$ac_ext <<_ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 #include <sys/types.h>
17665 #include <sys/time.h>
17671 if ((struct tm *) 0)
17677 rm -f conftest.$ac_objext
17678 if { (ac_try="$ac_compile"
17679 case "(($ac_try" in
17680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17681 *) ac_try_echo
=$ac_try;;
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_compile") 2>conftest.er1
17686 grep -v '^ *+' conftest.er1
>conftest.err
17688 cat conftest.err
>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest.
$ac_objext; then
17694 ac_cv_header_time
=yes
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.
$ac_ext >&5
17699 ac_cv_header_time
=no
17702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17705 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17706 if test $ac_cv_header_time = yes; then
17708 cat >>confdefs.h
<<\_ACEOF
17709 #define TIME_WITH_SYS_TIME 1
17714 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17715 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17716 if test "${ac_cv_struct_tm+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 cat >conftest.
$ac_ext <<_ACEOF
17722 cat confdefs.h
>>conftest.
$ac_ext
17723 cat >>conftest.
$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725 #include <sys/types.h>
17732 int *p = &tm.tm_sec;
17738 rm -f conftest.
$ac_objext
17739 if { (ac_try
="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest.$ac_objext; then
17755 ac_cv_struct_tm=time.h
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_struct_tm=sys/time.h
17763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17766 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17767 if test $ac_cv_struct_tm = sys/time.h; then
17769 cat >>confdefs.h <<\_ACEOF
17770 #define TM_IN_SYS_TIME 1
17775 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17776 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
17777 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include <sys/types.h>
17787 #include <$ac_cv_struct_tm>
17793 static struct tm ac_aggr;
17794 if (ac_aggr.tm_zone)
17800 rm -f conftest.$ac_objext
17801 if { (ac_try="$ac_compile"
17802 case "(($ac_try" in
17803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17804 *) ac_try_echo
=$ac_try;;
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_compile") 2>conftest.er1
17809 grep -v '^ *+' conftest.er1
>conftest.err
17811 cat conftest.err
>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
17816 } && test -s conftest.
$ac_objext; then
17817 ac_cv_member_struct_tm_tm_zone
=yes
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.
$ac_ext >&5
17822 cat >conftest.
$ac_ext <<_ACEOF
17825 cat confdefs.h
>>conftest.
$ac_ext
17826 cat >>conftest.
$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 #include <sys/types.h>
17829 #include <$ac_cv_struct_tm>
17835 static struct tm ac_aggr;
17836 if (sizeof ac_aggr.tm_zone)
17842 rm -f conftest.
$ac_objext
17843 if { (ac_try
="$ac_compile"
17844 case "(($ac_try" in
17845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } && {
17856 test -z "$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 } && test -s conftest.$ac_objext; then
17859 ac_cv_member_struct_tm_tm_zone=yes
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_cv_member_struct_tm_tm_zone=no
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17873 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
17874 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17876 cat >>confdefs.h <<_ACEOF
17877 #define HAVE_STRUCT_TM_TM_ZONE 1
17883 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17885 cat >>confdefs.h <<\_ACEOF
17886 #define HAVE_TM_ZONE 1
17890 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
17891 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
17892 if test "${ac_cv_have_decl_tzname+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17914 rm -f conftest.$ac_objext
17915 if { (ac_try="$ac_compile"
17916 case "(($ac_try" in
17917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17918 *) ac_try_echo
=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_compile") 2>conftest.er1
17923 grep -v '^ *+' conftest.er1
>conftest.err
17925 cat conftest.err
>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } && {
17928 test -z "$ac_c_werror_flag" ||
17929 test ! -s conftest.err
17930 } && test -s conftest.
$ac_objext; then
17931 ac_cv_have_decl_tzname
=yes
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.
$ac_ext >&5
17936 ac_cv_have_decl_tzname
=no
17939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17941 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
17942 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
17943 if test $ac_cv_have_decl_tzname = yes; then
17945 cat >>confdefs.h
<<_ACEOF
17946 #define HAVE_DECL_TZNAME 1
17951 cat >>confdefs.h
<<_ACEOF
17952 #define HAVE_DECL_TZNAME 0
17959 { echo "$as_me:$LINENO: checking for tzname" >&5
17960 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
17961 if test "${ac_cv_var_tzname+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 cat >conftest.
$ac_ext <<_ACEOF
17967 cat confdefs.h
>>conftest.
$ac_ext
17968 cat >>conftest.
$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17971 #if !HAVE_DECL_TZNAME
17972 extern char *tzname[];
17978 return tzname[0][0];
17983 rm -f conftest.
$ac_objext conftest
$ac_exeext
17984 if { (ac_try
="$ac_link"
17985 case "(($ac_try" in
17986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } && {
17997 test -z "$ac_c_werror_flag" ||
17998 test ! -s conftest.err
17999 } && test -s conftest$ac_exeext &&
18000 $as_test_x conftest$ac_exeext; then
18001 ac_cv_var_tzname=yes
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_var_tzname=no
18009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18010 conftest$ac_exeext conftest.$ac_ext
18012 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18013 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18014 if test $ac_cv_var_tzname = yes; then
18016 cat >>confdefs.h <<\_ACEOF
18017 #define HAVE_TZNAME 1
18023 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18024 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18025 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 cat >conftest.$ac_ext <<_ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 $ac_includes_default
18038 static struct stat ac_aggr;
18039 if (ac_aggr.st_rdev)
18045 rm -f conftest.$ac_objext
18046 if { (ac_try="$ac_compile"
18047 case "(($ac_try" in
18048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18049 *) ac_try_echo
=$ac_try;;
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1
>conftest.err
18056 cat conftest.err
>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest.
$ac_objext; then
18062 ac_cv_member_struct_stat_st_rdev
=yes
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.
$ac_ext >&5
18067 cat >conftest.
$ac_ext <<_ACEOF
18070 cat confdefs.h
>>conftest.
$ac_ext
18071 cat >>conftest.
$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18077 static struct stat ac_aggr;
18078 if (sizeof ac_aggr.st_rdev)
18084 rm -f conftest.
$ac_objext
18085 if { (ac_try
="$ac_compile"
18086 case "(($ac_try" in
18087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_compile") 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest.$ac_objext; then
18101 ac_cv_member_struct_stat_st_rdev=yes
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 ac_cv_member_struct_stat_st_rdev=no
18109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18116 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define HAVE_STRUCT_STAT_ST_RDEV 1
18125 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18126 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18127 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 cat >conftest.$ac_ext <<_ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h. */
18136 $ac_includes_default
18140 static struct stat ac_aggr;
18141 if (ac_aggr.st_blksize)
18147 rm -f conftest.$ac_objext
18148 if { (ac_try="$ac_compile"
18149 case "(($ac_try" in
18150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18151 *) ac_try_echo
=$ac_try;;
18153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154 (eval "$ac_compile") 2>conftest.er1
18156 grep -v '^ *+' conftest.er1
>conftest.err
18158 cat conftest.err
>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } && {
18161 test -z "$ac_c_werror_flag" ||
18162 test ! -s conftest.err
18163 } && test -s conftest.
$ac_objext; then
18164 ac_cv_member_struct_stat_st_blksize
=yes
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.
$ac_ext >&5
18169 cat >conftest.
$ac_ext <<_ACEOF
18172 cat confdefs.h
>>conftest.
$ac_ext
18173 cat >>conftest.
$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 $ac_includes_default
18179 static struct stat ac_aggr;
18180 if (sizeof ac_aggr.st_blksize)
18186 rm -f conftest.
$ac_objext
18187 if { (ac_try
="$ac_compile"
18188 case "(($ac_try" in
18189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_compile") 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } && {
18200 test -z "$ac_c_werror_flag" ||
18201 test ! -s conftest.err
18202 } && test -s conftest.$ac_objext; then
18203 ac_cv_member_struct_stat_st_blksize=yes
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 ac_cv_member_struct_stat_st_blksize=no
18211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18217 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18218 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18227 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18228 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18229 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 cat >conftest.$ac_ext <<_ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h. */
18238 $ac_includes_default
18242 static struct stat ac_aggr;
18243 if (ac_aggr.st_flags)
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18253 *) ac_try_echo
=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18258 grep -v '^ *+' conftest.er1
>conftest.err
18260 cat conftest.err
>&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest.
$ac_objext; then
18266 ac_cv_member_struct_stat_st_flags
=yes
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.
$ac_ext >&5
18271 cat >conftest.
$ac_ext <<_ACEOF
18274 cat confdefs.h
>>conftest.
$ac_ext
18275 cat >>conftest.
$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18281 static struct stat ac_aggr;
18282 if (sizeof ac_aggr.st_flags)
18288 rm -f conftest.
$ac_objext
18289 if { (ac_try
="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_compile") 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && {
18302 test -z "$ac_c_werror_flag" ||
18303 test ! -s conftest.err
18304 } && test -s conftest.$ac_objext; then
18305 ac_cv_member_struct_stat_st_flags=yes
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18310 ac_cv_member_struct_stat_st_flags=no
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
18320 if test $ac_cv_member_struct_stat_st_flags = yes; then
18322 cat >>confdefs.h <<_ACEOF
18323 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18329 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18330 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
18331 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 $ac_includes_default
18344 static struct stat ac_aggr;
18345 if (ac_aggr.st_gen)
18351 rm -f conftest.$ac_objext
18352 if { (ac_try="$ac_compile"
18353 case "(($ac_try" in
18354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18355 *) ac_try_echo
=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_compile") 2>conftest.er1
18360 grep -v '^ *+' conftest.er1
>conftest.err
18362 cat conftest.err
>&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } && {
18365 test -z "$ac_c_werror_flag" ||
18366 test ! -s conftest.err
18367 } && test -s conftest.
$ac_objext; then
18368 ac_cv_member_struct_stat_st_gen
=yes
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.
$ac_ext >&5
18373 cat >conftest.
$ac_ext <<_ACEOF
18376 cat confdefs.h
>>conftest.
$ac_ext
18377 cat >>conftest.
$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18379 $ac_includes_default
18383 static struct stat ac_aggr;
18384 if (sizeof ac_aggr.st_gen)
18390 rm -f conftest.
$ac_objext
18391 if { (ac_try
="$ac_compile"
18392 case "(($ac_try" in
18393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } && {
18404 test -z "$ac_c_werror_flag" ||
18405 test ! -s conftest.err
18406 } && test -s conftest.$ac_objext; then
18407 ac_cv_member_struct_stat_st_gen=yes
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_member_struct_stat_st_gen=no
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18421 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
18422 if test $ac_cv_member_struct_stat_st_gen = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_STRUCT_STAT_ST_GEN 1
18431 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18432 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
18433 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 cat >conftest.$ac_ext <<_ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 $ac_includes_default
18446 static struct stat ac_aggr;
18447 if (ac_aggr.st_birthtime)
18453 rm -f conftest.$ac_objext
18454 if { (ac_try="$ac_compile"
18455 case "(($ac_try" in
18456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18457 *) ac_try_echo
=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_compile") 2>conftest.er1
18462 grep -v '^ *+' conftest.er1
>conftest.err
18464 cat conftest.err
>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest.
$ac_objext; then
18470 ac_cv_member_struct_stat_st_birthtime
=yes
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.
$ac_ext >&5
18475 cat >conftest.
$ac_ext <<_ACEOF
18478 cat confdefs.h
>>conftest.
$ac_ext
18479 cat >>conftest.
$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 $ac_includes_default
18485 static struct stat ac_aggr;
18486 if (sizeof ac_aggr.st_birthtime)
18492 rm -f conftest.
$ac_objext
18493 if { (ac_try
="$ac_compile"
18494 case "(($ac_try" in
18495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_compile") 2>conftest.er1
18501 grep -v '^ *+' conftest.er1 >conftest.err
18503 cat conftest.err >&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } && {
18506 test -z "$ac_c_werror_flag" ||
18507 test ! -s conftest.err
18508 } && test -s conftest.$ac_objext; then
18509 ac_cv_member_struct_stat_st_birthtime=yes
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 ac_cv_member_struct_stat_st_birthtime=no
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
18524 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18526 cat >>confdefs.h <<_ACEOF
18527 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18533 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18534 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
18535 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 cat >conftest.$ac_ext <<_ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18544 $ac_includes_default
18548 static struct stat ac_aggr;
18549 if (ac_aggr.st_blocks)
18555 rm -f conftest.$ac_objext
18556 if { (ac_try="$ac_compile"
18557 case "(($ac_try" in
18558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18559 *) ac_try_echo
=$ac_try;;
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_compile") 2>conftest.er1
18564 grep -v '^ *+' conftest.er1
>conftest.err
18566 cat conftest.err
>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest.
$ac_objext; then
18572 ac_cv_member_struct_stat_st_blocks
=yes
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.
$ac_ext >&5
18577 cat >conftest.
$ac_ext <<_ACEOF
18580 cat confdefs.h
>>conftest.
$ac_ext
18581 cat >>conftest.
$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 $ac_includes_default
18587 static struct stat ac_aggr;
18588 if (sizeof ac_aggr.st_blocks)
18594 rm -f conftest.
$ac_objext
18595 if { (ac_try
="$ac_compile"
18596 case "(($ac_try" in
18597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_compile") 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest.$ac_objext; then
18611 ac_cv_member_struct_stat_st_blocks=yes
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18616 ac_cv_member_struct_stat_st_blocks=no
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18625 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
18626 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18628 cat >>confdefs.h <<_ACEOF
18629 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE_ST_BLOCKS 1
18638 case " $LIBOBJS " in
18639 *" fileblocks.$ac_objext "* ) ;;
18640 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
18648 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18649 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
18650 if test "${ac_cv_header_time_altzone+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18668 rm -f conftest.$ac_objext
18669 if { (ac_try="$ac_compile"
18670 case "(($ac_try" in
18671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18672 *) ac_try_echo
=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_compile") 2>conftest.er1
18677 grep -v '^ *+' conftest.er1
>conftest.err
18679 cat conftest.err
>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } && {
18682 test -z "$ac_c_werror_flag" ||
18683 test ! -s conftest.err
18684 } && test -s conftest.
$ac_objext; then
18685 ac_cv_header_time_altzone
=yes
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.
$ac_ext >&5
18690 ac_cv_header_time_altzone
=no
18693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18696 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18697 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
18698 if test $ac_cv_header_time_altzone = yes; then
18700 cat >>confdefs.h
<<\_ACEOF
18701 #define HAVE_ALTZONE 1
18707 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18708 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
18709 cat >conftest.
$ac_ext <<_ACEOF
18712 cat confdefs.h
>>conftest.
$ac_ext
18713 cat >>conftest.
$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 #include <sys/types.h>
18717 #include <sys/select.h>
18718 #include <sys/time.h>
18728 rm -f conftest.
$ac_objext
18729 if { (ac_try
="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18747 cat >>confdefs.h <<\_ACEOF
18748 #define SYS_SELECT_WITH_SYS_TIME 1
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18761 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
18762 echo "${ECHO_T}$was_it_defined" >&6; }
18764 { echo "$as_me:$LINENO: checking for addrinfo" >&5
18765 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
18766 if test "${ac_cv_struct_addrinfo+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18776 # include <netdb.h>
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18789 *) ac_try_echo
=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1
>conftest.err
18796 cat conftest.err
>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.
$ac_objext; then
18802 ac_cv_struct_addrinfo
=yes
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.
$ac_ext >&5
18807 ac_cv_struct_addrinfo
=no
18810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18813 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18814 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
18815 if test $ac_cv_struct_addrinfo = yes; then
18817 cat >>confdefs.h
<<\_ACEOF
18818 #define HAVE_ADDRINFO 1
18823 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18824 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
18825 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 cat >conftest.
$ac_ext <<_ACEOF
18831 cat confdefs.h
>>conftest.
$ac_ext
18832 cat >>conftest.
$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18835 # include <sys/types.h>
18836 # include <sys/socket.h>
18840 struct sockaddr_storage s
18845 rm -f conftest.
$ac_objext
18846 if { (ac_try
="$ac_compile"
18847 case "(($ac_try" in
18848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_compile") 2>conftest.er1
18854 grep -v '^ *+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest.$ac_objext; then
18862 ac_cv_struct_sockaddr_storage=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_cv_struct_sockaddr_storage=no
18870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18874 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
18875 if test $ac_cv_struct_sockaddr_storage = yes; then
18877 cat >>confdefs.h <<\_ACEOF
18878 #define HAVE_SOCKADDR_STORAGE 1
18883 # checks for compiler characteristics
18886 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18887 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
18888 if test "${ac_cv_c_char_unsigned+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18901 static int test_array [1 - 2 * !(((char) -1) < 0)];
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18912 *) ac_try_echo
=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_compile") 2>conftest.er1
18917 grep -v '^ *+' conftest.er1
>conftest.err
18919 cat conftest.err
>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest.
$ac_objext; then
18925 ac_cv_c_char_unsigned
=no
18927 echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.
$ac_ext >&5
18930 ac_cv_c_char_unsigned
=yes
18933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18935 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18936 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
18937 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18938 cat >>confdefs.h
<<\_ACEOF
18939 #define __CHAR_UNSIGNED__ 1
18944 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18946 if test "${ac_cv_c_const+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 cat >conftest.
$ac_ext <<_ACEOF
18952 cat confdefs.h
>>conftest.
$ac_ext
18953 cat >>conftest.
$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18959 /* FIXME: Include the comments suggested by Paul. */
18960 #ifndef __cplusplus
18961 /* Ultrix mips cc rejects this. */
18962 typedef int charset[2];
18964 /* SunOS 4.1.1 cc rejects this. */
18965 char const *const *pcpcc;
18967 /* NEC SVR4.0.2 mips cc rejects this. */
18968 struct point {int x, y;};
18969 static struct point const zero = {0,0};
18970 /* AIX XL C 1.02.0.0 rejects this.
18971 It does not let you subtract one const X* pointer from another in
18972 an arm of an if-expression whose if-part is not a constant
18974 const char *g = "string";
18975 pcpcc = &g + (g ? g-g : 0);
18976 /* HPUX 7.0 cc rejects these. */
18978 ppc = (char**) pcpcc;
18979 pcpcc = (char const *const *) ppc;
18980 { /* SCO 3.2v4 cc rejects this. */
18982 char const *s = 0 ? (char *) 0 : (char const *) 0;
18987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18988 int x[] = {25, 17};
18989 const int *foo = &x[0];
18992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18993 typedef const int *iptr;
18997 { /* AIX XL C 1.02.0.0 rejects this saying
18998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18999 struct s { int j; const int *ap[3]; };
19000 struct s *b; b->j = 5;
19002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19003 const int foo = 10;
19004 if (!foo) return 0;
19006 return !cs[0] && !zero.x;
19013 rm -f conftest.
$ac_objext
19014 if { (ac_try
="$ac_compile"
19015 case "(($ac_try" in
19016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.$ac_objext; then
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19041 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19042 if test $ac_cv_c_const = no; then
19044 cat >>confdefs.h <<\_ACEOF
19052 { echo "$as_me:$LINENO: checking for working volatile" >&5
19053 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19054 cat >conftest.$ac_ext <<_ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19064 volatile int x; x = 0;
19069 rm -f conftest.$ac_objext
19070 if { (ac_try="$ac_compile"
19071 case "(($ac_try" in
19072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19073 *) ac_try_echo
=$ac_try;;
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_compile") 2>conftest.er1
19078 grep -v '^ *+' conftest.er1
>conftest.err
19080 cat conftest.err
>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest.
$ac_objext; then
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.
$ac_ext >&5
19092 cat >>confdefs.h
<<\_ACEOF
19099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19100 { echo "$as_me:$LINENO: result: $works" >&5
19101 echo "${ECHO_T}$works" >&6; }
19104 { echo "$as_me:$LINENO: checking for working signed char" >&5
19105 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19106 cat >conftest.
$ac_ext <<_ACEOF
19109 cat confdefs.h
>>conftest.
$ac_ext
19110 cat >>conftest.
$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19121 rm -f conftest.
$ac_objext
19122 if { (ac_try
="$ac_compile"
19123 case "(($ac_try" in
19124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_compile") 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest.$ac_objext; then
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19144 cat >>confdefs.h <<\_ACEOF
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 { echo "$as_me:$LINENO: result: $works" >&5
19153 echo "${ECHO_T}$works" >&6; }
19156 { echo "$as_me:$LINENO: checking for prototypes" >&5
19157 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 int foo(int x) { return 0; }
19173 rm -f conftest.$ac_objext
19174 if { (ac_try="$ac_compile"
19175 case "(($ac_try" in
19176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19177 *) ac_try_echo
=$ac_try;;
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_compile") 2>conftest.er1
19182 grep -v '^ *+' conftest.er1
>conftest.err
19184 cat conftest.err
>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest.
$ac_objext; then
19192 cat >>confdefs.h
<<\_ACEOF
19193 #define HAVE_PROTOTYPES 1
19196 have_prototypes
=yes
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.
$ac_ext >&5
19205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19206 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19207 echo "${ECHO_T}$have_prototypes" >&6; }
19210 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19211 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19212 cat >conftest.
$ac_ext <<_ACEOF
19215 cat confdefs.h
>>conftest.
$ac_ext
19216 cat >>conftest.
$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19219 #include <stdarg.h>
19220 int foo(int x, ...) {
19224 va_arg(va, char *);
19225 va_arg(va, double);
19232 return foo(10, "", 3.14);
19237 rm -f conftest.
$ac_objext
19238 if { (ac_try
="$ac_compile"
19239 case "(($ac_try" in
19240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_compile") 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } && {
19251 test -z "$ac_c_werror_flag" ||
19252 test ! -s conftest.err
19253 } && test -s conftest.$ac_objext; then
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_STDARG_PROTOTYPES 1
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 { echo "$as_me:$LINENO: result: $works" >&5
19271 echo "${ECHO_T}$works" >&6; }
19273 # check for socketpair
19274 { echo "$as_me:$LINENO: checking for socketpair" >&5
19275 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
19276 cat >conftest.$ac_ext <<_ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19283 #include <sys/types.h>
19284 #include <sys/socket.h>
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19298 *) ac_try_echo
=$ac_try;;
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_compile") 2>conftest.er1
19303 grep -v '^ *+' conftest.er1
>conftest.err
19305 cat conftest.err
>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } && {
19308 test -z "$ac_c_werror_flag" ||
19309 test ! -s conftest.err
19310 } && test -s conftest.
$ac_objext; then
19312 cat >>confdefs.h
<<\_ACEOF
19313 #define HAVE_SOCKETPAIR 1
19316 { echo "$as_me:$LINENO: result: yes" >&5
19317 echo "${ECHO_T}yes" >&6; }
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.
$ac_ext >&5
19322 { echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6; }
19327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19329 # check if sockaddr has sa_len member
19330 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19331 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
19332 cat >conftest.
$ac_ext <<_ACEOF
19335 cat confdefs.h
>>conftest.
$ac_ext
19336 cat >>conftest.
$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #include <sys/socket.h>
19349 rm -f conftest.
$ac_objext
19350 if { (ac_try
="$ac_compile"
19351 case "(($ac_try" in
19352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_compile") 2>conftest.er1
19358 grep -v '^ *+' conftest.er1 >conftest.err
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest.$ac_objext; then
19366 { echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6; }
19369 cat >>confdefs.h <<\_ACEOF
19370 #define HAVE_SOCKADDR_SA_LEN 1
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 { echo "$as_me:$LINENO: result: no" >&5
19378 echo "${ECHO_T}no" >&6; }
19381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 va_list_is_array=no
19384 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19385 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
19386 cat >conftest.$ac_ext <<_ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19393 #ifdef HAVE_STDARG_PROTOTYPES
19394 #include <stdarg.h>
19396 #include <varargs.h>
19402 va_list list1, list2; list1 = list2;
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19411 *) ac_try_echo
=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1
>conftest.err
19418 cat conftest.err
>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.
$ac_objext; then
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.
$ac_ext >&5
19431 cat >>confdefs.h
<<\_ACEOF
19432 #define VA_LIST_IS_ARRAY 1
19435 va_list_is_array
=yes
19439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19440 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19441 echo "${ECHO_T}$va_list_is_array" >&6; }
19443 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19447 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19448 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
19449 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 cat >conftest.
$ac_ext <<_ACEOF
19455 cat confdefs.h
>>conftest.
$ac_ext
19456 cat >>conftest.
$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19458 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19460 #define gethostbyname_r innocuous_gethostbyname_r
19462 /* System header to define __stub macros and hopefully few prototypes,
19463 which can conflict with char gethostbyname_r (); below.
19464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19465 <limits.h> exists even on freestanding compilers. */
19468 # include <limits.h>
19470 # include <assert.h>
19473 #undef gethostbyname_r
19475 /* Override any GCC internal prototype to avoid an error.
19476 Use char because int might match the return type of a GCC
19477 builtin and then its argument prototype would still apply. */
19481 char gethostbyname_r ();
19482 /* The GNU C library defines this for functions which it implements
19483 to always fail with ENOSYS. Some functions are actually named
19484 something starting with __ and the normal name is an alias. */
19485 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
19492 return gethostbyname_r ();
19497 rm -f conftest.
$ac_objext conftest
$ac_exeext
19498 if { (ac_try
="$ac_link"
19499 case "(($ac_try" in
19500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_link") 2>conftest.er1
19506 grep -v '^ *+' conftest.er1 >conftest.err
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } && {
19511 test -z "$ac_c_werror_flag" ||
19512 test ! -s conftest.err
19513 } && test -s conftest$ac_exeext &&
19514 $as_test_x conftest$ac_exeext; then
19515 ac_cv_func_gethostbyname_r=yes
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_func_gethostbyname_r=no
19523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19524 conftest$ac_exeext conftest.$ac_ext
19526 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19527 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
19528 if test $ac_cv_func_gethostbyname_r = yes; then
19530 cat >>confdefs.h <<\_ACEOF
19531 #define HAVE_GETHOSTBYNAME_R 1
19534 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19535 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
19537 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19538 cat >conftest.$ac_ext <<_ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19545 # include <netdb.h>
19552 struct hostent *he, *res;
19557 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19563 rm -f conftest.$ac_objext
19564 if { (ac_try="$ac_compile"
19565 case "(($ac_try" in
19566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19567 *) ac_try_echo
=$ac_try;;
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_compile") 2>conftest.er1
19572 grep -v '^ *+' conftest.er1
>conftest.err
19574 cat conftest.err
>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } && {
19577 test -z "$ac_c_werror_flag" ||
19578 test ! -s conftest.err
19579 } && test -s conftest.
$ac_objext; then
19581 cat >>confdefs.h
<<\_ACEOF
19582 #define HAVE_GETHOSTBYNAME_R 1
19586 cat >>confdefs.h
<<\_ACEOF
19587 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19590 { echo "$as_me:$LINENO: result: yes" >&5
19591 echo "${ECHO_T}yes" >&6; }
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.
$ac_ext >&5
19598 { echo "$as_me:$LINENO: result: no" >&5
19599 echo "${ECHO_T}no" >&6; }
19600 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19601 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
19602 cat >conftest.
$ac_ext <<_ACEOF
19605 cat confdefs.h
>>conftest.
$ac_ext
19606 cat >>conftest.
$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19609 # include <netdb.h>
19616 struct hostent *he;
19621 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19627 rm -f conftest.
$ac_objext
19628 if { (ac_try
="$ac_compile"
19629 case "(($ac_try" in
19630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_compile") 2>conftest.er1
19636 grep -v '^ *+' conftest.er1 >conftest.err
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && {
19641 test -z "$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 } && test -s conftest.$ac_objext; then
19645 cat >>confdefs.h <<\_ACEOF
19646 #define HAVE_GETHOSTBYNAME_R 1
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19654 { echo "$as_me:$LINENO: result: yes" >&5
19655 echo "${ECHO_T}yes" >&6; }
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19662 { echo "$as_me:$LINENO: result: no" >&5
19663 echo "${ECHO_T}no" >&6; }
19664 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19665 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19673 # include <netdb.h>
19680 struct hostent *he;
19681 struct hostent_data data;
19683 (void) gethostbyname_r(name, he, &data);
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19693 *) ac_try_echo
=$ac_try;;
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19698 grep -v '^ *+' conftest.er1
>conftest.err
19700 cat conftest.err
>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.
$ac_objext; then
19707 cat >>confdefs.h
<<\_ACEOF
19708 #define HAVE_GETHOSTBYNAME_R 1
19712 cat >>confdefs.h
<<\_ACEOF
19713 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19716 { echo "$as_me:$LINENO: result: yes" >&5
19717 echo "${ECHO_T}yes" >&6; }
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.
$ac_ext >&5
19724 { echo "$as_me:$LINENO: result: no" >&5
19725 echo "${ECHO_T}no" >&6; }
19729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19743 for ac_func
in gethostbyname
19745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19748 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 cat >conftest.
$ac_ext <<_ACEOF
19754 cat confdefs.h
>>conftest.
$ac_ext
19755 cat >>conftest.
$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19759 #define $ac_func innocuous_$ac_func
19761 /* System header to define __stub macros and hopefully few prototypes,
19762 which can conflict with char $ac_func (); below.
19763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19764 <limits.h> exists even on freestanding compilers. */
19767 # include <limits.h>
19769 # include <assert.h>
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19781 /* The GNU C library defines this for functions which it implements
19782 to always fail with ENOSYS. Some functions are actually named
19783 something starting with __ and the normal name is an alias. */
19784 #if defined __stub_$ac_func || defined __stub___$ac_func
19791 return $ac_func ();
19796 rm -f conftest.
$ac_objext conftest
$ac_exeext
19797 if { (ac_try
="$ac_link"
19798 case "(($ac_try" in
19799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_link") 2>conftest.er1
19805 grep -v '^ *+' conftest.er1 >conftest.err
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && {
19810 test -z "$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 } && test -s conftest$ac_exeext &&
19813 $as_test_x conftest$ac_exeext; then
19814 eval "$as_ac_var=yes"
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 eval "$as_ac_var=no"
19822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19823 conftest$ac_exeext conftest.$ac_ext
19825 ac_res=`eval echo '${'$as_ac_var'}'`
19826 { echo "$as_me:$LINENO: result: $ac_res" >&5
19827 echo "${ECHO_T}$ac_res" >&6; }
19828 if test `eval echo '${'$as_ac_var'}'` = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19845 # checks for system services
19848 # Linux requires this for correct f.p. operations
19849 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
19850 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
19851 if test "${ac_cv_func___fpu_control+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19862 #define __fpu_control innocuous___fpu_control
19864 /* System header to define __stub macros and hopefully few prototypes,
19865 which can conflict with char __fpu_control (); below.
19866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19867 <limits.h> exists even on freestanding compilers. */
19870 # include <limits.h>
19872 # include <assert.h>
19875 #undef __fpu_control
19877 /* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19883 char __fpu_control ();
19884 /* The GNU C library defines this for functions which it implements
19885 to always fail with ENOSYS. Some functions are actually named
19886 something starting with __ and the normal name is an alias. */
19887 #if defined __stub___fpu_control || defined __stub_____fpu_control
19894 return __fpu_control ();
19899 rm -f conftest.$ac_objext conftest$ac_exeext
19900 if { (ac_try="$ac_link"
19901 case "(($ac_try" in
19902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19903 *) ac_try_echo
=$ac_try;;
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_link") 2>conftest.er1
19908 grep -v '^ *+' conftest.er1
>conftest.err
19910 cat conftest.err
>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest
$ac_exeext &&
19916 $as_test_x conftest
$ac_exeext; then
19917 ac_cv_func___fpu_control
=yes
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.
$ac_ext >&5
19922 ac_cv_func___fpu_control
=no
19925 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19926 conftest
$ac_exeext conftest.
$ac_ext
19928 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19929 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
19930 if test $ac_cv_func___fpu_control = yes; then
19934 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19935 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
19936 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 ac_check_lib_save_LIBS
=$LIBS
19940 LIBS
="-lieee $LIBS"
19941 cat >conftest.
$ac_ext <<_ACEOF
19944 cat confdefs.h
>>conftest.
$ac_ext
19945 cat >>conftest.
$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19948 /* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19954 char __fpu_control ();
19958 return __fpu_control ();
19963 rm -f conftest.
$ac_objext conftest
$ac_exeext
19964 if { (ac_try
="$ac_link"
19965 case "(($ac_try" in
19966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest$ac_exeext &&
19980 $as_test_x conftest$ac_exeext; then
19981 ac_cv_lib_ieee___fpu_control=yes
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_lib_ieee___fpu_control=no
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19991 LIBS=$ac_check_lib_save_LIBS
19993 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19994 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
19995 if test $ac_cv_lib_ieee___fpu_control = yes; then
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_LIBIEEE 1
20000 LIBS="-lieee $LIBS"
20008 # Check for --with-fpectl
20009 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20010 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20012 # Check whether --with-fpectl was given.
20013 if test "${with_fpectl+set}" = set; then
20014 withval=$with_fpectl;
20015 if test "$withval" != no
20018 cat >>confdefs.h <<\_ACEOF
20019 #define WANT_SIGFPE_HANDLER 1
20022 { echo "$as_me:$LINENO: result: yes" >&5
20023 echo "${ECHO_T}yes" >&6; }
20024 else { echo "$as_me:$LINENO: result: no" >&5
20025 echo "${ECHO_T}no" >&6; }
20028 { echo "$as_me:$LINENO: result: no" >&5
20029 echo "${ECHO_T}no" >&6; }
20033 # check for --with-libm=...
20035 case $ac_sys_system in
20040 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20041 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20043 # Check whether --with-libm was given.
20044 if test "${with_libm+set}" = set; then
20045 withval=$with_libm;
20046 if test "$withval" = no
20048 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20049 echo "${ECHO_T}force LIBM empty" >&6; }
20050 elif test "$withval" != yes
20052 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20053 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20054 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20055 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20056 { (exit 1); exit 1; }; }
20059 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20060 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20064 # check for --with-libc=...
20066 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20067 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20069 # Check whether --with-libc was given.
20070 if test "${with_libc+set}" = set; then
20071 withval=$with_libc;
20072 if test "$withval" = no
20074 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20075 echo "${ECHO_T}force LIBC empty" >&6; }
20076 elif test "$withval" != yes
20078 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20079 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20080 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20081 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20082 { (exit 1); exit 1; }; }
20085 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20086 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20090 # check for hypot() in math library
20094 for ac_func in hypot
20096 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 cat >conftest.$ac_ext <<_ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20110 #define $ac_func innocuous_$ac_func
20112 /* System header to define __stub macros and hopefully few prototypes,
20113 which can conflict with char $ac_func (); below.
20114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20115 <limits.h> exists even on freestanding compilers. */
20118 # include <limits.h>
20120 # include <assert.h>
20125 /* Override any GCC internal prototype to avoid an error.
20126 Use char because int might match the return type of a GCC
20127 builtin and then its argument prototype would still apply. */
20132 /* The GNU C library defines this for functions which it implements
20133 to always fail with ENOSYS. Some functions are actually named
20134 something starting with __ and the normal name is an alias. */
20135 #if defined __stub_$ac_func || defined __stub___$ac_func
20142 return $ac_func ();
20147 rm -f conftest.$ac_objext conftest$ac_exeext
20148 if { (ac_try="$ac_link"
20149 case "(($ac_try" in
20150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20151 *) ac_try_echo
=$ac_try;;
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_link") 2>conftest.er1
20156 grep -v '^ *+' conftest.er1
>conftest.err
20158 cat conftest.err
>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest
$ac_exeext &&
20164 $as_test_x conftest
$ac_exeext; then
20165 eval "$as_ac_var=yes"
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.
$ac_ext >&5
20170 eval "$as_ac_var=no"
20173 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20174 conftest
$ac_exeext conftest.
$ac_ext
20176 ac_res
=`eval echo '${'$as_ac_var'}'`
20177 { echo "$as_me:$LINENO: result: $ac_res" >&5
20178 echo "${ECHO_T}$ac_res" >&6; }
20179 if test `eval echo '${'$as_ac_var'}'` = yes; then
20180 cat >>confdefs.h
<<_ACEOF
20181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20185 case " $LIBOBJS " in
20186 *" $ac_func.$ac_objext "* ) ;;
20187 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20197 # check for wchar.h
20198 if test "${ac_cv_header_wchar_h+set}" = set; then
20199 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20200 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20201 if test "${ac_cv_header_wchar_h+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20205 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20207 # Is the header compilable?
20208 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
20209 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
20210 cat >conftest.
$ac_ext <<_ACEOF
20213 cat confdefs.h
>>conftest.
$ac_ext
20214 cat >>conftest.
$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 $ac_includes_default
20219 rm -f conftest.
$ac_objext
20220 if { (ac_try
="$ac_compile"
20221 case "(($ac_try" in
20222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20228 grep -v '^ *+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest.$ac_objext; then
20236 ac_header_compiler=yes
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_header_compiler=no
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20246 echo "${ECHO_T}$ac_header_compiler" >&6; }
20248 # Is the header present?
20249 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
20250 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20259 if { (ac_try="$ac_cpp conftest.$ac_ext"
20260 case "(($ac_try" in
20261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20262 *) ac_try_echo
=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1
>conftest.err
20269 cat conftest.err
>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } >/dev
/null
&& {
20272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20275 ac_header_preproc
=yes
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.
$ac_ext >&5
20280 ac_header_preproc
=no
20283 rm -f conftest.err conftest.
$ac_ext
20284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20285 echo "${ECHO_T}$ac_header_preproc" >&6; }
20287 # So? What about this header?
20288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20290 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20291 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20293 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20294 ac_header_preproc
=yes
20297 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20298 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20300 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20302 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20304 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20306 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20308 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20310 ## ------------------------------------------------ ##
20311 ## Report this to http://www.python.org/python-bugs ##
20312 ## ------------------------------------------------ ##
20314 ) |
sed "s/^/$as_me: WARNING: /" >&2
20317 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20318 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20319 if test "${ac_cv_header_wchar_h+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 ac_cv_header_wchar_h
=$ac_header_preproc
20324 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20325 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20328 if test $ac_cv_header_wchar_h = yes; then
20331 cat >>confdefs.h
<<\_ACEOF
20332 #define HAVE_WCHAR_H 1
20344 # determine wchar_t size
20345 if test "$wchar_h" = yes
20347 { echo "$as_me:$LINENO: checking for wchar_t" >&5
20348 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
20349 if test "${ac_cv_type_wchar_t+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 cat >conftest.
$ac_ext <<_ACEOF
20355 cat confdefs.h
>>conftest.
$ac_ext
20356 cat >>conftest.
$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20360 typedef wchar_t ac__type_new_;
20364 if ((ac__type_new_ *) 0)
20366 if (sizeof (ac__type_new_))
20372 rm -f conftest.
$ac_objext
20373 if { (ac_try
="$ac_compile"
20374 case "(($ac_try" in
20375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compile") 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest.$ac_objext; then
20389 ac_cv_type_wchar_t=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_type_wchar_t=no
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20400 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
20402 # The cast to long int works around a bug in the HP C Compiler
20403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20404 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20405 # This bug is HP SR number 8606223364.
20406 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
20407 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
20408 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 if test "$cross_compiling" = yes; then
20412 # Depending upon the size, compute the lo and hi bounds.
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20421 typedef wchar_t ac__type_sizeof_;
20425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_compile") 2>conftest.er1
20441 grep -v '^
*+' conftest.er1 >conftest.err
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest.$ac_objext; then
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20459 typedef wchar_t ac__type_sizeof_;
20463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_compile") 2>conftest.er1
20479 grep -v '^
*+' conftest.er1 >conftest.err
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } && {
20484 test -z "$ac_c_werror_flag" ||
20485 test ! -s conftest.err
20486 } && test -s conftest.$ac_objext; then
20487 ac_hi=$ac_mid; break
20489 echo "$as_me: failed program was:" >&5
20490 sed 's
/^
/|
/' conftest.$ac_ext >&5
20492 ac_lo=`expr $ac_mid + 1`
20493 if test $ac_lo -le $ac_mid; then
20497 ac_mid=`expr 2 '*' $ac_mid + 1`
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20503 echo "$as_me: failed program was:" >&5
20504 sed 's
/^
/|
/' conftest.$ac_ext >&5
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20514 typedef wchar_t ac__type_sizeof_;
20518 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20525 rm -f conftest.$ac_objext
20526 if { (ac_try="$ac_compile"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_compile") 2>conftest.er1
20534 grep -v '^
*+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } && {
20539 test -z "$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20541 } && test -s conftest.$ac_objext; then
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20552 typedef wchar_t ac__type_sizeof_;
20556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20563 rm -f conftest.$ac_objext
20564 if { (ac_try="$ac_compile"
20565 case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_compile") 2>conftest.er1
20572 grep -v '^
*+' conftest.er1 >conftest.err
20574 cat conftest.err >&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest.$ac_objext; then
20580 ac_lo=$ac_mid; break
20582 echo "$as_me: failed program was:" >&5
20583 sed 's
/^
/|
/' conftest.$ac_ext >&5
20585 ac_hi=`expr '(' $ac_mid ')' - 1`
20586 if test $ac_mid -le $ac_hi; then
20590 ac_mid=`expr 2 '*' $ac_mid`
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 echo "$as_me: failed program was:" >&5
20597 sed 's
/^
/|
/' conftest.$ac_ext >&5
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 # Binary search between lo and hi bounds.
20607 while test "x$ac_lo" != "x$ac_hi"; do
20608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20617 typedef wchar_t ac__type_sizeof_;
20621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20637 grep -v '^
*+' conftest.er1 >conftest.err
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20647 echo "$as_me: failed program was:" >&5
20648 sed 's
/^
/|
/' conftest.$ac_ext >&5
20650 ac_lo=`expr '(' $ac_mid ')' + 1`
20653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20657 '') if test "$ac_cv_type_wchar_t" = yes; then
20658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20659 See \`config.log' for more details.
" >&5
20660 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
20661 See \
`config.log' for more details." >&2;}
20662 { (exit 77); exit 77; }; }
20664 ac_cv_sizeof_wchar_t=0
20668 cat >conftest.$ac_ext <<_ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20676 typedef wchar_t ac__type_sizeof_;
20677 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20678 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20680 #include <stdlib.h>
20685 FILE *f = fopen ("conftest.val", "w");
20688 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20690 long int i = longval ();
20691 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20693 fprintf (f, "%ld\n", i);
20697 unsigned long int i = ulongval ();
20698 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20700 fprintf (f, "%lu\n", i);
20702 return ferror (f) || fclose (f) != 0;
20708 rm -f conftest$ac_exeext
20709 if { (ac_try="$ac_link"
20710 case "(($ac_try" in
20711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20712 *) ac_try_echo
=$ac_try;;
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715 (eval "$ac_link") 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20719 { (case "(($ac_try" in
20720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_try") 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_cv_sizeof_wchar_t=`cat conftest.val
`
20730 echo "$as_me: program exited with status $ac_status" >&5
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ( exit $ac_status )
20735 if test "$ac_cv_type_wchar_t" = yes; then
20736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20737 See \`config.log
' for more details." >&5
20738 echo "$as_me: error: cannot compute sizeof (wchar_t)
20739 See \`config.log' for more details.
" >&2;}
20740 { (exit 77); exit 77; }; }
20742 ac_cv_sizeof_wchar_t=0
20745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
20750 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
20754 cat >>confdefs.h <<_ACEOF
20755 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20761 { echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
20762 echo $ECHO_N "checking
for UCS-4 tcl...
$ECHO_C" >&6; }
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20772 #if TCL_UTF_MAX != 6
20773 # error "NOT UCS4_TCL
"
20783 rm -f conftest.$ac_objext
20784 if { (ac_try="$ac_compile"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_compile") 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest.$ac_objext; then
20802 cat >>confdefs.h <<\_ACEOF
20803 #define HAVE_UCS4_TCL 1
20809 echo "$as_me: failed program was
:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20816 { echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
20817 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
20819 # check whether wchar_t is signed or not
20820 if test "$wchar_h" = yes
20822 # check whether wchar_t is signed or not
20823 { echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
20824 echo $ECHO_N "checking whether wchar_t is signed...
$ECHO_C" >&6; }
20825 if test "${ac_cv_wchar_t_signed+set}" = set; then
20826 echo $ECHO_N "(cached
) $ECHO_C" >&6
20829 if test "$cross_compiling" = yes; then
20830 ac_cv_wchar_t_signed=yes
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20842 /* Success: exit code 0 */
20843 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20847 rm -f conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>&5
20856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20858 { (case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_try") 2>&5
20865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_wchar_t_signed=yes
20869 echo "$as_me: program exited with status
$ac_status" >&5
20870 echo "$as_me: failed program was
:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ( exit $ac_status )
20874 ac_cv_wchar_t_signed=no
20876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20882 { echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
20883 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
20886 { echo "$as_me:$LINENO: checking what
type to use
for unicode
" >&5
20887 echo $ECHO_N "checking what
type to use
for unicode...
$ECHO_C" >&6; }
20888 # Check whether --enable-unicode was given.
20889 if test "${enable_unicode+set}" = set; then
20890 enableval=$enable_unicode;
20896 if test $enable_unicode = yes
20898 # Without any arguments, Py_UNICODE defaults to two-byte mode
20899 case "$have_ucs4_tcl" in
20900 yes) enable_unicode="ucs4
"
20902 *) enable_unicode="ucs2
"
20909 case "$enable_unicode" in
20910 ucs2) unicode_size="2"
20911 cat >>confdefs.h <<\_ACEOF
20912 #define Py_UNICODE_SIZE 2
20916 ucs4) unicode_size="4"
20917 cat >>confdefs.h <<\_ACEOF
20918 #define Py_UNICODE_SIZE 4
20928 if test "$enable_unicode" = "no
"
20931 { echo "$as_me:$LINENO: result
: not used
" >&5
20932 echo "${ECHO_T}not used
" >&6; }
20934 UNICODE_OBJS="Objects
/unicodeobject.o Objects
/unicodectype.o
"
20936 cat >>confdefs.h <<\_ACEOF
20937 #define Py_USING_UNICODE 1
20941 # wchar_t is only usable if it maps to an unsigned type
20942 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20943 -a "$ac_cv_wchar_t_signed" = "no
"
20945 PY_UNICODE_TYPE="wchar_t
"
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_USABLE_WCHAR_T 1
20951 cat >>confdefs.h <<\_ACEOF
20952 #define PY_UNICODE_TYPE wchar_t
20955 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20957 PY_UNICODE_TYPE="unsigned short
"
20958 cat >>confdefs.h <<\_ACEOF
20959 #define PY_UNICODE_TYPE unsigned short
20962 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20964 PY_UNICODE_TYPE="unsigned long
"
20965 cat >>confdefs.h <<\_ACEOF
20966 #define PY_UNICODE_TYPE unsigned long
20970 PY_UNICODE_TYPE="no
type found
"
20972 { echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
20973 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
20976 # check for endianness
20977 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
20978 echo $ECHO_N "checking whether byte ordering is bigendian...
$ECHO_C" >&6; }
20979 if test "${ac_cv_c_bigendian+set}" = set; then
20980 echo $ECHO_N "(cached
) $ECHO_C" >&6
20982 # See if sys/param.h defines the BYTE_ORDER macro.
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 #include <sys/types.h>
20990 #include <sys/param.h>
20995 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20996 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20997 bogus endian macros
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_compile") 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest.$ac_objext; then
21021 # It does; now see whether it defined to BIG_ENDIAN or not.
21022 cat >conftest.$ac_ext <<_ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <sys/types.h>
21029 #include <sys/param.h>
21034 #if BYTE_ORDER != BIG_ENDIAN
21042 rm -f conftest.$ac_objext
21043 if { (ac_try="$ac_compile"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_compile") 2>conftest.er1
21051 grep -v '^ *+' conftest.er1 >conftest.err
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21055 (exit $ac_status); } && {
21056 test -z "$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 } && test -s conftest.$ac_objext; then
21059 ac_cv_c_bigendian=yes
21061 echo "$as_me: failed program was
:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ac_cv_c_bigendian=no
21067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21069 echo "$as_me: failed program was
:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 # It does not; compile a test program.
21073 if test "$cross_compiling" = yes; then
21074 # try to guess the endianness by grepping values into an object file
21075 ac_cv_c_bigendian=unknown
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21083 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21084 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21085 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21086 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21087 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21091 _ascii (); _ebcdic ();
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_compile") 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest.$ac_objext; then
21113 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21114 ac_cv_c_bigendian=yes
21116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21117 if test "$ac_cv_c_bigendian" = unknown; then
21118 ac_cv_c_bigendian=no
21120 # finding both strings is unlikely to happen, but who knows?
21121 ac_cv_c_bigendian=unknown
21125 echo "$as_me: failed program was
:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 $ac_includes_default
21144 /* Are we little or big endian? From Harbison&Steele. */
21148 char c[sizeof (long int)];
21151 return u.c[sizeof (long int) - 1] == 1;
21157 rm -f conftest$ac_exeext
21158 if { (ac_try="$ac_link"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_link") 2>&5
21166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21168 { (case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21173 (eval "$ac_try") 2>&5
21175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_c_bigendian=no
21179 echo "$as_me: program exited with status
$ac_status" >&5
21180 echo "$as_me: failed program was
:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ( exit $ac_status )
21184 ac_cv_c_bigendian=yes
21186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 { echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
21195 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21196 case $ac_cv_c_bigendian in
21199 cat >>confdefs.h <<\_ACEOF
21200 #define WORDS_BIGENDIAN 1
21206 { { echo "$as_me:$LINENO: error
: unknown endianness
21207 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
21208 echo "$as_me: error
: unknown endianness
21209 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
21210 { (exit 1); exit 1; }; } ;;
21216 # Check whether right shifting a negative integer extends the sign bit
21217 # or fills with zeros (like the Cray J90, according to Tim Peters).
21218 { echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
21219 echo $ECHO_N "checking whether right
shift extends the sign bit...
$ECHO_C" >&6; }
21220 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21221 echo $ECHO_N "(cached
) $ECHO_C" >&6
21224 if test "$cross_compiling" = yes; then
21225 ac_cv_rshift_extends_sign=yes
21227 cat >conftest.$ac_ext <<_ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21236 exit(((-1)>>3 == -1) ? 0 : 1);
21240 rm -f conftest$ac_exeext
21241 if { (ac_try="$ac_link"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_link") 2>&5
21249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21251 { (case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_try") 2>&5
21258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 ac_cv_rshift_extends_sign=yes
21262 echo "$as_me: program exited with status
$ac_status" >&5
21263 echo "$as_me: failed program was
:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ( exit $ac_status )
21267 ac_cv_rshift_extends_sign=no
21269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21275 { echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
21276 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
21277 if test "$ac_cv_rshift_extends_sign" = no
21280 cat >>confdefs.h <<\_ACEOF
21281 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21286 # check for getc_unlocked and related locking functions
21287 { echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
21288 echo $ECHO_N "checking
for getc_unlocked
() and friends...
$ECHO_C" >&6; }
21289 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21290 echo $ECHO_N "(cached
) $ECHO_C" >&6
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21304 FILE *f = fopen("/dev
/null
", "r
");
21313 rm -f conftest.$ac_objext conftest$ac_exeext
21314 if { (ac_try="$ac_link"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_link") 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest$ac_exeext &&
21330 $as_test_x conftest$ac_exeext; then
21331 ac_cv_have_getc_unlocked=yes
21333 echo "$as_me: failed program was
:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21336 ac_cv_have_getc_unlocked=no
21339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340 conftest$ac_exeext conftest.$ac_ext
21343 { echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
21344 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
21345 if test "$ac_cv_have_getc_unlocked" = yes
21348 cat >>confdefs.h <<\_ACEOF
21349 #define HAVE_GETC_UNLOCKED 1
21354 # check where readline lives
21355 # save the value of LIBS so we don't actually link Python with readline
21356 LIBS_no_readline=$LIBS
21358 { echo "$as_me:$LINENO: checking
for readline
in -lreadline" >&5
21359 echo $ECHO_N "checking
for readline
in -lreadline...
$ECHO_C" >&6; }
21360 if test "${ac_cv_lib_readline_readline+set}" = set; then
21361 echo $ECHO_N "(cached
) $ECHO_C" >&6
21363 ac_check_lib_save_LIBS=$LIBS
21364 LIBS="-lreadline $LIBS"
21365 cat >conftest.$ac_ext <<_ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21372 /* Override any GCC internal prototype to avoid an error.
21373 Use char because int might match the return type of a GCC
21374 builtin and then its argument prototype would still apply. */
21382 return readline ();
21387 rm -f conftest.$ac_objext conftest$ac_exeext
21388 if { (ac_try="$ac_link"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_link") 2>conftest.er1
21396 grep -v '^ *+' conftest.er1 >conftest.err
21398 cat conftest.err >&5
21399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest$ac_exeext &&
21404 $as_test_x conftest$ac_exeext; then
21405 ac_cv_lib_readline_readline=yes
21407 echo "$as_me: failed program was
:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_cv_lib_readline_readline=no
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414 conftest$ac_exeext conftest.$ac_ext
21415 LIBS=$ac_check_lib_save_LIBS
21417 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_readline" >&5
21418 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21419 if test $ac_cv_lib_readline_readline = yes; then
21420 cat >>confdefs.h <<_ACEOF
21421 #define HAVE_LIBREADLINE 1
21424 LIBS="-lreadline $LIBS"
21428 if test "$ac_cv_have_readline_readline" = no
21431 { echo "$as_me:$LINENO: checking
for readline
in -ltermcap" >&5
21432 echo $ECHO_N "checking
for readline
in -ltermcap...
$ECHO_C" >&6; }
21433 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21434 echo $ECHO_N "(cached
) $ECHO_C" >&6
21436 ac_check_lib_save_LIBS=$LIBS
21437 LIBS="-ltermcap $LIBS"
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21445 /* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21455 return readline ();
21460 rm -f conftest.$ac_objext conftest$ac_exeext
21461 if { (ac_try="$ac_link"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_link") 2>conftest.er1
21469 grep -v '^ *+' conftest.er1 >conftest.err
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest$ac_exeext &&
21477 $as_test_x conftest$ac_exeext; then
21478 ac_cv_lib_termcap_readline=yes
21480 echo "$as_me: failed program was
:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21483 ac_cv_lib_termcap_readline=no
21486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21487 conftest$ac_exeext conftest.$ac_ext
21488 LIBS=$ac_check_lib_save_LIBS
21490 { echo "$as_me:$LINENO: result
: $ac_cv_lib_termcap_readline" >&5
21491 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
21492 if test $ac_cv_lib_termcap_readline = yes; then
21493 cat >>confdefs.h <<_ACEOF
21494 #define HAVE_LIBTERMCAP 1
21497 LIBS="-ltermcap $LIBS"
21503 # check for readline 2.1
21504 { echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
21505 echo $ECHO_N "checking
for rl_callback_handler_install
in -lreadline...
$ECHO_C" >&6; }
21506 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21507 echo $ECHO_N "(cached
) $ECHO_C" >&6
21509 ac_check_lib_save_LIBS=$LIBS
21510 LIBS="-lreadline $LIBS"
21511 cat >conftest.$ac_ext <<_ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21518 /* Override any GCC internal prototype to avoid an error.
21519 Use char because int might match the return type of a GCC
21520 builtin and then its argument prototype would still apply. */
21524 char rl_callback_handler_install ();
21528 return rl_callback_handler_install ();
21533 rm -f conftest.$ac_objext conftest$ac_exeext
21534 if { (ac_try="$ac_link"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_link") 2>conftest.er1
21542 grep -v '^ *+' conftest.er1 >conftest.err
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest$ac_exeext &&
21550 $as_test_x conftest$ac_exeext; then
21551 ac_cv_lib_readline_rl_callback_handler_install=yes
21553 echo "$as_me: failed program was
:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 ac_cv_lib_readline_rl_callback_handler_install=no
21559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21560 conftest$ac_exeext conftest.$ac_ext
21561 LIBS=$ac_check_lib_save_LIBS
21563 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21564 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
21565 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_RL_CALLBACK 1
21574 # check for readline 2.2
21575 cat >conftest.$ac_ext <<_ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 #include <readline/readline.h>
21583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21595 (exit $ac_status); } >/dev/null && {
21596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21601 echo "$as_me: failed program was
:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21607 rm -f conftest.err conftest.$ac_ext
21608 if test $have_readline = yes
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <readline/readline.h>
21619 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
21620 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21631 # check for readline 4.0
21632 { echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
21633 echo $ECHO_N "checking
for rl_pre_input_hook
in -lreadline...
$ECHO_C" >&6; }
21634 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21635 echo $ECHO_N "(cached
) $ECHO_C" >&6
21637 ac_check_lib_save_LIBS=$LIBS
21638 LIBS="-lreadline $LIBS"
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21646 /* Override any GCC internal prototype to avoid an error.
21647 Use char because int might match the return type of a GCC
21648 builtin and then its argument prototype would still apply. */
21652 char rl_pre_input_hook ();
21656 return rl_pre_input_hook ();
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest$ac_exeext &&
21678 $as_test_x conftest$ac_exeext; then
21679 ac_cv_lib_readline_rl_pre_input_hook=yes
21681 echo "$as_me: failed program was
:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ac_cv_lib_readline_rl_pre_input_hook=no
21687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21688 conftest$ac_exeext conftest.$ac_ext
21689 LIBS=$ac_check_lib_save_LIBS
21691 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21692 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
21693 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21695 cat >>confdefs.h <<\_ACEOF
21696 #define HAVE_RL_PRE_INPUT_HOOK 1
21703 { echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
21704 echo $ECHO_N "checking
for rl_completion_display_matches_hook
in -lreadline...
$ECHO_C" >&6; }
21705 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
21706 echo $ECHO_N "(cached
) $ECHO_C" >&6
21708 ac_check_lib_save_LIBS=$LIBS
21709 LIBS="-lreadline $LIBS"
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21717 /* Override any GCC internal prototype to avoid an error.
21718 Use char because int might match the return type of a GCC
21719 builtin and then its argument prototype would still apply. */
21723 char rl_completion_display_matches_hook ();
21727 return rl_completion_display_matches_hook ();
21732 rm -f conftest.$ac_objext conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_link") 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest$ac_exeext &&
21749 $as_test_x conftest$ac_exeext; then
21750 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
21752 echo "$as_me: failed program was
:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_lib_readline_rl_completion_display_matches_hook=no
21758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21759 conftest$ac_exeext conftest.$ac_ext
21760 LIBS=$ac_check_lib_save_LIBS
21762 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
21763 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
21764 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
21766 cat >>confdefs.h <<\_ACEOF
21767 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
21773 # check for readline 4.2
21774 { echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
21775 echo $ECHO_N "checking
for rl_completion_matches
in -lreadline...
$ECHO_C" >&6; }
21776 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21777 echo $ECHO_N "(cached
) $ECHO_C" >&6
21779 ac_check_lib_save_LIBS=$LIBS
21780 LIBS="-lreadline $LIBS"
21781 cat >conftest.$ac_ext <<_ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21788 /* Override any GCC internal prototype to avoid an error.
21789 Use char because int might match the return type of a GCC
21790 builtin and then its argument prototype would still apply. */
21794 char rl_completion_matches ();
21798 return rl_completion_matches ();
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_link") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext &&
21820 $as_test_x conftest$ac_exeext; then
21821 ac_cv_lib_readline_rl_completion_matches=yes
21823 echo "$as_me: failed program was
:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ac_cv_lib_readline_rl_completion_matches=no
21829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21830 conftest$ac_exeext conftest.$ac_ext
21831 LIBS=$ac_check_lib_save_LIBS
21833 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
21834 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
21835 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_RL_COMPLETION_MATCHES 1
21844 # also in readline 4.2
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <readline/readline.h>
21853 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21854 case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21861 grep -v '^ *+' conftest.er1 >conftest.err
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21865 (exit $ac_status); } >/dev/null && {
21866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21871 echo "$as_me: failed program was
:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21877 rm -f conftest.err conftest.$ac_ext
21878 if test $have_readline = yes
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <readline/readline.h>
21889 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
21890 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
21892 cat >>confdefs.h <<\_ACEOF
21893 #define HAVE_RL_CATCH_SIGNAL 1
21901 # End of readline checks: restore LIBS
21902 LIBS=$LIBS_no_readline
21904 { echo "$as_me:$LINENO: checking
for broken nice
()" >&5
21905 echo $ECHO_N "checking
for broken nice
()...
$ECHO_C" >&6; }
21906 if test "${ac_cv_broken_nice+set}" = set; then
21907 echo $ECHO_N "(cached
) $ECHO_C" >&6
21910 if test "$cross_compiling" = yes; then
21911 ac_cv_broken_nice=no
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21922 int val1 = nice(1);
21923 if (val1 != -1 && val1 == nice(2))
21929 rm -f conftest$ac_exeext
21930 if { (ac_try="$ac_link"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_link") 2>&5
21938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21940 { (case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_try") 2>&5
21947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21948 (exit $ac_status); }; }; then
21949 ac_cv_broken_nice=yes
21951 echo "$as_me: program exited with status
$ac_status" >&5
21952 echo "$as_me: failed program was
:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ( exit $ac_status )
21956 ac_cv_broken_nice=no
21958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
21965 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
21966 if test "$ac_cv_broken_nice" = yes
21969 cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_BROKEN_NICE 1
21975 { echo "$as_me:$LINENO: checking
for broken poll
()" >&5
21976 echo $ECHO_N "checking
for broken poll
()...
$ECHO_C" >&6; }
21977 if test "$cross_compiling" = yes; then
21978 ac_cv_broken_poll=no
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21991 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21995 int poll_test = poll (&poll_struct, 1, 0);
22001 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22012 rm -f conftest$ac_exeext
22013 if { (ac_try="$ac_link"
22014 case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22019 (eval "$ac_link") 2>&5
22021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22023 { (case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_try") 2>&5
22030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 ac_cv_broken_poll=yes
22034 echo "$as_me: program exited with status
$ac_status" >&5
22035 echo "$as_me: failed program was
:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 ( exit $ac_status )
22039 ac_cv_broken_poll=no
22041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
22046 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22047 if test "$ac_cv_broken_poll" = yes
22050 cat >>confdefs.h <<\_ACEOF
22051 #define HAVE_BROKEN_POLL 1
22056 # Before we can test tzset, we need to check if struct tm has a tm_zone
22057 # (which is not required by ISO C or UNIX spec) and/or if we support
22059 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
22060 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
22061 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22062 echo $ECHO_N "(cached
) $ECHO_C" >&6
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #include <sys/types.h>
22071 #include <$ac_cv_struct_tm>
22077 static struct tm ac_aggr;
22078 if (ac_aggr.tm_zone)
22084 rm -f conftest.$ac_objext
22085 if { (ac_try="$ac_compile"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_compile") 2>conftest.er1
22093 grep -v '^ *+' conftest.er1 >conftest.err
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22097 (exit $ac_status); } && {
22098 test -z "$ac_c_werror_flag" ||
22099 test ! -s conftest.err
22100 } && test -s conftest.$ac_objext; then
22101 ac_cv_member_struct_tm_tm_zone=yes
22103 echo "$as_me: failed program was
:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 #include <sys/types.h>
22113 #include <$ac_cv_struct_tm>
22119 static struct tm ac_aggr;
22120 if (sizeof ac_aggr.tm_zone)
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_cv_member_struct_tm_tm_zone=yes
22145 echo "$as_me: failed program was
:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_cv_member_struct_tm_tm_zone=no
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22156 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
22157 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22158 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22160 cat >>confdefs.h <<_ACEOF
22161 #define HAVE_STRUCT_TM_TM_ZONE 1
22167 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22169 cat >>confdefs.h <<\_ACEOF
22170 #define HAVE_TM_ZONE 1
22174 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
22175 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
22176 if test "${ac_cv_have_decl_tzname+set}" = set; then
22177 echo $ECHO_N "(cached
) $ECHO_C" >&6
22179 cat >conftest.$ac_ext <<_ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_cv_have_decl_tzname=yes
22217 echo "$as_me: failed program was
:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_cv_have_decl_tzname=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
22226 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
22227 if test $ac_cv_have_decl_tzname = yes; then
22229 cat >>confdefs.h <<_ACEOF
22230 #define HAVE_DECL_TZNAME 1
22235 cat >>confdefs.h <<_ACEOF
22236 #define HAVE_DECL_TZNAME 0
22243 { echo "$as_me:$LINENO: checking
for tzname
" >&5
22244 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
22245 if test "${ac_cv_var_tzname+set}" = set; then
22246 echo $ECHO_N "(cached
) $ECHO_C" >&6
22248 cat >conftest.$ac_ext <<_ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22255 #if !HAVE_DECL_TZNAME
22256 extern char *tzname[];
22262 return tzname[0][0];
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (ac_try="$ac_link"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_link") 2>conftest.er1
22276 grep -v '^ *+' conftest.er1 >conftest.err
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest$ac_exeext &&
22284 $as_test_x conftest$ac_exeext; then
22285 ac_cv_var_tzname=yes
22287 echo "$as_me: failed program was
:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ac_cv_var_tzname=no
22293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22294 conftest$ac_exeext conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
22297 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22298 if test $ac_cv_var_tzname = yes; then
22300 cat >>confdefs.h <<\_ACEOF
22301 #define HAVE_TZNAME 1
22308 # check tzset(3) exists and works like we expect it to
22309 { echo "$as_me:$LINENO: checking
for working tzset
()" >&5
22310 echo $ECHO_N "checking
for working tzset
()...
$ECHO_C" >&6; }
22311 if test "${ac_cv_working_tzset+set}" = set; then
22312 echo $ECHO_N "(cached
) $ECHO_C" >&6
22315 if test "$cross_compiling" = yes; then
22316 ac_cv_working_tzset=no
22318 cat >conftest.$ac_ext <<_ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22325 #include <stdlib.h>
22327 #include <string.h>
22330 extern char *tzname[];
22335 /* Note that we need to ensure that not only does tzset(3)
22336 do 'something' with localtime, but it works as documented
22337 in the library reference and as expected by the test suite.
22338 This includes making sure that tzname is set properly if
22339 tm->tm_zone does not exist since it is the alternative way
22340 of getting timezone info.
22342 Red Hat 6.2 doesn't understand the southern hemisphere
22343 after New Year's Day.
22346 time_t groundhogday = 1044144000; /* GMT-based */
22347 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22349 putenv("TZ
=UTC
+0");
22351 if (localtime(&groundhogday)->tm_hour != 0)
22354 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22355 if (strcmp(tzname[0], "UTC
") ||
22356 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22360 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
22362 if (localtime(&groundhogday)->tm_hour != 19)
22365 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
22369 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
22371 if (localtime(&groundhogday)->tm_hour != 11)
22374 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
22378 #if HAVE_STRUCT_TM_TM_ZONE
22379 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
22381 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
22389 rm -f conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_link") 2>&5
22398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22400 { (case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_try") 2>&5
22407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409 ac_cv_working_tzset=yes
22411 echo "$as_me: program exited with status
$ac_status" >&5
22412 echo "$as_me: failed program was
:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ( exit $ac_status )
22416 ac_cv_working_tzset=no
22418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
22425 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
22426 if test "$ac_cv_working_tzset" = yes
22429 cat >>confdefs.h <<\_ACEOF
22430 #define HAVE_WORKING_TZSET 1
22435 # Look for subsecond timestamps in struct stat
22436 { echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
22437 echo $ECHO_N "checking
for tv_nsec
in struct stat...
$ECHO_C" >&6; }
22438 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22439 echo $ECHO_N "(cached
) $ECHO_C" >&6
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <sys/stat.h>
22453 st.st_mtim.tv_nsec = 1;
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_compile") 2>conftest.er1
22468 grep -v '^ *+' conftest.er1 >conftest.err
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest.$ac_objext; then
22476 ac_cv_stat_tv_nsec=yes
22478 echo "$as_me: failed program was
:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_cv_stat_tv_nsec=no
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
22488 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
22489 if test "$ac_cv_stat_tv_nsec" = yes
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_STAT_TV_NSEC 1
22498 # Look for BSD style subsecond timestamps in struct stat
22499 { echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
22500 echo $ECHO_N "checking
for tv_nsec2
in struct stat...
$ECHO_C" >&6; }
22501 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22502 echo $ECHO_N "(cached
) $ECHO_C" >&6
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include <sys/stat.h>
22516 st.st_mtimespec.tv_nsec = 1;
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22539 ac_cv_stat_tv_nsec2=yes
22541 echo "$as_me: failed program was
:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_cv_stat_tv_nsec2=no
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
22551 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
22552 if test "$ac_cv_stat_tv_nsec2" = yes
22555 cat >>confdefs.h <<\_ACEOF
22556 #define HAVE_STAT_TV_NSEC2 1
22561 # On HP/UX 11.0, mvwdelch is a block with a return statement
22562 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
22563 echo $ECHO_N "checking whether mvwdelch is an expression...
$ECHO_C" >&6; }
22564 if test "${ac_cv_mvwdelch_is_expression+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. */
22573 #include <curses.h>
22579 rtn = mvwdelch(0,0,0);
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.$ac_objext; then
22602 ac_cv_mvwdelch_is_expression=yes
22604 echo "$as_me: failed program was
:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 ac_cv_mvwdelch_is_expression=no
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 { echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
22614 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
22616 if test "$ac_cv_mvwdelch_is_expression" = yes
22619 cat >>confdefs.h <<\_ACEOF
22620 #define MVWDELCH_IS_EXPRESSION 1
22625 { echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
22626 echo $ECHO_N "checking whether WINDOW has _flags...
$ECHO_C" >&6; }
22627 if test "${ac_cv_window_has_flags+set}" = set; then
22628 echo $ECHO_N "(cached
) $ECHO_C" >&6
22630 cat >conftest.$ac_ext <<_ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 #include <curses.h>
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_compile") 2>conftest.er1
22657 grep -v '^ *+' conftest.er1 >conftest.err
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest.$ac_objext; then
22665 ac_cv_window_has_flags=yes
22667 echo "$as_me: failed program was
:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22670 ac_cv_window_has_flags=no
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 { echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
22677 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
22680 if test "$ac_cv_window_has_flags" = yes
22683 cat >>confdefs.h <<\_ACEOF
22684 #define WINDOW_HAS_FLAGS 1
22689 { echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
22690 echo $ECHO_N "checking
for is_term_resized...
$ECHO_C" >&6; }
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 #include <curses.h>
22701 void *x=is_term_resized
22706 rm -f conftest.$ac_objext
22707 if { (ac_try="$ac_compile"
22708 case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22715 grep -v '^ *+' conftest.er1 >conftest.err
22717 cat conftest.err >&5
22718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22724 cat >>confdefs.h <<\_ACEOF
22725 #define HAVE_CURSES_IS_TERM_RESIZED 1
22728 { echo "$as_me:$LINENO: result
: yes" >&5
22729 echo "${ECHO_T}yes" >&6; }
22731 echo "$as_me: failed program was
:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22734 { echo "$as_me:$LINENO: result
: no
" >&5
22735 echo "${ECHO_T}no
" >&6; }
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741 { echo "$as_me:$LINENO: checking
for resize_term
" >&5
22742 echo $ECHO_N "checking
for resize_term...
$ECHO_C" >&6; }
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 #include <curses.h>
22753 void *x=resize_term
22758 rm -f conftest.$ac_objext
22759 if { (ac_try="$ac_compile"
22760 case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_compile") 2>conftest.er1
22767 grep -v '^ *+' conftest.er1 >conftest.err
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22771 (exit $ac_status); } && {
22772 test -z "$ac_c_werror_flag" ||
22773 test ! -s conftest.err
22774 } && test -s conftest.$ac_objext; then
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_CURSES_RESIZE_TERM 1
22780 { echo "$as_me:$LINENO: result
: yes" >&5
22781 echo "${ECHO_T}yes" >&6; }
22783 echo "$as_me: failed program was
:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 { echo "$as_me:$LINENO: result
: no
" >&5
22787 echo "${ECHO_T}no
" >&6; }
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 { echo "$as_me:$LINENO: checking
for resizeterm
" >&5
22794 echo $ECHO_N "checking
for resizeterm...
$ECHO_C" >&6; }
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 #include <curses.h>
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22817 (eval "$ac_compile") 2>conftest.er1
22819 grep -v '^ *+' conftest.er1 >conftest.err
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest.$ac_objext; then
22828 cat >>confdefs.h <<\_ACEOF
22829 #define HAVE_CURSES_RESIZETERM 1
22832 { echo "$as_me:$LINENO: result
: yes" >&5
22833 echo "${ECHO_T}yes" >&6; }
22835 echo "$as_me: failed program was
:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 { echo "$as_me:$LINENO: result
: no
" >&5
22839 echo "${ECHO_T}no
" >&6; }
22843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 { echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
22846 echo $ECHO_N "checking
for /dev
/ptmx...
$ECHO_C" >&6; }
22848 if test -r /dev/ptmx
22850 { echo "$as_me:$LINENO: result
: yes" >&5
22851 echo "${ECHO_T}yes" >&6; }
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_DEV_PTMX 1
22858 { echo "$as_me:$LINENO: result
: no
" >&5
22859 echo "${ECHO_T}no
" >&6; }
22862 { echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
22863 echo $ECHO_N "checking
for /dev
/ptc...
$ECHO_C" >&6; }
22865 if test -r /dev/ptc
22867 { echo "$as_me:$LINENO: result
: yes" >&5
22868 echo "${ECHO_T}yes" >&6; }
22870 cat >>confdefs.h <<\_ACEOF
22871 #define HAVE_DEV_PTC 1
22875 { echo "$as_me:$LINENO: result
: no
" >&5
22876 echo "${ECHO_T}no
" >&6; }
22879 { echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
22880 echo $ECHO_N "checking
for %zd
printf() format support...
$ECHO_C" >&6; }
22881 if test "$cross_compiling" = yes; then
22882 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
22883 See \
`config.log' for more details." >&5
22884 echo "$as_me: error: cannot run test program while cross compiling
22885 See \`config.log
' for more details." >&2;}
22886 { (exit 1); exit 1; }; }
22888 cat >conftest.$ac_ext <<_ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22895 #include <stddef.h>
22896 #include <string.h>
22902 #ifdef HAVE_SSIZE_T
22903 typedef ssize_t Py_ssize_t;
22904 #elif SIZEOF_VOID_P == SIZEOF_LONG
22905 typedef long Py_ssize_t;
22907 typedef int Py_ssize_t;
22910 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22913 if (strcmp(buffer, "123"))
22916 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22919 if (strcmp(buffer, "-123"))
22925 rm -f conftest$ac_exeext
22926 if { (ac_try="$ac_link"
22927 case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_link") 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22936 { (case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_try") 2>&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 { echo "$as_me:$LINENO: result: yes" >&5
22946 echo "${ECHO_T}yes" >&6; }
22948 cat >>confdefs.h <<\_ACEOF
22949 #define PY_FORMAT_SIZE_T "z"
22953 echo "$as_me: program exited with status $ac_status" >&5
22954 echo "$as_me: failed program was:" >&5
22955 sed 's
/^
/|
/' conftest.$ac_ext >&5
22957 ( exit $ac_status )
22958 { echo "$as_me:$LINENO: result: no" >&5
22959 echo "${ECHO_T}no" >&6; }
22961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22966 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22967 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22968 if test "${ac_cv_type_socklen_t+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 cat >conftest.$ac_ext <<_ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22978 #ifdef HAVE_SYS_TYPES_H
22979 #include <sys/types.h>
22981 #ifdef HAVE_SYS_SOCKET_H
22982 #include <sys/socket.h>
22986 typedef socklen_t ac__type_new_;
22990 if ((ac__type_new_ *) 0)
22992 if (sizeof (ac__type_new_))
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23007 grep -v '^
*+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_cv_type_socklen_t=yes
23017 echo "$as_me: failed program was:" >&5
23018 sed 's
/^
/|
/' conftest.$ac_ext >&5
23020 ac_cv_type_socklen_t=no
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23026 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23027 if test $ac_cv_type_socklen_t = yes; then
23031 cat >>confdefs.h <<\_ACEOF
23032 #define socklen_t int
23040 for h in `(cd $srcdir;echo Python/thread_*.h)`
23042 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
23046 SRCDIRS="Parser Grammar Objects Python Modules Mac"
23047 { echo "$as_me:$LINENO: checking for build directories" >&5
23048 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
23049 for dir in $SRCDIRS; do
23050 if test ! -d $dir; then
23054 { echo "$as_me:$LINENO: result: done" >&5
23055 echo "${ECHO_T}done" >&6; }
23057 # generate output files
23058 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
23060 cat >confcache <<\_ACEOF
23061 # This file is a shell script that caches the results of configure
23062 # tests run on this system so they can be shared between configure
23063 # scripts and configure runs, see configure's option
--config-cache.
23064 # It is not useful on other systems. If it contains results you don't
23065 # want to keep, you may remove or edit it.
23067 # config.status only pays attention to the cache file if you give it
23068 # the --recheck option to rerun configure.
23070 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23071 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23072 # following values.
23076 # The following way of writing the cache mishandles newlines in values,
23077 # but we know of no workaround that is simple, portable, and efficient.
23078 # So, we kill variables containing newlines.
23079 # Ultrix sh set writes to stderr and can't be redirected directly,
23080 # and sets the high bit in the cache file unless we assign to the vars.
23082 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23083 eval ac_val
=\$
$ac_var
23087 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23088 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23091 _ | IFS | as_nl
) ;; #(
23092 *) $as_unset $ac_var ;;
23098 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23099 *${as_nl}ac_space
=\
*)
23100 # `set' does not quote correctly, so add quotes (double-quote
23101 # substitution turns \\\\ into \\, and sed turns \\ into \).
23104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23107 # `set' quotes correctly as required by POSIX, so do not add quotes.
23108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23119 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23121 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
23122 if test -w "$cache_file"; then
23123 test "x$cache_file" != "x/dev/null" &&
23124 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23125 echo "$as_me: updating cache $cache_file" >&6;}
23126 cat confcache
>$cache_file
23128 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23129 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23134 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23135 # Let make expand exec_prefix.
23136 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23138 DEFS
=-DHAVE_CONFIG_H
23142 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23143 # 1. Remove the extension, and $U if already installed.
23144 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23145 ac_i
=`echo "$ac_i" | sed "$ac_script"`
23146 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23147 # will be set to the directory where LIBOBJS objects are built.
23148 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23149 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23151 LIBOBJS
=$ac_libobjs
23153 LTLIBOBJS
=$ac_ltlibobjs
23157 : ${CONFIG_STATUS=./config.status}
23158 ac_clean_files_save
=$ac_clean_files
23159 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23160 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23161 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23162 cat >$CONFIG_STATUS <<_ACEOF
23164 # Generated by $as_me.
23165 # Run this file to recreate the current configuration.
23166 # Compiler output produced by configure, useful for debugging
23167 # configure, is in config.log if it exists.
23170 ac_cs_recheck=false
23172 SHELL=\${CONFIG_SHELL-$SHELL}
23175 cat >>$CONFIG_STATUS <<\_ACEOF
23176 ## --------------------- ##
23177 ## M4sh Initialization. ##
23178 ## --------------------- ##
23180 # Be more Bourne compatible
23181 DUALCASE
=1; export DUALCASE
# for MKS sh
23182 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23186 # is contrary to our usage. Disable this feature.
23187 alias -g '${1+"$@"}'='"$@"'
23188 setopt NO_GLOB_SUBST
23190 case `(set -o) 2>/dev/null` in
23191 *posix
*) set -o posix
;;
23200 # Avoid depending upon Character Ranges.
23201 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23202 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23203 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23204 as_cr_digits
='0123456789'
23205 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23207 # The user is always right.
23208 if test "${PATH_SEPARATOR+set}" != set; then
23209 echo "#! /bin/sh" >conf$$.sh
23210 echo "exit 0" >>conf$$.sh
23212 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23220 # Support unset when possible.
23221 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23229 # We need space, tab and new line, in precisely that order. Quoting is
23230 # there to prevent editors from complaining about space-tab.
23231 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23232 # splitting by setting IFS to empty value.)
23237 # Find who we are. Look in the path if we contain no directory separator.
23239 *[\\/]* ) as_myself
=$0 ;;
23240 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23241 for as_dir
in $PATH
23244 test -z "$as_dir" && as_dir
=.
23245 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23251 # We did not find ourselves, most probably we were run as `sh COMMAND'
23252 # in which case we are not to be found in the path.
23253 if test "x$as_myself" = x
; then
23256 if test ! -f "$as_myself"; then
23257 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23258 { (exit 1); exit 1; }
23261 # Work around bugs in pre-3.0 UWIN ksh.
23262 for as_var
in ENV MAIL MAILPATH
23263 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23273 LC_TELEPHONE LC_TIME
23275 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23276 eval $as_var=C
; export $as_var
23278 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23282 # Required to use basename.
23283 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23284 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23290 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23291 as_basename
=basename
23297 # Name of the executable.
23298 as_me
=`$as_basename -- "$0" ||
23299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23300 X"$0" : 'X\(//\)$' \| \
23301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23303 sed '/^.*\/\([^/][^/]*\)\/*$/{
23322 as_lineno_1
=$LINENO
23323 as_lineno_2
=$LINENO
23324 test "x$as_lineno_1" != "x$as_lineno_2" &&
23325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23328 # uniformly replaced by the line number. The first 'sed' inserts a
23329 # line-number line after each line using $LINENO; the second 'sed'
23330 # does the real work. The second script uses 'N' to pair each
23331 # line-number line with the line containing $LINENO, and appends
23332 # trailing '-' during substitution so that $LINENO is not a special
23333 # case at line end.
23334 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23335 # scripts with optimization help from Paolo Bonzini. Blame Lee
23336 # E. McMahon (1931-1989) for sed's syntax. :-)
23348 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23351 ' >$as_me.lineno
&&
23352 chmod +x
"$as_me.lineno" ||
23353 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23354 { (exit 1); exit 1; }; }
23356 # Don't try to exec as it changes $[0], causing all sort of problems
23357 # (the dirname of $[0] is not the place where we might find the
23358 # original and so on. Autoconf is especially sensitive to this).
23359 .
"./$as_me.lineno"
23360 # Exit status is that of the last command.
23365 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23371 ECHO_C
= ECHO_N
= ECHO_T
=
23372 case `echo -n x` in
23374 case `echo 'x\c'` in
23375 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23382 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23383 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23389 rm -f conf$$ conf$$.exe conf$$.
file
23390 if test -d conf$$.dir
; then
23391 rm -f conf$$.dir
/conf$$.
file
23397 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23399 # ... but there are two gotchas:
23400 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23401 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23402 # In both cases, we have to default to `cp -p'.
23403 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23405 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23410 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23411 rmdir conf$$.dir
2>/dev
/null
23413 if mkdir
-p .
2>/dev
/null
; then
23416 test -d .
/-p && rmdir .
/-p
23420 if test -x / >/dev
/null
2>&1; then
23421 as_test_x
='test -x'
23423 if ls -dL / >/dev
/null
2>&1; then
23430 if test -d "$1"; then
23436 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23437 ???[sx]*):;;*)false;;esac;fi
23441 as_executable_p
=$as_test_x
23443 # Sed expression to map a string onto a valid CPP name.
23444 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23446 # Sed expression to map a string onto a valid variable name.
23447 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23452 # Save the log message, to keep $[0] and so on meaningful, and to
23453 # report actual input values of CONFIG_FILES etc. instead of their
23454 # values after options handling.
23456 This file was extended by python $as_me 2.6, which was
23457 generated by GNU Autoconf 2.61. Invocation command line was
23459 CONFIG_FILES = $CONFIG_FILES
23460 CONFIG_HEADERS = $CONFIG_HEADERS
23461 CONFIG_LINKS = $CONFIG_LINKS
23462 CONFIG_COMMANDS = $CONFIG_COMMANDS
23465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23470 cat >>$CONFIG_STATUS <<_ACEOF
23471 # Files that config.status was made for.
23472 config_files="$ac_config_files"
23473 config_headers="$ac_config_headers"
23477 cat >>$CONFIG_STATUS <<\_ACEOF
23479 \`$as_me' instantiates files from templates according to the
23480 current configuration.
23482 Usage: $0 [OPTIONS] [FILE]...
23484 -h, --help print this help, then exit
23485 -V, --version print version number and configuration settings, then exit
23486 -q, --quiet do not print progress messages
23487 -d, --debug don't remove temporary files
23488 --recheck update $as_me by reconfiguring in the same conditions
23489 --file=FILE[:TEMPLATE]
23490 instantiate the configuration file FILE
23491 --header=FILE[:TEMPLATE]
23492 instantiate the configuration header FILE
23494 Configuration files:
23497 Configuration headers:
23500 Report bugs to <bug-autoconf@gnu.org>."
23503 cat >>$CONFIG_STATUS <<_ACEOF
23505 python config.status 2.6
23506 configured by $0, generated by GNU Autoconf 2.61,
23507 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23509 Copyright (C) 2006 Free Software Foundation, Inc.
23510 This config.status script is free software; the Free Software Foundation
23511 gives unlimited permission to copy, distribute and modify it."
23518 cat >>$CONFIG_STATUS <<\_ACEOF
23519 # If no file are specified by the user, then we need to provide default
23520 # value. By we need to know if files were specified by the user.
23526 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23527 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23538 # Handling of the options.
23539 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23541 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23542 echo "$ac_cs_version"; exit ;;
23543 --debug |
--debu |
--deb |
--de |
--d |
-d )
23545 --file |
--fil |
--fi |
--f )
23547 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23548 ac_need_defaults
=false
;;
23549 --header |
--heade |
--head |
--hea )
23551 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23552 ac_need_defaults
=false
;;
23554 # Conflict between --help and --header
23555 { echo "$as_me: error: ambiguous option: $1
23556 Try \`$0 --help' for more information." >&2
23557 { (exit 1); exit 1; }; };;
23558 --help |
--hel |
-h )
23559 echo "$ac_cs_usage"; exit ;;
23560 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23561 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23564 # This is an error.
23565 -*) { echo "$as_me: error: unrecognized option: $1
23566 Try \`$0 --help' for more information." >&2
23567 { (exit 1); exit 1; }; } ;;
23569 *) ac_config_targets
="$ac_config_targets $1"
23570 ac_need_defaults
=false
;;
23576 ac_configure_extra_args
=
23578 if $ac_cs_silent; then
23580 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 if \$ac_cs_recheck; then
23586 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23587 CONFIG_SHELL=$SHELL
23588 export CONFIG_SHELL
23589 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23598 ## Running $as_me. ##
23604 cat >>$CONFIG_STATUS <<_ACEOF
23607 cat >>$CONFIG_STATUS <<\_ACEOF
23609 # Handling of arguments.
23610 for ac_config_target
in $ac_config_targets
23612 case $ac_config_target in
23613 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
23614 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
23615 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23616 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23617 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
23618 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
23620 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23621 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23622 { (exit 1); exit 1; }; };;
23627 # If the user did not use the arguments to specify the items to instantiate,
23628 # then the envvar interface is used. Set only those that are not.
23629 # We use the long form for the default assignment because of an extremely
23630 # bizarre bug on SunOS 4.1.3.
23631 if $ac_need_defaults; then
23632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23636 # Have a temporary directory for convenience. Make it in the build tree
23637 # simply because there is no reason against having it here, and in addition,
23638 # creating and moving files from /tmp can sometimes cause problems.
23639 # Hook for its removal unless debugging.
23640 # Note that there is a small window in which the directory will not be cleaned:
23641 # after its creation but before its name has been assigned to `$tmp'.
23645 trap 'exit_status=$?
23646 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23648 trap '{ (exit 1); exit 1; }' 1 2 13 15
23650 # Create a (secure) tmp directory for tmp files.
23653 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23654 test -n "$tmp" && test -d "$tmp"
23657 tmp
=.
/conf$$
-$RANDOM
23658 (umask 077 && mkdir
"$tmp")
23661 echo "$me: cannot create a temporary directory in ." >&2
23662 { (exit 1); exit 1; }
23666 # Set up the sed scripts for CONFIG_FILES section.
23669 # No need to generate the scripts if there are no CONFIG_FILES.
23670 # This happens for instance when ./config.status config.h
23671 if test -n "$CONFIG_FILES"; then
23678 for ac_last_try
in false false false false false
:; do
23679 cat >conf$
$subs.
sed <<_ACEOF
23680 SHELL!$SHELL$ac_delim
23681 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23682 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23683 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23684 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23685 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23686 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23687 exec_prefix!$exec_prefix$ac_delim
23688 prefix!$prefix$ac_delim
23689 program_transform_name!$program_transform_name$ac_delim
23690 bindir!$bindir$ac_delim
23691 sbindir!$sbindir$ac_delim
23692 libexecdir!$libexecdir$ac_delim
23693 datarootdir!$datarootdir$ac_delim
23694 datadir!$datadir$ac_delim
23695 sysconfdir!$sysconfdir$ac_delim
23696 sharedstatedir!$sharedstatedir$ac_delim
23697 localstatedir!$localstatedir$ac_delim
23698 includedir!$includedir$ac_delim
23699 oldincludedir!$oldincludedir$ac_delim
23700 docdir!$docdir$ac_delim
23701 infodir!$infodir$ac_delim
23702 htmldir!$htmldir$ac_delim
23703 dvidir!$dvidir$ac_delim
23704 pdfdir!$pdfdir$ac_delim
23705 psdir!$psdir$ac_delim
23706 libdir!$libdir$ac_delim
23707 localedir!$localedir$ac_delim
23708 mandir!$mandir$ac_delim
23709 DEFS!$DEFS$ac_delim
23710 ECHO_C!$ECHO_C$ac_delim
23711 ECHO_N!$ECHO_N$ac_delim
23712 ECHO_T!$ECHO_T$ac_delim
23713 LIBS!$LIBS$ac_delim
23714 build_alias!$build_alias$ac_delim
23715 host_alias!$host_alias$ac_delim
23716 target_alias!$target_alias$ac_delim
23717 VERSION!$VERSION$ac_delim
23718 SOVERSION!$SOVERSION$ac_delim
23719 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
23720 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
23721 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
23722 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
23723 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
23724 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
23725 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
23726 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
23727 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
23728 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
23729 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
23730 MACHDEP!$MACHDEP$ac_delim
23731 SGI_ABI!$SGI_ABI$ac_delim
23732 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
23733 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
23734 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
23735 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
23737 CFLAGS!$CFLAGS$ac_delim
23738 LDFLAGS!$LDFLAGS$ac_delim
23739 CPPFLAGS!$CPPFLAGS$ac_delim
23740 ac_ct_CC!$ac_ct_CC$ac_delim
23741 EXEEXT!$EXEEXT$ac_delim
23742 OBJEXT!$OBJEXT$ac_delim
23744 MAINCC!$MAINCC$ac_delim
23746 GREP!$GREP$ac_delim
23747 EGREP!$EGREP$ac_delim
23748 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
23749 LIBRARY!$LIBRARY$ac_delim
23750 LDLIBRARY!$LDLIBRARY$ac_delim
23751 DLLLIBRARY!$DLLLIBRARY$ac_delim
23752 BLDLIBRARY!$BLDLIBRARY$ac_delim
23753 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
23754 INSTSONAME!$INSTSONAME$ac_delim
23755 RUNSHARED!$RUNSHARED$ac_delim
23756 LINKCC!$LINKCC$ac_delim
23757 RANLIB!$RANLIB$ac_delim
23759 SVNVERSION!$SVNVERSION$ac_delim
23760 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23761 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23762 INSTALL_DATA!$INSTALL_DATA$ac_delim
23765 BASECFLAGS!$BASECFLAGS$ac_delim
23766 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
23767 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
23769 LDSHARED!$LDSHARED$ac_delim
23770 BLDSHARED!$BLDSHARED$ac_delim
23771 CCSHARED!$CCSHARED$ac_delim
23772 LINKFORSHARED!$LINKFORSHARED$ac_delim
23773 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
23774 SHLIBS!$SHLIBS$ac_delim
23775 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
23776 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
23779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23781 elif $ac_last_try; then
23782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23783 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23784 { (exit 1); exit 1; }; }
23786 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23790 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23791 if test -n "$ac_eof"; then
23792 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23793 ac_eof
=`expr $ac_eof + 1`
23796 cat >>$CONFIG_STATUS <<_ACEOF
23797 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23801 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23802 s/^/s,@/; s/!/@,|#_!!_#|/
23805 s/'"$ac_delim"'$/,g/; t
23807 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23808 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23809 rm -f conf$
$subs.
sed
23810 cat >>$CONFIG_STATUS <<_ACEOF
23816 for ac_last_try
in false false false false false
:; do
23817 cat >conf$
$subs.
sed <<_ACEOF
23818 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
23819 LDLAST!$LDLAST$ac_delim
23820 THREADOBJ!$THREADOBJ$ac_delim
23821 DLINCLDIR!$DLINCLDIR$ac_delim
23822 DYNLOADFILE!$DYNLOADFILE$ac_delim
23823 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
23824 TRUE!$TRUE$ac_delim
23825 LIBOBJS!$LIBOBJS$ac_delim
23826 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
23827 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
23828 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
23829 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
23830 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
23831 LIBM!$LIBM$ac_delim
23832 LIBC!$LIBC$ac_delim
23833 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
23834 THREADHEADERS!$THREADHEADERS$ac_delim
23835 SRCDIRS!$SRCDIRS$ac_delim
23836 LTLIBOBJS!$LTLIBOBJS$ac_delim
23839 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
23841 elif $ac_last_try; then
23842 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23843 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23844 { (exit 1); exit 1; }; }
23846 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23850 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23851 if test -n "$ac_eof"; then
23852 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23853 ac_eof
=`expr $ac_eof + 1`
23856 cat >>$CONFIG_STATUS <<_ACEOF
23857 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23861 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23862 s/^/s,@/; s/!/@,|#_!!_#|/
23865 s/'"$ac_delim"'$/,g/; t
23867 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23868 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23869 rm -f conf$
$subs.
sed
23870 cat >>$CONFIG_STATUS <<_ACEOF
23877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23879 # trailing colons and then remove the whole line if VPATH becomes empty
23880 # (actually we leave an empty line to preserve line numbers).
23881 if test "x$srcdir" = x.
; then
23882 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23883 s/:*\$(srcdir):*/:/
23884 s/:*\${srcdir}:*/:/
23886 s/^\([^=]*=[ ]*\):*/\1/
23892 cat >>$CONFIG_STATUS <<\_ACEOF
23893 fi # test -n "$CONFIG_FILES"
23896 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
23899 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23901 case $ac_mode$ac_tag in
23903 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23904 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23905 { (exit 1); exit 1; }; };;
23906 :[FH
]-) ac_tag
=-:-;;
23907 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23924 -) ac_f
="$tmp/stdin";;
23925 *) # Look for the file first in the build tree, then in the source tree
23926 # (if the path is not absolute). The absolute path cannot be DOS-style,
23927 # because $ac_f cannot contain `:'.
23931 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23933 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23934 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23935 { (exit 1); exit 1; }; };;
23937 ac_file_inputs
="$ac_file_inputs $ac_f"
23940 # Let's still pretend it is `configure' which instantiates (i.e., don't
23941 # use $as_me), people would be surprised to read:
23942 # /* config.h. Generated by config.status. */
23943 configure_input
="Generated from "`IFS=:
23944 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23945 if test x
"$ac_file" != x-
; then
23946 configure_input
="$ac_file. $configure_input"
23947 { echo "$as_me:$LINENO: creating $ac_file" >&5
23948 echo "$as_me: creating $ac_file" >&6;}
23952 *:-:* |
*:-) cat >"$tmp/stdin";;
23957 ac_dir
=`$as_dirname -- "$ac_file" ||
23958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23959 X"$ac_file" : 'X\(//\)[^/]' \| \
23960 X"$ac_file" : 'X\(//\)$' \| \
23961 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23967 /^X\(\/\/\)[^/].*/{
23982 -*) as_dir
=.
/$as_dir;;
23984 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23988 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23989 *) as_qdir
=$as_dir;;
23991 as_dirs
="'$as_qdir' $as_dirs"
23992 as_dir
=`$as_dirname -- "$as_dir" ||
23993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23994 X"$as_dir" : 'X\(//\)[^/]' \| \
23995 X"$as_dir" : 'X\(//\)$' \| \
23996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24002 /^X\(\/\/\)[^/].*/{
24015 test -d "$as_dir" && break
24017 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24018 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24019 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24020 { (exit 1); exit 1; }; }; }
24024 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24026 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24027 # A ".." for each directory in $ac_dir_suffix.
24028 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24029 case $ac_top_builddir_sub in
24030 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24031 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24034 ac_abs_top_builddir
=$ac_pwd
24035 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24036 # for backward compatibility:
24037 ac_top_builddir
=$ac_top_build_prefix
24040 .
) # We are building in place.
24042 ac_top_srcdir
=$ac_top_builddir_sub
24043 ac_abs_top_srcdir
=$ac_pwd ;;
24044 [\\/]* | ?
:[\\/]* ) # Absolute name.
24045 ac_srcdir
=$srcdir$ac_dir_suffix;
24046 ac_top_srcdir
=$srcdir
24047 ac_abs_top_srcdir
=$srcdir ;;
24048 *) # Relative name.
24049 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24050 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24051 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24053 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24063 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24064 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24068 cat >>$CONFIG_STATUS <<\_ACEOF
24069 # If the template does not know about datarootdir, expand it.
24070 # FIXME: This hack should be removed a few years after 2.60.
24071 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24073 case `sed -n '/datarootdir/ {
24082 ' $ac_file_inputs` in
24083 *datarootdir
*) ac_datarootdir_seen
=yes;;
24084 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24085 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24086 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24088 cat >>$CONFIG_STATUS <<_ACEOF
24089 ac_datarootdir_hack='
24090 s&@datadir@&$datadir&g
24091 s&@docdir@&$docdir&g
24092 s&@infodir@&$infodir&g
24093 s&@localedir@&$localedir&g
24094 s&@mandir@&$mandir&g
24095 s&\\\${datarootdir}&$datarootdir&g' ;;
24099 # Neutralize VPATH when `$srcdir' = `.'.
24100 # Shell code in configure.ac might set extrasub.
24101 # FIXME: do we really want to maintain this feature?
24102 cat >>$CONFIG_STATUS <<_ACEOF
24106 cat >>$CONFIG_STATUS <<\_ACEOF
24108 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24109 s
&@configure_input@
&$configure_input&;t t
24110 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24111 s
&@srcdir@
&$ac_srcdir&;t t
24112 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24113 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24114 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24115 s
&@builddir@
&$ac_builddir&;t t
24116 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24117 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24118 s
&@INSTALL@
&$ac_INSTALL&;t t
24119 $ac_datarootdir_hack
24120 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24122 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24123 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24125 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24126 which seems to be undefined. Please make sure it is defined." >&5
24127 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24128 which seems to be undefined. Please make sure it is defined." >&2;}
24132 -) cat "$tmp/out"; rm -f "$tmp/out";;
24133 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24142 # Transform confdefs.h into a sed script `conftest.defines', that
24143 # substitutes the proper values into config.h.in to produce config.h.
24144 rm -f conftest.defines conftest.
tail
24145 # First, append a space to every undef/define line, to ease matching.
24146 echo 's/$/ /' >conftest.defines
24147 # Then, protect against being on the right side of a sed subst, or in
24148 # an unquoted here document, in config.status. If some macros were
24149 # called several times there might be several #defines for the same
24150 # symbol, which is useless. But do not sort them, since the last
24151 # AC_DEFINE must be honored.
24152 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24153 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24154 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24155 # PARAMS is the parameter list in the macro definition--in most cases, it's
24156 # just an empty string.
24157 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24158 ac_dB
='\\)[ (].*,\\1define\\2'
24166 s/^[ ]*#[ ]*define[ ][ ]*//
24171 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24172 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24173 ' >>conftest.defines
24175 # Remove the space that was appended to ease matching.
24176 # Then replace #undef with comments. This is necessary, for
24177 # example, in the case of _POSIX_SOURCE, which is predefined and required
24178 # on some systems where configure will not decide to define it.
24179 # (The regexp can be short, since the line contains either #define or #undef.)
24181 s,^[ #]*u.*,/* & */,' >>conftest.defines
24183 # Break up conftest.defines:
24184 ac_max_sed_lines
=50
24186 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24187 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24188 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24190 ac_in
='$ac_file_inputs'
24191 ac_out
='"$tmp/out1"'
24192 ac_nxt
='"$tmp/out2"'
24196 # Write a here document:
24197 cat >>$CONFIG_STATUS <<_ACEOF
24198 # First, check the format of the line:
24199 cat >"\$tmp/defines.sed" <<\\CEOF
24200 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24201 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24205 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24207 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24208 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24209 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24210 grep . conftest.
tail >/dev
/null ||
break
24211 rm -f conftest.defines
24212 mv conftest.
tail conftest.defines
24214 rm -f conftest.defines conftest.
tail
24216 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 if test x
"$ac_file" != x-
; then
24219 echo "/* $configure_input */" >"$tmp/config.h"
24220 cat "$ac_result" >>"$tmp/config.h"
24221 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24222 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24223 echo "$as_me: $ac_file is unchanged" >&6;}
24226 mv "$tmp/config.h" $ac_file
24229 echo "/* $configure_input */"
24241 { (exit 0); exit 0; }
24243 chmod +x
$CONFIG_STATUS
24244 ac_clean_files
=$ac_clean_files_save
24247 # configure is writing to config.log, and then calls config.status.
24248 # config.status does its own redirection, appending to config.log.
24249 # Unfortunately, on DOS this fails, as config.log is still kept open
24250 # by configure, so config.status won't be able to write to it; its
24251 # output is simply discarded. So we exec the FD to /dev/null,
24252 # effectively closing config.log, so it can be properly (re)opened and
24253 # appended to by config.status. When coming back to configure, we
24254 # need to make the FD available again.
24255 if test "$no_create" != yes; then
24257 ac_config_status_args
=
24258 test "$silent" = yes &&
24259 ac_config_status_args
="$ac_config_status_args --quiet"
24261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24264 # would make configure fail if this is the last instruction.
24265 $ac_cs_success ||
{ (exit 1); exit 1; }
24269 echo "creating Modules/Setup"
24270 if test ! -f Modules
/Setup
24272 cp $srcdir/Modules
/Setup.dist Modules
/Setup
24275 echo "creating Modules/Setup.local"
24276 if test ! -f Modules
/Setup.
local
24278 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
24281 echo "creating Makefile"
24282 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
24283 -s Modules Modules
/Setup.config \
24284 Modules
/Setup.
local Modules
/Setup
24286 case $ac_sys_system in
24288 { echo "$as_me:$LINENO: WARNING:
24290 Support for BeOS is deprecated as of Python 2.6.
24291 See PEP 11 for the gory details.
24293 echo "$as_me: WARNING:
24295 Support for BeOS is deprecated as of Python 2.6.
24296 See PEP 11 for the gory details.
24302 mv config.c Modules