2 # From configure.in Revision: 59819 .
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 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _BSD_TYPES 1
1849 define_xopen_source=yes
1851 # Arguments passed to configure.
1853 CONFIG_ARGS="$ac_configure_args"
1855 # Check whether --enable-universalsdk was given.
1856 if test "${enable_universalsdk+set}" = set; then
1857 enableval=$enable_universalsdk;
1860 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1866 enable_universalsdk=
1869 UNIVERSALSDK=$enableval
1876 enable_universalsdk=
1882 # Check whether --enable-framework was given.
1883 if test "${enable_framework+set}" = set; then
1884 enableval=$enable_framework;
1887 enableval=/Library/Frameworks
1892 PYTHONFRAMEWORKDIR=no-framework
1893 PYTHONFRAMEWORKPREFIX=
1894 PYTHONFRAMEWORKINSTALLDIR=
1895 FRAMEWORKINSTALLFIRST=
1896 FRAMEWORKINSTALLLAST=
1897 FRAMEWORKALTINSTALLFIRST=
1898 FRAMEWORKALTINSTALLLAST=
1899 if test "x${prefix}" = "xNONE"; then
1900 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1902 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1907 PYTHONFRAMEWORK=Python
1908 PYTHONFRAMEWORKDIR=Python.framework
1909 PYTHONFRAMEWORKPREFIX=$enableval
1910 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1911 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1912 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1913 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1914 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1915 if test "x${prefix}" = "xNONE" ; then
1916 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1918 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1920 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1922 # Add makefiles for Mac specific code to the list of output
1924 ac_config_files="$ac_config_files Mac/Makefile"
1926 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1928 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1935 PYTHONFRAMEWORKDIR=no-framework
1936 PYTHONFRAMEWORKPREFIX=
1937 PYTHONFRAMEWORKINSTALLDIR=
1938 FRAMEWORKINSTALLFIRST=
1939 FRAMEWORKINSTALLLAST=
1940 FRAMEWORKALTINSTALLFIRST=
1941 FRAMEWORKALTINSTALLLAST=
1942 if test "x${prefix}" = "xNONE" ; then
1943 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1945 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1962 ## AC_HELP_STRING(--with-dyld,
1963 ## Use (OpenStep|Rhapsody) dynamic linker))
1965 # Set name for machine-dependent library files
1967 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1968 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1969 if test -z "$MACHDEP"
1971 ac_sys_system=`uname
-s`
1972 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1973 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1974 ac_sys_release=`uname
-v`
1976 ac_sys_release=`uname
-r`
1978 ac_md_system=`echo $ac_sys_system |
1979 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
1980 ac_md_release=`echo $ac_sys_release |
1981 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
1982 MACHDEP="$ac_md_system$ac_md_release"
1985 cygwin*) MACHDEP="cygwin";;
1986 darwin*) MACHDEP="darwin";;
1987 atheos*) MACHDEP="atheos";;
1988 irix646) MACHDEP="irix6";;
1989 '') MACHDEP="unknown";;
1993 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1994 # disable features if it is defined, without any means to access these
1995 # features as extensions. For these systems, we skip the definition of
1996 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1997 # some feature, make sure there is no alternative way to access this
1998 # feature. Also, when using wildcards, make sure you have verified the
1999 # need for not defining _XOPEN_SOURCE on all systems matching the
2000 # wildcard, and that the wildcard does not include future systems
2001 # (which may remove their limitations).
2002 case $ac_sys_system/$ac_sys_release in
2003 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2004 # even though select is a POSIX function. Reported by J. Ribbens.
2005 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2006 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2007 define_xopen_source=no
2008 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2009 # also defined. This can be overridden by defining _BSD_SOURCE
2010 # As this has a different meaning on Linux, only define it on OpenBSD
2012 cat >>confdefs.h <<\_ACEOF
2013 #define _BSD_SOURCE 1
2017 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2018 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2020 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2021 define_xopen_source=no;;
2022 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2023 # of union __?sigval. Reported by Stuart Bishop.
2025 define_xopen_source=no;;
2026 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2027 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2028 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2029 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2030 define_xopen_source=no;;
2031 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2032 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2034 define_xopen_source=no;;
2035 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2036 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2037 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2038 # This should hopefully be fixed in FreeBSD 4.9
2039 FreeBSD/4.8* | Darwin/6* )
2040 define_xopen_source=no;;
2041 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2042 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2043 # or has another value. By not (re)defining it, the defaults come in place.
2045 define_xopen_source=no;;
2047 if test `uname
-r` -eq 1; then
2048 define_xopen_source=no
2051 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2052 # disables platform specific features beyond repair.
2053 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2054 # has no effect, don't bother defining them
2056 define_xopen_source=no
2061 if test $define_xopen_source = yes
2063 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2064 # defined precisely as g++ defines it
2065 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2067 case $ac_sys_system/$ac_sys_release in
2068 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2070 cat >>confdefs.h <<\_ACEOF
2071 #define _XOPEN_SOURCE 500
2077 cat >>confdefs.h <<\_ACEOF
2078 #define _XOPEN_SOURCE 600
2084 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2085 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2086 # several APIs are not declared. Since this is also needed in some
2087 # cases for HP-UX, we define it globally.
2088 # except for Solaris 10, where it must not be defined,
2089 # as it implies XPG4.2
2090 case $ac_sys_system/$ac_sys_release in
2095 cat >>confdefs.h <<\_ACEOF
2096 #define _XOPEN_SOURCE_EXTENDED 1
2103 cat >>confdefs.h <<\_ACEOF
2104 #define _POSIX_C_SOURCE 200112L
2111 # SGI compilers allow the specification of the both the ABI and the
2112 # ISA on the command line. Depending on the values of these switches,
2113 # different and often incompatable code will be generated.
2115 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2116 # thus supply support for various ABI/ISA combinations. The MACHDEP
2117 # variable is also adjusted.
2120 if test ! -z "$SGI_ABI"
2123 LDFLAGS="$SGI_ABI $LDFLAGS"
2124 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2126 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2127 echo "${ECHO_T}$MACHDEP" >&6; }
2129 # And add extra plat-mac for darwin
2132 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2133 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2134 if test -z "$EXTRAPLATDIR"
2138 EXTRAPLATDIR="\$(PLATMACDIRS)"
2139 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2147 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2148 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2150 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2151 # it may influence the way we can build extensions, so distutils
2155 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2156 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2158 # checks for alternative programs
2160 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2161 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2162 # just to get things to compile and link. Users are free to override OPT
2163 # when running configure or make. The build should not break if they do.
2164 # BASECFLAGS should generally not be messed with, however.
2166 # XXX shouldn't some/most/all of this code be merged with the stuff later
2167 # on that fiddles with OPT and BASECFLAGS?
2168 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2169 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2171 # Check whether --with-gcc was given.
2172 if test "${with_gcc+set}" = set; then
2180 without_gcc=$withval;;
2184 case $ac_sys_system in
2188 case $BE_HOST_CPU in
2192 BASECFLAGS="$BASECFLAGS -export pragma"
2194 LDFLAGS="$LDFLAGS -nodup"
2202 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2203 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2204 { (exit 1); exit 1; }; }
2207 AR="\$(srcdir)/Modules/ar_beos"
2217 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2218 echo "${ECHO_T}$without_gcc" >&6; }
2220 # If the user switches compilers, we can't believe the cache
2221 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2223 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2224 (it is also a good idea to do 'make clean' before compiling)" >&5
2225 echo "$as_me: error: cached CC is different -- throw away $cache_file
2226 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2227 { (exit 1); exit 1; }; }
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2274 if test -z "$ac_cv_prog_CC"; then
2276 # Extract the first word of "gcc", so it can be a program name with args.
2277 set dummy gcc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="gcc"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2312 if test "x$ac_ct_CC" = x; then
2315 case $cross_compiling:$ac_tool_warned in
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}cc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}cc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2372 if test -z "$CC"; then
2373 # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392 ac_prog_rejected=yes
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 if test $ac_prog_rejected = yes; then
2404 # We found a bogon in the path, so make sure we never use it.
2405 set dummy $ac_cv_prog_CC
2407 if test $# != 0; then
2408 # We chose a different compiler from the bogus one.
2409 # However, it has the same basename, so the bogon will be chosen
2410 # first if we set CC to just the basename; use the full file name.
2412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 for ac_prog in cl.exe
2432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2469 test -n "$CC" && break
2472 if test -z "$CC"; then
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 test -n "$ac_ct_CC" && break
2516 if test "x$ac_ct_CC" = x; then
2519 case $cross_compiling:$ac_tool_warned in
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2537 See \`config.log
' for more details." >&5
2538 echo "$as_me: error: no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details.
" >&2;}
2540 { (exit 1); exit 1; }; }
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (ac_try="$ac_compiler --version >&5"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compiler --version >&5") 2>&5
2553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2554 (exit $ac_status); }
2555 { (ac_try="$ac_compiler -v >&5"
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_compiler -v >&5") 2>&5
2563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2564 (exit $ac_status); }
2565 { (ac_try="$ac_compiler -V >&5"
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compiler -V >&5") 2>&5
2573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2574 (exit $ac_status); }
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 ac_clean_files_save=$ac_clean_files
2592 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2593 # Try to create an executable without -o first, disregard a.out.
2594 # It will help us diagnose broken compilers, and finding out an intuition
2596 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2597 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2600 # List of possible output files, starting from the most likely.
2601 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2602 # only as a last resort. b.out is created by i960 compilers.
2603 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2605 # The IRIX 6 linker writes into existing files which may not be
2606 # executable, retaining their permissions. Remove them first so a
2607 # subsequent execution test works.
2609 for ac_file in $ac_files
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2618 if { (ac_try="$ac_link_default"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_link_default") 2>&5
2626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2627 (exit $ac_status); }; then
2628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2631 # so that the user can short-circuit this test for compilers unknown to
2633 for ac_file in $ac_files ''
2635 test -f "$ac_file" || continue
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2640 # We found the default executable, but exeext='' is most
2644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 # We set ac_cv_exeext here because the later test for it is not
2649 # safe: cross compilers may not add the suffix if given an `-o'
2650 # argument, so we may need to know it at that point already.
2651 # Even if this section looks crufty: it has the advantage of
2658 test "$ac_cv_exeext" = no && ac_cv_exeext=
2664 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2665 echo "${ECHO_T}$ac_file" >&6; }
2666 if test -z "$ac_file"; then
2667 echo "$as_me: failed program was
:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2671 See \
`config.log' for more details." >&5
2672 echo "$as_me: error: C compiler cannot create executables
2673 See \`config.log
' for more details." >&2;}
2674 { (exit 77); exit 77; }; }
2677 ac_exeext=$ac_cv_exeext
2679 # Check that the compiler produces executables we can run. If not, either
2680 # the compiler is broken, or we cross compile.
2681 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2682 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2683 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2684 # If not cross compiling, check that we can run a simple program.
2685 if test "$cross_compiling" != yes; then
2686 if { ac_try='.
/$ac_file'
2687 { (case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_try") 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2698 if test "$cross_compiling" = maybe; then
2701 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2702 If you meant to cross compile, use \`--host'.
2703 See \
`config.log' for more details." >&5
2704 echo "$as_me: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'.
2706 See \`config.log' for more details.
" >&2;}
2707 { (exit 1); exit 1; }; }
2711 { echo "$as_me:$LINENO: result
: yes" >&5
2712 echo "${ECHO_T}yes" >&6; }
2714 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2715 ac_clean_files=$ac_clean_files_save
2716 # Check that the compiler produces executables we can run. If not, either
2717 # the compiler is broken, or we cross compile.
2718 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2719 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2720 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2721 echo "${ECHO_T}$cross_compiling" >&6; }
2723 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2724 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2725 if { (ac_try="$ac_link"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_link") 2>&5
2733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2737 # work properly (i.e., refer to `conftest.exe'), while it won't with
2739 for ac_file in conftest.exe conftest conftest.*; do
2740 test -f "$ac_file" || continue
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2750 See \
`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log
' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2756 rm -f conftest$ac_cv_exeext
2757 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2763 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2765 if test "${ac_cv_objext+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.o conftest.obj
2784 if { (ac_try="$ac_compile"
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
2794 for ac_file in conftest.o conftest.obj conftest.*; do
2795 test -f "$ac_file" || continue;
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2798 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2803 echo "$as_me: failed program was:" >&5
2804 sed 's
/^
/|
/' conftest.$ac_ext >&5
2806 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details.
" >&5
2808 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2809 See \
`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2815 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2816 echo "${ECHO_T}$ac_cv_objext" >&6; }
2817 OBJEXT=$ac_cv_objext
2819 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2820 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2821 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 cat >conftest.$ac_ext <<_ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2846 *) ac_try_echo
=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.
$ac_objext; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2868 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2871 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2872 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2873 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2874 ac_test_CFLAGS
=${CFLAGS+set}
2875 ac_save_CFLAGS
=$CFLAGS
2876 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2878 if test "${ac_cv_prog_cc_g+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 ac_save_c_werror_flag
=$ac_c_werror_flag
2882 ac_c_werror_flag
=yes
2885 cat >conftest.
$ac_ext <<_ACEOF
2888 cat confdefs.h
>>conftest.
$ac_ext
2889 cat >>conftest.
$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2900 rm -f conftest.
$ac_objext
2901 if { (ac_try
="$ac_compile"
2903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2942 *) ac_try_echo
=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2947 grep -v '^ *+' conftest.er1
>conftest.err
2949 cat conftest.err
>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } && {
2952 test -z "$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2954 } && test -s conftest.
$ac_objext; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.
$ac_ext >&5
2960 ac_c_werror_flag
=$ac_save_c_werror_flag
2962 cat >conftest.
$ac_ext <<_ACEOF
2965 cat confdefs.h
>>conftest.
$ac_ext
2966 cat >>conftest.
$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.
$ac_objext
2978 if { (ac_try
="$ac_compile"
2980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } && {
2991 test -z "$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 } && test -s conftest.$ac_objext; then
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_c_werror_flag=$ac_save_c_werror_flag
3011 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3013 if test "$ac_test_CFLAGS" = set; then
3014 CFLAGS=$ac_save_CFLAGS
3015 elif test $ac_cv_prog_cc_g = yes; then
3016 if test "$GCC" = yes; then
3022 if test "$GCC" = yes; then
3028 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3029 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_c89+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_cv_prog_cc_c89=no
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3043 #include <sys/types.h>
3044 #include <sys/stat.h>
3045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3046 struct buf { int x; };
3047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3048 static char *e (p, i)
3054 static char *f (char * (*g) (char **, int), char **p, ...)
3059 s = g (p, va_arg (v,int));
3064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3065 function prototypes and stuff, but not '\xHH' hex character constants.
3066 These don't provoke an error unfortunately, instead are silently treated
3067 as 'x'. The following induces an error, until -std is added to get
3068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3069 array size at least. It's necessary to write '\x00'==0 to get something
3070 that's true only with -std. */
3071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3074 inside strings and character constants. */
3076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3078 int test (int i, double x);
3079 struct s1 {int (*f) (int a);};
3080 struct s2 {int (*f) (double a);};
3081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3095 CC="$ac_save_CC $ac_arg"
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3100 *) ac_try_echo
=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1
>conftest.err
3107 cat conftest.err
>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.
$ac_objext; then
3113 ac_cv_prog_cc_c89
=$ac_arg
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.
$ac_ext >&5
3121 rm -f core conftest.err conftest.
$ac_objext
3122 test "x$ac_cv_prog_cc_c89" != "xno" && break
3124 rm -f conftest.
$ac_ext
3129 case "x$ac_cv_prog_cc_c89" in
3131 { echo "$as_me:$LINENO: result: none needed" >&5
3132 echo "${ECHO_T}none needed" >&6; } ;;
3134 { echo "$as_me:$LINENO: result: unsupported" >&5
3135 echo "${ECHO_T}unsupported" >&6; } ;;
3137 CC
="$CC $ac_cv_prog_cc_c89"
3138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3144 ac_cpp
='$CPP $CPPFLAGS'
3145 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3152 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3153 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3155 # Check whether --with-cxx_main was given.
3156 if test "${with_cxx_main+set}" = set; then
3157 withval
=$with_cxx_main;
3160 no
) with_cxx_main
=no
3162 yes) with_cxx_main
=yes
3164 *) with_cxx_main
=yes
3178 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3179 echo "${ECHO_T}$with_cxx_main" >&6; }
3185 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3186 set dummy g
++; ac_word
=$2
3187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3189 if test "${ac_cv_path_CXX+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3198 for as_dir
in notfound
3201 test -z "$as_dir" && as_dir
=.
3202 for ac_exec_ext
in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3217 if test -n "$CXX"; then
3218 { echo "$as_me:$LINENO: result: $CXX" >&5
3219 echo "${ECHO_T}$CXX" >&6; }
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3226 cc
) # Extract the first word of "c++", so it can be a program name with args.
3227 set dummy c
++; ac_word
=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_path_CXX+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3239 for as_dir
in notfound
3242 test -z "$as_dir" && as_dir
=.
3243 for ac_exec_ext
in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3258 if test -n "$CXX"; then
3259 { echo "$as_me:$LINENO: result: $CXX" >&5
3260 echo "${ECHO_T}$CXX" >&6; }
3262 { echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6; }
3268 if test "$CXX" = "notfound"
3275 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy
$ac_prog; ac_word
=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$CXX"; then
3285 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CXX
="$ac_prog"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 test -n "$CXX" && break
3316 test -n "$CXX" || CXX
="notfound"
3318 if test "$CXX" = "notfound"
3323 if test "$preset_cxx" != "$CXX"
3325 { echo "$as_me:$LINENO: WARNING:
3327 By default, distutils will build C++ extension modules with \"$CXX\".
3328 If this is not intended, then set CXX on the configure command line.
3330 echo "$as_me: WARNING:
3332 By default, distutils will build C++ extension modules with \"$CXX\".
3333 If this is not intended, then set CXX on the configure command line.
3338 # checks for UNIX variants that set C preprocessor variables
3341 ac_cpp
='$CPP $CPPFLAGS'
3342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3345 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3351 if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 # Double quotes because CPP needs to be expanded
3356 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3359 for ac_c_preproc_warn_flag
in '' yes
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364 # <limits.h> exists even on freestanding compilers.
3365 # On the NeXT, cc -E runs the code through the compiler's parser,
3366 # not just through cpp. "Syntax error" is here to catch this case.
3367 cat >conftest.
$ac_ext <<_ACEOF
3370 cat confdefs.h
>>conftest.
$ac_ext
3371 cat >>conftest.
$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3374 # include <limits.h>
3376 # include <assert.h>
3380 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null && {
3393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 # Broken: fails on valid input.
3405 rm -f conftest.err conftest.$ac_ext
3407 # OK, works on sane cases. Now check whether nonexistent headers
3408 # can be detected and how.
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <ac_nonexistent.h>
3417 if { (ac_try="$ac_cpp conftest.$ac_ext"
3419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3420 *) ac_try_echo
=$ac_try;;
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425 grep -v '^ *+' conftest.er1
>conftest.err
3427 cat conftest.err
>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev
/null
&& {
3430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3433 # Broken: success on invalid input.
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.
$ac_ext >&5
3439 # Passes both tests.
3444 rm -f conftest.err conftest.
$ac_ext
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.
$ac_ext
3449 if $ac_preproc_ok; then
3461 { echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6; }
3464 for ac_c_preproc_warn_flag
in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.
$ac_ext <<_ACEOF
3475 cat confdefs.h
>>conftest.
$ac_ext
3476 cat >>conftest.
$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3479 # include <limits.h>
3481 # include <assert.h>
3485 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3522 if { (ac_try="$ac_cpp conftest.$ac_ext"
3524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3525 *) ac_try_echo
=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3530 grep -v '^ *+' conftest.er1
>conftest.err
3532 cat conftest.err
>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev
/null
&& {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3538 # Broken: success on invalid input.
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.
$ac_ext >&5
3544 # Passes both tests.
3549 rm -f conftest.err conftest.
$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.
$ac_ext
3554 if $ac_preproc_ok; then
3557 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }
3565 ac_cpp
='$CPP $CPPFLAGS'
3566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3571 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3572 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3573 if test "${ac_cv_path_GREP+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 # Extract the first word of "grep ggrep" to use in msg output
3577 if test -z "$GREP"; then
3578 set dummy
grep ggrep
; ac_prog_name
=$2
3579 if test "${ac_cv_path_GREP+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 ac_path_GREP_found
=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3585 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3588 test -z "$as_dir" && as_dir
=.
3589 for ac_prog
in grep ggrep
; do
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3593 # Check for GNU ac_path_GREP and select it if it is found.
3594 # Check for GNU $ac_path_GREP
3595 case `"$ac_path_GREP" --version 2>&1` in
3597 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3600 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 echo 'GREP' >> "conftest.nl"
3607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3608 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3609 ac_count
=`expr $ac_count + 1`
3610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_GREP
="$ac_path_GREP"
3613 ac_path_GREP_max
=$ac_count
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3618 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3622 $ac_path_GREP_found && break 3
3632 GREP
="$ac_cv_path_GREP"
3633 if test -z "$GREP"; then
3634 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3635 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3636 { (exit 1); exit 1; }; }
3640 ac_cv_path_GREP
=$GREP
3645 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3646 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3647 GREP
="$ac_cv_path_GREP"
3650 { echo "$as_me:$LINENO: checking for egrep" >&5
3651 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3652 if test "${ac_cv_path_EGREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3656 then ac_cv_path_EGREP
="$GREP -E"
3658 # Extract the first word of "egrep" to use in msg output
3659 if test -z "$EGREP"; then
3660 set dummy
egrep; ac_prog_name
=$2
3661 if test "${ac_cv_path_EGREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_path_EGREP_found
=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3667 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3670 test -z "$as_dir" && as_dir
=.
3671 for ac_prog
in egrep; do
3672 for ac_exec_ext
in '' $ac_executable_extensions; do
3673 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3675 # Check for GNU ac_path_EGREP and select it if it is found.
3676 # Check for GNU $ac_path_EGREP
3677 case `"$ac_path_EGREP" --version 2>&1` in
3679 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3682 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 echo 'EGREP' >> "conftest.nl"
3689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3690 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3691 ac_count
=`expr $ac_count + 1`
3692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_EGREP
="$ac_path_EGREP"
3695 ac_path_EGREP_max
=$ac_count
3697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3700 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3704 $ac_path_EGREP_found && break 3
3714 EGREP
="$ac_cv_path_EGREP"
3715 if test -z "$EGREP"; then
3716 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718 { (exit 1); exit 1; }; }
3722 ac_cv_path_EGREP
=$EGREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3730 EGREP
="$ac_cv_path_EGREP"
3734 { echo "$as_me:$LINENO: checking for AIX" >&5
3735 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3736 cat >conftest.
$ac_ext <<_ACEOF
3739 cat confdefs.h
>>conftest.
$ac_ext
3740 cat >>conftest.
$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "yes" >/dev
/null
2>&1; then
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3751 cat >>confdefs.h
<<\_ACEOF
3752 #define _ALL_SOURCE 1
3756 { echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6; }
3763 # Check for unsupported systems
3764 case $ac_sys_system/$ac_sys_release in
3766 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3767 echo See README
for details.
3772 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3773 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3775 # Check whether --with-suffix was given.
3776 if test "${with_suffix+set}" = set; then
3777 withval
=$with_suffix;
3781 *) EXEEXT
=$withval;;
3785 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3786 echo "${ECHO_T}$EXEEXT" >&6; }
3788 # Test whether we're running on a non-case-sensitive system, in which
3789 # case we give a warning if no ext is given
3791 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3792 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3793 if test ! -d CaseSensitiveTestDir
; then
3794 mkdir CaseSensitiveTestDir
3797 if test -d casesensitivetestdir
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3807 rmdir CaseSensitiveTestDir
3812 gcc
) CC
="$CC -D_HAVE_BSDI";;
3816 case $ac_sys_system in
3819 cc|
*/cc
) CC
="$CC -Ae";;
3823 cc
) CC
="$CC -Wl,-Bexport";;
3826 # Some functions have a prototype only with that define, e.g. confstr
3828 cat >>confdefs.h
<<\_ACEOF
3829 #define __EXTENSIONS__ 1
3837 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3838 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3839 if test -z "$LIBRARY"
3841 LIBRARY
='libpython$(VERSION).a'
3843 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3844 echo "${ECHO_T}$LIBRARY" >&6; }
3846 # LDLIBRARY is the name of the library to link against (as opposed to the
3847 # name of the library into which to insert object files). BLDLIBRARY is also
3848 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3849 # is blank as the main program is not linked directly against LDLIBRARY.
3850 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3851 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3852 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3853 # DLLLIBRARY is the shared (i.e., DLL) library.
3855 # RUNSHARED is used to run shared python without installed libraries
3857 # INSTSONAME is the name of the shared library that will be use to install
3858 # on the system - some systems like version suffix, others don't
3865 LDLIBRARY
="$LIBRARY"
3866 BLDLIBRARY
='$(LDLIBRARY)'
3867 INSTSONAME
='$(LDLIBRARY)'
3872 # LINKCC is the command that links the python executable -- default is $(CC).
3873 # If CXX is set, and if it is needed to link a main function that was
3874 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3875 # python might then depend on the C++ runtime
3876 # This is altered for AIX in order to build the export list before
3879 { echo "$as_me:$LINENO: checking LINKCC" >&5
3880 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3881 if test -z "$LINKCC"
3883 LINKCC
='$(PURIFY) $(MAINCC)'
3884 case $ac_sys_system in
3887 if test $ac_sys_release -ge 5 -o \
3888 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3891 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3893 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3896 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3897 echo "${ECHO_T}$LINKCC" >&6; }
3899 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3900 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3901 # Check whether --enable-shared was given.
3902 if test "${enable_shared+set}" = set; then
3903 enableval
=$enable_shared;
3907 if test -z "$enable_shared"
3909 case $ac_sys_system in
3911 enable_shared
="yes";;
3913 enable_shared
="no";;
3916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3917 echo "${ECHO_T}$enable_shared" >&6; }
3919 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3920 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3921 # Check whether --enable-profiling was given.
3922 if test "${enable_profiling+set}" = set; then
3923 enableval
=$enable_profiling; ac_save_cc
="$CC"
3925 if test "$cross_compiling" = yes; then
3926 ac_enable_profiling
="no"
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 int main() { return 0; }
3936 rm -f conftest
$ac_exeext
3937 if { (ac_try
="$ac_link"
3939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_link") 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3947 { (case "(($ac_try" in
3948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3949 *) ac_try_echo
=$ac_try;;
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_try") 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_enable_profiling
="yes"
3958 echo "$as_me: program exited with status $ac_status" >&5
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.
$ac_ext >&5
3963 ac_enable_profiling
="no"
3965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3972 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3973 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3975 case "$ac_enable_profiling" in
3977 BASECFLAGS
="-pg $BASECFLAGS"
3978 LDFLAGS
="-pg $LDFLAGS"
3982 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3983 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3985 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3986 # library that we build, but we do not want to link against it (we
3987 # will find it with a -framework option). For this reason there is an
3988 # extra variable BLDLIBRARY against which Python and the extension
3989 # modules are linked, BLDLIBRARY. This is normally the same as
3990 # LDLIBRARY, but empty for MacOSX framework builds.
3991 if test "$enable_framework"
3993 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3994 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3997 BLDLIBRARY
='$(LDLIBRARY)'
4000 # Other platforms follow
4001 if test $enable_shared = "yes"; then
4003 cat >>confdefs.h
<<\_ACEOF
4004 #define Py_ENABLE_SHARED 1
4007 case $ac_sys_system in
4009 LDLIBRARY
='libpython$(VERSION).so'
4012 LDLIBRARY
='libpython$(VERSION).dll.a'
4013 DLLLIBRARY
='libpython$(VERSION).dll'
4016 LDLIBRARY
='libpython$(VERSION).so'
4017 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4018 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4019 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4021 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4022 LDLIBRARY
='libpython$(VERSION).so'
4023 BLDLIBRARY
='-L. -lpython$(VERSION)'
4024 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4025 case $ac_sys_system in
4027 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4030 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4035 LDLIBRARY
='libpython$(VERSION).so'
4038 LDLIBRARY
='libpython$(VERSION).sl'
4041 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4042 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4045 LDLIBRARY
='libpython$(VERSION).so'
4046 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4047 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4050 LDLIBRARY
='libpython$(VERSION).so'
4051 BLDLIBRARY
='-L. -lpython$(VERSION)'
4052 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4055 else # shared is disabled
4056 case $ac_sys_system in
4058 BLDLIBRARY
='$(LIBRARY)'
4059 LDLIBRARY
='libpython$(VERSION).dll.a'
4064 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4065 echo "${ECHO_T}$LDLIBRARY" >&6; }
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4069 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4072 if test "${ac_cv_prog_RANLIB+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if test -n "$RANLIB"; then
4076 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir
=.
4083 for ac_exec_ext
in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 RANLIB
=$ac_cv_prog_RANLIB
4096 if test -n "$RANLIB"; then
4097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4098 echo "${ECHO_T}$RANLIB" >&6; }
4100 { echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6; }
4106 if test -z "$ac_cv_prog_RANLIB"; then
4107 ac_ct_RANLIB
=$RANLIB
4108 # Extract the first word of "ranlib", so it can be a program name with args.
4109 set dummy ranlib
; ac_word
=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$ac_ct_RANLIB"; then
4116 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4122 test -z "$as_dir" && as_dir
=.
4123 for ac_exec_ext
in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4136 if test -n "$ac_ct_RANLIB"; then
4137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 if test "x$ac_ct_RANLIB" = x
; then
4147 case $cross_compiling:$ac_tool_warned in
4149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4150 whose name does not start with the host triplet. If you think this
4151 configuration is useful to you, please write to autoconf@gnu.org." >&5
4152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4153 whose name does not start with the host triplet. If you think this
4154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4155 ac_tool_warned
=yes ;;
4157 RANLIB
=$ac_ct_RANLIB
4160 RANLIB
="$ac_cv_prog_RANLIB"
4164 for ac_prog
in ar aal
4166 # Extract the first word of "$ac_prog", so it can be a program name with args.
4167 set dummy
$ac_prog; ac_word
=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_AR+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 if test -n "$AR"; then
4174 ac_cv_prog_AR
="$AR" # Let the user override the test.
4176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir
=.
4181 for ac_exec_ext
in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_AR
="$ac_prog"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 if test -n "$AR"; then
4195 { echo "$as_me:$LINENO: result: $AR" >&5
4196 echo "${ECHO_T}$AR" >&6; }
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4203 test -n "$AR" && break
4205 test -n "$AR" || AR
="ar"
4209 # Extract the first word of "svnversion", so it can be a program name with args.
4210 set dummy svnversion
; ac_word
=$2
4211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4213 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 if test -n "$SVNVERSION"; then
4217 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_SVNVERSION
="found"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4237 SVNVERSION
=$ac_cv_prog_SVNVERSION
4238 if test -n "$SVNVERSION"; then
4239 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4240 echo "${ECHO_T}$SVNVERSION" >&6; }
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4247 if test $SVNVERSION = found
4249 SVNVERSION
="svnversion \$(srcdir)"
4251 SVNVERSION
="echo exported"
4256 # install -d does not work on BSDI or HP-UX
4257 if test -z "$INSTALL"
4259 INSTALL
="${srcdir}/install-sh -c"
4263 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4264 if test -f "$ac_dir/install-sh"; then
4266 ac_install_sh
="$ac_aux_dir/install-sh -c"
4268 elif test -f "$ac_dir/install.sh"; then
4270 ac_install_sh
="$ac_aux_dir/install.sh -c"
4272 elif test -f "$ac_dir/shtool"; then
4274 ac_install_sh
="$ac_aux_dir/shtool install -c"
4278 if test -z "$ac_aux_dir"; then
4279 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4280 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4281 { (exit 1); exit 1; }; }
4284 # These three variables are undocumented and unsupported,
4285 # and are intended to be withdrawn in a future Autoconf release.
4286 # They can cause serious problems if a builder's source tree is in a directory
4287 # whose full name contains unusual characters.
4288 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4289 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4290 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4293 # Find a good install program. We prefer a C program (faster),
4294 # so one script is as good as another. But avoid the broken or
4295 # incompatible versions:
4296 # SysV /etc/install, /usr/sbin/install
4297 # SunOS /usr/etc/install
4298 # IRIX /sbin/install
4300 # AmigaOS /C/install, which installs bootblocks on floppy discs
4301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4304 # OS/2's system install, which has a completely different semantic
4305 # ./install, which can be erroneously created by make from ./install.sh.
4306 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4308 if test -z "$INSTALL"; then
4309 if test "${ac_cv_path_install+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir
=.
4317 # Account for people who put trailing slashes in PATH elements.
4319 .
/ | .
// |
/cC
/* | \
4320 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4321 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4324 # OSF1 and SCO ODT 3.0 have their own names for install.
4325 # Don't use installbsd from OSF since it installs stuff as root
4327 for ac_prog
in ginstall scoinst
install; do
4328 for ac_exec_ext
in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4330 if test $ac_prog = install &&
4331 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4332 # AIX install. It has an incompatible calling convention.
4334 elif test $ac_prog = install &&
4335 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4336 # program-specific install script used by HP pwplus--don't use.
4339 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4352 if test "${ac_cv_path_install+set}" = set; then
4353 INSTALL
=$ac_cv_path_install
4355 # As a last resort, use the slow shell script. Don't cache a
4356 # value for INSTALL within a source directory, because that will
4357 # break other packages using the cache if that directory is
4358 # removed, or if the value is a relative name.
4359 INSTALL
=$ac_install_sh
4362 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4363 echo "${ECHO_T}$INSTALL" >&6; }
4365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4366 # It thinks the first close brace ends the variable substitution.
4367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4371 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4374 # Not every filesystem supports hard links
4376 if test -z "$LN" ; then
4377 case $ac_sys_system in
4379 CYGWIN
*) LN
="ln -s";;
4380 atheos
*) LN
="ln -s";;
4385 # Check for --with-pydebug
4386 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4387 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4389 # Check whether --with-pydebug was given.
4390 if test "${with_pydebug+set}" = set; then
4391 withval
=$with_pydebug;
4392 if test "$withval" != no
4395 cat >>confdefs.h
<<\_ACEOF
4399 { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; };
4402 else { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4411 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4412 # merged with this chunk of code?
4414 # Optimizer/debugger flags
4415 # ------------------------
4416 # (The following bit of code is complicated enough - please keep things
4417 # indented properly. Just pretend you're editing Python code. ;-)
4419 # There are two parallel sets of case statements below, one that checks to
4420 # see if OPT was set and one that does BASECFLAGS setting based upon
4421 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4424 # tweak OPT based on compiler and platform, only if the user didn't set
4425 # it on the command line
4431 if test "$CC" != 'g++' ; then
4432 STRICT_PROTO
="-Wstrict-prototypes"
4434 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4435 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4438 case $ac_cv_prog_cc_g in
4440 if test "$Py_DEBUG" = 'true' ; then
4441 # Optimization messes up debuggers, so turn it off for
4443 OPT
="-g -Wall $STRICT_PROTO"
4445 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4449 OPT
="-O3 -Wall $STRICT_PROTO"
4452 case $ac_sys_system in
4453 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4463 # The current (beta) Monterey compiler dies with optimizations
4464 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4465 case $ac_sys_system in
4474 # tweak BASECFLAGS based on compiler and platform
4477 # Python violates C99 rules, by casting between incompatible
4478 # pointer types. GCC may generate bad code as a result of that,
4479 # so use -fno-strict-aliasing if supported.
4480 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4481 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4483 CC
="$CC -fno-strict-aliasing"
4484 if test "$cross_compiling" = yes; then
4485 ac_cv_no_strict_aliasing_ok
=no
4487 cat >conftest.
$ac_ext <<_ACEOF
4490 cat confdefs.h
>>conftest.
$ac_ext
4491 cat >>conftest.
$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 int main() { return 0; }
4495 rm -f conftest
$ac_exeext
4496 if { (ac_try
="$ac_link"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4508 *) ac_try_echo
=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_no_strict_aliasing_ok
=yes
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.
$ac_ext >&5
4522 ac_cv_no_strict_aliasing_ok
=no
4524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4530 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4531 if test $ac_cv_no_strict_aliasing_ok = yes
4533 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4535 case $ac_sys_system in
4537 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4539 # is there any other compiler on Darwin besides gcc?
4541 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
4542 if test "${enable_universalsdk}"; then
4543 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4548 BASECFLAGS
="$BASECFLAGS -mieee"
4554 case $ac_sys_system in
4555 OpenUNIX
*|UnixWare
*)
4556 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4559 BASECFLAGS
="$BASECFLAGS -ieee -std"
4562 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4568 if test "$Py_DEBUG" = 'true'; then
4574 if test "$ac_arch_flags"
4576 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4579 # disable check for icc since it seems to pass, but generates a warning
4582 ac_cv_opt_olimit_ok
=no
4585 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4586 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4587 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 CC
="$CC -OPT:Olimit=0"
4592 if test "$cross_compiling" = yes; then
4593 ac_cv_opt_olimit_ok
=no
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 int main() { return 0; }
4603 rm -f conftest
$ac_exeext
4604 if { (ac_try
="$ac_link"
4606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4616 *) ac_try_echo
=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_opt_olimit_ok
=yes
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.
$ac_ext >&5
4630 ac_cv_opt_olimit_ok
=no
4632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4639 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4640 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4641 if test $ac_cv_opt_olimit_ok = yes; then
4642 case $ac_sys_system in
4643 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4644 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4649 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4653 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4654 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4655 if test "${ac_cv_olimit_ok+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 CC
="$CC -Olimit 1500"
4660 if test "$cross_compiling" = yes; then
4663 cat >conftest.
$ac_ext <<_ACEOF
4666 cat confdefs.h
>>conftest.
$ac_ext
4667 cat >>conftest.
$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 int main() { return 0; }
4671 rm -f conftest
$ac_exeext
4672 if { (ac_try
="$ac_link"
4674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_link") 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4682 { (case "(($ac_try" in
4683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4684 *) ac_try_echo
=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_try") 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4693 echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.
$ac_ext >&5
4700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4707 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4708 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4709 if test $ac_cv_olimit_ok = yes; then
4710 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4714 # Check whether GCC supports PyArg_ParseTuple format
4715 if test "$GCC" = "yes"
4717 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4718 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4720 CFLAGS
="$CFLAGS -Werror"
4721 cat >conftest.
$ac_ext <<_ACEOF
4724 cat confdefs.h
>>conftest.
$ac_ext
4725 cat >>conftest.
$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4728 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4738 rm -f conftest.
$ac_objext
4739 if { (ac_try
="$ac_compile"
4741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_compile") 2>conftest.er1
4747 grep -v '^ *+' conftest.er1 >conftest.err
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && {
4752 test -z "$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 } && test -s conftest.$ac_objext; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4760 { echo "$as_me:$LINENO: result: yes" >&5
4761 echo "${ECHO_T}yes" >&6; }
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 # On some compilers, pthreads are available without further options
4776 # (e.g. MacOS X). On some of these systems, the compiler will not
4777 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4778 # So we have to see first whether pthreads are available without
4779 # options before we can check whether -Kpthread improves anything.
4780 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4781 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4782 if test "${ac_cv_pthread_is_default+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test "$cross_compiling" = yes; then
4786 ac_cv_pthread_is_default=no
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4795 #include <pthread.h>
4797 void* routine(void* p){return NULL;}
4801 if(pthread_create(&p,NULL,routine,NULL)!=0)
4803 (void)pthread_detach(p);
4808 rm -f conftest$ac_exeext
4809 if { (ac_try="$ac_link"
4811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4812 *) ac_try_echo
=$ac_try;;
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_link") 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4819 { (case "(($ac_try" in
4820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_try") 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4829 ac_cv_pthread_is_default=yes
4834 echo "$as_me: program exited with status $ac_status" >&5
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_cv_pthread_is_default=no
4841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4848 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4849 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4852 if test $ac_cv_pthread_is_default = yes
4856 # -Kpthread, if available, provides the right #defines
4857 # and linker options to make pthread_create available
4858 # Some compilers won't report that they do not support -Kpthread,
4859 # so we need to run a program to see whether it really made the
4860 # function available.
4861 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4862 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4863 if test "${ac_cv_kpthread+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test "$cross_compiling" = yes; then
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 #include <pthread.h>
4880 void* routine(void* p){return NULL;}
4884 if(pthread_create(&p,NULL,routine,NULL)!=0)
4886 (void)pthread_detach(p);
4891 rm -f conftest$ac_exeext
4892 if { (ac_try="$ac_link"
4894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4895 *) ac_try_echo
=$ac_try;;
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_link") 2>&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4902 { (case "(($ac_try" in
4903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_try") 2>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4913 echo "$as_me: program exited with status $ac_status" >&5
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4927 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4928 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4931 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4933 # -Kthread, if available, provides the right #defines
4934 # and linker options to make pthread_create available
4935 # Some compilers won't report that they do not support -Kthread,
4936 # so we need to run a program to see whether it really made the
4937 # function available.
4938 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4939 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4940 if test "${ac_cv_kthread+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test "$cross_compiling" = yes; then
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 #include <pthread.h>
4957 void* routine(void* p){return NULL;}
4961 if(pthread_create(&p,NULL,routine,NULL)!=0)
4963 (void)pthread_detach(p);
4968 rm -f conftest$ac_exeext
4969 if { (ac_try="$ac_link"
4971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4972 *) ac_try_echo
=$ac_try;;
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_link") 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4979 { (case "(($ac_try" in
4980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4990 echo "$as_me: program exited with status $ac_status" >&5
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5004 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5005 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5008 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5010 # -pthread, if available, provides the right #defines
5011 # and linker options to make pthread_create available
5012 # Some compilers won't report that they do not support -pthread,
5013 # so we need to run a program to see whether it really made the
5014 # function available.
5015 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5016 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5017 if test "${ac_cv_thread+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if test "$cross_compiling" = yes; then
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 #include <pthread.h>
5034 void* routine(void* p){return NULL;}
5038 if(pthread_create(&p,NULL,routine,NULL)!=0)
5040 (void)pthread_detach(p);
5045 rm -f conftest$ac_exeext
5046 if { (ac_try="$ac_link"
5048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5049 *) ac_try_echo
=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_link") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5056 { (case "(($ac_try" in
5057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_try") 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5082 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5085 # If we have set a CC compiler flag for thread support then
5086 # check if it works for CXX, too.
5090 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5091 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5094 if test "$ac_cv_kpthread" = "yes"
5096 CXX="$CXX -Kpthread"
5097 ac_cv_cxx_thread=yes
5098 elif test "$ac_cv_kthread" = "yes"
5101 ac_cv_cxx_thread=yes
5102 elif test "$ac_cv_pthread" = "yes"
5105 ac_cv_cxx_thread=yes
5108 if test $ac_cv_cxx_thread = yes
5110 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5111 $CXX -c conftest.$ac_ext 2>&5
5112 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5113 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5115 ac_cv_cxx_thread=yes
5121 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5122 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5127 # checks for header files
5128 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5129 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5130 if test "${ac_cv_header_stdc+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5156 *) ac_try_echo
=$ac_try;;
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5161 grep -v '^ *+' conftest.er1
>conftest.err
5163 cat conftest.err
>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.
$ac_objext; then
5169 ac_cv_header_stdc
=yes
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.
$ac_ext >&5
5174 ac_cv_header_stdc
=no
5177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5179 if test $ac_cv_header_stdc = yes; then
5180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181 cat >conftest.
$ac_ext <<_ACEOF
5184 cat confdefs.h
>>conftest.
$ac_ext
5185 cat >>conftest.
$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 $EGREP "memchr" >/dev
/null
2>&1; then
5194 ac_cv_header_stdc
=no
5200 if test $ac_cv_header_stdc = yes; then
5201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202 cat >conftest.
$ac_ext <<_ACEOF
5205 cat confdefs.h
>>conftest.
$ac_ext
5206 cat >>conftest.
$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5212 $EGREP "free" >/dev
/null
2>&1; then
5215 ac_cv_header_stdc
=no
5221 if test $ac_cv_header_stdc = yes; then
5222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5223 if test "$cross_compiling" = yes; then
5226 cat >conftest.
$ac_ext <<_ACEOF
5229 cat confdefs.h
>>conftest.
$ac_ext
5230 cat >>conftest.
$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5234 #if ((' ' & 0x0FF) == 0x020)
5235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5238 # define ISLOWER(c) \
5239 (('a' <= (c) && (c) <= 'i') \
5240 || ('j' <= (c) && (c) <= 'r') \
5241 || ('s' <= (c) && (c) <= 'z'))
5242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5250 for (i = 0; i < 256; i++)
5251 if (XOR (islower (i), ISLOWER (i))
5252 || toupper (i) != TOUPPER (i))
5257 rm -f conftest
$ac_exeext
5258 if { (ac_try
="$ac_link"
5260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5268 { (case "(($ac_try" in
5269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5270 *) ac_try_echo
=$ac_try;;
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5279 echo "$as_me: program exited with status $ac_status" >&5
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.
$ac_ext >&5
5284 ac_cv_header_stdc
=no
5286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5293 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5294 if test $ac_cv_header_stdc = yes; then
5296 cat >>confdefs.h
<<\_ACEOF
5297 #define STDC_HEADERS 1
5302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5312 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5313 inttypes.h stdint.h unistd.h
5315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5329 #include <$ac_header>
5331 rm -f conftest.
$ac_objext
5332 if { (ac_try
="$ac_compile"
5334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && {
5345 test -z "$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 } && test -s conftest.$ac_objext; then
5348 eval "$as_ac_Header=yes"
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_res=`eval echo '${'$as_ac_Header'}'`
5359 { echo "$as_me:$LINENO: result: $ac_res" >&5
5360 echo "${ECHO_T}$ac_res" >&6; }
5361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5362 cat >>confdefs.h <<_ACEOF
5363 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5421 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5423 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5424 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5426 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
5428 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5430 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5431 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5432 bluetooth/bluetooth.h linux/tipc.h
5434 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 ac_res=`eval echo '${'$as_ac_Header'}'`
5442 { echo "$as_me:$LINENO: result: $ac_res" >&5
5443 echo "${ECHO_T}$ac_res" >&6; }
5445 # Is the header compilable?
5446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5448 cat >conftest.$ac_ext <<_ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5461 *) ac_try_echo
=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1
>conftest.err
5468 cat conftest.err
>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.
$ac_objext; then
5474 ac_header_compiler
=yes
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.
$ac_ext >&5
5479 ac_header_compiler
=no
5482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5484 echo "${ECHO_T}$ac_header_compiler" >&6; }
5486 # Is the header present?
5487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5489 cat >conftest.
$ac_ext <<_ACEOF
5492 cat confdefs.h
>>conftest.
$ac_ext
5493 cat >>conftest.
$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <$ac_header>
5497 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } >/dev/null && {
5510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5513 ac_header_preproc=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_header_preproc=no
5521 rm -f conftest.err conftest.$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5523 echo "${ECHO_T}$ac_header_preproc" >&6; }
5525 # So? What about this header?
5526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5532 ac_header_preproc=yes
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5548 ## ------------------------------------------------ ##
5549 ## Report this to http://www.python.org/python-bugs ##
5550 ## ------------------------------------------------ ##
5552 ) | sed "s/^/$as_me: WARNING: /" >&2
5555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 eval "$as_ac_Header=\$ac_header_preproc"
5562 ac_res=`eval echo '${'$as_ac_Header'}'`
5563 { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5583 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5584 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5585 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <sys/types.h>
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5611 *) ac_try_echo
=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1
>conftest.err
5618 cat conftest.err
>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.
$ac_objext; then
5624 eval "$as_ac_Header=yes"
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.
$ac_ext >&5
5629 eval "$as_ac_Header=no"
5632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5634 ac_res
=`eval echo '${'$as_ac_Header'}'`
5635 { echo "$as_me:$LINENO: result: $ac_res" >&5
5636 echo "${ECHO_T}$ac_res" >&6; }
5637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5638 cat >>confdefs.h
<<_ACEOF
5639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5642 ac_header_dirent
=$ac_hdr; break
5646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5647 if test $ac_header_dirent = dirent.h
; then
5648 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5650 if test "${ac_cv_search_opendir+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_func_search_save_LIBS
=$LIBS
5654 cat >conftest.
$ac_ext <<_ACEOF
5657 cat confdefs.h
>>conftest.
$ac_ext
5658 cat >>conftest.
$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5676 for ac_lib
in '' dir
; do
5677 if test -z "$ac_lib"; then
5678 ac_res
="none required"
5681 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5683 rm -f conftest.
$ac_objext conftest
$ac_exeext
5684 if { (ac_try
="$ac_link"
5686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_link") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest$ac_exeext &&
5700 $as_test_x conftest$ac_exeext; then
5701 ac_cv_search_opendir=$ac_res
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5711 if test "${ac_cv_search_opendir+set}" = set; then
5715 if test "${ac_cv_search_opendir+set}" = set; then
5718 ac_cv_search_opendir=no
5721 LIBS=$ac_func_search_save_LIBS
5723 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5724 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5725 ac_res=$ac_cv_search_opendir
5726 if test "$ac_res" != no; then
5727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5732 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5733 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5734 if test "${ac_cv_search_opendir+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_func_search_save_LIBS=$LIBS
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5745 /* Override any GCC internal prototype to avoid an error.
5746 Use char because int might match the return type of a GCC
5747 builtin and then its argument prototype would still apply. */
5760 for ac_lib in '' x; do
5761 if test -z "$ac_lib"; then
5762 ac_res="none required"
5765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5771 *) ac_try_echo
=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_link") 2>conftest.er1
5776 grep -v '^ *+' conftest.er1
>conftest.err
5778 cat conftest.err
>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && {
5781 test -z "$ac_c_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest
$ac_exeext &&
5784 $as_test_x conftest
$ac_exeext; then
5785 ac_cv_search_opendir
=$ac_res
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.
$ac_ext >&5
5793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5795 if test "${ac_cv_search_opendir+set}" = set; then
5799 if test "${ac_cv_search_opendir+set}" = set; then
5802 ac_cv_search_opendir
=no
5805 LIBS
=$ac_func_search_save_LIBS
5807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5809 ac_res
=$ac_cv_search_opendir
5810 if test "$ac_res" != no
; then
5811 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5817 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5818 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5819 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 cat >conftest.
$ac_ext <<_ACEOF
5825 cat confdefs.h
>>conftest.
$ac_ext
5826 cat >>conftest.
$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5832 return makedev(0, 0);
5837 rm -f conftest.
$ac_objext conftest
$ac_exeext
5838 if { (ac_try
="$ac_link"
5840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_link") 2>conftest.er1
5846 grep -v '^ *+' conftest.er1 >conftest.err
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && {
5851 test -z "$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 } && test -s conftest$ac_exeext &&
5854 $as_test_x conftest$ac_exeext; then
5855 ac_cv_header_sys_types_h_makedev=yes
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_cv_header_sys_types_h_makedev=no
5863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5864 conftest$ac_exeext conftest.$ac_ext
5867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5868 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5870 if test $ac_cv_header_sys_types_h_makedev = no; then
5871 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5872 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5873 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5878 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5880 # Is the header compilable?
5881 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5882 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 $ac_includes_default
5890 #include <sys/mkdev.h>
5892 rm -f conftest.$ac_objext
5893 if { (ac_try="$ac_compile"
5895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5896 *) ac_try_echo
=$ac_try;;
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_compile") 2>conftest.er1
5901 grep -v '^ *+' conftest.er1
>conftest.err
5903 cat conftest.err
>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_c_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest.
$ac_objext; then
5909 ac_header_compiler
=yes
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.
$ac_ext >&5
5914 ac_header_compiler
=no
5917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5919 echo "${ECHO_T}$ac_header_compiler" >&6; }
5921 # Is the header present?
5922 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5923 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5924 cat >conftest.
$ac_ext <<_ACEOF
5927 cat confdefs.h
>>conftest.
$ac_ext
5928 cat >>conftest.
$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/mkdev.h>
5932 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } >/dev/null && {
5945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5948 ac_header_preproc=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_preproc=no
5956 rm -f conftest.err conftest.$ac_ext
5957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5958 echo "${ECHO_T}$ac_header_preproc" >&6; }
5960 # So? What about this header?
5961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5964 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5967 ac_header_preproc=yes
5970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5971 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5973 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5977 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5981 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5983 ## ------------------------------------------------ ##
5984 ## Report this to http://www.python.org/python-bugs ##
5985 ## ------------------------------------------------ ##
5987 ) | sed "s/^/$as_me: WARNING: /" >&2
5990 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5991 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5992 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5998 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6001 if test $ac_cv_header_sys_mkdev_h = yes; then
6003 cat >>confdefs.h <<\_ACEOF
6004 #define MAJOR_IN_MKDEV 1
6011 if test $ac_cv_header_sys_mkdev_h = no; then
6012 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6013 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6014 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6015 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6019 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6021 # Is the header compilable?
6022 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6023 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 $ac_includes_default
6031 #include <sys/sysmacros.h>
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6037 *) ac_try_echo
=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1
>conftest.err
6044 cat conftest.err
>&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.
$ac_objext; then
6050 ac_header_compiler
=yes
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.
$ac_ext >&5
6055 ac_header_compiler
=no
6058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6060 echo "${ECHO_T}$ac_header_compiler" >&6; }
6062 # Is the header present?
6063 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6064 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6065 cat >conftest.
$ac_ext <<_ACEOF
6068 cat confdefs.h
>>conftest.
$ac_ext
6069 cat >>conftest.
$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #include <sys/sysmacros.h>
6073 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } >/dev/null && {
6086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6089 ac_header_preproc=yes
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_header_preproc=no
6097 rm -f conftest.err conftest.$ac_ext
6098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6099 echo "${ECHO_T}$ac_header_preproc" >&6; }
6101 # So? What about this header?
6102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6105 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6108 ac_header_preproc=yes
6111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6112 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6114 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6118 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6122 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6124 ## ------------------------------------------------ ##
6125 ## Report this to http://www.python.org/python-bugs ##
6126 ## ------------------------------------------------ ##
6128 ) | sed "s/^/$as_me: WARNING: /" >&2
6131 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6132 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6133 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6138 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6139 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6142 if test $ac_cv_header_sys_sysmacros_h = yes; then
6144 cat >>confdefs.h <<\_ACEOF
6145 #define MAJOR_IN_SYSMACROS 1
6155 # On Solaris, term.h requires curses.h
6157 for ac_header in term.h
6159 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 #ifdef HAVE_CURSES_H
6177 #include <$ac_header>
6179 rm -f conftest.$ac_objext
6180 if { (ac_try="$ac_compile"
6182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6183 *) ac_try_echo
=$ac_try;;
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_compile") 2>conftest.er1
6188 grep -v '^ *+' conftest.er1
>conftest.err
6190 cat conftest.err
>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest.
$ac_objext; then
6196 eval "$as_ac_Header=yes"
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.
$ac_ext >&5
6201 eval "$as_ac_Header=no"
6204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6206 ac_res
=`eval echo '${'$as_ac_Header'}'`
6207 { echo "$as_me:$LINENO: result: $ac_res" >&5
6208 echo "${ECHO_T}$ac_res" >&6; }
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h
<<_ACEOF
6211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 # On Linux, netlink.h requires asm/types.h
6221 for ac_header
in linux
/netlink.h
6223 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6226 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 cat >conftest.
$ac_ext <<_ACEOF
6232 cat confdefs.h
>>conftest.
$ac_ext
6233 cat >>conftest.
$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 #ifdef HAVE_ASM_TYPES_H
6237 #include <asm/types.h>
6239 #ifdef HAVE_SYS_SOCKET_H
6240 #include <sys/socket.h>
6244 #include <$ac_header>
6246 rm -f conftest.
$ac_objext
6247 if { (ac_try
="$ac_compile"
6249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compile") 2>conftest.er1
6255 grep -v '^ *+' conftest.er1 >conftest.err
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest.$ac_objext; then
6263 eval "$as_ac_Header=yes"
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 eval "$as_ac_Header=no"
6271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 ac_res=`eval echo '${'$as_ac_Header'}'`
6274 { echo "$as_me:$LINENO: result: $ac_res" >&5
6275 echo "${ECHO_T}$ac_res" >&6; }
6276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6286 # checks for typedefs
6288 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6289 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "clock_t" >/dev/null 2>&1; then
6305 cat >>confdefs.h <<\_ACEOF
6306 #define clock_t long
6313 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6314 echo "${ECHO_T}$was_it_defined" >&6; }
6316 # Check whether using makedev requires defining _OSF_SOURCE
6317 { echo "$as_me:$LINENO: checking for makedev" >&5
6318 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <sys/types.h>
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6338 *) ac_try_echo
=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>conftest.er1
6343 grep -v '^ *+' conftest.er1
>conftest.err
6345 cat conftest.err
>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_c_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest
$ac_exeext &&
6351 $as_test_x conftest
$ac_exeext; then
6352 ac_cv_has_makedev
=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.
$ac_ext >&5
6357 ac_cv_has_makedev
=no
6360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6361 conftest
$ac_exeext conftest.
$ac_ext
6362 if test "$ac_cv_has_makedev" = "no"; then
6363 # we didn't link, try if _OSF_SOURCE will allow us to link
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6371 #define _OSF_SOURCE 1
6372 #include <sys/types.h>
6382 rm -f conftest.
$ac_objext conftest
$ac_exeext
6383 if { (ac_try
="$ac_link"
6385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_link") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest$ac_exeext &&
6399 $as_test_x conftest$ac_exeext; then
6400 ac_cv_has_makedev=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_has_makedev=no
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409 conftest$ac_exeext conftest.$ac_ext
6410 if test "$ac_cv_has_makedev" = "yes"; then
6412 cat >>confdefs.h <<\_ACEOF
6413 #define _OSF_SOURCE 1
6418 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6419 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6420 if test "$ac_cv_has_makedev" = "yes"; then
6422 cat >>confdefs.h <<\_ACEOF
6423 #define HAVE_MAKEDEV 1
6428 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6429 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6430 # defined, but the compiler does not support pragma redefine_extname,
6431 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6432 # structures (such as rlimit64) without declaring them. As a
6433 # work-around, disable LFS on such configurations
6436 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6437 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6445 #define _LARGEFILE_SOURCE 1
6446 #define _FILE_OFFSET_BITS 64
6447 #include <sys/resource.h>
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6461 *) ac_try_echo
=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1
>conftest.err
6468 cat conftest.err
>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest.
$ac_objext; then
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.
$ac_ext >&5
6482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6483 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6484 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6485 if test "$sol_lfs_bug" = "yes"; then
6489 if test "$use_lfs" = "yes"; then
6490 # Two defines needed to enable largefile support on various platforms
6491 # These may affect some typedefs
6493 cat >>confdefs.h
<<\_ACEOF
6494 #define _LARGEFILE_SOURCE 1
6498 cat >>confdefs.h
<<\_ACEOF
6499 #define _FILE_OFFSET_BITS 64
6504 # Add some code to confdefs.h so that the test for off_t works on SCO
6505 cat >> confdefs.h
<<\EOF
6511 # Type availability checks
6512 { echo "$as_me:$LINENO: checking for mode_t" >&5
6513 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6514 if test "${ac_cv_type_mode_t+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 cat >conftest.
$ac_ext <<_ACEOF
6520 cat confdefs.h
>>conftest.
$ac_ext
6521 cat >>conftest.
$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 $ac_includes_default
6524 typedef mode_t ac__type_new_;
6528 if ((ac__type_new_ *) 0)
6530 if (sizeof (ac__type_new_))
6536 rm -f conftest.
$ac_objext
6537 if { (ac_try
="$ac_compile"
6539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_cv_type_mode_t=yes
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_cv_type_mode_t=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6564 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6565 if test $ac_cv_type_mode_t = yes; then
6569 cat >>confdefs.h <<_ACEOF
6575 { echo "$as_me:$LINENO: checking for off_t" >&5
6576 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6577 if test "${ac_cv_type_off_t+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 typedef off_t ac__type_new_;
6591 if ((ac__type_new_ *) 0)
6593 if (sizeof (ac__type_new_))
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6603 *) ac_try_echo
=$ac_try;;
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6608 grep -v '^ *+' conftest.er1
>conftest.err
6610 cat conftest.err
>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.
$ac_objext; then
6616 ac_cv_type_off_t
=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6627 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6628 if test $ac_cv_type_off_t = yes; then
6632 cat >>confdefs.h
<<_ACEOF
6633 #define off_t long int
6638 { echo "$as_me:$LINENO: checking for pid_t" >&5
6639 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6640 if test "${ac_cv_type_pid_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 cat >conftest.
$ac_ext <<_ACEOF
6646 cat confdefs.h
>>conftest.
$ac_ext
6647 cat >>conftest.
$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 $ac_includes_default
6650 typedef pid_t ac__type_new_;
6654 if ((ac__type_new_ *) 0)
6656 if (sizeof (ac__type_new_))
6662 rm -f conftest.
$ac_objext
6663 if { (ac_try
="$ac_compile"
6665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.$ac_objext; then
6679 ac_cv_type_pid_t=yes
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6690 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6691 if test $ac_cv_type_pid_t = yes; then
6695 cat >>confdefs.h <<_ACEOF
6701 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6702 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6703 if test "${ac_cv_type_signal+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6718 return *(signal (0, 0)) (0) == 1;
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6727 *) ac_try_echo
=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6732 grep -v '^ *+' conftest.er1
>conftest.err
6734 cat conftest.err
>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.
$ac_objext; then
6740 ac_cv_type_signal
=int
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.
$ac_ext >&5
6745 ac_cv_type_signal
=void
6748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6750 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6751 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6753 cat >>confdefs.h
<<_ACEOF
6754 #define RETSIGTYPE $ac_cv_type_signal
6758 { echo "$as_me:$LINENO: checking for size_t" >&5
6759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6760 if test "${ac_cv_type_size_t+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6770 typedef size_t ac__type_new_;
6774 if ((ac__type_new_ *) 0)
6776 if (sizeof (ac__type_new_))
6782 rm -f conftest.
$ac_objext
6783 if { (ac_try
="$ac_compile"
6785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6791 grep -v '^ *+' conftest.er1 >conftest.err
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_c_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest.$ac_objext; then
6799 ac_cv_type_size_t=yes
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_cv_type_size_t=no
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6811 if test $ac_cv_type_size_t = yes; then
6815 cat >>confdefs.h <<_ACEOF
6816 #define size_t unsigned int
6821 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6822 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6823 if test "${ac_cv_type_uid_t+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "uid_t" >/dev/null 2>&1; then
6837 ac_cv_type_uid_t=yes
6844 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6845 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6846 if test $ac_cv_type_uid_t = no; then
6848 cat >>confdefs.h <<\_ACEOF
6853 cat >>confdefs.h <<\_ACEOF
6859 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6860 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_ssize_t+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6871 typedef ssize_t ac__type_new_;
6875 if ((ac__type_new_ *) 0)
6877 if (sizeof (ac__type_new_))
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6887 *) ac_try_echo
=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.
$ac_objext; then
6900 ac_cv_type_ssize_t
=yes
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6905 ac_cv_type_ssize_t
=no
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6912 if test $ac_cv_type_ssize_t = yes; then
6914 cat >>confdefs.h
<<\_ACEOF
6915 #define HAVE_SSIZE_T 1
6921 # Sizes of various common basic types
6922 # ANSI C requires sizeof(char) == 1, so no need to check it
6923 { echo "$as_me:$LINENO: checking for int" >&5
6924 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6925 if test "${ac_cv_type_int+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 cat >conftest.
$ac_ext <<_ACEOF
6931 cat confdefs.h
>>conftest.
$ac_ext
6932 cat >>conftest.
$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6935 typedef int ac__type_new_;
6939 if ((ac__type_new_ *) 0)
6941 if (sizeof (ac__type_new_))
6947 rm -f conftest.
$ac_objext
6948 if { (ac_try
="$ac_compile"
6950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6956 grep -v '^ *+' conftest.er1 >conftest.err
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6975 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6977 # The cast to long int works around a bug in the HP C Compiler
6978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6979 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6980 # This bug is HP SR number 8606223364.
6981 { echo "$as_me:$LINENO: checking size of int" >&5
6982 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6983 if test "${ac_cv_sizeof_int+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 if test "$cross_compiling" = yes; then
6987 # Depending upon the size, compute the lo and hi bounds.
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef int ac__type_sizeof_;
6999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^
*+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7025 cat >conftest.$ac_ext <<_ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7032 typedef int ac__type_sizeof_;
7036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7052 grep -v '^
*+' conftest.er1 >conftest.err
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_hi=$ac_mid; break
7062 echo "$as_me: failed program was:" >&5
7063 sed 's
/^
/|
/' conftest.$ac_ext >&5
7065 ac_lo=`expr $ac_mid + 1`
7066 if test $ac_lo -le $ac_mid; then
7070 ac_mid=`expr 2 '*' $ac_mid + 1`
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 echo "$as_me: failed program was:" >&5
7077 sed 's
/^
/|
/' conftest.$ac_ext >&5
7079 cat >conftest.$ac_ext <<_ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 $ac_includes_default
7086 typedef int ac__type_sizeof_;
7090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7106 grep -v '^
*+' conftest.er1 >conftest.err
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7116 cat >conftest.$ac_ext <<_ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7123 typedef int ac__type_sizeof_;
7127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_compile") 2>conftest.er1
7143 grep -v '^
*+' conftest.er1 >conftest.err
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && {
7148 test -z "$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 } && test -s conftest.$ac_objext; then
7151 ac_lo=$ac_mid; break
7153 echo "$as_me: failed program was:" >&5
7154 sed 's
/^
/|
/' conftest.$ac_ext >&5
7156 ac_hi=`expr '(' $ac_mid ')' - 1`
7157 if test $ac_mid -le $ac_hi; then
7161 ac_mid=`expr 2 '*' $ac_mid`
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me: failed program was:" >&5
7168 sed 's
/^
/|
/' conftest.$ac_ext >&5
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 # Binary search between lo and hi bounds.
7178 while test "x$ac_lo" != "x$ac_hi"; do
7179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 typedef int ac__type_sizeof_;
7191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7207 grep -v '^
*+' conftest.er1 >conftest.err
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7217 echo "$as_me: failed program was:" >&5
7218 sed 's
/^
/|
/' conftest.$ac_ext >&5
7220 ac_lo=`expr '(' $ac_mid ')' + 1`
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 ?*) ac_cv_sizeof_int=$ac_lo;;
7227 '') if test "$ac_cv_type_int" = yes; then
7228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7229 See \`config.log' for more details.
" >&5
7230 echo "$as_me: error
: cannot compute sizeof
(int
)
7231 See \
`config.log' for more details." >&2;}
7232 { (exit 77); exit 77; }; }
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 typedef int ac__type_sizeof_;
7246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7254 FILE *f = fopen ("conftest.val", "w");
7257 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7259 long int i = longval ();
7260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7262 fprintf (f, "%ld\n", i);
7266 unsigned long int i = ulongval ();
7267 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7269 fprintf (f, "%lu\n", i);
7271 return ferror (f) || fclose (f) != 0;
7277 rm -f conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7281 *) ac_try_echo
=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7288 { (case "(($ac_try" in
7289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_try") 2>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_cv_sizeof_int=`cat conftest.val
`
7299 echo "$as_me: program exited with status $ac_status" >&5
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7304 if test "$ac_cv_type_int" = yes; then
7305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7306 See \`config.log
' for more details." >&5
7307 echo "$as_me: error: cannot compute sizeof (int)
7308 See \`config.log' for more details.
" >&2;}
7309 { (exit 77); exit 77; }; }
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7319 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7323 cat >>confdefs.h <<_ACEOF
7324 #define SIZEOF_INT $ac_cv_sizeof_int
7328 { echo "$as_me:$LINENO: checking
for long
" >&5
7329 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7330 if test "${ac_cv_type_long+set}" = set; then
7331 echo $ECHO_N "(cached
) $ECHO_C" >&6
7333 cat >conftest.$ac_ext <<_ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7340 typedef long ac__type_new_;
7344 if ((ac__type_new_ *) 0)
7346 if (sizeof (ac__type_new_))
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7371 echo "$as_me: failed program was
:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7380 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7382 # The cast to long int works around a bug in the HP C Compiler
7383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7385 # This bug is HP SR number 8606223364.
7386 { echo "$as_me:$LINENO: checking size of long
" >&5
7387 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7388 if test "${ac_cv_sizeof_long+set}" = set; then
7389 echo $ECHO_N "(cached
) $ECHO_C" >&6
7391 if test "$cross_compiling" = yes; then
7392 # Depending upon the size, compute the lo and hi bounds.
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 typedef long ac__type_sizeof_;
7404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 $ac_includes_default
7437 typedef long ac__type_sizeof_;
7441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 ac_hi=$ac_mid; break
7467 echo "$as_me: failed program was
:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_lo=`expr $ac_mid + 1`
7471 if test $ac_lo -le $ac_mid; then
7475 ac_mid=`expr 2 '*' $ac_mid + 1`
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 echo "$as_me: failed program was
:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 typedef long ac__type_sizeof_;
7495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 typedef long ac__type_sizeof_;
7532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_compile") 2>conftest.er1
7548 grep -v '^ *+' conftest.er1 >conftest.err
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7552 (exit $ac_status); } && {
7553 test -z "$ac_c_werror_flag" ||
7554 test ! -s conftest.err
7555 } && test -s conftest.$ac_objext; then
7556 ac_lo=$ac_mid; break
7558 echo "$as_me: failed program was
:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_hi=`expr '(' $ac_mid ')' - 1`
7562 if test $ac_mid -le $ac_hi; then
7566 ac_mid=`expr 2 '*' $ac_mid`
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 echo "$as_me: failed program was
:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 # Binary search between lo and hi bounds.
7583 while test "x
$ac_lo" != "x
$ac_hi"; do
7584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 $ac_includes_default
7592 typedef long ac__type_sizeof_;
7596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.$ac_objext; then
7622 echo "$as_me: failed program was
:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_lo=`expr '(' $ac_mid ')' + 1`
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 ?*) ac_cv_sizeof_long=$ac_lo;;
7632 '') if test "$ac_cv_type_long" = yes; then
7633 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7634 See \
`config.log' for more details." >&5
7635 echo "$as_me: error: cannot compute sizeof (long)
7636 See \`config.log
' for more details." >&2;}
7637 { (exit 77); exit 77; }; }
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7650 typedef long ac__type_sizeof_;
7651 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7652 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7659 FILE *f = fopen ("conftest.val", "w");
7662 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7664 long int i = longval ();
7665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7667 fprintf (f, "%ld\n", i);
7671 unsigned long int i = ulongval ();
7672 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7674 fprintf (f, "%lu\n", i);
7676 return ferror (f) || fclose (f) != 0;
7682 rm -f conftest$ac_exeext
7683 if { (ac_try="$ac_link"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_link") 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_sizeof_long=`cat conftest.val`
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 sed 's
/^
/|
/' conftest.$ac_ext >&5
7709 if test "$ac_cv_type_long" = yes; then
7710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7711 See \`config.log' for more details.
" >&5
7712 echo "$as_me: error
: cannot compute sizeof
(long
)
7713 See \
`config.log' for more details." >&2;}
7714 { (exit 77); exit 77; }; }
7719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7723 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7728 cat >>confdefs.h <<_ACEOF
7729 #define SIZEOF_LONG $ac_cv_sizeof_long
7733 { echo "$as_me:$LINENO: checking for void *" >&5
7734 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7735 if test "${ac_cv_type_void_p+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 $ac_includes_default
7745 typedef void * ac__type_new_;
7749 if ((ac__type_new_ *) 0)
7751 if (sizeof (ac__type_new_))
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7761 *) ac_try_echo
=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1
>conftest.err
7768 cat conftest.err
>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.
$ac_objext; then
7774 ac_cv_type_void_p
=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.
$ac_ext >&5
7779 ac_cv_type_void_p
=no
7782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7785 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7787 # The cast to long int works around a bug in the HP C Compiler
7788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7790 # This bug is HP SR number 8606223364.
7791 { echo "$as_me:$LINENO: checking size of void *" >&5
7792 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7793 if test "${ac_cv_sizeof_void_p+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 if test "$cross_compiling" = yes; then
7797 # Depending upon the size, compute the lo and hi bounds.
7798 cat >conftest.
$ac_ext <<_ACEOF
7801 cat confdefs.h
>>conftest.
$ac_ext
7802 cat >>conftest.
$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804 $ac_includes_default
7805 typedef void * ac__type_sizeof_;
7809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7816 rm -f conftest.
$ac_objext
7817 if { (ac_try
="$ac_compile"
7819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7825 grep -v '^ *+' conftest.er1 >conftest.err
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 typedef void * ac__type_sizeof_;
7846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7857 *) ac_try_echo
=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1
>conftest.err
7864 cat conftest.err
>&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest.
$ac_objext; then
7870 ac_hi
=$ac_mid; break
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.
$ac_ext >&5
7875 ac_lo
=`expr $ac_mid + 1`
7876 if test $ac_lo -le $ac_mid; then
7880 ac_mid
=`expr 2 '*' $ac_mid + 1`
7883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.
$ac_ext >&5
7889 cat >conftest.
$ac_ext <<_ACEOF
7892 cat confdefs.h
>>conftest.
$ac_ext
7893 cat >>conftest.
$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 typedef void * ac__type_sizeof_;
7900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7907 rm -f conftest.
$ac_objext
7908 if { (ac_try
="$ac_compile"
7910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 $ac_includes_default
7933 typedef void * ac__type_sizeof_;
7937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7948 *) ac_try_echo
=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1
>conftest.err
7955 cat conftest.err
>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.
$ac_objext; then
7961 ac_lo
=$ac_mid; break
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.
$ac_ext >&5
7966 ac_hi
=`expr '(' $ac_mid ')' - 1`
7967 if test $ac_mid -le $ac_hi; then
7971 ac_mid
=`expr 2 '*' $ac_mid`
7974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.
$ac_ext >&5
7983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7987 # Binary search between lo and hi bounds.
7988 while test "x$ac_lo" != "x$ac_hi"; do
7989 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7990 cat >conftest.
$ac_ext <<_ACEOF
7993 cat confdefs.h
>>conftest.
$ac_ext
7994 cat >>conftest.
$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 $ac_includes_default
7997 typedef void * ac__type_sizeof_;
8001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8008 rm -f conftest.
$ac_objext
8009 if { (ac_try
="$ac_compile"
8011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_compile") 2>conftest.er1
8017 grep -v '^ *+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
8024 } && test -s conftest.$ac_objext; then
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_lo=`expr '(' $ac_mid ')' + 1`
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8037 '') if test "$ac_cv_type_void_p" = yes; then
8038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8039 See \`config.log
' for more details." >&5
8040 echo "$as_me: error: cannot compute sizeof (void *)
8041 See \`config.log' for more details.
" >&2;}
8042 { (exit 77); exit 77; }; }
8044 ac_cv_sizeof_void_p=0
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 $ac_includes_default
8055 typedef void * ac__type_sizeof_;
8056 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8057 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8064 FILE *f = fopen ("conftest.val
", "w
");
8067 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8069 long int i = longval ();
8070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8072 fprintf (f, "%ld
\n", i);
8076 unsigned long int i = ulongval ();
8077 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8079 fprintf (f, "%lu
\n", i);
8081 return ferror (f) || fclose (f) != 0;
8087 rm -f conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>&5
8096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_try") 2>&5
8105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_sizeof_void_p=`cat conftest.val`
8109 echo "$as_me: program exited with status
$ac_status" >&5
8110 echo "$as_me: failed program was
:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8114 if test "$ac_cv_type_void_p" = yes; then
8115 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8116 See \
`config.log' for more details." >&5
8117 echo "$as_me: error: cannot compute sizeof (void *)
8118 See \`config.log
' for more details." >&2;}
8119 { (exit 77); exit 77; }; }
8121 ac_cv_sizeof_void_p=0
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8128 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8129 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8133 cat >>confdefs.h <<_ACEOF
8134 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8138 { echo "$as_me:$LINENO: checking for short" >&5
8139 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8140 if test "${ac_cv_type_short+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8150 typedef short ac__type_new_;
8154 if ((ac__type_new_ *) 0)
8156 if (sizeof (ac__type_new_))
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8171 grep -v '^
*+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_type_short=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's
/^
/|
/' conftest.$ac_ext >&5
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8190 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8192 # The cast to long int works around a bug in the HP C Compiler
8193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8195 # This bug is HP SR number 8606223364.
8196 { echo "$as_me:$LINENO: checking size of short" >&5
8197 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8198 if test "${ac_cv_sizeof_short+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 if test "$cross_compiling" = yes; then
8202 # Depending upon the size, compute the lo and hi bounds.
8203 cat >conftest.
$ac_ext <<_ACEOF
8206 cat confdefs.h
>>conftest.
$ac_ext
8207 cat >>conftest.
$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 typedef short ac__type_sizeof_;
8214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8221 rm -f conftest.
$ac_objext
8222 if { (ac_try
="$ac_compile"
8224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 typedef short ac__type_sizeof_;
8251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8262 *) ac_try_echo
=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_compile") 2>conftest.er1
8267 grep -v '^ *+' conftest.er1
>conftest.err
8269 cat conftest.err
>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest.
$ac_objext; then
8275 ac_hi
=$ac_mid; break
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.
$ac_ext >&5
8280 ac_lo
=`expr $ac_mid + 1`
8281 if test $ac_lo -le $ac_mid; then
8285 ac_mid
=`expr 2 '*' $ac_mid + 1`
8288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.
$ac_ext >&5
8294 cat >conftest.
$ac_ext <<_ACEOF
8297 cat confdefs.h
>>conftest.
$ac_ext
8298 cat >>conftest.
$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 $ac_includes_default
8301 typedef short ac__type_sizeof_;
8305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8312 rm -f conftest.
$ac_objext
8313 if { (ac_try
="$ac_compile"
8315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8331 cat >conftest.$ac_ext <<_ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 typedef short ac__type_sizeof_;
8342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8353 *) ac_try_echo
=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1
>conftest.err
8360 cat conftest.err
>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.
$ac_objext; then
8366 ac_lo
=$ac_mid; break
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.
$ac_ext >&5
8371 ac_hi
=`expr '(' $ac_mid ')' - 1`
8372 if test $ac_mid -le $ac_hi; then
8376 ac_mid
=`expr 2 '*' $ac_mid`
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.
$ac_ext >&5
8388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 # Binary search between lo and hi bounds.
8393 while test "x$ac_lo" != "x$ac_hi"; do
8394 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8395 cat >conftest.
$ac_ext <<_ACEOF
8398 cat confdefs.h
>>conftest.
$ac_ext
8399 cat >>conftest.
$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 typedef short ac__type_sizeof_;
8406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8413 rm -f conftest.
$ac_objext
8414 if { (ac_try
="$ac_compile"
8416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_lo=`expr '(' $ac_mid ')' + 1`
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 ?*) ac_cv_sizeof_short=$ac_lo;;
8442 '') if test "$ac_cv_type_short" = yes; then
8443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8444 See \`config.log
' for more details." >&5
8445 echo "$as_me: error: cannot compute sizeof (short)
8446 See \`config.log' for more details.
" >&2;}
8447 { (exit 77); exit 77; }; }
8449 ac_cv_sizeof_short=0
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 typedef short ac__type_sizeof_;
8461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8469 FILE *f = fopen ("conftest.val
", "w
");
8472 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8474 long int i = longval ();
8475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8477 fprintf (f, "%ld
\n", i);
8481 unsigned long int i = ulongval ();
8482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8484 fprintf (f, "%lu
\n", i);
8486 return ferror (f) || fclose (f) != 0;
8492 rm -f conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>&5
8501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_sizeof_short=`cat conftest.val`
8514 echo "$as_me: program exited with status
$ac_status" >&5
8515 echo "$as_me: failed program was
:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8519 if test "$ac_cv_type_short" = yes; then
8520 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8521 See \
`config.log' for more details." >&5
8522 echo "$as_me: error: cannot compute sizeof (short)
8523 See \`config.log
' for more details." >&2;}
8524 { (exit 77); exit 77; }; }
8526 ac_cv_sizeof_short=0
8529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8534 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8538 cat >>confdefs.h <<_ACEOF
8539 #define SIZEOF_SHORT $ac_cv_sizeof_short
8543 { echo "$as_me:$LINENO: checking for float" >&5
8544 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8545 if test "${ac_cv_type_float+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 typedef float ac__type_new_;
8559 if ((ac__type_new_ *) 0)
8561 if (sizeof (ac__type_new_))
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8576 grep -v '^
*+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest.$ac_objext; then
8584 ac_cv_type_float=yes
8586 echo "$as_me: failed program was:" >&5
8587 sed 's
/^
/|
/' conftest.$ac_ext >&5
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8595 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8597 # The cast to long int works around a bug in the HP C Compiler
8598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8600 # This bug is HP SR number 8606223364.
8601 { echo "$as_me:$LINENO: checking size of float" >&5
8602 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8603 if test "${ac_cv_sizeof_float+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 if test "$cross_compiling" = yes; then
8607 # Depending upon the size, compute the lo and hi bounds.
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 typedef float ac__type_sizeof_;
8619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8626 rm -f conftest.
$ac_objext
8627 if { (ac_try
="$ac_compile"
8629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 typedef float ac__type_sizeof_;
8656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8663 rm -f conftest.$ac_objext
8664 if { (ac_try="$ac_compile"
8666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8667 *) ac_try_echo
=$ac_try;;
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_compile") 2>conftest.er1
8672 grep -v '^ *+' conftest.er1
>conftest.err
8674 cat conftest.err
>&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest.
$ac_objext; then
8680 ac_hi
=$ac_mid; break
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.
$ac_ext >&5
8685 ac_lo
=`expr $ac_mid + 1`
8686 if test $ac_lo -le $ac_mid; then
8690 ac_mid
=`expr 2 '*' $ac_mid + 1`
8693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.
$ac_ext >&5
8699 cat >conftest.
$ac_ext <<_ACEOF
8702 cat confdefs.h
>>conftest.
$ac_ext
8703 cat >>conftest.
$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8706 typedef float ac__type_sizeof_;
8710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8717 rm -f conftest.
$ac_objext
8718 if { (ac_try
="$ac_compile"
8720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 typedef float ac__type_sizeof_;
8747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8758 *) ac_try_echo
=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1
>conftest.err
8765 cat conftest.err
>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.
$ac_objext; then
8771 ac_lo
=$ac_mid; break
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.
$ac_ext >&5
8776 ac_hi
=`expr '(' $ac_mid ')' - 1`
8777 if test $ac_mid -le $ac_hi; then
8781 ac_mid
=`expr 2 '*' $ac_mid`
8784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.
$ac_ext >&5
8793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8797 # Binary search between lo and hi bounds.
8798 while test "x$ac_lo" != "x$ac_hi"; do
8799 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8800 cat >conftest.
$ac_ext <<_ACEOF
8803 cat confdefs.h
>>conftest.
$ac_ext
8804 cat >>conftest.
$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8807 typedef float ac__type_sizeof_;
8811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8818 rm -f conftest.
$ac_objext
8819 if { (ac_try
="$ac_compile"
8821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8827 grep -v '^ *+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_lo=`expr '(' $ac_mid ')' + 1`
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 ?*) ac_cv_sizeof_float=$ac_lo;;
8847 '') if test "$ac_cv_type_float" = yes; then
8848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8849 See \`config.log
' for more details." >&5
8850 echo "$as_me: error: cannot compute sizeof (float)
8851 See \`config.log' for more details.
" >&2;}
8852 { (exit 77); exit 77; }; }
8854 ac_cv_sizeof_float=0
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8865 typedef float ac__type_sizeof_;
8866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8874 FILE *f = fopen ("conftest.val
", "w
");
8877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8879 long int i = longval ();
8880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8882 fprintf (f, "%ld
\n", i);
8886 unsigned long int i = ulongval ();
8887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8889 fprintf (f, "%lu
\n", i);
8891 return ferror (f) || fclose (f) != 0;
8897 rm -f conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_link") 2>&5
8906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_sizeof_float=`cat conftest.val`
8919 echo "$as_me: program exited with status
$ac_status" >&5
8920 echo "$as_me: failed program was
:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8924 if test "$ac_cv_type_float" = yes; then
8925 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8926 See \
`config.log' for more details." >&5
8927 echo "$as_me: error: cannot compute sizeof (float)
8928 See \`config.log
' for more details." >&2;}
8929 { (exit 77); exit 77; }; }
8931 ac_cv_sizeof_float=0
8934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8939 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8943 cat >>confdefs.h <<_ACEOF
8944 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8948 { echo "$as_me:$LINENO: checking for double" >&5
8949 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8950 if test "${ac_cv_type_double+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.$ac_ext <<_ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 $ac_includes_default
8960 typedef double ac__type_new_;
8964 if ((ac__type_new_ *) 0)
8966 if (sizeof (ac__type_new_))
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8981 grep -v '^
*+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_cv_type_double=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's
/^
/|
/' conftest.$ac_ext >&5
8994 ac_cv_type_double=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9000 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9002 # The cast to long int works around a bug in the HP C Compiler
9003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9005 # This bug is HP SR number 8606223364.
9006 { echo "$as_me:$LINENO: checking size of double" >&5
9007 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9008 if test "${ac_cv_sizeof_double+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 if test "$cross_compiling" = yes; then
9012 # Depending upon the size, compute the lo and hi bounds.
9013 cat >conftest.
$ac_ext <<_ACEOF
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9020 typedef double ac__type_sizeof_;
9024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9031 rm -f conftest.
$ac_objext
9032 if { (ac_try
="$ac_compile"
9034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_compile") 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest.$ac_objext; then
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 $ac_includes_default
9057 typedef double ac__type_sizeof_;
9061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9068 rm -f conftest.$ac_objext
9069 if { (ac_try="$ac_compile"
9071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9072 *) ac_try_echo
=$ac_try;;
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_compile") 2>conftest.er1
9077 grep -v '^ *+' conftest.er1
>conftest.err
9079 cat conftest.err
>&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest.
$ac_objext; then
9085 ac_hi
=$ac_mid; break
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.
$ac_ext >&5
9090 ac_lo
=`expr $ac_mid + 1`
9091 if test $ac_lo -le $ac_mid; then
9095 ac_mid
=`expr 2 '*' $ac_mid + 1`
9098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.
$ac_ext >&5
9104 cat >conftest.
$ac_ext <<_ACEOF
9107 cat confdefs.h
>>conftest.
$ac_ext
9108 cat >>conftest.
$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 $ac_includes_default
9111 typedef double ac__type_sizeof_;
9115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9122 rm -f conftest.
$ac_objext
9123 if { (ac_try
="$ac_compile"
9125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_compile") 2>conftest.er1
9131 grep -v '^ *+' conftest.er1 >conftest.err
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest.$ac_objext; then
9141 cat >conftest.$ac_ext <<_ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 $ac_includes_default
9148 typedef double ac__type_sizeof_;
9152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9163 *) ac_try_echo
=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1
>conftest.err
9170 cat conftest.err
>&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.
$ac_objext; then
9176 ac_lo
=$ac_mid; break
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.
$ac_ext >&5
9181 ac_hi
=`expr '(' $ac_mid ')' - 1`
9182 if test $ac_mid -le $ac_hi; then
9186 ac_mid
=`expr 2 '*' $ac_mid`
9189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.
$ac_ext >&5
9198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9202 # Binary search between lo and hi bounds.
9203 while test "x$ac_lo" != "x$ac_hi"; do
9204 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9205 cat >conftest.
$ac_ext <<_ACEOF
9208 cat confdefs.h
>>conftest.
$ac_ext
9209 cat >>conftest.
$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 typedef double ac__type_sizeof_;
9216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9223 rm -f conftest.
$ac_objext
9224 if { (ac_try
="$ac_compile"
9226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_lo=`expr '(' $ac_mid ')' + 1`
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 ?*) ac_cv_sizeof_double=$ac_lo;;
9252 '') if test "$ac_cv_type_double" = yes; then
9253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9254 See \`config.log
' for more details." >&5
9255 echo "$as_me: error: cannot compute sizeof (double)
9256 See \`config.log' for more details.
" >&2;}
9257 { (exit 77); exit 77; }; }
9259 ac_cv_sizeof_double=0
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 typedef double ac__type_sizeof_;
9271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9279 FILE *f = fopen ("conftest.val
", "w
");
9282 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9284 long int i = longval ();
9285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9287 fprintf (f, "%ld
\n", i);
9291 unsigned long int i = ulongval ();
9292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9294 fprintf (f, "%lu
\n", i);
9296 return ferror (f) || fclose (f) != 0;
9302 rm -f conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>&5
9311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
9320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_sizeof_double=`cat conftest.val`
9324 echo "$as_me: program exited with status
$ac_status" >&5
9325 echo "$as_me: failed program was
:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9329 if test "$ac_cv_type_double" = yes; then
9330 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9331 See \
`config.log' for more details." >&5
9332 echo "$as_me: error: cannot compute sizeof (double)
9333 See \`config.log
' for more details." >&2;}
9334 { (exit 77); exit 77; }; }
9336 ac_cv_sizeof_double=0
9339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9344 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9348 cat >>confdefs.h <<_ACEOF
9349 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9353 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9354 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9355 if test "${ac_cv_type_fpos_t+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 $ac_includes_default
9365 typedef fpos_t ac__type_new_;
9369 if ((ac__type_new_ *) 0)
9371 if (sizeof (ac__type_new_))
9377 rm -f conftest.$ac_objext
9378 if { (ac_try="$ac_compile"
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_compile") 2>conftest.er1
9386 grep -v '^
*+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && {
9391 test -z "$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9393 } && test -s conftest.$ac_objext; then
9394 ac_cv_type_fpos_t=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's
/^
/|
/' conftest.$ac_ext >&5
9399 ac_cv_type_fpos_t=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9405 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9407 # The cast to long int works around a bug in the HP C Compiler
9408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9410 # This bug is HP SR number 8606223364.
9411 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9412 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9413 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 if test "$cross_compiling" = yes; then
9417 # Depending upon the size, compute the lo and hi bounds.
9418 cat >conftest.
$ac_ext <<_ACEOF
9421 cat confdefs.h
>>conftest.
$ac_ext
9422 cat >>conftest.
$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9425 typedef fpos_t ac__type_sizeof_;
9429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9436 rm -f conftest.
$ac_objext
9437 if { (ac_try
="$ac_compile"
9439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 typedef fpos_t ac__type_sizeof_;
9466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9473 rm -f conftest.$ac_objext
9474 if { (ac_try="$ac_compile"
9476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9477 *) ac_try_echo
=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.
$ac_objext; then
9490 ac_hi
=$ac_mid; break
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.
$ac_ext >&5
9495 ac_lo
=`expr $ac_mid + 1`
9496 if test $ac_lo -le $ac_mid; then
9500 ac_mid
=`expr 2 '*' $ac_mid + 1`
9503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.
$ac_ext >&5
9509 cat >conftest.
$ac_ext <<_ACEOF
9512 cat confdefs.h
>>conftest.
$ac_ext
9513 cat >>conftest.
$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9516 typedef fpos_t ac__type_sizeof_;
9520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9527 rm -f conftest.
$ac_objext
9528 if { (ac_try
="$ac_compile"
9530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9536 grep -v '^ *+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef fpos_t ac__type_sizeof_;
9557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9564 rm -f conftest.$ac_objext
9565 if { (ac_try="$ac_compile"
9567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9568 *) ac_try_echo
=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_compile") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1
>conftest.err
9575 cat conftest.err
>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest.
$ac_objext; then
9581 ac_lo
=$ac_mid; break
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.
$ac_ext >&5
9586 ac_hi
=`expr '(' $ac_mid ')' - 1`
9587 if test $ac_mid -le $ac_hi; then
9591 ac_mid
=`expr 2 '*' $ac_mid`
9594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.
$ac_ext >&5
9603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9607 # Binary search between lo and hi bounds.
9608 while test "x$ac_lo" != "x$ac_hi"; do
9609 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9610 cat >conftest.
$ac_ext <<_ACEOF
9613 cat confdefs.h
>>conftest.
$ac_ext
9614 cat >>conftest.
$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 typedef fpos_t ac__type_sizeof_;
9621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9628 rm -f conftest.
$ac_objext
9629 if { (ac_try
="$ac_compile"
9631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_lo=`expr '(' $ac_mid ')' + 1`
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9657 '') if test "$ac_cv_type_fpos_t" = yes; then
9658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9659 See \`config.log
' for more details." >&5
9660 echo "$as_me: error: cannot compute sizeof (fpos_t)
9661 See \`config.log' for more details.
" >&2;}
9662 { (exit 77); exit 77; }; }
9664 ac_cv_sizeof_fpos_t=0
9668 cat >conftest.$ac_ext <<_ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 $ac_includes_default
9675 typedef fpos_t ac__type_sizeof_;
9676 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9677 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9684 FILE *f = fopen ("conftest.val
", "w
");
9687 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9689 long int i = longval ();
9690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9692 fprintf (f, "%ld
\n", i);
9696 unsigned long int i = ulongval ();
9697 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9699 fprintf (f, "%lu
\n", i);
9701 return ferror (f) || fclose (f) != 0;
9707 rm -f conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_link") 2>&5
9716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_sizeof_fpos_t=`cat conftest.val`
9729 echo "$as_me: program exited with status
$ac_status" >&5
9730 echo "$as_me: failed program was
:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9734 if test "$ac_cv_type_fpos_t" = yes; then
9735 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9736 See \
`config.log' for more details." >&5
9737 echo "$as_me: error: cannot compute sizeof (fpos_t)
9738 See \`config.log
' for more details." >&2;}
9739 { (exit 77); exit 77; }; }
9741 ac_cv_sizeof_fpos_t=0
9744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9748 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9749 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9753 cat >>confdefs.h <<_ACEOF
9754 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9758 { echo "$as_me:$LINENO: checking for size_t" >&5
9759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9760 if test "${ac_cv_type_size_t+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 typedef size_t ac__type_new_;
9774 if ((ac__type_new_ *) 0)
9776 if (sizeof (ac__type_new_))
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_compile") 2>conftest.er1
9791 grep -v '^
*+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest.$ac_objext; then
9799 ac_cv_type_size_t=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's
/^
/|
/' conftest.$ac_ext >&5
9804 ac_cv_type_size_t=no
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9812 # The cast to long int works around a bug in the HP C Compiler
9813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9815 # This bug is HP SR number 8606223364.
9816 { echo "$as_me:$LINENO: checking size of size_t" >&5
9817 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9818 if test "${ac_cv_sizeof_size_t+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 if test "$cross_compiling" = yes; then
9822 # Depending upon the size, compute the lo and hi bounds.
9823 cat >conftest.
$ac_ext <<_ACEOF
9826 cat confdefs.h
>>conftest.
$ac_ext
9827 cat >>conftest.
$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9830 typedef size_t ac__type_sizeof_;
9834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9841 rm -f conftest.
$ac_objext
9842 if { (ac_try
="$ac_compile"
9844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_compile") 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest.$ac_objext; then
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 $ac_includes_default
9867 typedef size_t ac__type_sizeof_;
9871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9878 rm -f conftest.$ac_objext
9879 if { (ac_try="$ac_compile"
9881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9882 *) ac_try_echo
=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_compile") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1
>conftest.err
9889 cat conftest.err
>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest.
$ac_objext; then
9895 ac_hi
=$ac_mid; break
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.
$ac_ext >&5
9900 ac_lo
=`expr $ac_mid + 1`
9901 if test $ac_lo -le $ac_mid; then
9905 ac_mid
=`expr 2 '*' $ac_mid + 1`
9908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 cat >conftest.
$ac_ext <<_ACEOF
9917 cat confdefs.h
>>conftest.
$ac_ext
9918 cat >>conftest.
$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9921 typedef size_t ac__type_sizeof_;
9925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9932 rm -f conftest.
$ac_objext
9933 if { (ac_try
="$ac_compile"
9935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 $ac_includes_default
9958 typedef size_t ac__type_sizeof_;
9962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9969 rm -f conftest.$ac_objext
9970 if { (ac_try="$ac_compile"
9972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9973 *) ac_try_echo
=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9978 grep -v '^ *+' conftest.er1
>conftest.err
9980 cat conftest.err
>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.
$ac_objext; then
9986 ac_lo
=$ac_mid; break
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9991 ac_hi
=`expr '(' $ac_mid ')' - 1`
9992 if test $ac_mid -le $ac_hi; then
9996 ac_mid
=`expr 2 '*' $ac_mid`
9999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.
$ac_ext >&5
10008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10012 # Binary search between lo and hi bounds.
10013 while test "x$ac_lo" != "x$ac_hi"; do
10014 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10015 cat >conftest.
$ac_ext <<_ACEOF
10018 cat confdefs.h
>>conftest.
$ac_ext
10019 cat >>conftest.
$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $ac_includes_default
10022 typedef size_t ac__type_sizeof_;
10026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10033 rm -f conftest.
$ac_objext
10034 if { (ac_try
="$ac_compile"
10035 case "(($ac_try" in
10036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_compile") 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest.$ac_objext; then
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_lo=`expr '(' $ac_mid ')' + 1`
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10062 '') if test "$ac_cv_type_size_t" = yes; then
10063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10064 See \`config.log
' for more details." >&5
10065 echo "$as_me: error: cannot compute sizeof (size_t)
10066 See \`config.log' for more details.
" >&2;}
10067 { (exit 77); exit 77; }; }
10069 ac_cv_sizeof_size_t=0
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 $ac_includes_default
10080 typedef size_t ac__type_sizeof_;
10081 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10082 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10084 #include <stdlib.h>
10089 FILE *f = fopen ("conftest.val
", "w
");
10092 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10094 long int i = longval ();
10095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10097 fprintf (f, "%ld
\n", i);
10101 unsigned long int i = ulongval ();
10102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10104 fprintf (f, "%lu
\n", i);
10106 return ferror (f) || fclose (f) != 0;
10112 rm -f conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>&5
10121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_sizeof_size_t=`cat conftest.val`
10134 echo "$as_me: program exited with status
$ac_status" >&5
10135 echo "$as_me: failed program was
:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ( exit $ac_status )
10139 if test "$ac_cv_type_size_t" = yes; then
10140 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10141 See \
`config.log' for more details." >&5
10142 echo "$as_me: error: cannot compute sizeof (size_t)
10143 See \`config.log
' for more details." >&2;}
10144 { (exit 77); exit 77; }; }
10146 ac_cv_sizeof_size_t=0
10149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10153 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10154 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10158 cat >>confdefs.h <<_ACEOF
10159 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10164 { echo "$as_me:$LINENO: checking for long long support" >&5
10165 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10167 cat >conftest.$ac_ext <<_ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10177 long long x; x = (long long)0;
10182 rm -f conftest.$ac_objext
10183 if { (ac_try="$ac_compile"
10184 case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_compile") 2>conftest.er1
10191 grep -v '^
*+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest.$ac_objext; then
10201 cat >>confdefs.h <<\_ACEOF
10202 #define HAVE_LONG_LONG 1
10208 echo "$as_me: failed program was:" >&5
10209 sed 's
/^
/|
/' conftest.$ac_ext >&5
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10216 echo "${ECHO_T}$have_long_long" >&6; }
10217 if test "$have_long_long" = yes ; then
10218 { echo "$as_me:$LINENO: checking for long long" >&5
10219 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10220 if test "${ac_cv_type_long_long+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 $ac_includes_default
10230 typedef long long ac__type_new_;
10234 if ((ac__type_new_ *) 0)
10236 if (sizeof (ac__type_new_))
10242 rm -f conftest.$ac_objext
10243 if { (ac_try="$ac_compile"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_compile") 2>conftest.er1
10251 grep -v '^
*+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest.$ac_objext; then
10259 ac_cv_type_long_long=yes
10261 echo "$as_me: failed program was:" >&5
10262 sed 's
/^
/|
/' conftest.$ac_ext >&5
10264 ac_cv_type_long_long=no
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10270 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10272 # The cast to long int works around a bug in the HP C Compiler
10273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10275 # This bug is HP SR number 8606223364.
10276 { echo "$as_me:$LINENO: checking size of long long" >&5
10277 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10278 if test "${ac_cv_sizeof_long_long+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 if test "$cross_compiling" = yes; then
10282 # Depending upon the size, compute the lo and hi bounds.
10283 cat >conftest.
$ac_ext <<_ACEOF
10286 cat confdefs.h
>>conftest.
$ac_ext
10287 cat >>conftest.
$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 typedef long long ac__type_sizeof_;
10294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10301 rm -f conftest.
$ac_objext
10302 if { (ac_try
="$ac_compile"
10303 case "(($ac_try" in
10304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 $ac_includes_default
10327 typedef long long ac__type_sizeof_;
10331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10338 rm -f conftest.$ac_objext
10339 if { (ac_try="$ac_compile"
10340 case "(($ac_try" in
10341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10342 *) ac_try_echo
=$ac_try;;
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1
>conftest.err
10349 cat conftest.err
>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.
$ac_objext; then
10355 ac_hi
=$ac_mid; break
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.
$ac_ext >&5
10360 ac_lo
=`expr $ac_mid + 1`
10361 if test $ac_lo -le $ac_mid; then
10365 ac_mid
=`expr 2 '*' $ac_mid + 1`
10368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.
$ac_ext >&5
10374 cat >conftest.
$ac_ext <<_ACEOF
10377 cat confdefs.h
>>conftest.
$ac_ext
10378 cat >>conftest.
$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 $ac_includes_default
10381 typedef long long ac__type_sizeof_;
10385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10392 rm -f conftest.
$ac_objext
10393 if { (ac_try
="$ac_compile"
10394 case "(($ac_try" in
10395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_compile") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest.$ac_objext; then
10411 cat >conftest.$ac_ext <<_ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 $ac_includes_default
10418 typedef long long ac__type_sizeof_;
10422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10433 *) ac_try_echo
=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1
>conftest.err
10440 cat conftest.err
>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.
$ac_objext; then
10446 ac_lo
=$ac_mid; break
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.
$ac_ext >&5
10451 ac_hi
=`expr '(' $ac_mid ')' - 1`
10452 if test $ac_mid -le $ac_hi; then
10456 ac_mid
=`expr 2 '*' $ac_mid`
10459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.
$ac_ext >&5
10468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10472 # Binary search between lo and hi bounds.
10473 while test "x$ac_lo" != "x$ac_hi"; do
10474 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10475 cat >conftest.
$ac_ext <<_ACEOF
10478 cat confdefs.h
>>conftest.
$ac_ext
10479 cat >>conftest.
$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 typedef long long ac__type_sizeof_;
10486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10493 rm -f conftest.
$ac_objext
10494 if { (ac_try
="$ac_compile"
10495 case "(($ac_try" in
10496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_compile") 2>conftest.er1
10502 grep -v '^ *+' conftest.er1 >conftest.err
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest.$ac_objext; then
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 ac_lo=`expr '(' $ac_mid ')' + 1`
10518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10521 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10522 '') if test "$ac_cv_type_long_long" = yes; then
10523 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10524 See \`config.log
' for more details." >&5
10525 echo "$as_me: error: cannot compute sizeof (long long)
10526 See \`config.log' for more details.
" >&2;}
10527 { (exit 77); exit 77; }; }
10529 ac_cv_sizeof_long_long=0
10533 cat >conftest.$ac_ext <<_ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 $ac_includes_default
10540 typedef long long ac__type_sizeof_;
10541 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10542 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10544 #include <stdlib.h>
10549 FILE *f = fopen ("conftest.val
", "w
");
10552 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10554 long int i = longval ();
10555 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10557 fprintf (f, "%ld
\n", i);
10561 unsigned long int i = ulongval ();
10562 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10564 fprintf (f, "%lu
\n", i);
10566 return ferror (f) || fclose (f) != 0;
10572 rm -f conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_link") 2>&5
10581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_sizeof_long_long=`cat conftest.val`
10594 echo "$as_me: program exited with status
$ac_status" >&5
10595 echo "$as_me: failed program was
:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ( exit $ac_status )
10599 if test "$ac_cv_type_long_long" = yes; then
10600 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
10601 See \
`config.log' for more details." >&5
10602 echo "$as_me: error: cannot compute sizeof (long long)
10603 See \`config.log
' for more details." >&2;}
10604 { (exit 77); exit 77; }; }
10606 ac_cv_sizeof_long_long=0
10609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10613 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10614 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10618 cat >>confdefs.h <<_ACEOF
10619 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10625 { echo "$as_me:$LINENO: checking for _Bool support" >&5
10626 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10638 _Bool x; x = (_Bool)0;
10643 rm -f conftest.$ac_objext
10644 if { (ac_try="$ac_compile"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_compile") 2>conftest.er1
10652 grep -v '^
*+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest.$ac_objext; then
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_C99_BOOL 1
10669 echo "$as_me: failed program was:" >&5
10670 sed 's
/^
/|
/' conftest.$ac_ext >&5
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10677 echo "${ECHO_T}$have_c99_bool" >&6; }
10678 if test "$have_c99_bool" = yes ; then
10679 { echo "$as_me:$LINENO: checking for _Bool" >&5
10680 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10681 if test "${ac_cv_type__Bool+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 $ac_includes_default
10691 typedef _Bool ac__type_new_;
10695 if ((ac__type_new_ *) 0)
10697 if (sizeof (ac__type_new_))
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10712 grep -v '^
*+' conftest.er1 >conftest.err
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest.$ac_objext; then
10720 ac_cv_type__Bool=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's
/^
/|
/' conftest.$ac_ext >&5
10725 ac_cv_type__Bool=no
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10731 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10733 # The cast to long int works around a bug in the HP C Compiler
10734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10736 # This bug is HP SR number 8606223364.
10737 { echo "$as_me:$LINENO: checking size of _Bool" >&5
10738 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
10739 if test "${ac_cv_sizeof__Bool+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 if test "$cross_compiling" = yes; then
10743 # Depending upon the size, compute the lo and hi bounds.
10744 cat >conftest.
$ac_ext <<_ACEOF
10747 cat confdefs.h
>>conftest.
$ac_ext
10748 cat >>conftest.
$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 typedef _Bool ac__type_sizeof_;
10755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10762 rm -f conftest.
$ac_objext
10763 if { (ac_try
="$ac_compile"
10764 case "(($ac_try" in
10765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_compile") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest.$ac_objext; then
10781 cat >conftest.$ac_ext <<_ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 $ac_includes_default
10788 typedef _Bool ac__type_sizeof_;
10792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10799 rm -f conftest.$ac_objext
10800 if { (ac_try="$ac_compile"
10801 case "(($ac_try" in
10802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10803 *) ac_try_echo
=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1
>conftest.err
10810 cat conftest.err
>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest.
$ac_objext; then
10816 ac_hi
=$ac_mid; break
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.
$ac_ext >&5
10821 ac_lo
=`expr $ac_mid + 1`
10822 if test $ac_lo -le $ac_mid; then
10826 ac_mid
=`expr 2 '*' $ac_mid + 1`
10829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.
$ac_ext >&5
10835 cat >conftest.
$ac_ext <<_ACEOF
10838 cat confdefs.h
>>conftest.
$ac_ext
10839 cat >>conftest.
$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 $ac_includes_default
10842 typedef _Bool ac__type_sizeof_;
10846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10853 rm -f conftest.
$ac_objext
10854 if { (ac_try
="$ac_compile"
10855 case "(($ac_try" in
10856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && {
10867 test -z "$ac_c_werror_flag" ||
10868 test ! -s conftest.err
10869 } && test -s conftest.$ac_objext; then
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 $ac_includes_default
10879 typedef _Bool ac__type_sizeof_;
10883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10894 *) ac_try_echo
=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1
>conftest.err
10901 cat conftest.err
>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest.
$ac_objext; then
10907 ac_lo
=$ac_mid; break
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.
$ac_ext >&5
10912 ac_hi
=`expr '(' $ac_mid ')' - 1`
10913 if test $ac_mid -le $ac_hi; then
10917 ac_mid
=`expr 2 '*' $ac_mid`
10920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.
$ac_ext >&5
10929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10933 # Binary search between lo and hi bounds.
10934 while test "x$ac_lo" != "x$ac_hi"; do
10935 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10936 cat >conftest.
$ac_ext <<_ACEOF
10939 cat confdefs.h
>>conftest.
$ac_ext
10940 cat >>conftest.
$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 $ac_includes_default
10943 typedef _Bool ac__type_sizeof_;
10947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10954 rm -f conftest.
$ac_objext
10955 if { (ac_try
="$ac_compile"
10956 case "(($ac_try" in
10957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_compile") 2>conftest.er1
10963 grep -v '^ *+' conftest.er1 >conftest.err
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest.$ac_objext; then
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_lo=`expr '(' $ac_mid ')' + 1`
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982 ?*) ac_cv_sizeof__Bool=$ac_lo;;
10983 '') if test "$ac_cv_type__Bool" = yes; then
10984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
10985 See \`config.log
' for more details." >&5
10986 echo "$as_me: error: cannot compute sizeof (_Bool)
10987 See \`config.log' for more details.
" >&2;}
10988 { (exit 77); exit 77; }; }
10990 ac_cv_sizeof__Bool=0
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 $ac_includes_default
11001 typedef _Bool ac__type_sizeof_;
11002 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11003 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11005 #include <stdlib.h>
11010 FILE *f = fopen ("conftest.val
", "w
");
11013 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11015 long int i = longval ();
11016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11018 fprintf (f, "%ld
\n", i);
11022 unsigned long int i = ulongval ();
11023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11025 fprintf (f, "%lu
\n", i);
11027 return ferror (f) || fclose (f) != 0;
11033 rm -f conftest$ac_exeext
11034 if { (ac_try="$ac_link"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_link") 2>&5
11042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_sizeof__Bool=`cat conftest.val`
11055 echo "$as_me: program exited with status
$ac_status" >&5
11056 echo "$as_me: failed program was
:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ( exit $ac_status )
11060 if test "$ac_cv_type__Bool" = yes; then
11061 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11062 See \
`config.log' for more details." >&5
11063 echo "$as_me: error: cannot compute sizeof (_Bool)
11064 See \`config.log
' for more details." >&2;}
11065 { (exit 77); exit 77; }; }
11067 ac_cv_sizeof__Bool=0
11070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11074 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11075 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11079 cat >>confdefs.h <<_ACEOF
11080 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11086 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11087 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11088 if test "${ac_cv_type_uintptr_t+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #ifdef HAVE_STDINT_H
11098 #include <stdint.h>
11101 typedef uintptr_t ac__type_new_;
11105 if ((ac__type_new_ *) 0)
11107 if (sizeof (ac__type_new_))
11113 rm -f conftest.$ac_objext
11114 if { (ac_try="$ac_compile"
11115 case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_compile") 2>conftest.er1
11122 grep -v '^
*+' conftest.er1 >conftest.err
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } && {
11127 test -z "$ac_c_werror_flag" ||
11128 test ! -s conftest.err
11129 } && test -s conftest.$ac_objext; then
11130 ac_cv_type_uintptr_t=yes
11132 echo "$as_me: failed program was:" >&5
11133 sed 's
/^
/|
/' conftest.$ac_ext >&5
11135 ac_cv_type_uintptr_t=no
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11141 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11142 if test $ac_cv_type_uintptr_t = yes; then
11144 cat >>confdefs.h <<_ACEOF
11145 #define HAVE_UINTPTR_T 1
11148 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11149 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11150 if test "${ac_cv_type_uintptr_t+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 $ac_includes_default
11160 typedef uintptr_t ac__type_new_;
11164 if ((ac__type_new_ *) 0)
11166 if (sizeof (ac__type_new_))
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11181 grep -v '^
*+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
11189 ac_cv_type_uintptr_t=yes
11191 echo "$as_me: failed program was:" >&5
11192 sed 's
/^
/|
/' conftest.$ac_ext >&5
11194 ac_cv_type_uintptr_t=no
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11200 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11202 # The cast to long int works around a bug in the HP C Compiler
11203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11205 # This bug is HP SR number 8606223364.
11206 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11207 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11208 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 if test "$cross_compiling" = yes; then
11212 # Depending upon the size, compute the lo and hi bounds.
11213 cat >conftest.
$ac_ext <<_ACEOF
11216 cat confdefs.h
>>conftest.
$ac_ext
11217 cat >>conftest.
$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 typedef uintptr_t ac__type_sizeof_;
11224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11231 rm -f conftest.
$ac_objext
11232 if { (ac_try
="$ac_compile"
11233 case "(($ac_try" in
11234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11240 grep -v '^ *+' conftest.er1 >conftest.err
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest.$ac_objext; then
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 $ac_includes_default
11257 typedef uintptr_t ac__type_sizeof_;
11261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11268 rm -f conftest.$ac_objext
11269 if { (ac_try="$ac_compile"
11270 case "(($ac_try" in
11271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11272 *) ac_try_echo
=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11277 grep -v '^ *+' conftest.er1
>conftest.err
11279 cat conftest.err
>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_c_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest.
$ac_objext; then
11285 ac_hi
=$ac_mid; break
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.
$ac_ext >&5
11290 ac_lo
=`expr $ac_mid + 1`
11291 if test $ac_lo -le $ac_mid; then
11295 ac_mid
=`expr 2 '*' $ac_mid + 1`
11298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.
$ac_ext >&5
11304 cat >conftest.
$ac_ext <<_ACEOF
11307 cat confdefs.h
>>conftest.
$ac_ext
11308 cat >>conftest.
$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 $ac_includes_default
11311 typedef uintptr_t ac__type_sizeof_;
11315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11322 rm -f conftest.
$ac_objext
11323 if { (ac_try
="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 typedef uintptr_t ac__type_sizeof_;
11352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11359 rm -f conftest.$ac_objext
11360 if { (ac_try="$ac_compile"
11361 case "(($ac_try" in
11362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11363 *) ac_try_echo
=$ac_try;;
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_compile") 2>conftest.er1
11368 grep -v '^ *+' conftest.er1
>conftest.err
11370 cat conftest.err
>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest.
$ac_objext; then
11376 ac_lo
=$ac_mid; break
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.
$ac_ext >&5
11381 ac_hi
=`expr '(' $ac_mid ')' - 1`
11382 if test $ac_mid -le $ac_hi; then
11386 ac_mid
=`expr 2 '*' $ac_mid`
11389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.
$ac_ext >&5
11398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11402 # Binary search between lo and hi bounds.
11403 while test "x$ac_lo" != "x$ac_hi"; do
11404 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11405 cat >conftest.
$ac_ext <<_ACEOF
11408 cat confdefs.h
>>conftest.
$ac_ext
11409 cat >>conftest.
$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 typedef uintptr_t ac__type_sizeof_;
11416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11423 rm -f conftest.
$ac_objext
11424 if { (ac_try
="$ac_compile"
11425 case "(($ac_try" in
11426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest.$ac_objext; then
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_lo=`expr '(' $ac_mid ')' + 1`
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11452 '') if test "$ac_cv_type_uintptr_t" = yes; then
11453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11454 See \`config.log
' for more details." >&5
11455 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11456 See \`config.log' for more details.
" >&2;}
11457 { (exit 77); exit 77; }; }
11459 ac_cv_sizeof_uintptr_t=0
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 $ac_includes_default
11470 typedef uintptr_t ac__type_sizeof_;
11471 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11472 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11474 #include <stdlib.h>
11479 FILE *f = fopen ("conftest.val
", "w
");
11482 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11484 long int i = longval ();
11485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11487 fprintf (f, "%ld
\n", i);
11491 unsigned long int i = ulongval ();
11492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11494 fprintf (f, "%lu
\n", i);
11496 return ferror (f) || fclose (f) != 0;
11502 rm -f conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_link") 2>&5
11511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11524 echo "$as_me: program exited with status
$ac_status" >&5
11525 echo "$as_me: failed program was
:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ( exit $ac_status )
11529 if test "$ac_cv_type_uintptr_t" = yes; then
11530 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
11531 See \
`config.log' for more details." >&5
11532 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11533 See \`config.log
' for more details." >&2;}
11534 { (exit 77); exit 77; }; }
11536 ac_cv_sizeof_uintptr_t=0
11539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11544 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11548 cat >>confdefs.h <<_ACEOF
11549 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11557 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
11558 { echo "$as_me:$LINENO: checking size of off_t" >&5
11559 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11560 if test "${ac_cv_sizeof_off_t+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 if test "$cross_compiling" = yes; then
11564 ac_cv_sizeof_off_t
=4
11566 cat >conftest.
$ac_ext <<_ACEOF
11569 cat confdefs.h
>>conftest.
$ac_ext
11570 cat >>conftest.
$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11573 #include <sys/types.h>
11576 FILE *f=fopen("conftestval", "w");
11578 fprintf(f, "%d\n", sizeof(off_t));
11582 rm -f conftest
$ac_exeext
11583 if { (ac_try
="$ac_link"
11584 case "(($ac_try" in
11585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_link") 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11595 *) ac_try_echo
=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_sizeof_off_t
=`cat conftestval`
11604 echo "$as_me: program exited with status $ac_status" >&5
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.
$ac_ext >&5
11608 ( exit $ac_status )
11609 ac_cv_sizeof_off_t
=0
11611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11619 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
11621 cat >>confdefs.h
<<_ACEOF
11622 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11626 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11627 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
11628 if test "$have_long_long" = yes -a \
11629 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11630 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11632 cat >>confdefs.h
<<\_ACEOF
11633 #define HAVE_LARGEFILE_SUPPORT 1
11636 { echo "$as_me:$LINENO: result: yes" >&5
11637 echo "${ECHO_T}yes" >&6; }
11639 { echo "$as_me:$LINENO: result: no" >&5
11640 echo "${ECHO_T}no" >&6; }
11643 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11644 { echo "$as_me:$LINENO: checking size of time_t" >&5
11645 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
11646 if test "${ac_cv_sizeof_time_t+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 if test "$cross_compiling" = yes; then
11650 ac_cv_sizeof_time_t
=4
11652 cat >conftest.
$ac_ext <<_ACEOF
11655 cat confdefs.h
>>conftest.
$ac_ext
11656 cat >>conftest.
$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11662 FILE *f=fopen("conftestval", "w");
11664 fprintf(f, "%d\n", sizeof(time_t));
11668 rm -f conftest
$ac_exeext
11669 if { (ac_try
="$ac_link"
11670 case "(($ac_try" in
11671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_link") 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11681 *) ac_try_echo
=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_sizeof_time_t
=`cat conftestval`
11690 echo "$as_me: program exited with status $ac_status" >&5
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.
$ac_ext >&5
11694 ( exit $ac_status )
11695 ac_cv_sizeof_time_t
=0
11697 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11704 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11705 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
11707 cat >>confdefs.h
<<_ACEOF
11708 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11713 # if have pthread_t then define SIZEOF_PTHREAD_T
11715 if test "$ac_cv_kpthread" = "yes"
11716 then CC
="$CC -Kpthread"
11717 elif test "$ac_cv_kthread" = "yes"
11718 then CC
="$CC -Kthread"
11719 elif test "$ac_cv_pthread" = "yes"
11720 then CC
="$CC -pthread"
11722 { echo "$as_me:$LINENO: checking for pthread_t" >&5
11723 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
11725 cat >conftest.
$ac_ext <<_ACEOF
11728 cat confdefs.h
>>conftest.
$ac_ext
11729 cat >>conftest.
$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 #include <pthread.h>
11735 pthread_t x; x = *(pthread_t*)0;
11740 rm -f conftest.
$ac_objext
11741 if { (ac_try
="$ac_compile"
11742 case "(($ac_try" in
11743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_compile") 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } && {
11754 test -z "$ac_c_werror_flag" ||
11755 test ! -s conftest.err
11756 } && test -s conftest.$ac_objext; then
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11767 echo "${ECHO_T}$have_pthread_t" >&6; }
11768 if test "$have_pthread_t" = yes ; then
11769 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11770 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
11771 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
11772 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 if test "$cross_compiling" = yes; then
11776 ac_cv_sizeof_pthread_t=4
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11785 #include <pthread.h>
11788 FILE *f=fopen("conftestval", "w");
11790 fprintf(f, "%d\n", sizeof(pthread_t));
11794 rm -f conftest$ac_exeext
11795 if { (ac_try="$ac_link"
11796 case "(($ac_try" in
11797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11798 *) ac_try_echo
=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_link") 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11805 { (case "(($ac_try" in
11806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_cv_sizeof_pthread_t=`cat conftestval
`
11816 echo "$as_me: program exited with status $ac_status" >&5
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11820 ( exit $ac_status )
11821 ac_cv_sizeof_pthread_t=0
11823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11830 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11831 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
11833 cat >>confdefs.h <<_ACEOF
11834 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11840 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11841 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
11842 # Check whether --enable-toolbox-glue was given.
11843 if test "${enable_toolbox_glue+set}" = set; then
11844 enableval=$enable_toolbox_glue;
11848 if test -z "$enable_toolbox_glue"
11850 case $ac_sys_system/$ac_sys_release in
11852 enable_toolbox_glue="yes";;
11854 enable_toolbox_glue="no";;
11857 case "$enable_toolbox_glue" in
11859 extra_machdep_objs="Python/mactoolboxglue.o"
11860 extra_undefs="-u _PyMac_Error"
11862 cat >>confdefs.h <<\_ACEOF
11863 #define USE_TOOLBOX_OBJECT_GLUE 1
11868 extra_machdep_objs=""
11872 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11873 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
11876 case $ac_sys_system/$ac_sys_release in
11877 Darwin/[01567]\..*)
11878 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11881 OTHER_LIBTOOL_OPT=""
11886 case $ac_sys_system/$ac_sys_release in
11887 Darwin/[01567]\..*)
11888 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11889 if test "${enable_universalsdk}"; then
11892 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
11894 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11895 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11897 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
11898 if test ${gcc_version} '<' 4.0
11900 LIBTOOL_CRUFT="-lcc_dynamic"
11904 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
11905 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11906 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11909 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
11910 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
11911 if test "$enable_framework"
11913 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11914 # -F. is needed to allow linking to the framework while
11915 # in the build location.
11917 cat >>confdefs.h <<\_ACEOF
11918 #define WITH_NEXT_FRAMEWORK 1
11921 { echo "$as_me:$LINENO: result: yes" >&5
11922 echo "${ECHO_T}yes" >&6; }
11924 { echo "$as_me:$LINENO: result: no" >&5
11925 echo "${ECHO_T}no" >&6; }
11928 { echo "$as_me:$LINENO: checking for dyld" >&5
11929 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
11930 case $ac_sys_system/$ac_sys_release in
11933 cat >>confdefs.h <<\_ACEOF
11934 #define WITH_DYLD 1
11937 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
11938 echo "${ECHO_T}always on for Darwin" >&6; }
11941 { echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6; }
11946 # Set info about shared libraries.
11952 # SO is the extension of shared libraries `(including the dot
!)
11953 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11954 { echo "$as_me:$LINENO: checking SO" >&5
11955 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
11958 case $ac_sys_system in
11969 # this might also be a termcap variable, see #610332
11971 echo '====================================================================='
11973 echo '+ WARNING: You have set SO in your environment. +'
11974 echo '+ Do you really mean to change the extension for shared libraries? +'
11975 echo '+ Continuing in 10 seconds to let you to ponder. +'
11977 echo '====================================================================='
11980 { echo "$as_me:$LINENO: result: $SO" >&5
11981 echo "${ECHO_T}$SO" >&6; }
11983 cat >>confdefs.h
<<_ACEOF
11984 #define SHLIB_EXT "$SO"
11987 # LDSHARED is the ld *command* used to create shared library
11988 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11989 # (Shared libraries in this instance are shared modules to be loaded into
11990 # Python, as opposed to building Python itself as a shared library.)
11991 { echo "$as_me:$LINENO: checking LDSHARED" >&5
11992 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
11993 if test -z "$LDSHARED"
11995 case $ac_sys_system/$ac_sys_release in
11997 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11998 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12001 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12002 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12004 IRIX
/5*) LDSHARED
="ld -shared";;
12005 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12007 if test "$GCC" = "yes"
12008 then LDSHARED
='$(CC) -shared'
12009 else LDSHARED
='$(CC) -G';
12011 hp
*|HP
*) LDSHARED
="ld -b";;
12012 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
12014 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12015 if test "$enable_framework" ; then
12016 # Link against the framework. All externals should be defined.
12017 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12018 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12020 # No framework. Ignore undefined symbols, assuming they come from Python
12021 LDSHARED
="$LDSHARED -undefined suppress"
12023 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12024 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12025 if test "$enable_framework" ; then
12026 # Link against the framework. All externals should be defined.
12027 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12028 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12030 # No framework, use the Python app as bundle-loader
12031 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12032 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12035 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12036 # This allows an extension to be used in any Python
12037 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12038 if test ${cur_target} '>' 10.2; then
12041 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12043 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12044 # environment with a value that is the same as what we'll use
12045 # in the Makefile to ensure that we'll get the same compiler
12046 # environment during configure and build time.
12047 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12048 export MACOSX_DEPLOYMENT_TARGET
12050 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12051 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12053 if test "${enable_universalsdk}"; then
12054 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12056 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12057 BLDSHARED
="$LDSHARED"
12059 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12060 if test "$enable_framework" ; then
12061 # Link against the framework. All externals should be defined.
12062 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12063 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12065 # No framework, use the Python app as bundle-loader
12066 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12067 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12071 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
12072 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12074 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12076 LDSHARED
="$CC -shared ${LDFLAGS}"
12078 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12081 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12083 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12086 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12087 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12090 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12094 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12095 OpenUNIX
*|UnixWare
*)
12096 if test "$GCC" = "yes"
12097 then LDSHARED
='$(CC) -shared'
12098 else LDSHARED
='$(CC) -G'
12100 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12101 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12102 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12103 atheos
*) LDSHARED
="gcc -shared";;
12107 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12108 echo "${ECHO_T}$LDSHARED" >&6; }
12109 BLDSHARED
=${BLDSHARED-$LDSHARED}
12110 # CCSHARED are the C *flags* used to create objects to go into a shared
12111 # library (module) -- this is only needed for a few systems
12112 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12113 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12114 if test -z "$CCSHARED"
12116 case $ac_sys_system/$ac_sys_release in
12117 SunOS
*) if test "$GCC" = yes;
12118 then CCSHARED
="-fPIC";
12119 elif test `uname -p` = sparc
;
12120 then CCSHARED
="-xcode=pic32";
12121 else CCSHARED
="-Kpic";
12123 hp
*|HP
*) if test "$GCC" = yes;
12124 then CCSHARED
="-fPIC";
12125 else CCSHARED
="+z";
12127 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12128 BSD
/OS
*/4*) CCSHARED
="-fpic";;
12129 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12130 OpenUNIX
*|UnixWare
*)
12131 if test "$GCC" = "yes"
12132 then CCSHARED
="-fPIC"
12133 else CCSHARED
="-KPIC"
12136 if test "$GCC" = "yes"
12137 then CCSHARED
="-fPIC"
12138 else CCSHARED
="-Kpic -belf"
12140 Monterey
*) CCSHARED
="-G";;
12141 IRIX
*/6*) case $CC in
12142 *gcc
*) CCSHARED
="-shared";;
12145 atheos
*) CCSHARED
="-fPIC";;
12148 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12149 echo "${ECHO_T}$CCSHARED" >&6; }
12150 # LINKFORSHARED are the flags passed to the $(CC) command that links
12151 # the python executable -- this is only needed for a few systems
12152 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12153 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12154 if test -z "$LINKFORSHARED"
12156 case $ac_sys_system/$ac_sys_release in
12157 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
12159 LINKFORSHARED
="-Wl,-E -Wl,+s";;
12160 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12161 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12162 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12163 # -u libsys_s pulls in all symbols in libsys
12165 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12167 # not used by the core itself but which needs to be in the core so
12168 # that dynamically loaded extension modules have access to it.
12169 # -prebind is no longer used, because it actually seems to give a
12170 # slowdown in stead of a speedup, maybe due to the large number of
12171 # dynamic loads Python does.
12173 LINKFORSHARED
="$extra_undefs"
12174 if test "$enable_framework"
12176 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12178 LINKFORSHARED
="$LINKFORSHARED";;
12179 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
12180 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
12181 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
12182 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
12183 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12185 LINKFORSHARED
="-Wl,--export-dynamic"
12187 SunOS
/5*) case $CC in
12189 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
12191 LINKFORSHARED
="-Xlinker --export-dynamic"
12195 if test $enable_shared = "no"
12197 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
12201 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12202 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12205 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12206 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12207 if test ! "$LIBRARY" = "$LDLIBRARY"
12209 case $ac_sys_system in
12211 # Cygwin needs CCSHARED when building extension DLLs
12212 # but not when building the interpreter DLL.
12213 CFLAGSFORSHARED
='';;
12215 CFLAGSFORSHARED
='$(CCSHARED)'
12218 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12219 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12221 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12222 # library (with --enable-shared).
12223 # For platforms on which shared libraries are not allowed to have unresolved
12224 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12225 # if it is not required, since it creates a dependency of the shared library
12226 # to LIBS. This, in turn, means that applications linking the shared libpython
12227 # don't need to link LIBS explicitly. The default should be only changed
12228 # on systems where this approach causes problems.
12230 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12231 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12232 case "$ac_sys_system" in
12236 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12237 echo "${ECHO_T}$SHLIBS" >&6; }
12240 # checks for libraries
12242 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12243 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12244 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 ac_check_lib_save_LIBS
=$LIBS
12249 cat >conftest.
$ac_ext <<_ACEOF
12252 cat confdefs.h
>>conftest.
$ac_ext
12253 cat >>conftest.
$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12271 rm -f conftest.
$ac_objext conftest
$ac_exeext
12272 if { (ac_try
="$ac_link"
12273 case "(($ac_try" in
12274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_link") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && {
12285 test -z "$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12287 } && test -s conftest$ac_exeext &&
12288 $as_test_x conftest$ac_exeext; then
12289 ac_cv_lib_dl_dlopen=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ac_cv_lib_dl_dlopen=no
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12303 if test $ac_cv_lib_dl_dlopen = yes; then
12304 cat >>confdefs.h <<_ACEOF
12305 #define HAVE_LIBDL 1
12311 # Dynamic linking for SunOS/Solaris and SYSV
12313 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 ac_check_lib_save_LIBS=$LIBS
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12337 return shl_load ();
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12346 *) ac_try_echo
=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1
>conftest.err
12353 cat conftest.err
>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest
$ac_exeext &&
12359 $as_test_x conftest
$ac_exeext; then
12360 ac_cv_lib_dld_shl_load
=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.
$ac_ext >&5
12365 ac_cv_lib_dld_shl_load
=no
12368 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12369 conftest
$ac_exeext conftest.
$ac_ext
12370 LIBS
=$ac_check_lib_save_LIBS
12372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12373 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12374 if test $ac_cv_lib_dld_shl_load = yes; then
12375 cat >>confdefs.h
<<_ACEOF
12376 #define HAVE_LIBDLD 1
12382 # Dynamic linking for HP-UX
12384 # only check for sem_ini if thread support is requested
12385 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12386 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12387 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12388 if test "${ac_cv_search_sem_init+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 ac_func_search_save_LIBS
=$LIBS
12392 cat >conftest.
$ac_ext <<_ACEOF
12395 cat confdefs.h
>>conftest.
$ac_ext
12396 cat >>conftest.
$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12409 return sem_init ();
12414 for ac_lib
in '' pthread rt posix4
; do
12415 if test -z "$ac_lib"; then
12416 ac_res
="none required"
12419 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12421 rm -f conftest.
$ac_objext conftest
$ac_exeext
12422 if { (ac_try
="$ac_link"
12423 case "(($ac_try" in
12424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_search_sem_init=$ac_res
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449 if test "${ac_cv_search_sem_init+set}" = set; then
12453 if test "${ac_cv_search_sem_init+set}" = set; then
12456 ac_cv_search_sem_init=no
12458 rm conftest.$ac_ext
12459 LIBS=$ac_func_search_save_LIBS
12461 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12462 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12463 ac_res=$ac_cv_search_sem_init
12464 if test "$ac_res" != no; then
12465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12468 # 'Real Time' functions on Solaris
12469 # posix4 on Solaris 2.6
12470 # pthread (first!) on Linux
12473 # check if we need libintl for locale functions
12474 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12475 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12476 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-lintl $LIBS"
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12488 /* Override any GCC internal prototype to avoid an error.
12489 Use char because int might match the return type of a GCC
12490 builtin and then its argument prototype would still apply. */
12494 char textdomain ();
12498 return textdomain ();
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12507 *) ac_try_echo
=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1
>conftest.err
12514 cat conftest.err
>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest
$ac_exeext &&
12520 $as_test_x conftest
$ac_exeext; then
12521 ac_cv_lib_intl_textdomain
=yes
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.
$ac_ext >&5
12526 ac_cv_lib_intl_textdomain
=no
12529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12530 conftest
$ac_exeext conftest.
$ac_ext
12531 LIBS
=$ac_check_lib_save_LIBS
12533 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12534 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12535 if test $ac_cv_lib_intl_textdomain = yes; then
12537 cat >>confdefs.h
<<\_ACEOF
12538 #define WITH_LIBINTL 1
12544 # checks for system dependent C++ extensions support
12545 case "$ac_sys_system" in
12546 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12547 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12548 cat >conftest.
$ac_ext <<_ACEOF
12551 cat confdefs.h
>>conftest.
$ac_ext
12552 cat >>conftest.
$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 #include "/usr/lpp/xlC/include/load.h"
12558 loadAndInit("", 0, "")
12563 rm -f conftest.
$ac_objext conftest
$ac_exeext
12564 if { (ac_try
="$ac_link"
12565 case "(($ac_try" in
12566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_link") 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } && {
12577 test -z "$ac_c_werror_flag" ||
12578 test ! -s conftest.err
12579 } && test -s conftest$ac_exeext &&
12580 $as_test_x conftest$ac_exeext; then
12582 cat >>confdefs.h <<\_ACEOF
12583 #define AIX_GENUINE_CPLUSPLUS 1
12586 { echo "$as_me:$LINENO: result: yes" >&5
12587 echo "${ECHO_T}yes" >&6; }
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 { echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6; }
12596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12597 conftest$ac_exeext conftest.$ac_ext;;
12601 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12602 # BeOS' sockets are stashed in libnet.
12603 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12604 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
12605 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 ac_check_lib_save_LIBS=$LIBS
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12617 /* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12636 *) ac_try_echo
=$ac_try;;
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>conftest.er1
12641 grep -v '^ *+' conftest.er1
>conftest.err
12643 cat conftest.err
>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && {
12646 test -z "$ac_c_werror_flag" ||
12647 test ! -s conftest.err
12648 } && test -s conftest
$ac_exeext &&
12649 $as_test_x conftest
$ac_exeext; then
12650 ac_cv_lib_nsl_t_open
=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.
$ac_ext >&5
12655 ac_cv_lib_nsl_t_open
=no
12658 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12659 conftest
$ac_exeext conftest.
$ac_ext
12660 LIBS
=$ac_check_lib_save_LIBS
12662 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12663 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
12664 if test $ac_cv_lib_nsl_t_open = yes; then
12668 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12669 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
12670 if test "${ac_cv_lib_socket_socket+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 ac_check_lib_save_LIBS
=$LIBS
12674 LIBS
="-lsocket $LIBS $LIBS"
12675 cat >conftest.
$ac_ext <<_ACEOF
12678 cat confdefs.h
>>conftest.
$ac_ext
12679 cat >>conftest.
$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12697 rm -f conftest.
$ac_objext conftest
$ac_exeext
12698 if { (ac_try
="$ac_link"
12699 case "(($ac_try" in
12700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_link") 2>conftest.er1
12706 grep -v '^ *+' conftest.er1 >conftest.err
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } && {
12711 test -z "$ac_c_werror_flag" ||
12712 test ! -s conftest.err
12713 } && test -s conftest$ac_exeext &&
12714 $as_test_x conftest$ac_exeext; then
12715 ac_cv_lib_socket_socket=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_cv_lib_socket_socket=no
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12728 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
12729 if test $ac_cv_lib_socket_socket = yes; then
12730 LIBS="-lsocket $LIBS"
12734 case "$ac_sys_system" in
12736 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12737 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
12738 if test "${ac_cv_lib_net_socket+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lnet $LIBS $LIBS"
12743 cat >conftest.$ac_ext <<_ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12769 *) ac_try_echo
=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_link") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1
>conftest.err
12776 cat conftest.err
>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest
$ac_exeext &&
12782 $as_test_x conftest
$ac_exeext; then
12783 ac_cv_lib_net_socket
=yes
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.
$ac_ext >&5
12788 ac_cv_lib_net_socket
=no
12791 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12792 conftest
$ac_exeext conftest.
$ac_ext
12793 LIBS
=$ac_check_lib_save_LIBS
12795 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12796 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
12797 if test $ac_cv_lib_net_socket = yes; then
12804 { echo "$as_me:$LINENO: checking for --with-libs" >&5
12805 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
12807 # Check whether --with-libs was given.
12808 if test "${with_libs+set}" = set; then
12809 withval
=$with_libs;
12810 { echo "$as_me:$LINENO: result: $withval" >&5
12811 echo "${ECHO_T}$withval" >&6; }
12812 LIBS
="$withval $LIBS"
12815 { echo "$as_me:$LINENO: result: no" >&5
12816 echo "${ECHO_T}no" >&6; }
12820 # Check for use of the system libffi library
12821 if test "${ac_cv_header_ffi_h+set}" = set; then
12822 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12823 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12824 if test "${ac_cv_header_ffi_h+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12828 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12830 # Is the header compilable?
12831 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
12832 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
12833 cat >conftest.
$ac_ext <<_ACEOF
12836 cat confdefs.h
>>conftest.
$ac_ext
12837 cat >>conftest.
$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12842 rm -f conftest.
$ac_objext
12843 if { (ac_try
="$ac_compile"
12844 case "(($ac_try" in
12845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_compile") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest.$ac_objext; then
12859 ac_header_compiler=yes
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_header_compiler=no
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12869 echo "${ECHO_T}$ac_header_compiler" >&6; }
12871 # Is the header present?
12872 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
12873 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
12874 cat >conftest.$ac_ext <<_ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12882 if { (ac_try="$ac_cpp conftest.$ac_ext"
12883 case "(($ac_try" in
12884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12885 *) ac_try_echo
=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1
>conftest.err
12892 cat conftest.err
>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev
/null
&& {
12895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12896 test ! -s conftest.err
12898 ac_header_preproc
=yes
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.
$ac_ext >&5
12903 ac_header_preproc
=no
12906 rm -f conftest.err conftest.
$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12908 echo "${ECHO_T}$ac_header_preproc" >&6; }
12910 # So? What about this header?
12911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12913 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
12914 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
12916 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
12917 ac_header_preproc
=yes
12920 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
12921 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
12923 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
12925 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
12927 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
12929 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
12931 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
12933 ## ------------------------------------------------ ##
12934 ## Report this to http://www.python.org/python-bugs ##
12935 ## ------------------------------------------------ ##
12937 ) |
sed "s/^/$as_me: WARNING: /" >&2
12940 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12941 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12942 if test "${ac_cv_header_ffi_h+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 ac_cv_header_ffi_h
=$ac_header_preproc
12947 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12948 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12953 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12954 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
12956 # Check whether --with-system_ffi was given.
12957 if test "${with_system_ffi+set}" = set; then
12958 withval
=$with_system_ffi;
12962 if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
12963 case "$ac_sys_system/`uname -m`" in
12964 Linux
/alpha
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
12965 Linux
/arm
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
12966 Linux
/ppc
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
12967 Linux
/s390
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
12968 *) with_system_ffi
="no"
12971 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12972 echo "${ECHO_T}$with_system_ffi" >&6; }
12974 # Determine if signalmodule should be used.
12977 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12978 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
12980 # Check whether --with-signal-module was given.
12981 if test "${with_signal_module+set}" = set; then
12982 withval
=$with_signal_module;
12986 if test -z "$with_signal_module"
12987 then with_signal_module
="yes"
12989 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
12990 echo "${ECHO_T}$with_signal_module" >&6; }
12992 if test "${with_signal_module}" = "yes"; then
12993 USE_SIGNAL_MODULE
=""
12996 USE_SIGNAL_MODULE
="#"
12997 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13000 # This is used to generate Setup.config
13002 USE_THREAD_MODULE
=""
13004 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13005 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13008 # Check whether --with-dec-threads was given.
13009 if test "${with_dec_threads+set}" = set; then
13010 withval
=$with_dec_threads;
13011 { echo "$as_me:$LINENO: result: $withval" >&5
13012 echo "${ECHO_T}$withval" >&6; }
13014 if test "${with_thread+set}" != set; then
13015 with_thread
="$withval";
13018 { echo "$as_me:$LINENO: result: no" >&5
13019 echo "${ECHO_T}no" >&6; }
13023 # Templates for things AC_DEFINEd more than once.
13024 # For a single AC_DEFINE, no template is needed.
13032 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13033 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13035 # Check whether --with-threads was given.
13036 if test "${with_threads+set}" = set; then
13037 withval
=$with_threads;
13041 # --with-thread is deprecated, but check for it anyway
13043 # Check whether --with-thread was given.
13044 if test "${with_thread+set}" = set; then
13045 withval
=$with_thread; with_threads
=$with_thread
13049 if test -z "$with_threads"
13050 then with_threads
="yes"
13052 { echo "$as_me:$LINENO: result: $with_threads" >&5
13053 echo "${ECHO_T}$with_threads" >&6; }
13056 if test "$with_threads" = "no"
13058 USE_THREAD_MODULE
="#"
13059 elif test "$ac_cv_pthread_is_default" = yes
13061 cat >>confdefs.h
<<\_ACEOF
13062 #define WITH_THREAD 1
13065 # Defining _REENTRANT on system with POSIX threads should not hurt.
13066 cat >>confdefs.h
<<\_ACEOF
13067 #define _REENTRANT 1
13071 THREADOBJ
="Python/thread.o"
13072 elif test "$ac_cv_kpthread" = "yes"
13075 if test "$ac_cv_cxx_thread" = "yes"; then
13076 CXX
="$CXX -Kpthread"
13078 cat >>confdefs.h
<<\_ACEOF
13079 #define WITH_THREAD 1
13083 THREADOBJ
="Python/thread.o"
13084 elif test "$ac_cv_kthread" = "yes"
13087 if test "$ac_cv_cxx_thread" = "yes"; then
13088 CXX
="$CXX -Kthread"
13090 cat >>confdefs.h
<<\_ACEOF
13091 #define WITH_THREAD 1
13095 THREADOBJ
="Python/thread.o"
13096 elif test "$ac_cv_pthread" = "yes"
13099 if test "$ac_cv_cxx_thread" = "yes"; then
13100 CXX
="$CXX -pthread"
13102 cat >>confdefs.h
<<\_ACEOF
13103 #define WITH_THREAD 1
13107 THREADOBJ
="Python/thread.o"
13109 if test ! -z "$with_threads" -a -d "$with_threads"
13110 then LDFLAGS
="$LDFLAGS -L$with_threads"
13112 if test ! -z "$withval" -a -d "$withval"
13113 then LDFLAGS
="$LDFLAGS -L$withval"
13116 # According to the POSIX spec, a pthreads implementation must
13117 # define _POSIX_THREADS in unistd.h. Some apparently don't
13118 # (e.g. gnu pth with pthread emulation)
13119 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13120 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13121 cat >conftest.
$ac_ext <<_ACEOF
13124 cat confdefs.h
>>conftest.
$ac_ext
13125 cat >>conftest.
$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13128 #include <unistd.h>
13129 #ifdef _POSIX_THREADS
13134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13135 $EGREP "yes" >/dev
/null
2>&1; then
13136 unistd_defines_pthreads
=yes
13138 unistd_defines_pthreads
=no
13142 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13143 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13145 cat >>confdefs.h
<<\_ACEOF
13146 #define _REENTRANT 1
13149 if test "${ac_cv_header_cthreads_h+set}" = set; then
13150 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13151 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13152 if test "${ac_cv_header_cthreads_h+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13156 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13158 # Is the header compilable?
13159 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13160 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13161 cat >conftest.
$ac_ext <<_ACEOF
13164 cat confdefs.h
>>conftest.
$ac_ext
13165 cat >>conftest.
$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 $ac_includes_default
13168 #include <cthreads.h>
13170 rm -f conftest.
$ac_objext
13171 if { (ac_try
="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_compile") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1 >conftest.err
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest.$ac_objext; then
13187 ac_header_compiler=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_header_compiler=no
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13197 echo "${ECHO_T}$ac_header_compiler" >&6; }
13199 # Is the header present?
13200 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13201 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <cthreads.h>
13210 if { (ac_try="$ac_cpp conftest.$ac_ext"
13211 case "(($ac_try" in
13212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13213 *) ac_try_echo
=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13218 grep -v '^ *+' conftest.er1
>conftest.err
13220 cat conftest.err
>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } >/dev
/null
&& {
13223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13224 test ! -s conftest.err
13226 ac_header_preproc
=yes
13228 echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.
$ac_ext >&5
13231 ac_header_preproc
=no
13234 rm -f conftest.err conftest.
$ac_ext
13235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13236 echo "${ECHO_T}$ac_header_preproc" >&6; }
13238 # So? What about this header?
13239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13241 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13242 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13244 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13245 ac_header_preproc
=yes
13248 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13249 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13251 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13253 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13255 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13256 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13257 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13259 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13261 ## ------------------------------------------------ ##
13262 ## Report this to http://www.python.org/python-bugs ##
13263 ## ------------------------------------------------ ##
13265 ) |
sed "s/^/$as_me: WARNING: /" >&2
13268 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13269 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13270 if test "${ac_cv_header_cthreads_h+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_cv_header_cthreads_h
=$ac_header_preproc
13275 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13276 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13279 if test $ac_cv_header_cthreads_h = yes; then
13280 cat >>confdefs.h
<<\_ACEOF
13281 #define WITH_THREAD 1
13284 cat >>confdefs.h
<<\_ACEOF
13285 #define C_THREADS 1
13289 cat >>confdefs.h
<<\_ACEOF
13290 #define HURD_C_THREADS 1
13293 LIBS
="$LIBS -lthreads"
13294 THREADOBJ
="Python/thread.o"
13297 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13298 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13299 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13300 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13304 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13306 # Is the header compilable?
13307 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13308 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13309 cat >conftest.
$ac_ext <<_ACEOF
13312 cat confdefs.h
>>conftest.
$ac_ext
13313 cat >>conftest.
$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 $ac_includes_default
13316 #include <mach/cthreads.h>
13318 rm -f conftest.
$ac_objext
13319 if { (ac_try
="$ac_compile"
13320 case "(($ac_try" in
13321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_compile") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest.$ac_objext; then
13335 ac_header_compiler=yes
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_header_compiler=no
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13345 echo "${ECHO_T}$ac_header_compiler" >&6; }
13347 # Is the header present?
13348 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13349 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 #include <mach/cthreads.h>
13358 if { (ac_try="$ac_cpp conftest.$ac_ext"
13359 case "(($ac_try" in
13360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13361 *) ac_try_echo
=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13366 grep -v '^ *+' conftest.er1
>conftest.err
13368 cat conftest.err
>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } >/dev
/null
&& {
13371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13374 ac_header_preproc
=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.
$ac_ext >&5
13379 ac_header_preproc
=no
13382 rm -f conftest.err conftest.
$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13384 echo "${ECHO_T}$ac_header_preproc" >&6; }
13386 # So? What about this header?
13387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13389 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13390 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13392 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13393 ac_header_preproc
=yes
13396 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13397 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13399 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13401 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13403 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13405 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13407 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13409 ## ------------------------------------------------ ##
13410 ## Report this to http://www.python.org/python-bugs ##
13411 ## ------------------------------------------------ ##
13413 ) |
sed "s/^/$as_me: WARNING: /" >&2
13416 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13417 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13418 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
13423 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13424 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13427 if test $ac_cv_header_mach_cthreads_h = yes; then
13428 cat >>confdefs.h
<<\_ACEOF
13429 #define WITH_THREAD 1
13432 cat >>confdefs.h
<<\_ACEOF
13433 #define C_THREADS 1
13437 cat >>confdefs.h
<<\_ACEOF
13438 #define MACH_C_THREADS 1
13441 THREADOBJ
="Python/thread.o"
13444 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13445 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13447 # Check whether --with-pth was given.
13448 if test "${with_pth+set}" = set; then
13449 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13450 echo "${ECHO_T}$withval" >&6; }
13451 cat >>confdefs.h
<<\_ACEOF
13452 #define WITH_THREAD 1
13456 cat >>confdefs.h
<<\_ACEOF
13461 THREADOBJ
="Python/thread.o"
13463 { echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6; }
13466 # Just looking for pthread_create in libpthread is not enough:
13467 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13468 # So we really have to include pthread.h, and then link.
13470 LIBS
="$LIBS -lpthread"
13471 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13472 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13473 cat >conftest.
$ac_ext <<_ACEOF
13476 cat confdefs.h
>>conftest.
$ac_ext
13477 cat >>conftest.
$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <pthread.h>
13481 void * start_routine (void *arg) { exit (0); }
13486 pthread_create (NULL, NULL, start_routine, NULL)
13491 rm -f conftest.
$ac_objext conftest
$ac_exeext
13492 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
13508 $as_test_x conftest$ac_exeext; then
13510 { echo "$as_me:$LINENO: result: yes" >&5
13511 echo "${ECHO_T}yes" >&6; }
13512 cat >>confdefs.h <<\_ACEOF
13513 #define WITH_THREAD 1
13517 THREADOBJ="Python/thread.o"
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13524 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13525 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13526 if test "${ac_cv_func_pthread_detach+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13537 #define pthread_detach innocuous_pthread_detach
13539 /* System header to define __stub macros and hopefully few prototypes,
13540 which can conflict with char pthread_detach (); below.
13541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13542 <limits.h> exists even on freestanding compilers. */
13545 # include <limits.h>
13547 # include <assert.h>
13550 #undef pthread_detach
13552 /* Override any GCC internal prototype to avoid an error.
13553 Use char because int might match the return type of a GCC
13554 builtin and then its argument prototype would still apply. */
13558 char pthread_detach ();
13559 /* The GNU C library defines this for functions which it implements
13560 to always fail with ENOSYS. Some functions are actually named
13561 something starting with __ and the normal name is an alias. */
13562 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13569 return pthread_detach ();
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (ac_try="$ac_link"
13576 case "(($ac_try" in
13577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13578 *) ac_try_echo
=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_link") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1
>conftest.err
13585 cat conftest.err
>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest
$ac_exeext &&
13591 $as_test_x conftest
$ac_exeext; then
13592 ac_cv_func_pthread_detach
=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.
$ac_ext >&5
13597 ac_cv_func_pthread_detach
=no
13600 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13601 conftest
$ac_exeext conftest.
$ac_ext
13603 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13604 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13605 if test $ac_cv_func_pthread_detach = yes; then
13606 cat >>confdefs.h
<<\_ACEOF
13607 #define WITH_THREAD 1
13611 THREADOBJ
="Python/thread.o"
13614 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13615 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13616 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13617 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13621 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13623 # Is the header compilable?
13624 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13625 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13626 cat >conftest.
$ac_ext <<_ACEOF
13629 cat confdefs.h
>>conftest.
$ac_ext
13630 cat >>conftest.
$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 $ac_includes_default
13633 #include <atheos/threads.h>
13635 rm -f conftest.
$ac_objext
13636 if { (ac_try
="$ac_compile"
13637 case "(($ac_try" in
13638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_compile") 2>conftest.er1
13644 grep -v '^ *+' conftest.er1 >conftest.err
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } && {
13649 test -z "$ac_c_werror_flag" ||
13650 test ! -s conftest.err
13651 } && test -s conftest.$ac_objext; then
13652 ac_header_compiler=yes
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 ac_header_compiler=no
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13662 echo "${ECHO_T}$ac_header_compiler" >&6; }
13664 # Is the header present?
13665 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13666 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 #include <atheos/threads.h>
13675 if { (ac_try="$ac_cpp conftest.$ac_ext"
13676 case "(($ac_try" in
13677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13678 *) ac_try_echo
=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1
>conftest.err
13685 cat conftest.err
>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } >/dev
/null
&& {
13688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13691 ac_header_preproc
=yes
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.
$ac_ext >&5
13696 ac_header_preproc
=no
13699 rm -f conftest.err conftest.
$ac_ext
13700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13701 echo "${ECHO_T}$ac_header_preproc" >&6; }
13703 # So? What about this header?
13704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13706 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13707 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13709 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13710 ac_header_preproc
=yes
13713 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13714 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13716 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13718 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13720 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13721 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13722 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13724 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13726 ## ------------------------------------------------ ##
13727 ## Report this to http://www.python.org/python-bugs ##
13728 ## ------------------------------------------------ ##
13730 ) |
sed "s/^/$as_me: WARNING: /" >&2
13733 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13734 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13735 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 ac_cv_header_atheos_threads_h
=$ac_header_preproc
13740 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13741 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13744 if test $ac_cv_header_atheos_threads_h = yes; then
13745 cat >>confdefs.h
<<\_ACEOF
13746 #define WITH_THREAD 1
13750 cat >>confdefs.h
<<\_ACEOF
13751 #define ATHEOS_THREADS 1
13754 THREADOBJ
="Python/thread.o"
13757 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13758 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13759 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13760 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13764 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13766 # Is the header compilable?
13767 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13768 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
13769 cat >conftest.
$ac_ext <<_ACEOF
13772 cat confdefs.h
>>conftest.
$ac_ext
13773 cat >>conftest.
$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13776 #include <kernel/OS.h>
13778 rm -f conftest.
$ac_objext
13779 if { (ac_try
="$ac_compile"
13780 case "(($ac_try" in
13781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_compile") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
13795 ac_header_compiler=yes
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_header_compiler=no
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 echo "${ECHO_T}$ac_header_compiler" >&6; }
13807 # Is the header present?
13808 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13809 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <kernel/OS.h>
13818 if { (ac_try="$ac_cpp conftest.$ac_ext"
13819 case "(($ac_try" in
13820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13821 *) ac_try_echo
=$ac_try;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13826 grep -v '^ *+' conftest.er1
>conftest.err
13828 cat conftest.err
>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } >/dev
/null
&& {
13831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13834 ac_header_preproc
=yes
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.
$ac_ext >&5
13839 ac_header_preproc
=no
13842 rm -f conftest.err conftest.
$ac_ext
13843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13844 echo "${ECHO_T}$ac_header_preproc" >&6; }
13846 # So? What about this header?
13847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13849 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13850 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13852 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13853 ac_header_preproc
=yes
13856 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13857 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13859 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13861 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13863 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13865 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13867 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13869 ## ------------------------------------------------ ##
13870 ## Report this to http://www.python.org/python-bugs ##
13871 ## ------------------------------------------------ ##
13873 ) |
sed "s/^/$as_me: WARNING: /" >&2
13876 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13877 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13878 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 ac_cv_header_kernel_OS_h
=$ac_header_preproc
13883 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13887 if test $ac_cv_header_kernel_OS_h = yes; then
13888 cat >>confdefs.h
<<\_ACEOF
13889 #define WITH_THREAD 1
13893 cat >>confdefs.h
<<\_ACEOF
13894 #define BEOS_THREADS 1
13897 THREADOBJ
="Python/thread.o"
13900 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13901 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
13902 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 ac_check_lib_save_LIBS
=$LIBS
13906 LIBS
="-lpthreads $LIBS"
13907 cat >conftest.
$ac_ext <<_ACEOF
13910 cat confdefs.h
>>conftest.
$ac_ext
13911 cat >>conftest.
$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13920 char pthread_create ();
13924 return pthread_create ();
13929 rm -f conftest.
$ac_objext conftest
$ac_exeext
13930 if { (ac_try
="$ac_link"
13931 case "(($ac_try" in
13932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_c_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest$ac_exeext &&
13946 $as_test_x conftest$ac_exeext; then
13947 ac_cv_lib_pthreads_pthread_create=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_cv_lib_pthreads_pthread_create=no
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13959 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13960 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
13961 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13962 cat >>confdefs.h <<\_ACEOF
13963 #define WITH_THREAD 1
13967 LIBS="$LIBS -lpthreads"
13968 THREADOBJ="Python/thread.o"
13971 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13972 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
13973 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 ac_check_lib_save_LIBS=$LIBS
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13985 /* Override any GCC internal prototype to avoid an error.
13986 Use char because int might match the return type of a GCC
13987 builtin and then its argument prototype would still apply. */
13991 char pthread_create ();
13995 return pthread_create ();
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (ac_try="$ac_link"
14002 case "(($ac_try" in
14003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14004 *) ac_try_echo
=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_link") 2>conftest.er1
14009 grep -v '^ *+' conftest.er1
>conftest.err
14011 cat conftest.err
>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest
$ac_exeext &&
14017 $as_test_x conftest
$ac_exeext; then
14018 ac_cv_lib_c_r_pthread_create
=yes
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.
$ac_ext >&5
14023 ac_cv_lib_c_r_pthread_create
=no
14026 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14027 conftest
$ac_exeext conftest.
$ac_ext
14028 LIBS
=$ac_check_lib_save_LIBS
14030 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14031 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14032 if test $ac_cv_lib_c_r_pthread_create = yes; then
14033 cat >>confdefs.h
<<\_ACEOF
14034 #define WITH_THREAD 1
14039 THREADOBJ
="Python/thread.o"
14042 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14043 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14044 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 ac_check_lib_save_LIBS
=$LIBS
14048 LIBS
="-lpthread $LIBS"
14049 cat >conftest.
$ac_ext <<_ACEOF
14052 cat confdefs.h
>>conftest.
$ac_ext
14053 cat >>conftest.
$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14056 /* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
14062 char __pthread_create_system ();
14066 return __pthread_create_system ();
14071 rm -f conftest.
$ac_objext conftest
$ac_exeext
14072 if { (ac_try
="$ac_link"
14073 case "(($ac_try" in
14074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_link") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } && {
14085 test -z "$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14087 } && test -s conftest$ac_exeext &&
14088 $as_test_x conftest$ac_exeext; then
14089 ac_cv_lib_pthread___pthread_create_system=yes
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_cv_lib_pthread___pthread_create_system=no
14097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14098 conftest$ac_exeext conftest.$ac_ext
14099 LIBS=$ac_check_lib_save_LIBS
14101 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14102 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14103 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14104 cat >>confdefs.h <<\_ACEOF
14105 #define WITH_THREAD 1
14109 LIBS="$LIBS -lpthread"
14110 THREADOBJ="Python/thread.o"
14113 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14114 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14115 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 ac_check_lib_save_LIBS=$LIBS
14120 cat >conftest.$ac_ext <<_ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14127 /* Override any GCC internal prototype to avoid an error.
14128 Use char because int might match the return type of a GCC
14129 builtin and then its argument prototype would still apply. */
14133 char pthread_create ();
14137 return pthread_create ();
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (ac_try="$ac_link"
14144 case "(($ac_try" in
14145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14146 *) ac_try_echo
=$ac_try;;
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_link") 2>conftest.er1
14151 grep -v '^ *+' conftest.er1
>conftest.err
14153 cat conftest.err
>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } && {
14156 test -z "$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 } && test -s conftest
$ac_exeext &&
14159 $as_test_x conftest
$ac_exeext; then
14160 ac_cv_lib_cma_pthread_create
=yes
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.
$ac_ext >&5
14165 ac_cv_lib_cma_pthread_create
=no
14168 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14169 conftest
$ac_exeext conftest.
$ac_ext
14170 LIBS
=$ac_check_lib_save_LIBS
14172 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14173 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14174 if test $ac_cv_lib_cma_pthread_create = yes; then
14175 cat >>confdefs.h
<<\_ACEOF
14176 #define WITH_THREAD 1
14181 THREADOBJ
="Python/thread.o"
14184 USE_THREAD_MODULE
="#"
14204 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14205 conftest
$ac_exeext conftest.
$ac_ext
14215 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14216 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14217 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 ac_check_lib_save_LIBS
=$LIBS
14222 cat >conftest.
$ac_ext <<_ACEOF
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
14239 return usconfig ();
14244 rm -f conftest.
$ac_objext conftest
$ac_exeext
14245 if { (ac_try
="$ac_link"
14246 case "(($ac_try" in
14247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 ac_cv_lib_mpc_usconfig=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_lib_mpc_usconfig=no
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14274 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14275 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14276 if test $ac_cv_lib_mpc_usconfig = yes; then
14277 cat >>confdefs.h <<\_ACEOF
14278 #define WITH_THREAD 1
14282 THREADOBJ="Python/thread.o"
14283 USE_THREAD_MODULE=""
14287 if test "$posix_threads" != "yes"; then
14288 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14289 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14290 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lthread $LIBS"
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14302 /* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14308 char thr_create ();
14312 return thr_create ();
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14321 *) ac_try_echo
=$ac_try;;
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14326 grep -v '^ *+' conftest.er1
>conftest.err
14328 cat conftest.err
>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest
$ac_exeext &&
14334 $as_test_x conftest
$ac_exeext; then
14335 ac_cv_lib_thread_thr_create
=yes
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.
$ac_ext >&5
14340 ac_cv_lib_thread_thr_create
=no
14343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14344 conftest
$ac_exeext conftest.
$ac_ext
14345 LIBS
=$ac_check_lib_save_LIBS
14347 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14348 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14349 if test $ac_cv_lib_thread_thr_create = yes; then
14350 cat >>confdefs.h
<<\_ACEOF
14351 #define WITH_THREAD 1
14354 LIBS
="$LIBS -lthread"
14355 THREADOBJ
="Python/thread.o"
14356 USE_THREAD_MODULE
=""
14361 if test "$USE_THREAD_MODULE" != "#"
14363 # If the above checks didn't disable threads, (at least) OSF1
14364 # needs this '-threads' argument during linking.
14365 case $ac_sys_system in
14366 OSF1
) LDLAST
=-threads;;
14371 if test "$posix_threads" = "yes"; then
14372 if test "$unistd_defines_pthreads" = "no"; then
14374 cat >>confdefs.h
<<\_ACEOF
14375 #define _POSIX_THREADS 1
14380 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14381 case $ac_sys_system/$ac_sys_release in
14383 cat >>confdefs.h
<<\_ACEOF
14384 #define HAVE_PTHREAD_DESTRUCTOR 1
14389 cat >>confdefs.h
<<\_ACEOF
14390 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14396 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14397 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14398 if test "${ac_cv_pthread_system_supported+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 if test "$cross_compiling" = yes; then
14402 ac_cv_pthread_system_supported
=no
14404 cat >conftest.
$ac_ext <<_ACEOF
14407 cat confdefs.h
>>conftest.
$ac_ext
14408 cat >>conftest.
$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 #include <pthread.h>
14411 void *foo(void *parm) {
14415 pthread_attr_t attr;
14417 if (pthread_attr_init(&attr)) exit(-1);
14418 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14419 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14423 rm -f conftest
$ac_exeext
14424 if { (ac_try
="$ac_link"
14425 case "(($ac_try" in
14426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_link") 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14434 { (case "(($ac_try" in
14435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14436 *) ac_try_echo
=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_try") 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_cv_pthread_system_supported
=yes
14445 echo "$as_me: program exited with status $ac_status" >&5
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.
$ac_ext >&5
14449 ( exit $ac_status )
14450 ac_cv_pthread_system_supported
=no
14452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14459 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14460 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14461 if test "$ac_cv_pthread_system_supported" = "yes"; then
14463 cat >>confdefs.h
<<\_ACEOF
14464 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14469 for ac_func
in pthread_sigmask
14471 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14474 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 cat >conftest.
$ac_ext <<_ACEOF
14480 cat confdefs.h
>>conftest.
$ac_ext
14481 cat >>conftest.
$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14485 #define $ac_func innocuous_$ac_func
14487 /* System header to define __stub macros and hopefully few prototypes,
14488 which can conflict with char $ac_func (); below.
14489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14490 <limits.h> exists even on freestanding compilers. */
14493 # include <limits.h>
14495 # include <assert.h>
14500 /* Override any GCC internal prototype to avoid an error.
14501 Use char because int might match the return type of a GCC
14502 builtin and then its argument prototype would still apply. */
14507 /* The GNU C library defines this for functions which it implements
14508 to always fail with ENOSYS. Some functions are actually named
14509 something starting with __ and the normal name is an alias. */
14510 #if defined __stub_$ac_func || defined __stub___$ac_func
14517 return $ac_func ();
14522 rm -f conftest.
$ac_objext conftest
$ac_exeext
14523 if { (ac_try
="$ac_link"
14524 case "(($ac_try" in
14525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_link") 2>conftest.er1
14531 grep -v '^ *+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } && {
14536 test -z "$ac_c_werror_flag" ||
14537 test ! -s conftest.err
14538 } && test -s conftest$ac_exeext &&
14539 $as_test_x conftest$ac_exeext; then
14540 eval "$as_ac_var=yes"
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 eval "$as_ac_var=no"
14548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14549 conftest$ac_exeext conftest.$ac_ext
14551 ac_res=`eval echo '${'$as_ac_var'}'`
14552 { echo "$as_me:$LINENO: result: $ac_res" >&5
14553 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_var'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14558 case $ac_sys_system in
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14573 # Check for enable-ipv6
14576 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14577 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14578 # Check whether --enable-ipv6 was given.
14579 if test "${enable_ipv6+set}" = set; then
14580 enableval=$enable_ipv6; case "$enableval" in
14582 { echo "$as_me:$LINENO: result: no" >&5
14583 echo "${ECHO_T}no" >&6; }
14586 *) { echo "$as_me:$LINENO: result: yes" >&5
14587 echo "${ECHO_T}yes" >&6; }
14588 cat >>confdefs.h <<\_ACEOF
14589 #define ENABLE_IPV6 1
14597 if test "$cross_compiling" = yes; then
14598 { echo "$as_me:$LINENO: result: no" >&5
14599 echo "${ECHO_T}no" >&6; }
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 /* AF_INET6 available check */
14610 #include <sys/types.h>
14611 #include <sys/socket.h>
14614 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14621 rm -f conftest$ac_exeext
14622 if { (ac_try="$ac_link"
14623 case "(($ac_try" in
14624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14625 *) ac_try_echo
=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_link") 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14632 { (case "(($ac_try" in
14633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_try") 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 { echo "$as_me:$LINENO: result: yes" >&5
14642 echo "${ECHO_T}yes" >&6; }
14645 echo "$as_me: program exited with status $ac_status" >&5
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ( exit $ac_status )
14650 { echo "$as_me:$LINENO: result: no" >&5
14651 echo "${ECHO_T}no" >&6; }
14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14659 if test "$ipv6" = "yes"; then
14660 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14661 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <sys/types.h>
14669 #include <netinet/in.h>
14673 struct sockaddr_in6 x;
14679 rm -f conftest.$ac_objext
14680 if { (ac_try="$ac_compile"
14681 case "(($ac_try" in
14682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14683 *) ac_try_echo
=$ac_try;;
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_compile") 2>conftest.er1
14688 grep -v '^ *+' conftest.er1
>conftest.err
14690 cat conftest.err
>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && {
14693 test -z "$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest.
$ac_objext; then
14696 { echo "$as_me:$LINENO: result: yes" >&5
14697 echo "${ECHO_T}yes" >&6; }
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.
$ac_ext >&5
14703 { echo "$as_me:$LINENO: result: no" >&5
14704 echo "${ECHO_T}no" >&6; }
14708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14711 if test "$ipv6" = "yes"; then
14712 cat >>confdefs.h
<<\_ACEOF
14713 #define ENABLE_IPV6 1
14725 if test "$ipv6" = "yes"; then
14726 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14727 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
14728 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
14732 cat >conftest.
$ac_ext <<_ACEOF
14735 cat confdefs.h
>>conftest.
$ac_ext
14736 cat >>conftest.
$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14739 #include <netinet/in.h>
14740 #ifdef IPV6_INRIA_VERSION
14744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14745 $EGREP "yes" >/dev
/null
2>&1; then
14752 cat >conftest.
$ac_ext <<_ACEOF
14755 cat confdefs.h
>>conftest.
$ac_ext
14756 cat >>conftest.
$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14759 #include <netinet/in.h>
14764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14765 $EGREP "yes" >/dev
/null
2>&1; then
14768 ipv6libdir
=/usr
/local
/v
6/lib
14775 cat >conftest.
$ac_ext <<_ACEOF
14778 cat confdefs.h
>>conftest.
$ac_ext
14779 cat >>conftest.
$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14782 #include <features.h>
14783 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14788 $EGREP "yes" >/dev
/null
2>&1; then
14796 if test -d /usr
/inet6
; then
14799 ipv6libdir
=/usr
/inet
6/lib
14800 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
14804 if test -f /etc
/netconfig
; then
14805 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
14812 cat >conftest.
$ac_ext <<_ACEOF
14815 cat confdefs.h
>>conftest.
$ac_ext
14816 cat >>conftest.
$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14819 #include <sys/param.h>
14820 #ifdef _TOSHIBA_INET6
14824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14825 $EGREP "yes" >/dev
/null
2>&1; then
14828 ipv6libdir
=/usr
/local
/v
6/lib
14834 cat >conftest.
$ac_ext <<_ACEOF
14837 cat confdefs.h
>>conftest.
$ac_ext
14838 cat >>conftest.
$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14841 #include </usr/local/v6/include/sys/v6config.h>
14846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14847 $EGREP "yes" >/dev
/null
2>&1; then
14850 ipv6libdir
=/usr
/local
/v
6/lib
;
14851 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
14857 cat >conftest.
$ac_ext <<_ACEOF
14860 cat confdefs.h
>>conftest.
$ac_ext
14861 cat >>conftest.
$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14864 #include <sys/param.h>
14865 #ifdef _ZETA_MINAMI_INET6
14869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14870 $EGREP "yes" >/dev
/null
2>&1; then
14873 ipv6libdir
=/usr
/local
/v
6/lib
14879 if test "$ipv6type" != "unknown"; then
14883 { echo "$as_me:$LINENO: result: $ipv6type" >&5
14884 echo "${ECHO_T}$ipv6type" >&6; }
14887 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14888 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
14889 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
14890 echo "using lib$ipv6lib"
14892 if test $ipv6trylibc = "yes"; then
14895 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14896 echo "You need to fetch lib$ipv6lib.a from appropriate"
14897 echo 'ipv6 kit and compile beforehand.'
14903 # Check for --with-doc-strings
14904 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14905 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
14907 # Check whether --with-doc-strings was given.
14908 if test "${with_doc_strings+set}" = set; then
14909 withval
=$with_doc_strings;
14913 if test -z "$with_doc_strings"
14914 then with_doc_strings
="yes"
14916 if test "$with_doc_strings" != "no"
14919 cat >>confdefs.h
<<\_ACEOF
14920 #define WITH_DOC_STRINGS 1
14924 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14925 echo "${ECHO_T}$with_doc_strings" >&6; }
14927 # Check for Python-specific malloc support
14928 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
14929 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
14931 # Check whether --with-tsc was given.
14932 if test "${with_tsc+set}" = set; then
14934 if test "$withval" != no
14937 cat >>confdefs.h
<<\_ACEOF
14941 { echo "$as_me:$LINENO: result: yes" >&5
14942 echo "${ECHO_T}yes" >&6; }
14943 else { echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6; }
14947 { echo "$as_me:$LINENO: result: no" >&5
14948 echo "${ECHO_T}no" >&6; }
14952 # Check for Python-specific malloc support
14953 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14954 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
14956 # Check whether --with-pymalloc was given.
14957 if test "${with_pymalloc+set}" = set; then
14958 withval
=$with_pymalloc;
14962 if test -z "$with_pymalloc"
14963 then with_pymalloc
="yes"
14965 if test "$with_pymalloc" != "no"
14968 cat >>confdefs.h
<<\_ACEOF
14969 #define WITH_PYMALLOC 1
14973 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14974 echo "${ECHO_T}$with_pymalloc" >&6; }
14976 # Check for --with-wctype-functions
14977 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14978 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
14980 # Check whether --with-wctype-functions was given.
14981 if test "${with_wctype_functions+set}" = set; then
14982 withval
=$with_wctype_functions;
14983 if test "$withval" != no
14986 cat >>confdefs.h
<<\_ACEOF
14987 #define WANT_WCTYPE_FUNCTIONS 1
14990 { echo "$as_me:$LINENO: result: yes" >&5
14991 echo "${ECHO_T}yes" >&6; }
14992 else { echo "$as_me:$LINENO: result: no" >&5
14993 echo "${ECHO_T}no" >&6; }
14996 { echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6; }
15001 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15005 # the dlopen() function means we might want to use dynload_shlib.o. some
15006 # platforms, such as AIX, have dlopen(), but don't want to use it.
15008 for ac_func
in dlopen
15010 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15013 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 cat >conftest.
$ac_ext <<_ACEOF
15019 cat confdefs.h
>>conftest.
$ac_ext
15020 cat >>conftest.
$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15024 #define $ac_func innocuous_$ac_func
15026 /* System header to define __stub macros and hopefully few prototypes,
15027 which can conflict with char $ac_func (); below.
15028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15029 <limits.h> exists even on freestanding compilers. */
15032 # include <limits.h>
15034 # include <assert.h>
15039 /* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15046 /* The GNU C library defines this for functions which it implements
15047 to always fail with ENOSYS. Some functions are actually named
15048 something starting with __ and the normal name is an alias. */
15049 #if defined __stub_$ac_func || defined __stub___$ac_func
15056 return $ac_func ();
15061 rm -f conftest.
$ac_objext conftest
$ac_exeext
15062 if { (ac_try
="$ac_link"
15063 case "(($ac_try" in
15064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
15079 eval "$as_ac_var=yes"
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 eval "$as_ac_var=no"
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15090 ac_res=`eval echo '${'$as_ac_var'}'`
15091 { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15093 if test `eval echo '${'$as_ac_var'}'` = yes; then
15094 cat >>confdefs.h <<_ACEOF
15095 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15102 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15103 # loading of modules.
15105 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15106 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15107 if test -z "$DYNLOADFILE"
15109 case $ac_sys_system/$ac_sys_release in
15110 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15111 if test "$ac_cv_func_dlopen" = yes
15112 then DYNLOADFILE="dynload_shlib.o"
15113 else DYNLOADFILE="dynload_aix.o"
15116 BeOS*) DYNLOADFILE="dynload_beos.o";;
15117 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15118 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15119 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15120 atheos*) DYNLOADFILE="dynload_atheos.o";;
15122 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15123 # out any dynamic loading
15124 if test "$ac_cv_func_dlopen" = yes
15125 then DYNLOADFILE="dynload_shlib.o"
15126 else DYNLOADFILE="dynload_stub.o"
15131 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15132 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15133 if test "$DYNLOADFILE" != "dynload_stub.o"
15136 cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_DYNAMIC_LOADING 1
15142 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15145 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15146 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15147 if test -z "$MACHDEP_OBJS"
15149 MACHDEP_OBJS=$extra_machdep_objs
15151 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15153 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15154 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15156 # checks for library functions
15236 for ac_func in alarm bind_textdomain_codeset chown clock confstr \
15237 ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15238 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15239 getpriority getpwent getspnam getspent getsid getwd \
15240 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15241 mremap nice pathconf pause plock poll pthread_init \
15242 putenv readlink realpath \
15243 select setegid seteuid setgid \
15244 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15245 sigaction siginterrupt sigrelse strftime \
15246 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15247 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15249 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15263 #define $ac_func innocuous_$ac_func
15265 /* System header to define __stub macros and hopefully few prototypes,
15266 which can conflict with char $ac_func (); below.
15267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15268 <limits.h> exists even on freestanding compilers. */
15271 # include <limits.h>
15273 # include <assert.h>
15278 /* Override any GCC internal prototype to avoid an error.
15279 Use char because int might match the return type of a GCC
15280 builtin and then its argument prototype would still apply. */
15285 /* The GNU C library defines this for functions which it implements
15286 to always fail with ENOSYS. Some functions are actually named
15287 something starting with __ and the normal name is an alias. */
15288 #if defined __stub_$ac_func || defined __stub___$ac_func
15295 return $ac_func ();
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15304 *) ac_try_echo
=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_link") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1
>conftest.err
15311 cat conftest.err
>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest
$ac_exeext &&
15317 $as_test_x conftest
$ac_exeext; then
15318 eval "$as_ac_var=yes"
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.
$ac_ext >&5
15323 eval "$as_ac_var=no"
15326 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15327 conftest
$ac_exeext conftest.
$ac_ext
15329 ac_res
=`eval echo '${'$as_ac_var'}'`
15330 { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15332 if test `eval echo '${'$as_ac_var'}'` = yes; then
15333 cat >>confdefs.h
<<_ACEOF
15334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15341 # For some functions, having a definition is not sufficient, since
15342 # we want to take their address.
15343 { echo "$as_me:$LINENO: checking for chroot" >&5
15344 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15345 cat >conftest.
$ac_ext <<_ACEOF
15348 cat confdefs.h
>>conftest.
$ac_ext
15349 cat >>conftest.
$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 #include <unistd.h>
15360 rm -f conftest.
$ac_objext
15361 if { (ac_try
="$ac_compile"
15362 case "(($ac_try" in
15363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_compile") 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } && {
15374 test -z "$ac_c_werror_flag" ||
15375 test ! -s conftest.err
15376 } && test -s conftest.$ac_objext; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_CHROOT 1
15382 { echo "$as_me:$LINENO: result: yes" >&5
15383 echo "${ECHO_T}yes" >&6; }
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 { echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6; }
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 { echo "$as_me:$LINENO: checking for link" >&5
15395 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 #include <unistd.h>
15411 rm -f conftest.$ac_objext
15412 if { (ac_try="$ac_compile"
15413 case "(($ac_try" in
15414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15415 *) ac_try_echo
=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_compile") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1
>conftest.err
15422 cat conftest.err
>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } && {
15425 test -z "$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15427 } && test -s conftest.
$ac_objext; then
15429 cat >>confdefs.h
<<\_ACEOF
15430 #define HAVE_LINK 1
15433 { echo "$as_me:$LINENO: result: yes" >&5
15434 echo "${ECHO_T}yes" >&6; }
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.
$ac_ext >&5
15439 { echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6; }
15444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15445 { echo "$as_me:$LINENO: checking for symlink" >&5
15446 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15447 cat >conftest.
$ac_ext <<_ACEOF
15450 cat confdefs.h
>>conftest.
$ac_ext
15451 cat >>conftest.
$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <unistd.h>
15462 rm -f conftest.
$ac_objext
15463 if { (ac_try
="$ac_compile"
15464 case "(($ac_try" in
15465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_compile") 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest.$ac_objext; then
15480 cat >>confdefs.h <<\_ACEOF
15481 #define HAVE_SYMLINK 1
15484 { echo "$as_me:$LINENO: result: yes" >&5
15485 echo "${ECHO_T}yes" >&6; }
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 { echo "$as_me:$LINENO: result: no" >&5
15491 echo "${ECHO_T}no" >&6; }
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 { echo "$as_me:$LINENO: checking for fchdir" >&5
15497 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 #include <unistd.h>
15513 rm -f conftest.$ac_objext
15514 if { (ac_try="$ac_compile"
15515 case "(($ac_try" in
15516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15517 *) ac_try_echo
=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_compile") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1
>conftest.err
15524 cat conftest.err
>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest.
$ac_objext; then
15531 cat >>confdefs.h
<<\_ACEOF
15532 #define HAVE_FCHDIR 1
15535 { echo "$as_me:$LINENO: result: yes" >&5
15536 echo "${ECHO_T}yes" >&6; }
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.
$ac_ext >&5
15541 { echo "$as_me:$LINENO: result: no" >&5
15542 echo "${ECHO_T}no" >&6; }
15546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15547 { echo "$as_me:$LINENO: checking for fsync" >&5
15548 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15549 cat >conftest.
$ac_ext <<_ACEOF
15552 cat confdefs.h
>>conftest.
$ac_ext
15553 cat >>conftest.
$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <unistd.h>
15564 rm -f conftest.
$ac_objext
15565 if { (ac_try
="$ac_compile"
15566 case "(($ac_try" in
15567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_compile") 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && {
15578 test -z "$ac_c_werror_flag" ||
15579 test ! -s conftest.err
15580 } && test -s conftest.$ac_objext; then
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_FSYNC 1
15586 { echo "$as_me:$LINENO: result: yes" >&5
15587 echo "${ECHO_T}yes" >&6; }
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 { echo "$as_me:$LINENO: result: no" >&5
15593 echo "${ECHO_T}no" >&6; }
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15599 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include <unistd.h>
15615 rm -f conftest.$ac_objext
15616 if { (ac_try="$ac_compile"
15617 case "(($ac_try" in
15618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15619 *) ac_try_echo
=$ac_try;;
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_compile") 2>conftest.er1
15624 grep -v '^ *+' conftest.er1
>conftest.err
15626 cat conftest.err
>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } && {
15629 test -z "$ac_c_werror_flag" ||
15630 test ! -s conftest.err
15631 } && test -s conftest.
$ac_objext; then
15633 cat >>confdefs.h
<<\_ACEOF
15634 #define HAVE_FDATASYNC 1
15637 { echo "$as_me:$LINENO: result: yes" >&5
15638 echo "${ECHO_T}yes" >&6; }
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.
$ac_ext >&5
15643 { echo "$as_me:$LINENO: result: no" >&5
15644 echo "${ECHO_T}no" >&6; }
15648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15650 # On some systems (eg. FreeBSD 5), we would find a definition of the
15651 # functions ctermid_r, setgroups in the library, but no prototype
15652 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15653 # address to avoid compiler warnings and potential miscompilations
15654 # because of the missing prototypes.
15656 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
15657 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
15658 cat >conftest.
$ac_ext <<_ACEOF
15661 cat confdefs.h
>>conftest.
$ac_ext
15662 cat >>conftest.
$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15665 #include "confdefs.h"
15671 void* p = ctermid_r
15676 rm -f conftest.
$ac_objext
15677 if { (ac_try
="$ac_compile"
15678 case "(($ac_try" in
15679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_compile") 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && {
15690 test -z "$ac_c_werror_flag" ||
15691 test ! -s conftest.err
15692 } && test -s conftest.$ac_objext; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define HAVE_CTERMID_R 1
15698 { echo "$as_me:$LINENO: result: yes" >&5
15699 echo "${ECHO_T}yes" >&6; }
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 { echo "$as_me:$LINENO: result: no" >&5
15705 echo "${ECHO_T}no" >&6; }
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 { echo "$as_me:$LINENO: checking for flock" >&5
15712 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15720 #include "confdefs.h"
15721 #include <sys/file.h>
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15735 *) ac_try_echo
=$ac_try;;
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15740 grep -v '^ *+' conftest.er1
>conftest.err
15742 cat conftest.err
>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && {
15745 test -z "$ac_c_werror_flag" ||
15746 test ! -s conftest.err
15747 } && test -s conftest.
$ac_objext; then
15749 cat >>confdefs.h
<<\_ACEOF
15750 #define HAVE_FLOCK 1
15753 { echo "$as_me:$LINENO: result: yes" >&5
15754 echo "${ECHO_T}yes" >&6; }
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.
$ac_ext >&5
15759 { echo "$as_me:$LINENO: result: no" >&5
15760 echo "${ECHO_T}no" >&6; }
15764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15766 { echo "$as_me:$LINENO: checking for getpagesize" >&5
15767 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15768 cat >conftest.
$ac_ext <<_ACEOF
15771 cat confdefs.h
>>conftest.
$ac_ext
15772 cat >>conftest.
$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 #include "confdefs.h"
15776 #include <unistd.h>
15781 void* p = getpagesize
15786 rm -f conftest.
$ac_objext
15787 if { (ac_try
="$ac_compile"
15788 case "(($ac_try" in
15789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_compile") 2>conftest.er1
15795 grep -v '^ *+' conftest.er1 >conftest.err
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest.$ac_objext; then
15804 cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_GETPAGESIZE 1
15808 { echo "$as_me:$LINENO: result: yes" >&5
15809 echo "${ECHO_T}yes" >&6; }
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 { echo "$as_me:$LINENO: result: no" >&5
15815 echo "${ECHO_T}no" >&6; }
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 for ac_prog in true
15823 # Extract the first word of "$ac_prog", so it can be a program name with args.
15824 set dummy $ac_prog; ac_word=$2
15825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15827 if test "${ac_cv_prog_TRUE+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 if test -n "$TRUE"; then
15831 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15840 ac_cv_prog_TRUE="$ac_prog"
15841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15850 TRUE=$ac_cv_prog_TRUE
15851 if test -n "$TRUE"; then
15852 { echo "$as_me:$LINENO: result: $TRUE" >&5
15853 echo "${ECHO_T}$TRUE" >&6; }
15855 { echo "$as_me:$LINENO: result: no" >&5
15856 echo "${ECHO_T}no" >&6; }
15860 test -n "$TRUE" && break
15862 test -n "$TRUE" || TRUE="/bin/true"
15865 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15866 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
15867 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 ac_check_lib_save_LIBS=$LIBS
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply. */
15889 return inet_aton ();
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (ac_try="$ac_link"
15896 case "(($ac_try" in
15897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15898 *) ac_try_echo
=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_link") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1
>conftest.err
15905 cat conftest.err
>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_c_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest
$ac_exeext &&
15911 $as_test_x conftest
$ac_exeext; then
15912 ac_cv_lib_c_inet_aton
=yes
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.
$ac_ext >&5
15917 ac_cv_lib_c_inet_aton
=no
15920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15921 conftest
$ac_exeext conftest.
$ac_ext
15922 LIBS
=$ac_check_lib_save_LIBS
15924 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15925 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
15926 if test $ac_cv_lib_c_inet_aton = yes; then
15930 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15931 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
15932 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 ac_check_lib_save_LIBS
=$LIBS
15936 LIBS
="-lresolv $LIBS"
15937 cat >conftest.
$ac_ext <<_ACEOF
15940 cat confdefs.h
>>conftest.
$ac_ext
15941 cat >>conftest.
$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15944 /* Override any GCC internal prototype to avoid an error.
15945 Use char because int might match the return type of a GCC
15946 builtin and then its argument prototype would still apply. */
15954 return inet_aton ();
15959 rm -f conftest.
$ac_objext conftest
$ac_exeext
15960 if { (ac_try
="$ac_link"
15961 case "(($ac_try" in
15962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_link") 2>conftest.er1
15968 grep -v '^ *+' conftest.er1 >conftest.err
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } && {
15973 test -z "$ac_c_werror_flag" ||
15974 test ! -s conftest.err
15975 } && test -s conftest$ac_exeext &&
15976 $as_test_x conftest$ac_exeext; then
15977 ac_cv_lib_resolv_inet_aton=yes
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 ac_cv_lib_resolv_inet_aton=no
15985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15986 conftest$ac_exeext conftest.$ac_ext
15987 LIBS=$ac_check_lib_save_LIBS
15989 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15990 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
15991 if test $ac_cv_lib_resolv_inet_aton = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define HAVE_LIBRESOLV 1
15996 LIBS="-lresolv $LIBS"
16004 # On Tru64, chflags seems to be present, but calling it will
16006 { echo "$as_me:$LINENO: checking for chflags" >&5
16007 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16008 if test "$cross_compiling" = yes; then
16009 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16010 See \`config.log
' for more details." >&5
16011 echo "$as_me: error: cannot run test program while cross compiling
16012 See \`config.log' for more details.
" >&2;}
16013 { (exit 1); exit 1; }; }
16015 cat >conftest.$ac_ext <<_ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16022 #include <sys/stat.h>
16023 #include <unistd.h>
16024 int main(int argc, char*argv[])
16026 if(chflags(argv[0], 0) != 0)
16032 rm -f conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_link") 2>&5
16041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
16050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16051 (exit $ac_status); }; }; then
16053 cat >>confdefs.h <<\_ACEOF
16054 #define HAVE_CHFLAGS 1
16057 { echo "$as_me:$LINENO: result
: yes" >&5
16058 echo "${ECHO_T}yes" >&6; }
16060 echo "$as_me: program exited with status
$ac_status" >&5
16061 echo "$as_me: failed program was
:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 ( exit $ac_status )
16065 { echo "$as_me:$LINENO: result
: no
" >&5
16066 echo "${ECHO_T}no
" >&6; }
16069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
16075 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
16076 if test "$cross_compiling" = yes; then
16077 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
16078 See \
`config.log' for more details." >&5
16079 echo "$as_me: error: cannot run test program while cross compiling
16080 See \`config.log
' for more details." >&2;}
16081 { (exit 1); exit 1; }; }
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16090 #include <sys/stat.h>
16091 #include <unistd.h>
16092 int main(int argc, char*argv[])
16094 if(lchflags(argv[0], 0) != 0)
16100 rm -f conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_link") 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_LCHFLAGS 1
16125 { echo "$as_me:$LINENO: result: yes" >&5
16126 echo "${ECHO_T}yes" >&6; }
16128 echo "$as_me: program exited with status $ac_status" >&5
16129 echo "$as_me: failed program was:" >&5
16130 sed 's
/^
/|
/' conftest.$ac_ext >&5
16132 ( exit $ac_status )
16133 { echo "$as_me:$LINENO: result: no" >&5
16134 echo "${ECHO_T}no" >&6; }
16137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16142 case $ac_sys_system/$ac_sys_release in
16144 _CUR_CFLAGS="${CFLAGS}"
16145 _CUR_LDFLAGS="${LDFLAGS}"
16146 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16147 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16151 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16152 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16153 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 ac_check_lib_save_LIBS=$LIBS
16158 cat >conftest.$ac_ext <<_ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16165 /* Override any GCC internal prototype to avoid an error.
16166 Use char because int might match the return type of a GCC
16167 builtin and then its argument prototype would still apply. */
16171 char inflateCopy ();
16175 return inflateCopy ();
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (ac_try="$ac_link"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_link") 2>conftest.er1
16189 grep -v '^
*+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest$ac_exeext &&
16197 $as_test_x conftest$ac_exeext; then
16198 ac_cv_lib_z_inflateCopy=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's
/^
/|
/' conftest.$ac_ext >&5
16203 ac_cv_lib_z_inflateCopy=no
16206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16207 conftest$ac_exeext conftest.$ac_ext
16208 LIBS=$ac_check_lib_save_LIBS
16210 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16211 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16212 if test $ac_cv_lib_z_inflateCopy = yes; then
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_ZLIB_COPY 1
16221 case $ac_sys_system/$ac_sys_release in
16223 CFLAGS="${_CUR_CFLAGS}"
16224 LDFLAGS="${_CUR_LDFLAGS}"
16228 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16229 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16237 #include "confdefs.h"
16243 void* p = hstrerror; hstrerror(0)
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (ac_try="$ac_link"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_link") 2>conftest.er1
16257 grep -v '^
*+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext &&
16265 $as_test_x conftest$ac_exeext; then
16267 cat >>confdefs.h <<\_ACEOF
16268 #define HAVE_HSTRERROR 1
16271 { echo "$as_me:$LINENO: result: yes" >&5
16272 echo "${ECHO_T}yes" >&6; }
16274 echo "$as_me: failed program was:" >&5
16275 sed 's
/^
/|
/' conftest.$ac_ext >&5
16277 { echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6; }
16282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16283 conftest$ac_exeext conftest.$ac_ext
16285 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16286 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16294 #include "confdefs.h"
16295 #include <sys/types.h>
16296 #include <sys/socket.h>
16297 #include <netinet/in.h>
16298 #include <arpa/inet.h>
16303 void* p = inet_aton;inet_aton(0,0)
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (ac_try="$ac_link"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_link") 2>conftest.er1
16317 grep -v '^
*+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest$ac_exeext &&
16325 $as_test_x conftest$ac_exeext; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define HAVE_INET_ATON 1
16331 { echo "$as_me:$LINENO: result: yes" >&5
16332 echo "${ECHO_T}yes" >&6; }
16334 echo "$as_me: failed program was:" >&5
16335 sed 's
/^
/|
/' conftest.$ac_ext >&5
16337 { echo "$as_me:$LINENO: result: no" >&5
16338 echo "${ECHO_T}no" >&6; }
16342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16343 conftest$ac_exeext conftest.$ac_ext
16345 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16346 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16354 #include "confdefs.h"
16355 #include <sys/types.h>
16356 #include <sys/socket.h>
16357 #include <netinet/in.h>
16358 #include <arpa/inet.h>
16363 void* p = inet_pton
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16377 grep -v '^
*+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } && {
16382 test -z "$ac_c_werror_flag" ||
16383 test ! -s conftest.err
16384 } && test -s conftest.$ac_objext; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE_INET_PTON 1
16390 { echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6; }
16393 echo "$as_me: failed program was:" >&5
16394 sed 's
/^
/|
/' conftest.$ac_ext >&5
16396 { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 # On some systems, setgroups is in unistd.h, on others, in grp.h
16404 { echo "$as_me:$LINENO: checking for setgroups" >&5
16405 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16413 #include "confdefs.h"
16414 #include <unistd.h>
16422 void* p = setgroups
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_compile") 2>conftest.er1
16436 grep -v '^
*+' conftest.er1 >conftest.err
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest.$ac_objext; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_SETGROUPS 1
16449 { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16452 echo "$as_me: failed program was:" >&5
16453 sed 's
/^
/|
/' conftest.$ac_ext >&5
16455 { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462 # check for openpty and forkpty
16465 for ac_func in openpty
16467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 cat >conftest.$ac_ext <<_ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16481 #define $ac_func innocuous_$ac_func
16483 /* System header to define __stub macros and hopefully few prototypes,
16484 which can conflict with char $ac_func (); below.
16485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16486 <limits.h> exists even on freestanding compilers. */
16489 # include <limits.h>
16491 # include <assert.h>
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16503 /* The GNU C library defines this for functions which it implements
16504 to always fail with ENOSYS. Some functions are actually named
16505 something starting with __ and the normal name is an alias. */
16506 #if defined __stub_$ac_func || defined __stub___$ac_func
16513 return $ac_func ();
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (ac_try="$ac_link"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_link") 2>conftest.er1
16527 grep -v '^
*+' conftest.er1 >conftest.err
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest$ac_exeext &&
16535 $as_test_x conftest$ac_exeext; then
16536 eval "$as_ac_var=yes"
16538 echo "$as_me: failed program was:" >&5
16539 sed 's
/^
/|
/' conftest.$ac_ext >&5
16541 eval "$as_ac_var=no"
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545 conftest$ac_exeext conftest.$ac_ext
16547 ac_res=`eval echo '${'$as_ac_var'}'`
16548 { echo "$as_me:$LINENO: result: $ac_res" >&5
16549 echo "${ECHO_T}$ac_res" >&6; }
16550 if test `eval echo '${'$as_ac_var'}'` = yes; then
16551 cat >>confdefs.h <<_ACEOF
16552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16556 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16557 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16558 if test "${ac_cv_lib_util_openpty+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 ac_check_lib_save_LIBS=$LIBS
16562 LIBS="-lutil $LIBS"
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (ac_try="$ac_link"
16587 case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_link") 2>conftest.er1
16594 grep -v '^
*+' conftest.er1 >conftest.err
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && {
16599 test -z "$ac_c_werror_flag" ||
16600 test ! -s conftest.err
16601 } && test -s conftest$ac_exeext &&
16602 $as_test_x conftest$ac_exeext; then
16603 ac_cv_lib_util_openpty=yes
16605 echo "$as_me: failed program was:" >&5
16606 sed 's
/^
/|
/' conftest.$ac_ext >&5
16608 ac_cv_lib_util_openpty=no
16611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16612 conftest$ac_exeext conftest.$ac_ext
16613 LIBS=$ac_check_lib_save_LIBS
16615 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16616 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
16617 if test $ac_cv_lib_util_openpty = yes; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_OPENPTY 1
16621 LIBS="$LIBS -lutil"
16623 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16624 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
16625 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 ac_check_lib_save_LIBS=$LIBS
16630 cat >conftest.$ac_ext <<_ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16637 /* Override any GCC internal prototype to avoid an error.
16638 Use char because int might match the return type of a GCC
16639 builtin and then its argument prototype would still apply. */
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (ac_try="$ac_link"
16654 case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_link") 2>conftest.er1
16661 grep -v '^
*+' conftest.er1 >conftest.err
16663 cat conftest.err >&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } && {
16666 test -z "$ac_c_werror_flag" ||
16667 test ! -s conftest.err
16668 } && test -s conftest$ac_exeext &&
16669 $as_test_x conftest$ac_exeext; then
16670 ac_cv_lib_bsd_openpty=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's
/^
/|
/' conftest.$ac_ext >&5
16675 ac_cv_lib_bsd_openpty=no
16678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16683 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
16684 if test $ac_cv_lib_bsd_openpty = yes; then
16685 cat >>confdefs.h <<\_ACEOF
16686 #define HAVE_OPENPTY 1
16699 for ac_func in forkpty
16701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16715 #define $ac_func innocuous_$ac_func
16717 /* System header to define __stub macros and hopefully few prototypes,
16718 which can conflict with char $ac_func (); below.
16719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16720 <limits.h> exists even on freestanding compilers. */
16723 # include <limits.h>
16725 # include <assert.h>
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16737 /* The GNU C library defines this for functions which it implements
16738 to always fail with ENOSYS. Some functions are actually named
16739 something starting with __ and the normal name is an alias. */
16740 #if defined __stub_$ac_func || defined __stub___$ac_func
16747 return $ac_func ();
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_link") 2>conftest.er1
16761 grep -v '^
*+' conftest.er1 >conftest.err
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_c_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest$ac_exeext &&
16769 $as_test_x conftest$ac_exeext; then
16770 eval "$as_ac_var=yes"
16772 echo "$as_me: failed program was:" >&5
16773 sed 's
/^
/|
/' conftest.$ac_ext >&5
16775 eval "$as_ac_var=no"
16778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16779 conftest$ac_exeext conftest.$ac_ext
16781 ac_res=`eval echo '${'$as_ac_var'}'`
16782 { echo "$as_me:$LINENO: result: $ac_res" >&5
16783 echo "${ECHO_T}$ac_res" >&6; }
16784 if test `eval echo '${'$as_ac_var'}'` = yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16790 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16791 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
16792 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 ac_check_lib_save_LIBS=$LIBS
16796 LIBS="-lutil $LIBS"
16797 cat >conftest.$ac_ext <<_ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16804 /* Override any GCC internal prototype to avoid an error.
16805 Use char because int might match the return type of a GCC
16806 builtin and then its argument prototype would still apply. */
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16828 grep -v '^
*+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest$ac_exeext &&
16836 $as_test_x conftest$ac_exeext; then
16837 ac_cv_lib_util_forkpty=yes
16839 echo "$as_me: failed program was:" >&5
16840 sed 's
/^
/|
/' conftest.$ac_ext >&5
16842 ac_cv_lib_util_forkpty=no
16845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16846 conftest$ac_exeext conftest.$ac_ext
16847 LIBS=$ac_check_lib_save_LIBS
16849 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16850 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
16851 if test $ac_cv_lib_util_forkpty = yes; then
16852 cat >>confdefs.h <<\_ACEOF
16853 #define HAVE_FORKPTY 1
16855 LIBS="$LIBS -lutil"
16857 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16858 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
16859 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 ac_check_lib_save_LIBS=$LIBS
16864 cat >conftest.$ac_ext <<_ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (ac_try="$ac_link"
16888 case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_link") 2>conftest.er1
16895 grep -v '^
*+' conftest.er1 >conftest.err
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } && {
16900 test -z "$ac_c_werror_flag" ||
16901 test ! -s conftest.err
16902 } && test -s conftest$ac_exeext &&
16903 $as_test_x conftest$ac_exeext; then
16904 ac_cv_lib_bsd_forkpty=yes
16906 echo "$as_me: failed program was:" >&5
16907 sed 's
/^
/|
/' conftest.$ac_ext >&5
16909 ac_cv_lib_bsd_forkpty=no
16912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16913 conftest$ac_exeext conftest.$ac_ext
16914 LIBS=$ac_check_lib_save_LIBS
16916 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16917 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
16918 if test $ac_cv_lib_bsd_forkpty = yes; then
16919 cat >>confdefs.h <<\_ACEOF
16920 #define HAVE_FORKPTY 1
16933 # check for long file support functions
16940 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define $ac_func innocuous_$ac_func
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char $ac_func (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16964 # include <limits.h>
16966 # include <assert.h>
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined __stub_$ac_func || defined __stub___$ac_func
16988 return $ac_func ();
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17002 grep -v '^
*+' conftest.er1 >conftest.err
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && {
17007 test -z "$ac_c_werror_flag" ||
17008 test ! -s conftest.err
17009 } && test -s conftest$ac_exeext &&
17010 $as_test_x conftest$ac_exeext; then
17011 eval "$as_ac_var=yes"
17013 echo "$as_me: failed program was:" >&5
17014 sed 's
/^
/|
/' conftest.$ac_ext >&5
17016 eval "$as_ac_var=no"
17019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17020 conftest$ac_exeext conftest.$ac_ext
17022 ac_res=`eval echo '${'$as_ac_var'}'`
17023 { echo "$as_me:$LINENO: result: $ac_res" >&5
17024 echo "${ECHO_T}$ac_res" >&6; }
17025 if test `eval echo '${'$as_ac_var'}'` = yes; then
17026 cat >>confdefs.h <<_ACEOF
17027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17039 for ac_func in dup2 getcwd strdup strerror memmove
17041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17055 #define $ac_func innocuous_$ac_func
17057 /* System header to define __stub macros and hopefully few prototypes,
17058 which can conflict with char $ac_func (); below.
17059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060 <limits.h> exists even on freestanding compilers. */
17063 # include <limits.h>
17065 # include <assert.h>
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17077 /* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080 #if defined __stub_$ac_func || defined __stub___$ac_func
17087 return $ac_func ();
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^
*+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 eval "$as_ac_var=yes"
17112 echo "$as_me: failed program was:" >&5
17113 sed 's
/^
/|
/' conftest.$ac_ext >&5
17115 eval "$as_ac_var=no"
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122 { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125 cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17130 case " $LIBOBJS " in
17131 *" $ac_func.$ac_objext "* ) ;;
17132 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17141 for ac_func in getpgrp
17143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 cat >conftest.$ac_ext <<_ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17157 #define $ac_func innocuous_$ac_func
17159 /* System header to define __stub macros and hopefully few prototypes,
17160 which can conflict with char $ac_func (); below.
17161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17162 <limits.h> exists even on freestanding compilers. */
17165 # include <limits.h>
17167 # include <assert.h>
17172 /* Override any GCC internal prototype to avoid an error.
17173 Use char because int might match the return type of a GCC
17174 builtin and then its argument prototype would still apply. */
17179 /* The GNU C library defines this for functions which it implements
17180 to always fail with ENOSYS. Some functions are actually named
17181 something starting with __ and the normal name is an alias. */
17182 #if defined __stub_$ac_func || defined __stub___$ac_func
17189 return $ac_func ();
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (ac_try="$ac_link"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_link") 2>conftest.er1
17203 grep -v '^
*+' conftest.er1 >conftest.err
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && {
17208 test -z "$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 } && test -s conftest$ac_exeext &&
17211 $as_test_x conftest$ac_exeext; then
17212 eval "$as_ac_var=yes"
17214 echo "$as_me: failed program was:" >&5
17215 sed 's
/^
/|
/' conftest.$ac_ext >&5
17217 eval "$as_ac_var=no"
17220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221 conftest$ac_exeext conftest.$ac_ext
17223 ac_res=`eval echo '${'$as_ac_var'}'`
17224 { echo "$as_me:$LINENO: result: $ac_res" >&5
17225 echo "${ECHO_T}$ac_res" >&6; }
17226 if test `eval echo '${'$as_ac_var'}'` = yes; then
17227 cat >>confdefs.h <<_ACEOF
17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <unistd.h>
17245 rm -f conftest.$ac_objext
17246 if { (ac_try="$ac_compile"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_compile") 2>conftest.er1
17254 grep -v '^
*+' conftest.er1 >conftest.err
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } && {
17259 test -z "$ac_c_werror_flag" ||
17260 test ! -s conftest.err
17261 } && test -s conftest.$ac_objext; then
17263 cat >>confdefs.h <<\_ACEOF
17264 #define GETPGRP_HAVE_ARG 1
17269 echo "$as_me: failed program was:" >&5
17270 sed 's
/^
/|
/' conftest.$ac_ext >&5
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17281 for ac_func in setpgrp
17283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 cat >conftest.$ac_ext <<_ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297 #define $ac_func innocuous_$ac_func
17299 /* System header to define __stub macros and hopefully few prototypes,
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17305 # include <limits.h>
17307 # include <assert.h>
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17319 /* The GNU C library defines this for functions which it implements
17320 to always fail with ENOSYS. Some functions are actually named
17321 something starting with __ and the normal name is an alias. */
17322 #if defined __stub_$ac_func || defined __stub___$ac_func
17329 return $ac_func ();
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17343 grep -v '^
*+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } && {
17348 test -z "$ac_c_werror_flag" ||
17349 test ! -s conftest.err
17350 } && test -s conftest$ac_exeext &&
17351 $as_test_x conftest$ac_exeext; then
17352 eval "$as_ac_var=yes"
17354 echo "$as_me: failed program was:" >&5
17355 sed 's
/^
/|
/' conftest.$ac_ext >&5
17357 eval "$as_ac_var=no"
17360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17361 conftest$ac_exeext conftest.$ac_ext
17363 ac_res=`eval echo '${'$as_ac_var'}'`
17364 { echo "$as_me:$LINENO: result: $ac_res" >&5
17365 echo "${ECHO_T}$ac_res" >&6; }
17366 if test `eval echo '${'$as_ac_var'}'` = yes; then
17367 cat >>confdefs.h <<_ACEOF
17368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 #include <unistd.h>
17385 rm -f conftest.$ac_objext
17386 if { (ac_try="$ac_compile"
17387 case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_compile") 2>conftest.er1
17394 grep -v '^
*+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest.$ac_objext; then
17403 cat >>confdefs.h <<\_ACEOF
17404 #define SETPGRP_HAVE_ARG 1
17409 echo "$as_me: failed program was:" >&5
17410 sed 's
/^
/|
/' conftest.$ac_ext >&5
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 for ac_func in gettimeofday
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437 #define $ac_func innocuous_$ac_func
17439 /* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17445 # include <limits.h>
17447 # include <assert.h>
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17459 /* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462 #if defined __stub_$ac_func || defined __stub___$ac_func
17469 return $ac_func ();
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17483 grep -v '^
*+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && {
17488 test -z "$ac_c_werror_flag" ||
17489 test ! -s conftest.err
17490 } && test -s conftest$ac_exeext &&
17491 $as_test_x conftest$ac_exeext; then
17492 eval "$as_ac_var=yes"
17494 echo "$as_me: failed program was:" >&5
17495 sed 's
/^
/|
/' conftest.$ac_ext >&5
17497 eval "$as_ac_var=no"
17500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17501 conftest$ac_exeext conftest.$ac_ext
17503 ac_res=`eval echo '${'$as_ac_var'}'`
17504 { echo "$as_me:$LINENO: result: $ac_res" >&5
17505 echo "${ECHO_T}$ac_res" >&6; }
17506 if test `eval echo '${'$as_ac_var'}'` = yes; then
17507 cat >>confdefs.h <<_ACEOF
17508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 #include <sys/time.h>
17520 gettimeofday((struct timeval*)0,(struct timezone*)0);
17525 rm -f conftest.$ac_objext
17526 if { (ac_try="$ac_compile"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_compile") 2>conftest.er1
17534 grep -v '^
*+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && {
17539 test -z "$ac_c_werror_flag" ||
17540 test ! -s conftest.err
17541 } && test -s conftest.$ac_objext; then
17544 echo "$as_me: failed program was:" >&5
17545 sed 's
/^
/|
/' conftest.$ac_ext >&5
17548 cat >>confdefs.h <<\_ACEOF
17549 #define GETTIMEOFDAY_NO_TZ 1
17555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: checking for major" >&5
17562 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17570 #if defined(MAJOR_IN_MKDEV)
17571 #include <sys/mkdev.h>
17572 #elif defined(MAJOR_IN_SYSMACROS)
17573 #include <sys/sysmacros.h>
17575 #include <sys/types.h>
17582 makedev(major(0),minor(0));
17588 rm -f conftest.$ac_objext conftest$ac_exeext
17589 if { (ac_try="$ac_link"
17590 case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_link") 2>conftest.er1
17597 grep -v '^
*+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } && {
17602 test -z "$ac_c_werror_flag" ||
17603 test ! -s conftest.err
17604 } && test -s conftest$ac_exeext &&
17605 $as_test_x conftest$ac_exeext; then
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_DEVICE_MACROS 1
17612 { echo "$as_me:$LINENO: result: yes" >&5
17613 echo "${ECHO_T}yes" >&6; }
17616 echo "$as_me: failed program was:" >&5
17617 sed 's
/^
/|
/' conftest.$ac_ext >&5
17620 { echo "$as_me:$LINENO: result: no" >&5
17621 echo "${ECHO_T}no" >&6; }
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17628 # On OSF/1 V5.1, getaddrinfo is available, but a define
17629 # for [no]getaddrinfo in netdb.h.
17630 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17631 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17639 #include <sys/types.h>
17640 #include <sys/socket.h>
17648 getaddrinfo(NULL, NULL, NULL, NULL);
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (ac_try="$ac_link"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_link") 2>conftest.er1
17663 grep -v '^
*+' conftest.er1 >conftest.err
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest$ac_exeext &&
17671 $as_test_x conftest$ac_exeext; then
17673 { echo "$as_me:$LINENO: result: yes" >&5
17674 echo "${ECHO_T}yes" >&6; }
17675 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17676 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
17677 if test "$cross_compiling" = yes; then
17678 { echo "$as_me:$LINENO: result: buggy" >&5
17679 echo "${ECHO_T}buggy" >&6; }
17680 buggygetaddrinfo=yes
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 #include <sys/types.h>
17691 #include <string.h>
17692 #include <sys/socket.h>
17693 #include <netinet/in.h>
17697 int passive, gaierr, inet4 = 0, inet6 = 0;
17698 struct addrinfo hints, *ai, *aitop;
17699 char straddr[INET6_ADDRSTRLEN], strport[16];
17701 for (passive = 0; passive <= 1; passive++) {
17702 memset(&hints, 0, sizeof(hints));
17703 hints.ai_family = AF_UNSPEC;
17704 hints.ai_flags = passive ? AI_PASSIVE : 0;
17705 hints.ai_socktype = SOCK_STREAM;
17706 hints.ai_protocol = IPPROTO_TCP;
17707 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17708 (void)gai_strerror(gaierr);
17711 for (ai = aitop; ai; ai = ai->ai_next) {
17712 if (ai->ai_addr == NULL ||
17713 ai->ai_addrlen == 0 ||
17714 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17715 straddr, sizeof(straddr), strport, sizeof(strport),
17716 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17719 switch (ai->ai_family) {
17721 if (strcmp(strport, "54321") != 0) {
17725 if (strcmp(straddr, "0.0.0.0") != 0) {
17729 if (strcmp(straddr, "127.0.0.1") != 0) {
17736 if (strcmp(strport, "54321") != 0) {
17740 if (strcmp(straddr, "::") != 0) {
17744 if (strcmp(straddr, "::1") != 0) {
17754 /* another family support? */
17760 if (!(inet4 == 0 || inet4 == 2))
17762 if (!(inet6 == 0 || inet6 == 2))
17766 freeaddrinfo(aitop);
17771 freeaddrinfo(aitop);
17776 rm -f conftest$ac_exeext
17777 if { (ac_try="$ac_link"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
17787 { (case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_try") 2>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 { echo "$as_me:$LINENO: result: good" >&5
17797 echo "${ECHO_T}good" >&6; }
17798 buggygetaddrinfo=no
17800 echo "$as_me: program exited with status $ac_status" >&5
17801 echo "$as_me: failed program was:" >&5
17802 sed 's
/^
/|
/' conftest.$ac_ext >&5
17804 ( exit $ac_status )
17805 { echo "$as_me:$LINENO: result: buggy" >&5
17806 echo "${ECHO_T}buggy" >&6; }
17807 buggygetaddrinfo=yes
17809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17814 echo "$as_me: failed program was:" >&5
17815 sed 's
/^
/|
/' conftest.$ac_ext >&5
17818 { echo "$as_me:$LINENO: result: no" >&5
17819 echo "${ECHO_T}no" >&6; }
17820 buggygetaddrinfo=yes
17824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17825 conftest$ac_exeext conftest.$ac_ext
17827 if test "$buggygetaddrinfo" = "yes"; then
17828 if test "$ipv6" = "yes"; then
17829 echo 'Fatal
: You must get working getaddrinfo
() function.
'
17830 echo ' or you can specify
"--disable-ipv6"'.
17835 cat >>confdefs.h <<\_ACEOF
17836 #define HAVE_GETADDRINFO 1
17841 for ac_func in getnameinfo
17843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17857 #define $ac_func innocuous_$ac_func
17859 /* System header to define __stub macros and hopefully few prototypes,
17860 which can conflict with char $ac_func (); below.
17861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17862 <limits.h> exists even on freestanding compilers. */
17865 # include <limits.h>
17867 # include <assert.h>
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17879 /* The GNU C library defines this for functions which it implements
17880 to always fail with ENOSYS. Some functions are actually named
17881 something starting with __ and the normal name is an alias. */
17882 #if defined __stub_$ac_func || defined __stub___$ac_func
17889 return $ac_func ();
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (ac_try="$ac_link"
17896 case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_link") 2>conftest.er1
17903 grep -v '^
*+' conftest.er1 >conftest.err
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && {
17908 test -z "$ac_c_werror_flag" ||
17909 test ! -s conftest.err
17910 } && test -s conftest$ac_exeext &&
17911 $as_test_x conftest$ac_exeext; then
17912 eval "$as_ac_var=yes"
17914 echo "$as_me: failed program was:" >&5
17915 sed 's
/^
/|
/' conftest.$ac_ext >&5
17917 eval "$as_ac_var=no"
17920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17921 conftest$ac_exeext conftest.$ac_ext
17923 ac_res=`eval echo '${'$as_ac_var'}'`
17924 { echo "$as_me:$LINENO: result: $ac_res" >&5
17925 echo "${ECHO_T}$ac_res" >&6; }
17926 if test `eval echo '${'$as_ac_var'}'` = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17935 # checks for structures
17936 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17937 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17938 if test "${ac_cv_header_time+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 #include <sys/types.h>
17948 #include <sys/time.h>
17954 if ((struct tm *) 0)
17960 rm -f conftest.$ac_objext
17961 if { (ac_try="$ac_compile"
17962 case "(($ac_try" in
17963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17969 grep -v '^
*+' conftest.er1 >conftest.err
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.$ac_objext; then
17977 ac_cv_header_time=yes
17979 echo "$as_me: failed program was:" >&5
17980 sed 's
/^
/|
/' conftest.$ac_ext >&5
17982 ac_cv_header_time=no
17985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17988 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17989 if test $ac_cv_header_time = yes; then
17991 cat >>confdefs.h <<\_ACEOF
17992 #define TIME_WITH_SYS_TIME 1
17997 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17998 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17999 if test "${ac_cv_struct_tm+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 cat >conftest.$ac_ext <<_ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 #include <sys/types.h>
18015 int *p = &tm.tm_sec;
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18030 grep -v '^
*+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest.$ac_objext; then
18038 ac_cv_struct_tm=time.h
18040 echo "$as_me: failed program was:" >&5
18041 sed 's
/^
/|
/' conftest.$ac_ext >&5
18043 ac_cv_struct_tm=sys/time.h
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18049 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18050 if test $ac_cv_struct_tm = sys/time.h; then
18052 cat >>confdefs.h <<\_ACEOF
18053 #define TM_IN_SYS_TIME 1
18058 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18059 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18060 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 cat >conftest.$ac_ext <<_ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 #include <sys/types.h>
18070 #include <$ac_cv_struct_tm>
18076 static struct tm ac_aggr;
18077 if (ac_aggr.tm_zone)
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_compile") 2>conftest.er1
18092 grep -v '^
*+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && {
18097 test -z "$ac_c_werror_flag" ||
18098 test ! -s conftest.err
18099 } && test -s conftest.$ac_objext; then
18100 ac_cv_member_struct_tm_tm_zone=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's
/^
/|
/' conftest.$ac_ext >&5
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 #include <sys/types.h>
18112 #include <$ac_cv_struct_tm>
18118 static struct tm ac_aggr;
18119 if (sizeof ac_aggr.tm_zone)
18125 rm -f conftest.$ac_objext
18126 if { (ac_try="$ac_compile"
18127 case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_compile") 2>conftest.er1
18134 grep -v '^
*+' conftest.er1 >conftest.err
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } && {
18139 test -z "$ac_c_werror_flag" ||
18140 test ! -s conftest.err
18141 } && test -s conftest.$ac_objext; then
18142 ac_cv_member_struct_tm_tm_zone=yes
18144 echo "$as_me: failed program was:" >&5
18145 sed 's
/^
/|
/' conftest.$ac_ext >&5
18147 ac_cv_member_struct_tm_tm_zone=no
18150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18156 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18157 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_STRUCT_TM_TM_ZONE 1
18166 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18168 cat >>confdefs.h <<\_ACEOF
18169 #define HAVE_TM_ZONE 1
18173 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18174 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18175 if test "${ac_cv_have_decl_tzname+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18197 rm -f conftest.$ac_objext
18198 if { (ac_try="$ac_compile"
18199 case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_compile") 2>conftest.er1
18206 grep -v '^
*+' conftest.er1 >conftest.err
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } && {
18211 test -z "$ac_c_werror_flag" ||
18212 test ! -s conftest.err
18213 } && test -s conftest.$ac_objext; then
18214 ac_cv_have_decl_tzname=yes
18216 echo "$as_me: failed program was:" >&5
18217 sed 's
/^
/|
/' conftest.$ac_ext >&5
18219 ac_cv_have_decl_tzname=no
18222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18225 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18226 if test $ac_cv_have_decl_tzname = yes; then
18228 cat >>confdefs.h <<_ACEOF
18229 #define HAVE_DECL_TZNAME 1
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_DECL_TZNAME 0
18242 { echo "$as_me:$LINENO: checking for tzname" >&5
18243 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18244 if test "${ac_cv_var_tzname+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 cat >conftest.$ac_ext <<_ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18254 #if !HAVE_DECL_TZNAME
18255 extern char *tzname[];
18261 return tzname[0][0];
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18275 grep -v '^
*+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest$ac_exeext &&
18283 $as_test_x conftest$ac_exeext; then
18284 ac_cv_var_tzname=yes
18286 echo "$as_me: failed program was:" >&5
18287 sed 's
/^
/|
/' conftest.$ac_ext >&5
18289 ac_cv_var_tzname=no
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18295 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18296 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18297 if test $ac_cv_var_tzname = yes; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_TZNAME 1
18306 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18307 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18308 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 $ac_includes_default
18321 static struct stat ac_aggr;
18322 if (ac_aggr.st_rdev)
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_compile") 2>conftest.er1
18337 grep -v '^
*+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } && {
18342 test -z "$ac_c_werror_flag" ||
18343 test ! -s conftest.err
18344 } && test -s conftest.$ac_objext; then
18345 ac_cv_member_struct_stat_st_rdev=yes
18347 echo "$as_me: failed program was:" >&5
18348 sed 's
/^
/|
/' conftest.$ac_ext >&5
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 $ac_includes_default
18360 static struct stat ac_aggr;
18361 if (sizeof ac_aggr.st_rdev)
18367 rm -f conftest.$ac_objext
18368 if { (ac_try="$ac_compile"
18369 case "(($ac_try" in
18370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18371 *) ac_try_echo=$ac_try;;
18373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18374 (eval "$ac_compile") 2>conftest.er1
18376 grep -v '^
*+' conftest.er1 >conftest.err
18378 cat conftest.err >&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } && {
18381 test -z "$ac_c_werror_flag" ||
18382 test ! -s conftest.err
18383 } && test -s conftest.$ac_objext; then
18384 ac_cv_member_struct_stat_st_rdev=yes
18386 echo "$as_me: failed program was:" >&5
18387 sed 's
/^
/|
/' conftest.$ac_ext >&5
18389 ac_cv_member_struct_stat_st_rdev=no
18392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18398 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18399 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_STRUCT_STAT_ST_RDEV 1
18408 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18409 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18410 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 $ac_includes_default
18423 static struct stat ac_aggr;
18424 if (ac_aggr.st_blksize)
18430 rm -f conftest.$ac_objext
18431 if { (ac_try="$ac_compile"
18432 case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_compile") 2>conftest.er1
18439 grep -v '^
*+' conftest.er1 >conftest.err
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && {
18444 test -z "$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18446 } && test -s conftest.$ac_objext; then
18447 ac_cv_member_struct_stat_st_blksize=yes
18449 echo "$as_me: failed program was:" >&5
18450 sed 's
/^
/|
/' conftest.$ac_ext >&5
18452 cat >conftest.$ac_ext <<_ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 $ac_includes_default
18462 static struct stat ac_aggr;
18463 if (sizeof ac_aggr.st_blksize)
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_compile") 2>conftest.er1
18478 grep -v '^
*+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest.$ac_objext; then
18486 ac_cv_member_struct_stat_st_blksize=yes
18488 echo "$as_me: failed program was:" >&5
18489 sed 's
/^
/|
/' conftest.$ac_ext >&5
18491 ac_cv_member_struct_stat_st_blksize=no
18494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18501 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18510 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18511 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18512 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 $ac_includes_default
18525 static struct stat ac_aggr;
18526 if (ac_aggr.st_flags)
18532 rm -f conftest.$ac_objext
18533 if { (ac_try="$ac_compile"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_compile") 2>conftest.er1
18541 grep -v '^
*+' conftest.er1 >conftest.err
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } && {
18546 test -z "$ac_c_werror_flag" ||
18547 test ! -s conftest.err
18548 } && test -s conftest.$ac_objext; then
18549 ac_cv_member_struct_stat_st_flags=yes
18551 echo "$as_me: failed program was:" >&5
18552 sed 's
/^
/|
/' conftest.$ac_ext >&5
18554 cat >conftest.$ac_ext <<_ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 $ac_includes_default
18564 static struct stat ac_aggr;
18565 if (sizeof ac_aggr.st_flags)
18571 rm -f conftest.$ac_objext
18572 if { (ac_try="$ac_compile"
18573 case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_compile") 2>conftest.er1
18580 grep -v '^
*+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest.$ac_objext; then
18588 ac_cv_member_struct_stat_st_flags=yes
18590 echo "$as_me: failed program was:" >&5
18591 sed 's
/^
/|
/' conftest.$ac_ext >&5
18593 ac_cv_member_struct_stat_st_flags=no
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18602 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
18603 if test $ac_cv_member_struct_stat_st_flags = yes; then
18605 cat >>confdefs.h <<_ACEOF
18606 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18612 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18613 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
18614 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 cat >conftest.$ac_ext <<_ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 $ac_includes_default
18627 static struct stat ac_aggr;
18628 if (ac_aggr.st_gen)
18634 rm -f conftest.$ac_objext
18635 if { (ac_try="$ac_compile"
18636 case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_compile") 2>conftest.er1
18643 grep -v '^
*+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && {
18648 test -z "$ac_c_werror_flag" ||
18649 test ! -s conftest.err
18650 } && test -s conftest.$ac_objext; then
18651 ac_cv_member_struct_stat_st_gen=yes
18653 echo "$as_me: failed program was:" >&5
18654 sed 's
/^
/|
/' conftest.$ac_ext >&5
18656 cat >conftest.$ac_ext <<_ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 $ac_includes_default
18666 static struct stat ac_aggr;
18667 if (sizeof ac_aggr.st_gen)
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18682 grep -v '^
*+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } && {
18687 test -z "$ac_c_werror_flag" ||
18688 test ! -s conftest.err
18689 } && test -s conftest.$ac_objext; then
18690 ac_cv_member_struct_stat_st_gen=yes
18692 echo "$as_me: failed program was:" >&5
18693 sed 's
/^
/|
/' conftest.$ac_ext >&5
18695 ac_cv_member_struct_stat_st_gen=no
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18703 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
18705 if test $ac_cv_member_struct_stat_st_gen = yes; then
18707 cat >>confdefs.h <<_ACEOF
18708 #define HAVE_STRUCT_STAT_ST_GEN 1
18714 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18715 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
18716 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 $ac_includes_default
18729 static struct stat ac_aggr;
18730 if (ac_aggr.st_birthtime)
18736 rm -f conftest.$ac_objext
18737 if { (ac_try="$ac_compile"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_compile") 2>conftest.er1
18745 grep -v '^
*+' conftest.er1 >conftest.err
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } && {
18750 test -z "$ac_c_werror_flag" ||
18751 test ! -s conftest.err
18752 } && test -s conftest.$ac_objext; then
18753 ac_cv_member_struct_stat_st_birthtime=yes
18755 echo "$as_me: failed program was:" >&5
18756 sed 's
/^
/|
/' conftest.$ac_ext >&5
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 $ac_includes_default
18768 static struct stat ac_aggr;
18769 if (sizeof ac_aggr.st_birthtime)
18775 rm -f conftest.$ac_objext
18776 if { (ac_try="$ac_compile"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_compile") 2>conftest.er1
18784 grep -v '^
*+' conftest.er1 >conftest.err
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } && {
18789 test -z "$ac_c_werror_flag" ||
18790 test ! -s conftest.err
18791 } && test -s conftest.$ac_objext; then
18792 ac_cv_member_struct_stat_st_birthtime=yes
18794 echo "$as_me: failed program was:" >&5
18795 sed 's
/^
/|
/' conftest.$ac_ext >&5
18797 ac_cv_member_struct_stat_st_birthtime=no
18800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18805 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18806 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
18807 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18809 cat >>confdefs.h <<_ACEOF
18810 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18816 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18817 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
18818 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 $ac_includes_default
18831 static struct stat ac_aggr;
18832 if (ac_aggr.st_blocks)
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_compile") 2>conftest.er1
18847 grep -v '^
*+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest.$ac_objext; then
18855 ac_cv_member_struct_stat_st_blocks=yes
18857 echo "$as_me: failed program was:" >&5
18858 sed 's
/^
/|
/' conftest.$ac_ext >&5
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866 $ac_includes_default
18870 static struct stat ac_aggr;
18871 if (sizeof ac_aggr.st_blocks)
18877 rm -f conftest.$ac_objext
18878 if { (ac_try="$ac_compile"
18879 case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_compile") 2>conftest.er1
18886 grep -v '^
*+' conftest.er1 >conftest.err
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } && {
18891 test -z "$ac_c_werror_flag" ||
18892 test ! -s conftest.err
18893 } && test -s conftest.$ac_objext; then
18894 ac_cv_member_struct_stat_st_blocks=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's
/^
/|
/' conftest.$ac_ext >&5
18899 ac_cv_member_struct_stat_st_blocks=no
18902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18908 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
18909 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_ST_BLOCKS 1
18921 case " $LIBOBJS " in
18922 *" fileblocks.$ac_objext "* ) ;;
18923 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
18931 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18932 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
18933 if test "${ac_cv_header_time_altzone+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18951 rm -f conftest.$ac_objext
18952 if { (ac_try="$ac_compile"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_compile") 2>conftest.er1
18960 grep -v '^
*+' conftest.er1 >conftest.err
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest.$ac_objext; then
18968 ac_cv_header_time_altzone=yes
18970 echo "$as_me: failed program was:" >&5
18971 sed 's
/^
/|
/' conftest.$ac_ext >&5
18973 ac_cv_header_time_altzone=no
18976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18980 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
18981 if test $ac_cv_header_time_altzone = yes; then
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE_ALTZONE 1
18990 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18991 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
18992 cat >conftest.$ac_ext <<_ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18999 #include <sys/types.h>
19000 #include <sys/select.h>
19001 #include <sys/time.h>
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_compile") 2>conftest.er1
19020 grep -v '^
*+' conftest.er1 >conftest.err
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } && {
19025 test -z "$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19027 } && test -s conftest.$ac_objext; then
19030 cat >>confdefs.h <<\_ACEOF
19031 #define SYS_SELECT_WITH_SYS_TIME 1
19037 echo "$as_me: failed program was:" >&5
19038 sed 's
/^
/|
/' conftest.$ac_ext >&5
19043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19045 echo "${ECHO_T}$was_it_defined" >&6; }
19047 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19048 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19049 if test "${ac_cv_struct_addrinfo+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 cat >conftest.$ac_ext <<_ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19059 # include <netdb.h>
19068 rm -f conftest.$ac_objext
19069 if { (ac_try="$ac_compile"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_compile") 2>conftest.er1
19077 grep -v '^
*+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } && {
19082 test -z "$ac_c_werror_flag" ||
19083 test ! -s conftest.err
19084 } && test -s conftest.$ac_objext; then
19085 ac_cv_struct_addrinfo=yes
19087 echo "$as_me: failed program was:" >&5
19088 sed 's
/^
/|
/' conftest.$ac_ext >&5
19090 ac_cv_struct_addrinfo=no
19093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19097 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19098 if test $ac_cv_struct_addrinfo = yes; then
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ADDRINFO 1
19106 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19107 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19108 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19118 # include <sys/types.h>
19119 # include <sys/socket.h>
19123 struct sockaddr_storage s
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19137 grep -v '^
*+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_cv_struct_sockaddr_storage=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's
/^
/|
/' conftest.$ac_ext >&5
19150 ac_cv_struct_sockaddr_storage=no
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19157 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19158 if test $ac_cv_struct_sockaddr_storage = yes; then
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_SOCKADDR_STORAGE 1
19166 # checks for compiler characteristics
19169 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19170 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19171 if test "${ac_cv_c_char_unsigned+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 $ac_includes_default
19184 static int test_array [1 - 2 * !(((char) -1) < 0)];
19191 rm -f conftest.$ac_objext
19192 if { (ac_try="$ac_compile"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_compile") 2>conftest.er1
19200 grep -v '^
*+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } && {
19205 test -z "$ac_c_werror_flag" ||
19206 test ! -s conftest.err
19207 } && test -s conftest.$ac_objext; then
19208 ac_cv_c_char_unsigned=no
19210 echo "$as_me: failed program was:" >&5
19211 sed 's
/^
/|
/' conftest.$ac_ext >&5
19213 ac_cv_c_char_unsigned=yes
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19219 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19220 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define __CHAR_UNSIGNED__ 1
19227 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19228 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19229 if test "${ac_cv_c_const+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19242 /* FIXME: Include the comments suggested by Paul. */
19243 #ifndef __cplusplus
19244 /* Ultrix mips cc rejects this. */
19245 typedef int charset[2];
19247 /* SunOS 4.1.1 cc rejects this. */
19248 char const *const *pcpcc;
19250 /* NEC SVR4.0.2 mips cc rejects this. */
19251 struct point {int x, y;};
19252 static struct point const zero = {0,0};
19253 /* AIX XL C 1.02.0.0 rejects this.
19254 It does not let you subtract one const X* pointer from another in
19255 an arm of an if-expression whose if-part is not a constant
19257 const char *g = "string";
19258 pcpcc = &g + (g ? g-g : 0);
19259 /* HPUX 7.0 cc rejects these. */
19261 ppc = (char**) pcpcc;
19262 pcpcc = (char const *const *) ppc;
19263 { /* SCO 3.2v4 cc rejects this. */
19265 char const *s = 0 ? (char *) 0 : (char const *) 0;
19270 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19271 int x[] = {25, 17};
19272 const int *foo = &x[0];
19275 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19276 typedef const int *iptr;
19280 { /* AIX XL C 1.02.0.0 rejects this saying
19281 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19282 struct s { int j; const int *ap[3]; };
19283 struct s *b; b->j = 5;
19285 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19286 const int foo = 10;
19287 if (!foo) return 0;
19289 return !cs[0] && !zero.x;
19296 rm -f conftest.$ac_objext
19297 if { (ac_try="$ac_compile"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_compile") 2>conftest.er1
19305 grep -v '^
*+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } && {
19310 test -z "$ac_c_werror_flag" ||
19311 test ! -s conftest.err
19312 } && test -s conftest.$ac_objext; then
19315 echo "$as_me: failed program was:" >&5
19316 sed 's
/^
/|
/' conftest.$ac_ext >&5
19321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19324 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19325 if test $ac_cv_c_const = no; then
19327 cat >>confdefs.h <<\_ACEOF
19335 { echo "$as_me:$LINENO: checking for working volatile" >&5
19336 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19347 volatile int x; x = 0;
19352 rm -f conftest.$ac_objext
19353 if { (ac_try="$ac_compile"
19354 case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_compile") 2>conftest.er1
19361 grep -v '^
*+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && {
19366 test -z "$ac_c_werror_flag" ||
19367 test ! -s conftest.err
19368 } && test -s conftest.$ac_objext; then
19371 echo "$as_me: failed program was:" >&5
19372 sed 's
/^
/|
/' conftest.$ac_ext >&5
19375 cat >>confdefs.h <<\_ACEOF
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 { echo "$as_me:$LINENO: result: $works" >&5
19384 echo "${ECHO_T}$works" >&6; }
19387 { echo "$as_me:$LINENO: checking for working signed char" >&5
19388 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_compile") 2>conftest.er1
19413 grep -v '^
*+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest.$ac_objext; then
19423 echo "$as_me: failed program was:" >&5
19424 sed 's
/^
/|
/' conftest.$ac_ext >&5
19427 cat >>confdefs.h <<\_ACEOF
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 { echo "$as_me:$LINENO: result: $works" >&5
19436 echo "${ECHO_T}$works" >&6; }
19439 { echo "$as_me:$LINENO: checking for prototypes" >&5
19440 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 int foo(int x) { return 0; }
19456 rm -f conftest.$ac_objext
19457 if { (ac_try="$ac_compile"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_compile") 2>conftest.er1
19465 grep -v '^
*+' conftest.er1 >conftest.err
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } && {
19470 test -z "$ac_c_werror_flag" ||
19471 test ! -s conftest.err
19472 } && test -s conftest.$ac_objext; then
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_PROTOTYPES 1
19479 have_prototypes=yes
19482 echo "$as_me: failed program was:" >&5
19483 sed 's
/^
/|
/' conftest.$ac_ext >&5
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19490 echo "${ECHO_T}$have_prototypes" >&6; }
19493 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19494 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19495 cat >conftest.$ac_ext <<_ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19502 #include <stdarg.h>
19503 int foo(int x, ...) {
19507 va_arg(va, char *);
19508 va_arg(va, double);
19515 return foo(10, "", 3.14);
19520 rm -f conftest.$ac_objext
19521 if { (ac_try="$ac_compile"
19522 case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_compile") 2>conftest.er1
19529 grep -v '^
*+' conftest.er1 >conftest.err
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } && {
19534 test -z "$ac_c_werror_flag" ||
19535 test ! -s conftest.err
19536 } && test -s conftest.$ac_objext; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_STDARG_PROTOTYPES 1
19546 echo "$as_me: failed program was:" >&5
19547 sed 's
/^
/|
/' conftest.$ac_ext >&5
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 { echo "$as_me:$LINENO: result: $works" >&5
19554 echo "${ECHO_T}$works" >&6; }
19556 # check for socketpair
19557 { echo "$as_me:$LINENO: checking for socketpair" >&5
19558 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 #include <sys/types.h>
19567 #include <sys/socket.h>
19577 rm -f conftest.$ac_objext
19578 if { (ac_try="$ac_compile"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_compile") 2>conftest.er1
19586 grep -v '^
*+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } && {
19591 test -z "$ac_c_werror_flag" ||
19592 test ! -s conftest.err
19593 } && test -s conftest.$ac_objext; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_SOCKETPAIR 1
19599 { echo "$as_me:$LINENO: result: yes" >&5
19600 echo "${ECHO_T}yes" >&6; }
19602 echo "$as_me: failed program was:" >&5
19603 sed 's
/^
/|
/' conftest.$ac_ext >&5
19605 { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612 # check if sockaddr has sa_len member
19613 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19614 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #include <sys/types.h>
19622 #include <sys/socket.h>
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_compile") 2>conftest.er1
19641 grep -v '^
*+' conftest.er1 >conftest.err
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } && {
19646 test -z "$ac_c_werror_flag" ||
19647 test ! -s conftest.err
19648 } && test -s conftest.$ac_objext; then
19649 { echo "$as_me:$LINENO: result: yes" >&5
19650 echo "${ECHO_T}yes" >&6; }
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_SOCKADDR_SA_LEN 1
19657 echo "$as_me: failed program was:" >&5
19658 sed 's
/^
/|
/' conftest.$ac_ext >&5
19660 { echo "$as_me:$LINENO: result: no" >&5
19661 echo "${ECHO_T}no" >&6; }
19664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19666 va_list_is_array=no
19667 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19668 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19676 #ifdef HAVE_STDARG_PROTOTYPES
19677 #include <stdarg.h>
19679 #include <varargs.h>
19685 va_list list1, list2; list1 = list2;
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_compile") 2>conftest.er1
19699 grep -v '^
*+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest.$ac_objext; then
19709 echo "$as_me: failed program was:" >&5
19710 sed 's
/^
/|
/' conftest.$ac_ext >&5
19714 cat >>confdefs.h <<\_ACEOF
19715 #define VA_LIST_IS_ARRAY 1
19718 va_list_is_array=yes
19722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19724 echo "${ECHO_T}$va_list_is_array" >&6; }
19726 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19730 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19731 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
19732 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 cat >conftest.$ac_ext <<_ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19743 #define gethostbyname_r innocuous_gethostbyname_r
19745 /* System header to define __stub macros and hopefully few prototypes,
19746 which can conflict with char gethostbyname_r (); below.
19747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19748 <limits.h> exists even on freestanding compilers. */
19751 # include <limits.h>
19753 # include <assert.h>
19756 #undef gethostbyname_r
19758 /* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19764 char gethostbyname_r ();
19765 /* The GNU C library defines this for functions which it implements
19766 to always fail with ENOSYS. Some functions are actually named
19767 something starting with __ and the normal name is an alias. */
19768 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
19775 return gethostbyname_r ();
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_link") 2>conftest.er1
19789 grep -v '^
*+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest$ac_exeext &&
19797 $as_test_x conftest$ac_exeext; then
19798 ac_cv_func_gethostbyname_r=yes
19800 echo "$as_me: failed program was:" >&5
19801 sed 's
/^
/|
/' conftest.$ac_ext >&5
19803 ac_cv_func_gethostbyname_r=no
19806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19807 conftest$ac_exeext conftest.$ac_ext
19809 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19810 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
19811 if test $ac_cv_func_gethostbyname_r = yes; then
19813 cat >>confdefs.h <<\_ACEOF
19814 #define HAVE_GETHOSTBYNAME_R 1
19817 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19818 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
19820 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19821 cat >conftest.$ac_ext <<_ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19828 # include <netdb.h>
19835 struct hostent *he, *res;
19840 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19846 rm -f conftest.$ac_objext
19847 if { (ac_try="$ac_compile"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_compile") 2>conftest.er1
19855 grep -v '^
*+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest.$ac_objext; then
19864 cat >>confdefs.h <<\_ACEOF
19865 #define HAVE_GETHOSTBYNAME_R 1
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19873 { echo "$as_me:$LINENO: result: yes" >&5
19874 echo "${ECHO_T}yes" >&6; }
19877 echo "$as_me: failed program was:" >&5
19878 sed 's
/^
/|
/' conftest.$ac_ext >&5
19881 { echo "$as_me:$LINENO: result: no" >&5
19882 echo "${ECHO_T}no" >&6; }
19883 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19884 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19892 # include <netdb.h>
19899 struct hostent *he;
19904 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19910 rm -f conftest.$ac_objext
19911 if { (ac_try="$ac_compile"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_compile") 2>conftest.er1
19919 grep -v '^
*+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest.$ac_objext; then
19928 cat >>confdefs.h <<\_ACEOF
19929 #define HAVE_GETHOSTBYNAME_R 1
19933 cat >>confdefs.h <<\_ACEOF
19934 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19937 { echo "$as_me:$LINENO: result: yes" >&5
19938 echo "${ECHO_T}yes" >&6; }
19941 echo "$as_me: failed program was:" >&5
19942 sed 's
/^
/|
/' conftest.$ac_ext >&5
19945 { echo "$as_me:$LINENO: result: no" >&5
19946 echo "${ECHO_T}no" >&6; }
19947 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19948 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19956 # include <netdb.h>
19963 struct hostent *he;
19964 struct hostent_data data;
19966 (void) gethostbyname_r(name, he, &data);
19972 rm -f conftest.$ac_objext
19973 if { (ac_try="$ac_compile"
19974 case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_compile") 2>conftest.er1
19981 grep -v '^
*+' conftest.er1 >conftest.err
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } && {
19986 test -z "$ac_c_werror_flag" ||
19987 test ! -s conftest.err
19988 } && test -s conftest.$ac_objext; then
19990 cat >>confdefs.h <<\_ACEOF
19991 #define HAVE_GETHOSTBYNAME_R 1
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19999 { echo "$as_me:$LINENO: result: yes" >&5
20000 echo "${ECHO_T}yes" >&6; }
20003 echo "$as_me: failed program was:" >&5
20004 sed 's
/^
/|
/' conftest.$ac_ext >&5
20007 { echo "$as_me:$LINENO: result: no" >&5
20008 echo "${ECHO_T}no" >&6; }
20012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026 for ac_func in gethostbyname
20028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20042 #define $ac_func innocuous_$ac_func
20044 /* System header to define __stub macros and hopefully few prototypes,
20045 which can conflict with char $ac_func (); below.
20046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20047 <limits.h> exists even on freestanding compilers. */
20050 # include <limits.h>
20052 # include <assert.h>
20057 /* Override any GCC internal prototype to avoid an error.
20058 Use char because int might match the return type of a GCC
20059 builtin and then its argument prototype would still apply. */
20064 /* The GNU C library defines this for functions which it implements
20065 to always fail with ENOSYS. Some functions are actually named
20066 something starting with __ and the normal name is an alias. */
20067 #if defined __stub_$ac_func || defined __stub___$ac_func
20074 return $ac_func ();
20079 rm -f conftest.$ac_objext conftest$ac_exeext
20080 if { (ac_try="$ac_link"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_link") 2>conftest.er1
20088 grep -v '^
*+' conftest.er1 >conftest.err
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext &&
20096 $as_test_x conftest$ac_exeext; then
20097 eval "$as_ac_var=yes"
20099 echo "$as_me: failed program was:" >&5
20100 sed 's
/^
/|
/' conftest.$ac_ext >&5
20102 eval "$as_ac_var=no"
20105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20106 conftest$ac_exeext conftest.$ac_ext
20108 ac_res=`eval echo '${'$as_ac_var'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20111 if test `eval echo '${'$as_ac_var'}'` = yes; then
20112 cat >>confdefs.h <<_ACEOF
20113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20128 # checks for system services
20131 # Linux requires this for correct f.p. operations
20132 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20133 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20134 if test "${ac_cv_func___fpu_control+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 cat >conftest.$ac_ext <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20145 #define __fpu_control innocuous___fpu_control
20147 /* System header to define __stub macros and hopefully few prototypes,
20148 which can conflict with char __fpu_control (); below.
20149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20150 <limits.h> exists even on freestanding compilers. */
20153 # include <limits.h>
20155 # include <assert.h>
20158 #undef __fpu_control
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20166 char __fpu_control ();
20167 /* The GNU C library defines this for functions which it implements
20168 to always fail with ENOSYS. Some functions are actually named
20169 something starting with __ and the normal name is an alias. */
20170 #if defined __stub___fpu_control || defined __stub_____fpu_control
20177 return __fpu_control ();
20182 rm -f conftest.$ac_objext conftest$ac_exeext
20183 if { (ac_try="$ac_link"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_link") 2>conftest.er1
20191 grep -v '^
*+' conftest.er1 >conftest.err
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && {
20196 test -z "$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 } && test -s conftest$ac_exeext &&
20199 $as_test_x conftest$ac_exeext; then
20200 ac_cv_func___fpu_control=yes
20202 echo "$as_me: failed program was:" >&5
20203 sed 's
/^
/|
/' conftest.$ac_ext >&5
20205 ac_cv_func___fpu_control=no
20208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20209 conftest$ac_exeext conftest.$ac_ext
20211 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20212 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20213 if test $ac_cv_func___fpu_control = yes; then
20217 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20218 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20219 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 ac_check_lib_save_LIBS=$LIBS
20223 LIBS="-lieee $LIBS"
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20231 /* Override any GCC internal prototype to avoid an error.
20232 Use char because int might match the return type of a GCC
20233 builtin and then its argument prototype would still apply. */
20237 char __fpu_control ();
20241 return __fpu_control ();
20246 rm -f conftest.$ac_objext conftest$ac_exeext
20247 if { (ac_try="$ac_link"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_link") 2>conftest.er1
20255 grep -v '^
*+' conftest.er1 >conftest.err
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && {
20260 test -z "$ac_c_werror_flag" ||
20261 test ! -s conftest.err
20262 } && test -s conftest$ac_exeext &&
20263 $as_test_x conftest$ac_exeext; then
20264 ac_cv_lib_ieee___fpu_control=yes
20266 echo "$as_me: failed program was:" >&5
20267 sed 's
/^
/|
/' conftest.$ac_ext >&5
20269 ac_cv_lib_ieee___fpu_control=no
20272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20273 conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20276 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20277 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20278 if test $ac_cv_lib_ieee___fpu_control = yes; then
20279 cat >>confdefs.h <<_ACEOF
20280 #define HAVE_LIBIEEE 1
20283 LIBS="-lieee $LIBS"
20291 # Check for --with-fpectl
20292 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20293 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20295 # Check whether --with-fpectl was given.
20296 if test "${with_fpectl+set}" = set; then
20297 withval=$with_fpectl;
20298 if test "$withval" != no
20301 cat >>confdefs.h <<\_ACEOF
20302 #define WANT_SIGFPE_HANDLER 1
20305 { echo "$as_me:$LINENO: result: yes" >&5
20306 echo "${ECHO_T}yes" >&6; }
20307 else { echo "$as_me:$LINENO: result: no" >&5
20308 echo "${ECHO_T}no" >&6; }
20311 { echo "$as_me:$LINENO: result: no" >&5
20312 echo "${ECHO_T}no" >&6; }
20316 # check for --with-libm=...
20318 case $ac_sys_system in
20323 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20324 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20326 # Check whether --with-libm was given.
20327 if test "${with_libm+set}" = set; then
20328 withval=$with_libm;
20329 if test "$withval" = no
20331 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20332 echo "${ECHO_T}force LIBM empty" >&6; }
20333 elif test "$withval" != yes
20335 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20336 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20337 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20338 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20339 { (exit 1); exit 1; }; }
20342 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20343 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20347 # check for --with-libc=...
20349 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20350 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20352 # Check whether --with-libc was given.
20353 if test "${with_libc+set}" = set; then
20354 withval=$with_libc;
20355 if test "$withval" = no
20357 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20358 echo "${ECHO_T}force LIBC empty" >&6; }
20359 elif test "$withval" != yes
20361 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20362 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20363 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20364 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20365 { (exit 1); exit 1; }; }
20368 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20369 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20373 # ************************************
20374 # * Check for mathematical functions *
20375 # ************************************
20379 for ac_func in hypot
20381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20385 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20395 #define $ac_func innocuous_$ac_func
20397 /* System header to define __stub macros and hopefully few prototypes,
20398 which can conflict with char $ac_func (); below.
20399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20400 <limits.h> exists even on freestanding compilers. */
20403 # include <limits.h>
20405 # include <assert.h>
20410 /* Override any GCC internal prototype to avoid an error.
20411 Use char because int might match the return type of a GCC
20412 builtin and then its argument prototype would still apply. */
20417 /* The GNU C library defines this for functions which it implements
20418 to always fail with ENOSYS. Some functions are actually named
20419 something starting with __ and the normal name is an alias. */
20420 #if defined __stub_$ac_func || defined __stub___$ac_func
20427 return $ac_func ();
20432 rm -f conftest.$ac_objext conftest$ac_exeext
20433 if { (ac_try="$ac_link"
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_link") 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_exeext &&
20449 $as_test_x conftest$ac_exeext; then
20450 eval "$as_ac_var=yes"
20452 echo "$as_me: failed program was:" >&5
20453 sed 's
/^
/|
/' conftest.$ac_ext >&5
20455 eval "$as_ac_var=no"
20458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20459 conftest$ac_exeext conftest.$ac_ext
20461 ac_res=`eval echo '${'$as_ac_var'}'`
20462 { echo "$as_me:$LINENO: result: $ac_res" >&5
20463 echo "${ECHO_T}$ac_res" >&6; }
20464 if test `eval echo '${'$as_ac_var'}'` = yes; then
20465 cat >>confdefs.h <<_ACEOF
20466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20470 case " $LIBOBJS " in
20471 *" $ac_func.$ac_objext "* ) ;;
20472 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20490 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
20492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20506 #define $ac_func innocuous_$ac_func
20508 /* System header to define __stub macros and hopefully few prototypes,
20509 which can conflict with char $ac_func (); below.
20510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20511 <limits.h> exists even on freestanding compilers. */
20514 # include <limits.h>
20516 # include <assert.h>
20521 /* Override any GCC internal prototype to avoid an error.
20522 Use char because int might match the return type of a GCC
20523 builtin and then its argument prototype would still apply. */
20528 /* The GNU C library defines this for functions which it implements
20529 to always fail with ENOSYS. Some functions are actually named
20530 something starting with __ and the normal name is an alias. */
20531 #if defined __stub_$ac_func || defined __stub___$ac_func
20538 return $ac_func ();
20543 rm -f conftest.$ac_objext conftest$ac_exeext
20544 if { (ac_try="$ac_link"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_link") 2>conftest.er1
20552 grep -v '^
*+' conftest.er1 >conftest.err
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest$ac_exeext &&
20560 $as_test_x conftest$ac_exeext; then
20561 eval "$as_ac_var=yes"
20563 echo "$as_me: failed program was:" >&5
20564 sed 's
/^
/|
/' conftest.$ac_ext >&5
20566 eval "$as_ac_var=no"
20569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20570 conftest$ac_exeext conftest.$ac_ext
20572 ac_res=`eval echo '${'$as_ac_var'}'`
20573 { echo "$as_me:$LINENO: result: $ac_res" >&5
20574 echo "${ECHO_T}$ac_res" >&6; }
20575 if test `eval echo '${'$as_ac_var'}'` = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20586 # check for wchar.h
20587 if test "${ac_cv_header_wchar_h+set}" = set; then
20588 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20589 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20590 if test "${ac_cv_header_wchar_h+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20594 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20596 # Is the header compilable?
20597 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
20598 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20617 grep -v '^
*+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20625 ac_header_compiler=yes
20627 echo "$as_me: failed program was:" >&5
20628 sed 's
/^
/|
/' conftest.$ac_ext >&5
20630 ac_header_compiler=no
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20635 echo "${ECHO_T}$ac_header_compiler" >&6; }
20637 # Is the header present?
20638 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
20639 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20648 if { (ac_try="$ac_cpp conftest.$ac_ext"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20656 grep -v '^
*+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } >/dev/null && {
20661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20664 ac_header_preproc=yes
20666 echo "$as_me: failed program was:" >&5
20667 sed 's
/^
/|
/' conftest.$ac_ext >&5
20669 ac_header_preproc=no
20672 rm -f conftest.err conftest.$ac_ext
20673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20674 echo "${ECHO_T}$ac_header_preproc" >&6; }
20676 # So? What about this header?
20677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20679 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20680 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20681 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result
" >&5
20682 echo "$as_me: WARNING
: wchar.h
: proceeding with the compiler
's result" >&2;}
20683 ac_header_preproc=yes
20686 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20687 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20689 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20690 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20691 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20692 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20693 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result
" >&5
20695 echo "$as_me: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20697 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20699 ## ------------------------------------------------ ##
20700 ## Report this to http://www.python.org/python-bugs ##
20701 ## ------------------------------------------------ ##
20703 ) | sed "s/^/$as_me: WARNING: /" >&2
20706 { echo "$as_me:$LINENO: checking for wchar.h" >&5
20707 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
20708 if test "${ac_cv_header_wchar_h+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 ac_cv_header_wchar_h=$ac_header_preproc
20713 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20714 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
20717 if test $ac_cv_header_wchar_h = yes; then
20720 cat >>confdefs.h <<\_ACEOF
20721 #define HAVE_WCHAR_H 1
20733 # determine wchar_t size
20734 if test "$wchar_h" = yes
20736 { echo "$as_me:$LINENO: checking for wchar_t" >&5
20737 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
20738 if test "${ac_cv_type_wchar_t+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20749 typedef wchar_t ac__type_new_;
20753 if ((ac__type_new_ *) 0)
20755 if (sizeof (ac__type_new_))
20761 rm -f conftest.$ac_objext
20762 if { (ac_try="$ac_compile"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_compile") 2>conftest.er1
20770 grep -v '^
*+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } && {
20775 test -z "$ac_c_werror_flag" ||
20776 test ! -s conftest.err
20777 } && test -s conftest.$ac_objext; then
20778 ac_cv_type_wchar_t=yes
20780 echo "$as_me: failed program was:" >&5
20781 sed 's
/^
/|
/' conftest.$ac_ext >&5
20783 ac_cv_type_wchar_t=no
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20788 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20789 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
20791 # The cast to long int works around a bug in the HP C Compiler
20792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20794 # This bug is HP SR number 8606223364.
20795 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
20796 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
20797 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 if test "$cross_compiling" = yes; then
20801 # Depending upon the size, compute the lo and hi bounds.
20802 cat >conftest.
$ac_ext <<_ACEOF
20805 cat confdefs.h
>>conftest.
$ac_ext
20806 cat >>conftest.
$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20810 typedef wchar_t ac__type_sizeof_;
20814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20821 rm -f conftest.
$ac_objext
20822 if { (ac_try
="$ac_compile"
20823 case "(($ac_try" in
20824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_compile") 2>conftest.er1
20830 grep -v '^ *+' conftest.er1 >conftest.err
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } && {
20835 test -z "$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 } && test -s conftest.$ac_objext; then
20840 cat >conftest.$ac_ext <<_ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20848 typedef wchar_t ac__type_sizeof_;
20852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
20861 case "(($ac_try" in
20862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20863 *) ac_try_echo
=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1
>conftest.err
20870 cat conftest.err
>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.
$ac_objext; then
20876 ac_hi
=$ac_mid; break
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.
$ac_ext >&5
20881 ac_lo
=`expr $ac_mid + 1`
20882 if test $ac_lo -le $ac_mid; then
20886 ac_mid
=`expr 2 '*' $ac_mid + 1`
20889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.
$ac_ext >&5
20895 cat >conftest.
$ac_ext <<_ACEOF
20898 cat confdefs.h
>>conftest.
$ac_ext
20899 cat >>conftest.
$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20903 typedef wchar_t ac__type_sizeof_;
20907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20914 rm -f conftest.
$ac_objext
20915 if { (ac_try
="$ac_compile"
20916 case "(($ac_try" in
20917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20923 grep -v '^ *+' conftest.er1 >conftest.err
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest.$ac_objext; then
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20941 typedef wchar_t ac__type_sizeof_;
20945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20956 *) ac_try_echo
=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_compile") 2>conftest.er1
20961 grep -v '^ *+' conftest.er1
>conftest.err
20963 cat conftest.err
>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } && {
20966 test -z "$ac_c_werror_flag" ||
20967 test ! -s conftest.err
20968 } && test -s conftest.
$ac_objext; then
20969 ac_lo
=$ac_mid; break
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.
$ac_ext >&5
20974 ac_hi
=`expr '(' $ac_mid ')' - 1`
20975 if test $ac_mid -le $ac_hi; then
20979 ac_mid
=`expr 2 '*' $ac_mid`
20982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.
$ac_ext >&5
20991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20995 # Binary search between lo and hi bounds.
20996 while test "x$ac_lo" != "x$ac_hi"; do
20997 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20998 cat >conftest.
$ac_ext <<_ACEOF
21001 cat confdefs.h
>>conftest.
$ac_ext
21002 cat >>conftest.
$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21006 typedef wchar_t ac__type_sizeof_;
21010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21017 rm -f conftest.
$ac_objext
21018 if { (ac_try
="$ac_compile"
21019 case "(($ac_try" in
21020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_compile") 2>conftest.er1
21026 grep -v '^ *+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest.$ac_objext; then
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 ac_lo=`expr '(' $ac_mid ')' + 1`
21042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21046 '') if test "$ac_cv_type_wchar_t" = yes; then
21047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21048 See \`config.log
' for more details." >&5
21049 echo "$as_me: error: cannot compute sizeof (wchar_t)
21050 See \`config.log' for more details.
" >&2;}
21051 { (exit 77); exit 77; }; }
21053 ac_cv_sizeof_wchar_t=0
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21065 typedef wchar_t ac__type_sizeof_;
21066 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21067 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21069 #include <stdlib.h>
21074 FILE *f = fopen ("conftest.val
", "w
");
21077 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21079 long int i = longval ();
21080 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21082 fprintf (f, "%ld
\n", i);
21086 unsigned long int i = ulongval ();
21087 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21089 fprintf (f, "%lu
\n", i);
21091 return ferror (f) || fclose (f) != 0;
21097 rm -f conftest$ac_exeext
21098 if { (ac_try="$ac_link"
21099 case "(($ac_try" in
21100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101 *) ac_try_echo=$ac_try;;
21103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21104 (eval "$ac_link") 2>&5
21106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108 { (case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_try") 2>&5
21115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 ac_cv_sizeof_wchar_t=`cat conftest.val`
21119 echo "$as_me: program exited with status
$ac_status" >&5
21120 echo "$as_me: failed program was
:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ( exit $ac_status )
21124 if test "$ac_cv_type_wchar_t" = yes; then
21125 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
21126 See \
`config.log' for more details." >&5
21127 echo "$as_me: error: cannot compute sizeof (wchar_t)
21128 See \`config.log
' for more details." >&2;}
21129 { (exit 77); exit 77; }; }
21131 ac_cv_sizeof_wchar_t=0
21134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21138 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21139 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21143 cat >>confdefs.h <<_ACEOF
21144 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21150 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21151 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21153 cat >conftest.$ac_ext <<_ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21161 #if TCL_UTF_MAX != 6
21162 # error "NOT UCS4_TCL"
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21181 grep -v '^
*+' conftest.er1 >conftest.err
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } && {
21186 test -z "$ac_c_werror_flag" ||
21187 test ! -s conftest.err
21188 } && test -s conftest.$ac_objext; then
21191 cat >>confdefs.h <<\_ACEOF
21192 #define HAVE_UCS4_TCL 1
21198 echo "$as_me: failed program was:" >&5
21199 sed 's
/^
/|
/' conftest.$ac_ext >&5
21204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21205 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21206 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21208 # check whether wchar_t is signed or not
21209 if test "$wchar_h" = yes
21211 # check whether wchar_t is signed or not
21212 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21213 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21214 if test "${ac_cv_wchar_t_signed+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 if test "$cross_compiling" = yes; then
21219 ac_cv_wchar_t_signed=yes
21221 cat >conftest.$ac_ext <<_ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21231 /* Success: exit code 0 */
21232 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21236 rm -f conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_link") 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21247 { (case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_try") 2>&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; }; then
21256 ac_cv_wchar_t_signed=yes
21258 echo "$as_me: program exited with status $ac_status" >&5
21259 echo "$as_me: failed program was:" >&5
21260 sed 's
/^
/|
/' conftest.$ac_ext >&5
21262 ( exit $ac_status )
21263 ac_cv_wchar_t_signed=no
21265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21271 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21272 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21275 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21276 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21277 # Check whether --enable-unicode was given.
21278 if test "${enable_unicode+set}" = set; then
21279 enableval=$enable_unicode;
21285 if test $enable_unicode = yes
21287 # Without any arguments, Py_UNICODE defaults to two-byte mode
21288 case "$have_ucs4_tcl" in
21289 yes) enable_unicode="ucs4"
21291 *) enable_unicode="ucs2"
21298 case "$enable_unicode" in
21299 ucs2) unicode_size="2"
21300 cat >>confdefs.h <<\_ACEOF
21301 #define Py_UNICODE_SIZE 2
21305 ucs4) unicode_size="4"
21306 cat >>confdefs.h <<\_ACEOF
21307 #define Py_UNICODE_SIZE 4
21317 if test "$enable_unicode" = "no"
21320 { echo "$as_me:$LINENO: result: not used" >&5
21321 echo "${ECHO_T}not used" >&6; }
21323 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21325 cat >>confdefs.h <<\_ACEOF
21326 #define Py_USING_UNICODE 1
21330 # wchar_t is only usable if it maps to an unsigned type
21331 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21332 -a "$ac_cv_wchar_t_signed" = "no"
21334 PY_UNICODE_TYPE="wchar_t"
21336 cat >>confdefs.h <<\_ACEOF
21337 #define HAVE_USABLE_WCHAR_T 1
21340 cat >>confdefs.h <<\_ACEOF
21341 #define PY_UNICODE_TYPE wchar_t
21344 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21346 PY_UNICODE_TYPE="unsigned short"
21347 cat >>confdefs.h <<\_ACEOF
21348 #define PY_UNICODE_TYPE unsigned short
21351 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21353 PY_UNICODE_TYPE="unsigned long"
21354 cat >>confdefs.h <<\_ACEOF
21355 #define PY_UNICODE_TYPE unsigned long
21359 PY_UNICODE_TYPE="no type found"
21361 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21362 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21365 # check for endianness
21366 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21367 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21368 if test "${ac_cv_c_bigendian+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 # See if sys/param.h defines the BYTE_ORDER macro.
21372 cat >conftest.$ac_ext <<_ACEOF
21375 cat confdefs.h >>conftest.$ac_ext
21376 cat >>conftest.$ac_ext <<_ACEOF
21377 /* end confdefs.h. */
21378 #include <sys/types.h>
21379 #include <sys/param.h>
21384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21385 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21386 bogus endian macros
21393 rm -f conftest.$ac_objext
21394 if { (ac_try="$ac_compile"
21395 case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_compile") 2>conftest.er1
21402 grep -v '^
*+' conftest.er1 >conftest.err
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest.$ac_objext; then
21410 # It does; now see whether it defined to BIG_ENDIAN or not.
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 #include <sys/types.h>
21418 #include <sys/param.h>
21423 #if BYTE_ORDER != BIG_ENDIAN
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_compile") 2>conftest.er1
21440 grep -v '^
*+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest.$ac_objext; then
21448 ac_cv_c_bigendian=yes
21450 echo "$as_me: failed program was:" >&5
21451 sed 's
/^
/|
/' conftest.$ac_ext >&5
21453 ac_cv_c_bigendian=no
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21458 echo "$as_me: failed program was:" >&5
21459 sed 's
/^
/|
/' conftest.$ac_ext >&5
21461 # It does not; compile a test program.
21462 if test "$cross_compiling" = yes; then
21463 # try to guess the endianness by grepping values into an object file
21464 ac_cv_c_bigendian=unknown
21465 cat >conftest.$ac_ext <<_ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21471 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21472 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21473 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21474 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21475 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21476 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21480 _ascii (); _ebcdic ();
21485 rm -f conftest.$ac_objext
21486 if { (ac_try="$ac_compile"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21494 grep -v '^
*+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21503 ac_cv_c_bigendian=yes
21505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21506 if test "$ac_cv_c_bigendian" = unknown; then
21507 ac_cv_c_bigendian=no
21509 # finding both strings is unlikely to happen, but who knows?
21510 ac_cv_c_bigendian=unknown
21514 echo "$as_me: failed program was:" >&5
21515 sed 's
/^
/|
/' conftest.$ac_ext >&5
21520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 $ac_includes_default
21533 /* Are we little or big endian? From Harbison&Steele. */
21537 char c[sizeof (long int)];
21540 return u.c[sizeof (long int) - 1] == 1;
21546 rm -f conftest$ac_exeext
21547 if { (ac_try="$ac_link"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_link") 2>&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21557 { (case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_try") 2>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 ac_cv_c_bigendian=no
21568 echo "$as_me: program exited with status $ac_status" >&5
21569 echo "$as_me: failed program was:" >&5
21570 sed 's
/^
/|
/' conftest.$ac_ext >&5
21572 ( exit $ac_status )
21573 ac_cv_c_bigendian=yes
21575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21583 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21584 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21585 case $ac_cv_c_bigendian in
21588 cat >>confdefs.h <<\_ACEOF
21589 #define WORDS_BIGENDIAN 1
21595 { { echo "$as_me:$LINENO: error: unknown endianness
21596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21597 echo "$as_me: error: unknown endianness
21598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21599 { (exit 1); exit 1; }; } ;;
21605 # Check whether right shifting a negative integer extends the sign bit
21606 # or fills with zeros (like the Cray J90, according to Tim Peters).
21607 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21608 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
21609 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 if test "$cross_compiling" = yes; then
21614 ac_cv_rshift_extends_sign=yes
21616 cat >conftest.$ac_ext <<_ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21625 exit(((-1)>>3 == -1) ? 0 : 1);
21629 rm -f conftest$ac_exeext
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_link") 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21640 { (case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_try") 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_rshift_extends_sign=yes
21651 echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 sed 's
/^
/|
/' conftest.$ac_ext >&5
21655 ( exit $ac_status )
21656 ac_cv_rshift_extends_sign=no
21658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21664 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21665 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
21666 if test "$ac_cv_rshift_extends_sign" = no
21669 cat >>confdefs.h <<\_ACEOF
21670 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21675 # check for getc_unlocked and related locking functions
21676 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21677 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
21678 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21693 FILE *f = fopen("/dev/null", "r");
21702 rm -f conftest.$ac_objext conftest$ac_exeext
21703 if { (ac_try="$ac_link"
21704 case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_link") 2>conftest.er1
21711 grep -v '^
*+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && {
21716 test -z "$ac_c_werror_flag" ||
21717 test ! -s conftest.err
21718 } && test -s conftest$ac_exeext &&
21719 $as_test_x conftest$ac_exeext; then
21720 ac_cv_have_getc_unlocked=yes
21722 echo "$as_me: failed program was:" >&5
21723 sed 's
/^
/|
/' conftest.$ac_ext >&5
21725 ac_cv_have_getc_unlocked=no
21728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21729 conftest$ac_exeext conftest.$ac_ext
21732 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21733 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
21734 if test "$ac_cv_have_getc_unlocked" = yes
21737 cat >>confdefs.h <<\_ACEOF
21738 #define HAVE_GETC_UNLOCKED 1
21743 # check where readline lives
21744 # save the value of LIBS so we don't actually link Python with readline
21745 LIBS_no_readline
=$LIBS
21747 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21748 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
21749 if test "${ac_cv_lib_readline_readline+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 ac_check_lib_save_LIBS
=$LIBS
21753 LIBS
="-lreadline $LIBS"
21754 cat >conftest.
$ac_ext <<_ACEOF
21757 cat confdefs.h
>>conftest.
$ac_ext
21758 cat >>conftest.
$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21761 /* Override any GCC internal prototype to avoid an error.
21762 Use char because int might match the return type of a GCC
21763 builtin and then its argument prototype would still apply. */
21771 return readline ();
21776 rm -f conftest.
$ac_objext conftest
$ac_exeext
21777 if { (ac_try
="$ac_link"
21778 case "(($ac_try" in
21779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_link") 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest$ac_exeext &&
21793 $as_test_x conftest$ac_exeext; then
21794 ac_cv_lib_readline_readline=yes
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_cv_lib_readline_readline=no
21802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21806 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21807 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21808 if test $ac_cv_lib_readline_readline = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_LIBREADLINE 1
21813 LIBS="-lreadline $LIBS"
21817 if test "$ac_cv_have_readline_readline" = no
21820 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21821 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
21822 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 ac_check_lib_save_LIBS=$LIBS
21826 LIBS="-ltermcap $LIBS"
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21834 /* Override any GCC internal prototype to avoid an error.
21835 Use char because int might match the return type of a GCC
21836 builtin and then its argument prototype would still apply. */
21844 return readline ();
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (ac_try="$ac_link"
21851 case "(($ac_try" in
21852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21853 *) ac_try_echo
=$ac_try;;
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_link") 2>conftest.er1
21858 grep -v '^ *+' conftest.er1
>conftest.err
21860 cat conftest.err
>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } && {
21863 test -z "$ac_c_werror_flag" ||
21864 test ! -s conftest.err
21865 } && test -s conftest
$ac_exeext &&
21866 $as_test_x conftest
$ac_exeext; then
21867 ac_cv_lib_termcap_readline
=yes
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.
$ac_ext >&5
21872 ac_cv_lib_termcap_readline
=no
21875 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21876 conftest
$ac_exeext conftest.
$ac_ext
21877 LIBS
=$ac_check_lib_save_LIBS
21879 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21880 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
21881 if test $ac_cv_lib_termcap_readline = yes; then
21882 cat >>confdefs.h
<<_ACEOF
21883 #define HAVE_LIBTERMCAP 1
21886 LIBS
="-ltermcap $LIBS"
21892 # check for readline 2.1
21893 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21894 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
21895 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 ac_check_lib_save_LIBS
=$LIBS
21899 LIBS
="-lreadline $LIBS"
21900 cat >conftest.
$ac_ext <<_ACEOF
21903 cat confdefs.h
>>conftest.
$ac_ext
21904 cat >>conftest.
$ac_ext <<_ACEOF
21905 /* end confdefs.h. */
21907 /* Override any GCC internal prototype to avoid an error.
21908 Use char because int might match the return type of a GCC
21909 builtin and then its argument prototype would still apply. */
21913 char rl_callback_handler_install ();
21917 return rl_callback_handler_install ();
21922 rm -f conftest.
$ac_objext conftest
$ac_exeext
21923 if { (ac_try
="$ac_link"
21924 case "(($ac_try" in
21925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_link") 2>conftest.er1
21931 grep -v '^ *+' conftest.er1 >conftest.err
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } && {
21936 test -z "$ac_c_werror_flag" ||
21937 test ! -s conftest.err
21938 } && test -s conftest$ac_exeext &&
21939 $as_test_x conftest$ac_exeext; then
21940 ac_cv_lib_readline_rl_callback_handler_install=yes
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 ac_cv_lib_readline_rl_callback_handler_install=no
21948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21949 conftest$ac_exeext conftest.$ac_ext
21950 LIBS=$ac_check_lib_save_LIBS
21952 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21953 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
21954 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21956 cat >>confdefs.h <<\_ACEOF
21957 #define HAVE_RL_CALLBACK 1
21963 # check for readline 2.2
21964 cat >conftest.$ac_ext <<_ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 #include <readline/readline.h>
21972 if { (ac_try="$ac_cpp conftest.$ac_ext"
21973 case "(($ac_try" in
21974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21975 *) ac_try_echo
=$ac_try;;
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21980 grep -v '^ *+' conftest.er1
>conftest.err
21982 cat conftest.err
>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } >/dev
/null
&& {
21985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.
$ac_ext >&5
21996 rm -f conftest.err conftest.
$ac_ext
21997 if test $have_readline = yes
21999 cat >conftest.
$ac_ext <<_ACEOF
22002 cat confdefs.h
>>conftest.
$ac_ext
22003 cat >>conftest.
$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005 #include <readline/readline.h>
22008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22009 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
22011 cat >>confdefs.h
<<\_ACEOF
22012 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22020 # check for readline 4.0
22021 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22022 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22023 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22026 ac_check_lib_save_LIBS
=$LIBS
22027 LIBS
="-lreadline $LIBS"
22028 cat >conftest.
$ac_ext <<_ACEOF
22031 cat confdefs.h
>>conftest.
$ac_ext
22032 cat >>conftest.
$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22035 /* Override any GCC internal prototype to avoid an error.
22036 Use char because int might match the return type of a GCC
22037 builtin and then its argument prototype would still apply. */
22041 char rl_pre_input_hook ();
22045 return rl_pre_input_hook ();
22050 rm -f conftest.
$ac_objext conftest
$ac_exeext
22051 if { (ac_try
="$ac_link"
22052 case "(($ac_try" in
22053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_link") 2>conftest.er1
22059 grep -v '^ *+' conftest.er1 >conftest.err
22061 cat conftest.err >&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } && {
22064 test -z "$ac_c_werror_flag" ||
22065 test ! -s conftest.err
22066 } && test -s conftest$ac_exeext &&
22067 $as_test_x conftest$ac_exeext; then
22068 ac_cv_lib_readline_rl_pre_input_hook=yes
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ac_cv_lib_readline_rl_pre_input_hook=no
22076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22077 conftest$ac_exeext conftest.$ac_ext
22078 LIBS=$ac_check_lib_save_LIBS
22080 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22081 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22082 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_RL_PRE_INPUT_HOOK 1
22092 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22093 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22094 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 ac_check_lib_save_LIBS=$LIBS
22098 LIBS="-lreadline $LIBS"
22099 cat >conftest.$ac_ext <<_ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22106 /* Override any GCC internal prototype to avoid an error.
22107 Use char because int might match the return type of a GCC
22108 builtin and then its argument prototype would still apply. */
22112 char rl_completion_display_matches_hook ();
22116 return rl_completion_display_matches_hook ();
22121 rm -f conftest.$ac_objext conftest$ac_exeext
22122 if { (ac_try="$ac_link"
22123 case "(($ac_try" in
22124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22125 *) ac_try_echo
=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_link") 2>conftest.er1
22130 grep -v '^ *+' conftest.er1
>conftest.err
22132 cat conftest.err
>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } && {
22135 test -z "$ac_c_werror_flag" ||
22136 test ! -s conftest.err
22137 } && test -s conftest
$ac_exeext &&
22138 $as_test_x conftest
$ac_exeext; then
22139 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.
$ac_ext >&5
22144 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
22147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22148 conftest
$ac_exeext conftest.
$ac_ext
22149 LIBS
=$ac_check_lib_save_LIBS
22151 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22152 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22153 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22155 cat >>confdefs.h
<<\_ACEOF
22156 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22162 # check for readline 4.2
22163 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22164 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22165 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22168 ac_check_lib_save_LIBS
=$LIBS
22169 LIBS
="-lreadline $LIBS"
22170 cat >conftest.
$ac_ext <<_ACEOF
22173 cat confdefs.h
>>conftest.
$ac_ext
22174 cat >>conftest.
$ac_ext <<_ACEOF
22175 /* end confdefs.h. */
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
22183 char rl_completion_matches ();
22187 return rl_completion_matches ();
22192 rm -f conftest.
$ac_objext conftest
$ac_exeext
22193 if { (ac_try
="$ac_link"
22194 case "(($ac_try" in
22195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_link") 2>conftest.er1
22201 grep -v '^ *+' conftest.er1 >conftest.err
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && {
22206 test -z "$ac_c_werror_flag" ||
22207 test ! -s conftest.err
22208 } && test -s conftest$ac_exeext &&
22209 $as_test_x conftest$ac_exeext; then
22210 ac_cv_lib_readline_rl_completion_matches=yes
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_cv_lib_readline_rl_completion_matches=no
22218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22219 conftest$ac_exeext conftest.$ac_ext
22220 LIBS=$ac_check_lib_save_LIBS
22222 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22223 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22224 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22226 cat >>confdefs.h <<\_ACEOF
22227 #define HAVE_RL_COMPLETION_MATCHES 1
22233 # also in readline 4.2
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 #include <readline/readline.h>
22242 if { (ac_try="$ac_cpp conftest.$ac_ext"
22243 case "(($ac_try" in
22244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22245 *) ac_try_echo
=$ac_try;;
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22250 grep -v '^ *+' conftest.er1
>conftest.err
22252 cat conftest.err
>&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } >/dev
/null
&& {
22255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.
$ac_ext >&5
22266 rm -f conftest.err conftest.
$ac_ext
22267 if test $have_readline = yes
22269 cat >conftest.
$ac_ext <<_ACEOF
22272 cat confdefs.h
>>conftest.
$ac_ext
22273 cat >>conftest.
$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22275 #include <readline/readline.h>
22278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22279 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
22281 cat >>confdefs.h
<<\_ACEOF
22282 #define HAVE_RL_CATCH_SIGNAL 1
22290 # End of readline checks: restore LIBS
22291 LIBS
=$LIBS_no_readline
22293 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22294 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22295 if test "${ac_cv_broken_nice+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 if test "$cross_compiling" = yes; then
22300 ac_cv_broken_nice
=no
22302 cat >conftest.
$ac_ext <<_ACEOF
22305 cat confdefs.h
>>conftest.
$ac_ext
22306 cat >>conftest.
$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22311 int val1 = nice(1);
22312 if (val1 != -1 && val1 == nice(2))
22318 rm -f conftest
$ac_exeext
22319 if { (ac_try
="$ac_link"
22320 case "(($ac_try" in
22321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_link") 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22329 { (case "(($ac_try" in
22330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22331 *) ac_try_echo
=$ac_try;;
22333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22334 (eval "$ac_try") 2>&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }; then
22338 ac_cv_broken_nice
=yes
22340 echo "$as_me: program exited with status $ac_status" >&5
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.
$ac_ext >&5
22344 ( exit $ac_status )
22345 ac_cv_broken_nice
=no
22347 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22353 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22354 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22355 if test "$ac_cv_broken_nice" = yes
22358 cat >>confdefs.h
<<\_ACEOF
22359 #define HAVE_BROKEN_NICE 1
22364 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22365 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22366 if test "$cross_compiling" = yes; then
22367 ac_cv_broken_poll
=no
22369 cat >conftest.
$ac_ext <<_ACEOF
22372 cat confdefs.h
>>conftest.
$ac_ext
22373 cat >>conftest.
$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22380 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22384 int poll_test = poll (&poll_struct, 1, 0);
22390 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22401 rm -f conftest
$ac_exeext
22402 if { (ac_try
="$ac_link"
22403 case "(($ac_try" in
22404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_link") 2>&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22412 { (case "(($ac_try" in
22413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22414 *) ac_try_echo
=$ac_try;;
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_try") 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; }; then
22421 ac_cv_broken_poll
=yes
22423 echo "$as_me: program exited with status $ac_status" >&5
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.
$ac_ext >&5
22427 ( exit $ac_status )
22428 ac_cv_broken_poll
=no
22430 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22434 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
22435 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22436 if test "$ac_cv_broken_poll" = yes
22439 cat >>confdefs.h
<<\_ACEOF
22440 #define HAVE_BROKEN_POLL 1
22445 # Before we can test tzset, we need to check if struct tm has a tm_zone
22446 # (which is not required by ISO C or UNIX spec) and/or if we support
22448 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22449 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22450 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22453 cat >conftest.
$ac_ext <<_ACEOF
22456 cat confdefs.h
>>conftest.
$ac_ext
22457 cat >>conftest.
$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22459 #include <sys/types.h>
22460 #include <$ac_cv_struct_tm>
22466 static struct tm ac_aggr;
22467 if (ac_aggr.tm_zone)
22473 rm -f conftest.
$ac_objext
22474 if { (ac_try
="$ac_compile"
22475 case "(($ac_try" in
22476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_compile") 2>conftest.er1
22482 grep -v '^ *+' conftest.er1 >conftest.err
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && {
22487 test -z "$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 } && test -s conftest.$ac_objext; then
22490 ac_cv_member_struct_tm_tm_zone=yes
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 #include <sys/types.h>
22502 #include <$ac_cv_struct_tm>
22508 static struct tm ac_aggr;
22509 if (sizeof ac_aggr.tm_zone)
22515 rm -f conftest.$ac_objext
22516 if { (ac_try="$ac_compile"
22517 case "(($ac_try" in
22518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22519 *) ac_try_echo
=$ac_try;;
22521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_compile") 2>conftest.er1
22524 grep -v '^ *+' conftest.er1
>conftest.err
22526 cat conftest.err
>&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } && {
22529 test -z "$ac_c_werror_flag" ||
22530 test ! -s conftest.err
22531 } && test -s conftest.
$ac_objext; then
22532 ac_cv_member_struct_tm_tm_zone
=yes
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.
$ac_ext >&5
22537 ac_cv_member_struct_tm_tm_zone
=no
22540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22545 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22546 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22547 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22549 cat >>confdefs.h
<<_ACEOF
22550 #define HAVE_STRUCT_TM_TM_ZONE 1
22556 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22558 cat >>confdefs.h
<<\_ACEOF
22559 #define HAVE_TM_ZONE 1
22563 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22564 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22565 if test "${ac_cv_have_decl_tzname+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 cat >conftest.
$ac_ext <<_ACEOF
22571 cat confdefs.h
>>conftest.
$ac_ext
22572 cat >>conftest.
$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22587 rm -f conftest.
$ac_objext
22588 if { (ac_try
="$ac_compile"
22589 case "(($ac_try" in
22590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_compile") 2>conftest.er1
22596 grep -v '^ *+' conftest.er1 >conftest.err
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest.$ac_objext; then
22604 ac_cv_have_decl_tzname=yes
22606 echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22609 ac_cv_have_decl_tzname=no
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
22615 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
22616 if test $ac_cv_have_decl_tzname = yes; then
22618 cat >>confdefs.h <<_ACEOF
22619 #define HAVE_DECL_TZNAME 1
22624 cat >>confdefs.h <<_ACEOF
22625 #define HAVE_DECL_TZNAME 0
22632 { echo "$as_me:$LINENO: checking for tzname" >&5
22633 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22634 if test "${ac_cv_var_tzname+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22644 #if !HAVE_DECL_TZNAME
22645 extern char *tzname[];
22651 return tzname[0][0];
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (ac_try="$ac_link"
22658 case "(($ac_try" in
22659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22660 *) ac_try_echo
=$ac_try;;
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_link") 2>conftest.er1
22665 grep -v '^ *+' conftest.er1
>conftest.err
22667 cat conftest.err
>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest
$ac_exeext &&
22673 $as_test_x conftest
$ac_exeext; then
22674 ac_cv_var_tzname
=yes
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.
$ac_ext >&5
22679 ac_cv_var_tzname
=no
22682 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22683 conftest
$ac_exeext conftest.
$ac_ext
22685 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22686 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22687 if test $ac_cv_var_tzname = yes; then
22689 cat >>confdefs.h
<<\_ACEOF
22690 #define HAVE_TZNAME 1
22697 # check tzset(3) exists and works like we expect it to
22698 { echo "$as_me:$LINENO: checking for working tzset()" >&5
22699 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
22700 if test "${ac_cv_working_tzset+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 if test "$cross_compiling" = yes; then
22705 ac_cv_working_tzset
=no
22707 cat >conftest.
$ac_ext <<_ACEOF
22710 cat confdefs.h
>>conftest.
$ac_ext
22711 cat >>conftest.
$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22714 #include <stdlib.h>
22716 #include <string.h>
22719 extern char *tzname[];
22724 /* Note that we need to ensure that not only does tzset(3)
22725 do 'something' with localtime, but it works as documented
22726 in the library reference and as expected by the test suite.
22727 This includes making sure that tzname is set properly if
22728 tm->tm_zone does not exist since it is the alternative way
22729 of getting timezone info.
22731 Red Hat 6.2 doesn't understand the southern hemisphere
22732 after New Year's Day.
22735 time_t groundhogday = 1044144000; /* GMT-based */
22736 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22738 putenv("TZ=UTC+0");
22740 if (localtime(&groundhogday)->tm_hour != 0)
22743 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22744 if (strcmp(tzname[0], "UTC") ||
22745 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22749 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22751 if (localtime(&groundhogday)->tm_hour != 19)
22754 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22758 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22760 if (localtime(&groundhogday)->tm_hour != 11)
22763 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22767 #if HAVE_STRUCT_TM_TM_ZONE
22768 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22770 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22778 rm -f conftest
$ac_exeext
22779 if { (ac_try
="$ac_link"
22780 case "(($ac_try" in
22781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_link") 2>&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22789 { (case "(($ac_try" in
22790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22791 *) ac_try_echo
=$ac_try;;
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_try") 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_working_tzset
=yes
22800 echo "$as_me: program exited with status $ac_status" >&5
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.
$ac_ext >&5
22804 ( exit $ac_status )
22805 ac_cv_working_tzset
=no
22807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22813 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22814 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
22815 if test "$ac_cv_working_tzset" = yes
22818 cat >>confdefs.h
<<\_ACEOF
22819 #define HAVE_WORKING_TZSET 1
22824 # Look for subsecond timestamps in struct stat
22825 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22826 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
22827 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 cat >conftest.
$ac_ext <<_ACEOF
22833 cat confdefs.h
>>conftest.
$ac_ext
22834 cat >>conftest.
$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22836 #include <sys/stat.h>
22842 st.st_mtim.tv_nsec = 1;
22848 rm -f conftest.
$ac_objext
22849 if { (ac_try
="$ac_compile"
22850 case "(($ac_try" in
22851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_compile") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest.$ac_objext; then
22865 ac_cv_stat_tv_nsec=yes
22867 echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 ac_cv_stat_tv_nsec=no
22873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22877 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
22878 if test "$ac_cv_stat_tv_nsec" = yes
22881 cat >>confdefs.h <<\_ACEOF
22882 #define HAVE_STAT_TV_NSEC 1
22887 # Look for BSD style subsecond timestamps in struct stat
22888 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22889 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
22890 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 #include <sys/stat.h>
22905 st.st_mtimespec.tv_nsec = 1;
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22915 *) ac_try_echo
=$ac_try;;
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1
>conftest.err
22922 cat conftest.err
>&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.
$ac_objext; then
22928 ac_cv_stat_tv_nsec2
=yes
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.
$ac_ext >&5
22933 ac_cv_stat_tv_nsec2
=no
22936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22939 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22940 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
22941 if test "$ac_cv_stat_tv_nsec2" = yes
22944 cat >>confdefs.h
<<\_ACEOF
22945 #define HAVE_STAT_TV_NSEC2 1
22950 # On HP/UX 11.0, mvwdelch is a block with a return statement
22951 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22952 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
22953 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22956 cat >conftest.
$ac_ext <<_ACEOF
22959 cat confdefs.h
>>conftest.
$ac_ext
22960 cat >>conftest.
$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 #include <curses.h>
22968 rtn = mvwdelch(0,0,0);
22974 rm -f conftest.
$ac_objext
22975 if { (ac_try
="$ac_compile"
22976 case "(($ac_try" in
22977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22978 *) ac_try_echo=$ac_try;;
22980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22981 (eval "$ac_compile") 2>conftest.er1
22983 grep -v '^ *+' conftest.er1 >conftest.err
22985 cat conftest.err >&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } && {
22988 test -z "$ac_c_werror_flag" ||
22989 test ! -s conftest.err
22990 } && test -s conftest.$ac_objext; then
22991 ac_cv_mvwdelch_is_expression=yes
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22996 ac_cv_mvwdelch_is_expression=no
22999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23003 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23005 if test "$ac_cv_mvwdelch_is_expression" = yes
23008 cat >>confdefs.h <<\_ACEOF
23009 #define MVWDELCH_IS_EXPRESSION 1
23014 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23015 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23016 if test "${ac_cv_window_has_flags+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 cat >conftest.$ac_ext <<_ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h. */
23025 #include <curses.h>
23037 rm -f conftest.$ac_objext
23038 if { (ac_try="$ac_compile"
23039 case "(($ac_try" in
23040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23041 *) ac_try_echo
=$ac_try;;
23043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23044 (eval "$ac_compile") 2>conftest.er1
23046 grep -v '^ *+' conftest.er1
>conftest.err
23048 cat conftest.err
>&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } && {
23051 test -z "$ac_c_werror_flag" ||
23052 test ! -s conftest.err
23053 } && test -s conftest.
$ac_objext; then
23054 ac_cv_window_has_flags
=yes
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.
$ac_ext >&5
23059 ac_cv_window_has_flags
=no
23062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23065 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23066 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23069 if test "$ac_cv_window_has_flags" = yes
23072 cat >>confdefs.h
<<\_ACEOF
23073 #define WINDOW_HAS_FLAGS 1
23078 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23079 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23080 cat >conftest.
$ac_ext <<_ACEOF
23083 cat confdefs.h
>>conftest.
$ac_ext
23084 cat >>conftest.
$ac_ext <<_ACEOF
23085 /* end confdefs.h. */
23086 #include <curses.h>
23090 void *x=is_term_resized
23095 rm -f conftest.
$ac_objext
23096 if { (ac_try
="$ac_compile"
23097 case "(($ac_try" in
23098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102 (eval "$ac_compile") 2>conftest.er1
23104 grep -v '^ *+' conftest.er1 >conftest.err
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } && {
23109 test -z "$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 } && test -s conftest.$ac_objext; then
23113 cat >>confdefs.h <<\_ACEOF
23114 #define HAVE_CURSES_IS_TERM_RESIZED 1
23117 { echo "$as_me:$LINENO: result: yes" >&5
23118 echo "${ECHO_T}yes" >&6; }
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 { echo "$as_me:$LINENO: result: no" >&5
23124 echo "${ECHO_T}no" >&6; }
23128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 { echo "$as_me:$LINENO: checking for resize_term" >&5
23131 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23132 cat >conftest.$ac_ext <<_ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23138 #include <curses.h>
23142 void *x=resize_term
23147 rm -f conftest.$ac_objext
23148 if { (ac_try="$ac_compile"
23149 case "(($ac_try" in
23150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23151 *) ac_try_echo
=$ac_try;;
23153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154 (eval "$ac_compile") 2>conftest.er1
23156 grep -v '^ *+' conftest.er1
>conftest.err
23158 cat conftest.err
>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } && {
23161 test -z "$ac_c_werror_flag" ||
23162 test ! -s conftest.err
23163 } && test -s conftest.
$ac_objext; then
23165 cat >>confdefs.h
<<\_ACEOF
23166 #define HAVE_CURSES_RESIZE_TERM 1
23169 { echo "$as_me:$LINENO: result: yes" >&5
23170 echo "${ECHO_T}yes" >&6; }
23172 echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.
$ac_ext >&5
23175 { echo "$as_me:$LINENO: result: no" >&5
23176 echo "${ECHO_T}no" >&6; }
23180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23182 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23183 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23184 cat >conftest.
$ac_ext <<_ACEOF
23187 cat confdefs.h
>>conftest.
$ac_ext
23188 cat >>conftest.
$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23190 #include <curses.h>
23199 rm -f conftest.
$ac_objext
23200 if { (ac_try
="$ac_compile"
23201 case "(($ac_try" in
23202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_compile") 2>conftest.er1
23208 grep -v '^ *+' conftest.er1 >conftest.err
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest.$ac_objext; then
23217 cat >>confdefs.h <<\_ACEOF
23218 #define HAVE_CURSES_RESIZETERM 1
23221 { echo "$as_me:$LINENO: result: yes" >&5
23222 echo "${ECHO_T}yes" >&6; }
23224 echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23227 { echo "$as_me:$LINENO: result: no" >&5
23228 echo "${ECHO_T}no" >&6; }
23232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23235 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23237 if test -r /dev/ptmx
23239 { echo "$as_me:$LINENO: result: yes" >&5
23240 echo "${ECHO_T}yes" >&6; }
23242 cat >>confdefs.h <<\_ACEOF
23243 #define HAVE_DEV_PTMX 1
23247 { echo "$as_me:$LINENO: result: no" >&5
23248 echo "${ECHO_T}no" >&6; }
23251 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23252 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23254 if test -r /dev/ptc
23256 { echo "$as_me:$LINENO: result: yes" >&5
23257 echo "${ECHO_T}yes" >&6; }
23259 cat >>confdefs.h <<\_ACEOF
23260 #define HAVE_DEV_PTC 1
23264 { echo "$as_me:$LINENO: result: no" >&5
23265 echo "${ECHO_T}no" >&6; }
23268 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23269 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23270 if test "$cross_compiling" = yes; then
23271 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23272 See \`config.log
' for more details." >&5
23273 echo "$as_me: error: cannot run test program while cross compiling
23274 See \`config.log' for more details.
" >&2;}
23275 { (exit 1); exit 1; }; }
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23284 #include <stddef.h>
23285 #include <string.h>
23287 #ifdef HAVE_SYS_TYPES_H
23288 #include <sys/types.h>
23291 #ifdef HAVE_SSIZE_T
23292 typedef ssize_t Py_ssize_t;
23293 #elif SIZEOF_VOID_P == SIZEOF_LONG
23294 typedef long Py_ssize_t;
23296 typedef int Py_ssize_t;
23303 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
23306 if (strcmp(buffer, "123"))
23309 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
23312 if (strcmp(buffer, "-123"))
23318 rm -f conftest$ac_exeext
23319 if { (ac_try="$ac_link"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_link") 2>&5
23327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23329 { (case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_try") 2>&5
23336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23337 (exit $ac_status); }; }; then
23338 { echo "$as_me:$LINENO: result
: yes" >&5
23339 echo "${ECHO_T}yes" >&6; }
23341 cat >>confdefs.h <<\_ACEOF
23342 #define PY_FORMAT_SIZE_T "z
"
23346 echo "$as_me: program exited with status
$ac_status" >&5
23347 echo "$as_me: failed program was
:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23350 ( exit $ac_status )
23351 { echo "$as_me:$LINENO: result
: no
" >&5
23352 echo "${ECHO_T}no
" >&6; }
23354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23359 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
23360 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
23361 if test "${ac_cv_type_socklen_t+set}" = set; then
23362 echo $ECHO_N "(cached
) $ECHO_C" >&6
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23371 #ifdef HAVE_SYS_TYPES_H
23372 #include <sys/types.h>
23374 #ifdef HAVE_SYS_SOCKET_H
23375 #include <sys/socket.h>
23379 typedef socklen_t ac__type_new_;
23383 if ((ac__type_new_ *) 0)
23385 if (sizeof (ac__type_new_))
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_compile") 2>conftest.er1
23400 grep -v '^ *+' conftest.er1 >conftest.err
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest.$ac_objext; then
23408 ac_cv_type_socklen_t=yes
23410 echo "$as_me: failed program was
:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23413 ac_cv_type_socklen_t=no
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23418 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
23419 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23420 if test $ac_cv_type_socklen_t = yes; then
23424 cat >>confdefs.h <<\_ACEOF
23425 #define socklen_t int
23433 for h in `(cd $srcdir;echo Python/thread_*.h)`
23435 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
23439 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
23440 { echo "$as_me:$LINENO: checking
for build directories
" >&5
23441 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
23442 for dir in $SRCDIRS; do
23443 if test ! -d $dir; then
23447 { echo "$as_me:$LINENO: result
: done" >&5
23448 echo "${ECHO_T}done" >&6; }
23450 # generate output files
23451 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config
"
23453 cat >confcache <<\_ACEOF
23454 # This file is a shell script that caches the results of configure
23455 # tests run on this system so they can be shared between configure
23456 # scripts and configure runs, see configure's option --config-cache.
23457 # It is not useful on other systems. If it contains results you don't
23458 # want to keep, you may remove or edit it.
23460 # config.status only pays attention to the cache file if you give it
23461 # the --recheck option to rerun configure.
23463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23465 # following values.
23469 # The following way of writing the cache mishandles newlines in values,
23470 # but we know of no workaround that is simple, portable, and efficient.
23471 # So, we kill variables containing newlines.
23472 # Ultrix sh set writes to stderr and can't be redirected directly,
23473 # and sets the high bit in the cache file unless we assign to the vars.
23475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23476 eval ac_val=\$$ac_var
23480 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23481 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23484 _ | IFS | as_nl) ;; #(
23485 *) $as_unset $ac_var ;;
23491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23492 *${as_nl}ac_space=\ *)
23493 # `set' does not quote correctly, so add quotes (double-quote
23494 # substitution turns \\\\ into \\, and sed turns \\ into \).
23497 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23500 # `set' quotes correctly as required by POSIX, so do not add quotes.
23501 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23515 if test -w "$cache_file"; then
23516 test "x
$cache_file" != "x
/dev
/null
" &&
23517 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23518 echo "$as_me: updating cache
$cache_file" >&6;}
23519 cat confcache >$cache_file
23521 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23522 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23527 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23528 # Let make expand exec_prefix.
23529 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23531 DEFS=-DHAVE_CONFIG_H
23535 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23536 # 1. Remove the extension, and $U if already installed.
23537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23538 ac_i=`echo "$ac_i" | sed "$ac_script"`
23539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23540 # will be set to the directory where LIBOBJS objects are built.
23541 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23542 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23544 LIBOBJS=$ac_libobjs
23546 LTLIBOBJS=$ac_ltlibobjs
23550 : ${CONFIG_STATUS=./config.status}
23551 ac_clean_files_save=$ac_clean_files
23552 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23553 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23554 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23555 cat >$CONFIG_STATUS <<_ACEOF
23557 # Generated by $as_me.
23558 # Run this file to recreate the current configuration.
23559 # Compiler output produced by configure, useful for debugging
23560 # configure, is in config.log if it exists.
23563 ac_cs_recheck=false
23565 SHELL=\${CONFIG_SHELL-$SHELL}
23568 cat >>$CONFIG_STATUS <<\_ACEOF
23569 ## --------------------- ##
23570 ## M4sh Initialization. ##
23571 ## --------------------- ##
23573 # Be more Bourne compatible
23574 DUALCASE=1; export DUALCASE # for MKS sh
23575 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23578 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23579 # is contrary to our usage. Disable this feature.
23580 alias -g '${1+"$@"}'='"$@
"'
23581 setopt NO_GLOB_SUBST
23583 case `(set -o) 2>/dev/null` in
23584 *posix*) set -o posix ;;
23593 # Avoid depending upon Character Ranges.
23594 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23595 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23596 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23597 as_cr_digits='0123456789'
23598 as_cr_alnum=$as_cr_Letters$as_cr_digits
23600 # The user is always right.
23601 if test "${PATH_SEPARATOR+set}" != set; then
23602 echo "#! /bin/sh" >conf$$.sh
23603 echo "exit 0" >>conf$$.sh
23605 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23613 # Support unset when possible.
23614 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23622 # We need space, tab and new line, in precisely that order. Quoting is
23623 # there to prevent editors from complaining about space-tab.
23624 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23625 # splitting by setting IFS to empty value.)
23630 # Find who we are. Look in the path if we contain no directory separator.
23632 *[\\/]* ) as_myself
=$0 ;;
23633 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23634 for as_dir
in $PATH
23637 test -z "$as_dir" && as_dir
=.
23638 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23644 # We did not find ourselves, most probably we were run as `sh COMMAND'
23645 # in which case we are not to be found in the path.
23646 if test "x$as_myself" = x
; then
23649 if test ! -f "$as_myself"; then
23650 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23651 { (exit 1); exit 1; }
23654 # Work around bugs in pre-3.0 UWIN ksh.
23655 for as_var
in ENV MAIL MAILPATH
23656 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23664 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23665 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23666 LC_TELEPHONE LC_TIME
23668 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23669 eval $as_var=C
; export $as_var
23671 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23675 # Required to use basename.
23676 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23677 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23683 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23684 as_basename
=basename
23690 # Name of the executable.
23691 as_me
=`$as_basename -- "$0" ||
23692 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23693 X"$0" : 'X\(//\)$' \| \
23694 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23696 sed '/^.*\/\([^/][^/]*\)\/*$/{
23715 as_lineno_1
=$LINENO
23716 as_lineno_2
=$LINENO
23717 test "x$as_lineno_1" != "x$as_lineno_2" &&
23718 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23720 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23721 # uniformly replaced by the line number. The first 'sed' inserts a
23722 # line-number line after each line using $LINENO; the second 'sed'
23723 # does the real work. The second script uses 'N' to pair each
23724 # line-number line with the line containing $LINENO, and appends
23725 # trailing '-' during substitution so that $LINENO is not a special
23726 # case at line end.
23727 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23728 # scripts with optimization help from Paolo Bonzini. Blame Lee
23729 # E. McMahon (1931-1989) for sed's syntax. :-)
23741 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23744 ' >$as_me.lineno
&&
23745 chmod +x
"$as_me.lineno" ||
23746 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23747 { (exit 1); exit 1; }; }
23749 # Don't try to exec as it changes $[0], causing all sort of problems
23750 # (the dirname of $[0] is not the place where we might find the
23751 # original and so on. Autoconf is especially sensitive to this).
23752 .
"./$as_me.lineno"
23753 # Exit status is that of the last command.
23758 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23764 ECHO_C
= ECHO_N
= ECHO_T
=
23765 case `echo -n x` in
23767 case `echo 'x\c'` in
23768 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23775 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23776 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23782 rm -f conf$$ conf$$.exe conf$$.
file
23783 if test -d conf$$.dir
; then
23784 rm -f conf$$.dir
/conf$$.
file
23790 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23792 # ... but there are two gotchas:
23793 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23794 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23795 # In both cases, we have to default to `cp -p'.
23796 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23798 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23803 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23804 rmdir conf$$.dir
2>/dev
/null
23806 if mkdir
-p .
2>/dev
/null
; then
23809 test -d .
/-p && rmdir .
/-p
23813 if test -x / >/dev
/null
2>&1; then
23814 as_test_x
='test -x'
23816 if ls -dL / >/dev
/null
2>&1; then
23823 if test -d "$1"; then
23829 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23830 ???[sx]*):;;*)false;;esac;fi
23834 as_executable_p
=$as_test_x
23836 # Sed expression to map a string onto a valid CPP name.
23837 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23839 # Sed expression to map a string onto a valid variable name.
23840 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23845 # Save the log message, to keep $[0] and so on meaningful, and to
23846 # report actual input values of CONFIG_FILES etc. instead of their
23847 # values after options handling.
23849 This file was extended by python $as_me 2.6, which was
23850 generated by GNU Autoconf 2.61. Invocation command line was
23852 CONFIG_FILES = $CONFIG_FILES
23853 CONFIG_HEADERS = $CONFIG_HEADERS
23854 CONFIG_LINKS = $CONFIG_LINKS
23855 CONFIG_COMMANDS = $CONFIG_COMMANDS
23858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23863 cat >>$CONFIG_STATUS <<_ACEOF
23864 # Files that config.status was made for.
23865 config_files="$ac_config_files"
23866 config_headers="$ac_config_headers"
23870 cat >>$CONFIG_STATUS <<\_ACEOF
23872 \`$as_me' instantiates files from templates according to the
23873 current configuration.
23875 Usage: $0 [OPTIONS] [FILE]...
23877 -h, --help print this help, then exit
23878 -V, --version print version number and configuration settings, then exit
23879 -q, --quiet do not print progress messages
23880 -d, --debug don't remove temporary files
23881 --recheck update $as_me by reconfiguring in the same conditions
23882 --file=FILE[:TEMPLATE]
23883 instantiate the configuration file FILE
23884 --header=FILE[:TEMPLATE]
23885 instantiate the configuration header FILE
23887 Configuration files:
23890 Configuration headers:
23893 Report bugs to <bug-autoconf@gnu.org>."
23896 cat >>$CONFIG_STATUS <<_ACEOF
23898 python config.status 2.6
23899 configured by $0, generated by GNU Autoconf 2.61,
23900 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23902 Copyright (C) 2006 Free Software Foundation, Inc.
23903 This config.status script is free software; the Free Software Foundation
23904 gives unlimited permission to copy, distribute and modify it."
23911 cat >>$CONFIG_STATUS <<\_ACEOF
23912 # If no file are specified by the user, then we need to provide default
23913 # value. By we need to know if files were specified by the user.
23919 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23920 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23931 # Handling of the options.
23932 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23934 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23935 echo "$ac_cs_version"; exit ;;
23936 --debug |
--debu |
--deb |
--de |
--d |
-d )
23938 --file |
--fil |
--fi |
--f )
23940 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23941 ac_need_defaults
=false
;;
23942 --header |
--heade |
--head |
--hea )
23944 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23945 ac_need_defaults
=false
;;
23947 # Conflict between --help and --header
23948 { echo "$as_me: error: ambiguous option: $1
23949 Try \`$0 --help' for more information." >&2
23950 { (exit 1); exit 1; }; };;
23951 --help |
--hel |
-h )
23952 echo "$ac_cs_usage"; exit ;;
23953 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23954 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23957 # This is an error.
23958 -*) { echo "$as_me: error: unrecognized option: $1
23959 Try \`$0 --help' for more information." >&2
23960 { (exit 1); exit 1; }; } ;;
23962 *) ac_config_targets
="$ac_config_targets $1"
23963 ac_need_defaults
=false
;;
23969 ac_configure_extra_args
=
23971 if $ac_cs_silent; then
23973 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23977 cat >>$CONFIG_STATUS <<_ACEOF
23978 if \$ac_cs_recheck; then
23979 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23980 CONFIG_SHELL=$SHELL
23981 export CONFIG_SHELL
23982 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23986 cat >>$CONFIG_STATUS <<\_ACEOF
23990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23991 ## Running $as_me. ##
23997 cat >>$CONFIG_STATUS <<_ACEOF
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24002 # Handling of arguments.
24003 for ac_config_target
in $ac_config_targets
24005 case $ac_config_target in
24006 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
24007 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
24008 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24009 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24010 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
24011 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
24013 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24014 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24015 { (exit 1); exit 1; }; };;
24020 # If the user did not use the arguments to specify the items to instantiate,
24021 # then the envvar interface is used. Set only those that are not.
24022 # We use the long form for the default assignment because of an extremely
24023 # bizarre bug on SunOS 4.1.3.
24024 if $ac_need_defaults; then
24025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24029 # Have a temporary directory for convenience. Make it in the build tree
24030 # simply because there is no reason against having it here, and in addition,
24031 # creating and moving files from /tmp can sometimes cause problems.
24032 # Hook for its removal unless debugging.
24033 # Note that there is a small window in which the directory will not be cleaned:
24034 # after its creation but before its name has been assigned to `$tmp'.
24038 trap 'exit_status=$?
24039 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24041 trap '{ (exit 1); exit 1; }' 1 2 13 15
24043 # Create a (secure) tmp directory for tmp files.
24046 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24047 test -n "$tmp" && test -d "$tmp"
24050 tmp
=.
/conf$$
-$RANDOM
24051 (umask 077 && mkdir
"$tmp")
24054 echo "$me: cannot create a temporary directory in ." >&2
24055 { (exit 1); exit 1; }
24059 # Set up the sed scripts for CONFIG_FILES section.
24062 # No need to generate the scripts if there are no CONFIG_FILES.
24063 # This happens for instance when ./config.status config.h
24064 if test -n "$CONFIG_FILES"; then
24071 for ac_last_try
in false false false false false
:; do
24072 cat >conf$
$subs.
sed <<_ACEOF
24073 SHELL!$SHELL$ac_delim
24074 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24075 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24076 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24077 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24078 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24079 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24080 exec_prefix!$exec_prefix$ac_delim
24081 prefix!$prefix$ac_delim
24082 program_transform_name!$program_transform_name$ac_delim
24083 bindir!$bindir$ac_delim
24084 sbindir!$sbindir$ac_delim
24085 libexecdir!$libexecdir$ac_delim
24086 datarootdir!$datarootdir$ac_delim
24087 datadir!$datadir$ac_delim
24088 sysconfdir!$sysconfdir$ac_delim
24089 sharedstatedir!$sharedstatedir$ac_delim
24090 localstatedir!$localstatedir$ac_delim
24091 includedir!$includedir$ac_delim
24092 oldincludedir!$oldincludedir$ac_delim
24093 docdir!$docdir$ac_delim
24094 infodir!$infodir$ac_delim
24095 htmldir!$htmldir$ac_delim
24096 dvidir!$dvidir$ac_delim
24097 pdfdir!$pdfdir$ac_delim
24098 psdir!$psdir$ac_delim
24099 libdir!$libdir$ac_delim
24100 localedir!$localedir$ac_delim
24101 mandir!$mandir$ac_delim
24102 DEFS!$DEFS$ac_delim
24103 ECHO_C!$ECHO_C$ac_delim
24104 ECHO_N!$ECHO_N$ac_delim
24105 ECHO_T!$ECHO_T$ac_delim
24106 LIBS!$LIBS$ac_delim
24107 build_alias!$build_alias$ac_delim
24108 host_alias!$host_alias$ac_delim
24109 target_alias!$target_alias$ac_delim
24110 VERSION!$VERSION$ac_delim
24111 SOVERSION!$SOVERSION$ac_delim
24112 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24113 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24114 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24115 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24116 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24117 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24118 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24119 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24120 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24121 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24122 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24123 MACHDEP!$MACHDEP$ac_delim
24124 SGI_ABI!$SGI_ABI$ac_delim
24125 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24126 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24127 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24128 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24130 CFLAGS!$CFLAGS$ac_delim
24131 LDFLAGS!$LDFLAGS$ac_delim
24132 CPPFLAGS!$CPPFLAGS$ac_delim
24133 ac_ct_CC!$ac_ct_CC$ac_delim
24134 EXEEXT!$EXEEXT$ac_delim
24135 OBJEXT!$OBJEXT$ac_delim
24137 MAINCC!$MAINCC$ac_delim
24139 GREP!$GREP$ac_delim
24140 EGREP!$EGREP$ac_delim
24141 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24142 LIBRARY!$LIBRARY$ac_delim
24143 LDLIBRARY!$LDLIBRARY$ac_delim
24144 DLLLIBRARY!$DLLLIBRARY$ac_delim
24145 BLDLIBRARY!$BLDLIBRARY$ac_delim
24146 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24147 INSTSONAME!$INSTSONAME$ac_delim
24148 RUNSHARED!$RUNSHARED$ac_delim
24149 LINKCC!$LINKCC$ac_delim
24150 RANLIB!$RANLIB$ac_delim
24152 SVNVERSION!$SVNVERSION$ac_delim
24153 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24154 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24155 INSTALL_DATA!$INSTALL_DATA$ac_delim
24158 BASECFLAGS!$BASECFLAGS$ac_delim
24159 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24160 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24162 LDSHARED!$LDSHARED$ac_delim
24163 BLDSHARED!$BLDSHARED$ac_delim
24164 CCSHARED!$CCSHARED$ac_delim
24165 LINKFORSHARED!$LINKFORSHARED$ac_delim
24166 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24167 SHLIBS!$SHLIBS$ac_delim
24168 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24169 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24172 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24174 elif $ac_last_try; then
24175 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24176 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24177 { (exit 1); exit 1; }; }
24179 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24183 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24184 if test -n "$ac_eof"; then
24185 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24186 ac_eof
=`expr $ac_eof + 1`
24189 cat >>$CONFIG_STATUS <<_ACEOF
24190 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24194 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24195 s/^/s,@/; s/!/@,|#_!!_#|/
24198 s/'"$ac_delim"'$/,g/; t
24200 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24201 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24202 rm -f conf$
$subs.
sed
24203 cat >>$CONFIG_STATUS <<_ACEOF
24209 for ac_last_try
in false false false false false
:; do
24210 cat >conf$
$subs.
sed <<_ACEOF
24211 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24212 LDLAST!$LDLAST$ac_delim
24213 THREADOBJ!$THREADOBJ$ac_delim
24214 DLINCLDIR!$DLINCLDIR$ac_delim
24215 DYNLOADFILE!$DYNLOADFILE$ac_delim
24216 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24217 TRUE!$TRUE$ac_delim
24218 LIBOBJS!$LIBOBJS$ac_delim
24219 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24220 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24221 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24222 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24223 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24224 LIBM!$LIBM$ac_delim
24225 LIBC!$LIBC$ac_delim
24226 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24227 THREADHEADERS!$THREADHEADERS$ac_delim
24228 SRCDIRS!$SRCDIRS$ac_delim
24229 LTLIBOBJS!$LTLIBOBJS$ac_delim
24232 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24234 elif $ac_last_try; then
24235 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24236 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24237 { (exit 1); exit 1; }; }
24239 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24243 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24244 if test -n "$ac_eof"; then
24245 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24246 ac_eof
=`expr $ac_eof + 1`
24249 cat >>$CONFIG_STATUS <<_ACEOF
24250 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24254 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24255 s/^/s,@/; s/!/@,|#_!!_#|/
24258 s/'"$ac_delim"'$/,g/; t
24260 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24261 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24262 rm -f conf$
$subs.
sed
24263 cat >>$CONFIG_STATUS <<_ACEOF
24270 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24271 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24272 # trailing colons and then remove the whole line if VPATH becomes empty
24273 # (actually we leave an empty line to preserve line numbers).
24274 if test "x$srcdir" = x.
; then
24275 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24276 s/:*\$(srcdir):*/:/
24277 s/:*\${srcdir}:*/:/
24279 s/^\([^=]*=[ ]*\):*/\1/
24285 cat >>$CONFIG_STATUS <<\_ACEOF
24286 fi # test -n "$CONFIG_FILES"
24289 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
24292 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24294 case $ac_mode$ac_tag in
24296 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24297 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24298 { (exit 1); exit 1; }; };;
24299 :[FH
]-) ac_tag
=-:-;;
24300 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24317 -) ac_f
="$tmp/stdin";;
24318 *) # Look for the file first in the build tree, then in the source tree
24319 # (if the path is not absolute). The absolute path cannot be DOS-style,
24320 # because $ac_f cannot contain `:'.
24324 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24326 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24327 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24328 { (exit 1); exit 1; }; };;
24330 ac_file_inputs
="$ac_file_inputs $ac_f"
24333 # Let's still pretend it is `configure' which instantiates (i.e., don't
24334 # use $as_me), people would be surprised to read:
24335 # /* config.h. Generated by config.status. */
24336 configure_input
="Generated from "`IFS=:
24337 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24338 if test x
"$ac_file" != x-
; then
24339 configure_input
="$ac_file. $configure_input"
24340 { echo "$as_me:$LINENO: creating $ac_file" >&5
24341 echo "$as_me: creating $ac_file" >&6;}
24345 *:-:* |
*:-) cat >"$tmp/stdin";;
24350 ac_dir
=`$as_dirname -- "$ac_file" ||
24351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24352 X"$ac_file" : 'X\(//\)[^/]' \| \
24353 X"$ac_file" : 'X\(//\)$' \| \
24354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24360 /^X\(\/\/\)[^/].*/{
24375 -*) as_dir
=.
/$as_dir;;
24377 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24381 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24382 *) as_qdir
=$as_dir;;
24384 as_dirs
="'$as_qdir' $as_dirs"
24385 as_dir
=`$as_dirname -- "$as_dir" ||
24386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24387 X"$as_dir" : 'X\(//\)[^/]' \| \
24388 X"$as_dir" : 'X\(//\)$' \| \
24389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24395 /^X\(\/\/\)[^/].*/{
24408 test -d "$as_dir" && break
24410 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24411 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24412 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24413 { (exit 1); exit 1; }; }; }
24417 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24419 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24420 # A ".." for each directory in $ac_dir_suffix.
24421 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24422 case $ac_top_builddir_sub in
24423 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24424 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24427 ac_abs_top_builddir
=$ac_pwd
24428 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24429 # for backward compatibility:
24430 ac_top_builddir
=$ac_top_build_prefix
24433 .
) # We are building in place.
24435 ac_top_srcdir
=$ac_top_builddir_sub
24436 ac_abs_top_srcdir
=$ac_pwd ;;
24437 [\\/]* | ?
:[\\/]* ) # Absolute name.
24438 ac_srcdir
=$srcdir$ac_dir_suffix;
24439 ac_top_srcdir
=$srcdir
24440 ac_abs_top_srcdir
=$srcdir ;;
24441 *) # Relative name.
24442 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24443 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24444 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24446 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24456 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24457 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24461 cat >>$CONFIG_STATUS <<\_ACEOF
24462 # If the template does not know about datarootdir, expand it.
24463 # FIXME: This hack should be removed a few years after 2.60.
24464 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24466 case `sed -n '/datarootdir/ {
24475 ' $ac_file_inputs` in
24476 *datarootdir
*) ac_datarootdir_seen
=yes;;
24477 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24478 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24479 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24481 cat >>$CONFIG_STATUS <<_ACEOF
24482 ac_datarootdir_hack='
24483 s&@datadir@&$datadir&g
24484 s&@docdir@&$docdir&g
24485 s&@infodir@&$infodir&g
24486 s&@localedir@&$localedir&g
24487 s&@mandir@&$mandir&g
24488 s&\\\${datarootdir}&$datarootdir&g' ;;
24492 # Neutralize VPATH when `$srcdir' = `.'.
24493 # Shell code in configure.ac might set extrasub.
24494 # FIXME: do we really want to maintain this feature?
24495 cat >>$CONFIG_STATUS <<_ACEOF
24499 cat >>$CONFIG_STATUS <<\_ACEOF
24501 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24502 s
&@configure_input@
&$configure_input&;t t
24503 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24504 s
&@srcdir@
&$ac_srcdir&;t t
24505 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24506 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24507 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24508 s
&@builddir@
&$ac_builddir&;t t
24509 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24510 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24511 s
&@INSTALL@
&$ac_INSTALL&;t t
24512 $ac_datarootdir_hack
24513 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24516 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24518 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24519 which seems to be undefined. Please make sure it is defined." >&5
24520 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24521 which seems to be undefined. Please make sure it is defined." >&2;}
24525 -) cat "$tmp/out"; rm -f "$tmp/out";;
24526 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24535 # Transform confdefs.h into a sed script `conftest.defines', that
24536 # substitutes the proper values into config.h.in to produce config.h.
24537 rm -f conftest.defines conftest.
tail
24538 # First, append a space to every undef/define line, to ease matching.
24539 echo 's/$/ /' >conftest.defines
24540 # Then, protect against being on the right side of a sed subst, or in
24541 # an unquoted here document, in config.status. If some macros were
24542 # called several times there might be several #defines for the same
24543 # symbol, which is useless. But do not sort them, since the last
24544 # AC_DEFINE must be honored.
24545 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24546 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24547 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24548 # PARAMS is the parameter list in the macro definition--in most cases, it's
24549 # just an empty string.
24550 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24551 ac_dB
='\\)[ (].*,\\1define\\2'
24559 s/^[ ]*#[ ]*define[ ][ ]*//
24564 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24565 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24566 ' >>conftest.defines
24568 # Remove the space that was appended to ease matching.
24569 # Then replace #undef with comments. This is necessary, for
24570 # example, in the case of _POSIX_SOURCE, which is predefined and required
24571 # on some systems where configure will not decide to define it.
24572 # (The regexp can be short, since the line contains either #define or #undef.)
24574 s,^[ #]*u.*,/* & */,' >>conftest.defines
24576 # Break up conftest.defines:
24577 ac_max_sed_lines
=50
24579 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24580 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24581 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24583 ac_in
='$ac_file_inputs'
24584 ac_out
='"$tmp/out1"'
24585 ac_nxt
='"$tmp/out2"'
24589 # Write a here document:
24590 cat >>$CONFIG_STATUS <<_ACEOF
24591 # First, check the format of the line:
24592 cat >"\$tmp/defines.sed" <<\\CEOF
24593 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24594 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24598 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24600 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24601 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24602 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24603 grep . conftest.
tail >/dev
/null ||
break
24604 rm -f conftest.defines
24605 mv conftest.
tail conftest.defines
24607 rm -f conftest.defines conftest.
tail
24609 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24610 cat >>$CONFIG_STATUS <<\_ACEOF
24611 if test x
"$ac_file" != x-
; then
24612 echo "/* $configure_input */" >"$tmp/config.h"
24613 cat "$ac_result" >>"$tmp/config.h"
24614 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24615 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24616 echo "$as_me: $ac_file is unchanged" >&6;}
24619 mv "$tmp/config.h" $ac_file
24622 echo "/* $configure_input */"
24634 { (exit 0); exit 0; }
24636 chmod +x
$CONFIG_STATUS
24637 ac_clean_files
=$ac_clean_files_save
24640 # configure is writing to config.log, and then calls config.status.
24641 # config.status does its own redirection, appending to config.log.
24642 # Unfortunately, on DOS this fails, as config.log is still kept open
24643 # by configure, so config.status won't be able to write to it; its
24644 # output is simply discarded. So we exec the FD to /dev/null,
24645 # effectively closing config.log, so it can be properly (re)opened and
24646 # appended to by config.status. When coming back to configure, we
24647 # need to make the FD available again.
24648 if test "$no_create" != yes; then
24650 ac_config_status_args
=
24651 test "$silent" = yes &&
24652 ac_config_status_args
="$ac_config_status_args --quiet"
24654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24657 # would make configure fail if this is the last instruction.
24658 $ac_cs_success ||
{ (exit 1); exit 1; }
24662 echo "creating Modules/Setup"
24663 if test ! -f Modules
/Setup
24665 cp $srcdir/Modules
/Setup.dist Modules
/Setup
24668 echo "creating Modules/Setup.local"
24669 if test ! -f Modules
/Setup.
local
24671 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
24674 echo "creating Makefile"
24675 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
24676 -s Modules Modules
/Setup.config \
24677 Modules
/Setup.
local Modules
/Setup
24679 case $ac_sys_system in
24681 { echo "$as_me:$LINENO: WARNING:
24683 Support for BeOS is deprecated as of Python 2.6.
24684 See PEP 11 for the gory details.
24686 echo "$as_me: WARNING:
24688 Support for BeOS is deprecated as of Python 2.6.
24689 See PEP 11 for the gory details.
24695 mv config.c Modules