2 # From configure.in Revision: 71261 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://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
='3.1'
579 PACKAGE_STRING
='python 3.1'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
725 HAVE_GETHOSTBYNAME_R_6_ARG
726 HAVE_GETHOSTBYNAME_R_5_ARG
727 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 3.1 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 3.1:";;
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 against 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-ipv6 Enable ipv6
(with ipv4
) support
1322 --disable-ipv6 Disable ipv6 support
1323 --enable-big-digits[=BITS
]
1324 use big digits
for Python longs
[BITS
=30]
1327 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1328 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1329 --with-universal-archs=ARCH
1330 select architectures
for universal build
("32-bit",
1332 --with-framework-name=FRAMEWORK
1333 specify an alternate name of the framework built
1334 with
--enable-framework
1335 --without-gcc never use gcc
1336 --with-cxx-main=<compiler
>
1337 compile main
() and link python executable with C
++
1339 --with-suffix=.exe
set executable suffix
1340 --with-pydebug build with Py_DEBUG defined
1341 --with-libs='lib1 ...' link against additional libs
1342 --with-system-ffi build _ctypes module using an installed ffi library
1343 --with-signal-module disable
/enable signal module
1344 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1345 --with(out
)-threads[=DIRECTORY
]
1346 disable
/enable thread support
1347 --with(out
)-thread[=DIRECTORY
]
1348 deprecated
; use
--with(out
)-threads
1349 --with-pth use GNU pth threading libraries
1350 --with(out
)-doc-strings disable
/enable documentation
strings
1351 --with(out
)-tsc enable
/disable timestamp counter profile
1352 --with(out
)-pymalloc disable
/enable specialized mallocs
1353 --with-wctype-functions use wctype.h functions
1354 --with-fpectl enable SIGFPE catching
1355 --with-libm=STRING math library
1356 --with-libc=STRING C library
1357 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1358 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1359 loop
(not available on all compilers
)
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1371 Use these variables to override the choices made by
`configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to <http://www.python.org/python-bugs>.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1435 python configure 3.1
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by python $as_me 3.1, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 # Check that the precious variables saved in the cache have kept the same
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1733 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1737 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1744 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1745 echo "$as_me: former value
: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1747 echo "$as_me: current value
: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1765 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1766 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 ac_config_headers="$ac_config_headers pyconfig.h"
1807 if test "$prefix" != "/"; then
1808 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1816 # We don't use PACKAGE_ variables, and they cause conflicts
1817 # with other autoconf-based packages that include Python.h
1818 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1820 mv confdefs.h.new confdefs.h
1828 # The later defininition of _XOPEN_SOURCE disables certain features
1829 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1831 cat >>confdefs.h <<\_ACEOF
1832 #define _GNU_SOURCE 1
1836 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1837 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _NETBSD_SOURCE 1
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1849 cat >>confdefs.h <<\_ACEOF
1850 #define __BSD_VISIBLE 1
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1857 cat >>confdefs.h <<\_ACEOF
1858 #define _BSD_TYPES 1
1862 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1863 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _DARWIN_C_SOURCE 1
1872 define_xopen_source=yes
1874 # Arguments passed to configure.
1876 CONFIG_ARGS="$ac_configure_args"
1878 # Check whether --enable-universalsdk was given.
1879 if test "${enable_universalsdk+set}" = set; then
1880 enableval=$enable_universalsdk;
1883 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1889 enable_universalsdk=
1892 UNIVERSALSDK=$enableval
1899 enable_universalsdk=
1908 UNIVERSAL_ARCHS="32-bit"
1909 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1910 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1912 # Check whether --with-universal-archs was given.
1913 if test "${with_universal_archs+set}" = set; then
1914 withval=$with_universal_archs;
1915 { echo "$as_me:$LINENO: result: $withval" >&5
1916 echo "${ECHO_T}$withval" >&6; }
1917 UNIVERSAL_ARCHS="$withval"
1921 { echo "$as_me:$LINENO: result: 32-bit" >&5
1922 echo "${ECHO_T}32-bit" >&6; }
1930 # Check whether --with-framework-name was given.
1931 if test "${with_framework_name+set}" = set; then
1932 withval=$with_framework_name;
1933 PYTHONFRAMEWORK=${withval}
1934 PYTHONFRAMEWORKDIR=${withval}.framework
1935 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1939 PYTHONFRAMEWORK=Python
1940 PYTHONFRAMEWORKDIR=Python.framework
1941 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1945 # Check whether --enable-framework was given.
1946 if test "${enable_framework+set}" = set; then
1947 enableval=$enable_framework;
1950 enableval=/Library/Frameworks
1955 PYTHONFRAMEWORKDIR=no-framework
1956 PYTHONFRAMEWORKPREFIX=
1957 PYTHONFRAMEWORKINSTALLDIR=
1958 FRAMEWORKINSTALLFIRST=
1959 FRAMEWORKINSTALLLAST=
1960 FRAMEWORKALTINSTALLFIRST=
1961 FRAMEWORKALTINSTALLLAST=
1962 if test "x${prefix}" = "xNONE"; then
1963 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1965 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1970 PYTHONFRAMEWORKPREFIX=$enableval
1971 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1972 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1973 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1974 if test "$UNIVERSAL_ARCHS" = "all"
1976 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1977 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1979 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1980 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1983 if test "x${prefix}" = "xNONE" ; then
1984 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1986 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1988 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1990 # Add files for Mac specific code to the list of output
1992 ac_config_files="$ac_config_files Mac/Makefile"
1994 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1996 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1998 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2005 PYTHONFRAMEWORKDIR=no-framework
2006 PYTHONFRAMEWORKPREFIX=
2007 PYTHONFRAMEWORKINSTALLDIR=
2008 FRAMEWORKINSTALLFIRST=
2009 FRAMEWORKINSTALLLAST=
2010 FRAMEWORKALTINSTALLFIRST=
2011 FRAMEWORKALTINSTALLLAST=
2012 if test "x${prefix}" = "xNONE" ; then
2013 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2015 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2019 if test "$UNIVERSAL_ARCHS" = "all"
2021 FRAMEWORKINSTALLLAST=update4wayuniversal
2022 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2039 ## AC_HELP_STRING(--with-dyld,
2040 ## Use (OpenStep|Rhapsody) dynamic linker))
2042 # Set name for machine-dependent library files
2044 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2045 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2046 if test -z "$MACHDEP"
2048 ac_sys_system=`uname
-s`
2049 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2050 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2051 ac_sys_release=`uname
-v`
2053 ac_sys_release=`uname
-r`
2055 ac_md_system=`echo $ac_sys_system |
2056 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2057 ac_md_release=`echo $ac_sys_release |
2058 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2059 MACHDEP="$ac_md_system$ac_md_release"
2062 cygwin*) MACHDEP="cygwin";;
2063 darwin*) MACHDEP="darwin";;
2064 atheos*) MACHDEP="atheos";;
2065 irix646) MACHDEP="irix6";;
2066 '') MACHDEP="unknown";;
2070 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2071 # disable features if it is defined, without any means to access these
2072 # features as extensions. For these systems, we skip the definition of
2073 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2074 # some feature, make sure there is no alternative way to access this
2075 # feature. Also, when using wildcards, make sure you have verified the
2076 # need for not defining _XOPEN_SOURCE on all systems matching the
2077 # wildcard, and that the wildcard does not include future systems
2078 # (which may remove their limitations).
2079 case $ac_sys_system/$ac_sys_release in
2080 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2081 # even though select is a POSIX function. Reported by J. Ribbens.
2082 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2083 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2084 define_xopen_source=no
2085 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2086 # also defined. This can be overridden by defining _BSD_SOURCE
2087 # As this has a different meaning on Linux, only define it on OpenBSD
2089 cat >>confdefs.h <<\_ACEOF
2090 #define _BSD_SOURCE 1
2094 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2095 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2097 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2098 define_xopen_source=no;;
2099 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2100 # of union __?sigval. Reported by Stuart Bishop.
2102 define_xopen_source=no;;
2103 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2104 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2105 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2106 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2107 define_xopen_source=no;;
2108 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2109 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2111 define_xopen_source=no;;
2112 # On FreeBSD 4, the math functions C89 does not cover are never defined
2113 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2115 define_xopen_source=no;;
2116 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2117 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2118 # identifies itself as Darwin/7.*
2119 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2120 # disables platform specific features beyond repair.
2121 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2122 # has no effect, don't bother defining them
2124 define_xopen_source=no;;
2125 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2126 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2127 # or has another value. By not (re)defining it, the defaults come in place.
2129 define_xopen_source=no;;
2131 if test `uname
-r` -eq 1; then
2132 define_xopen_source=no
2135 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2136 # defining NI_NUMERICHOST.
2138 define_xopen_source=no
2143 if test $define_xopen_source = yes
2145 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2146 # defined precisely as g++ defines it
2147 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2149 case $ac_sys_system/$ac_sys_release in
2150 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2152 cat >>confdefs.h <<\_ACEOF
2153 #define _XOPEN_SOURCE 500
2159 cat >>confdefs.h <<\_ACEOF
2160 #define _XOPEN_SOURCE 600
2166 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2167 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2168 # several APIs are not declared. Since this is also needed in some
2169 # cases for HP-UX, we define it globally.
2170 # except for Solaris 10, where it must not be defined,
2171 # as it implies XPG4.2
2172 case $ac_sys_system/$ac_sys_release in
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE_EXTENDED 1
2185 cat >>confdefs.h <<\_ACEOF
2186 #define _POSIX_C_SOURCE 200112L
2193 # SGI compilers allow the specification of the both the ABI and the
2194 # ISA on the command line. Depending on the values of these switches,
2195 # different and often incompatable code will be generated.
2197 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2198 # thus supply support for various ABI/ISA combinations. The MACHDEP
2199 # variable is also adjusted.
2202 if test ! -z "$SGI_ABI"
2205 LDFLAGS="$SGI_ABI $LDFLAGS"
2206 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2208 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2209 echo "${ECHO_T}$MACHDEP" >&6; }
2211 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2212 # it may influence the way we can build extensions, so distutils
2216 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2217 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2219 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2220 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2221 ac_sys_machine=`uname
-m`
2222 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2223 echo "${ECHO_T}$ac_sys_machine" >&6; }
2225 # checks for alternative programs
2227 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2228 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2229 # just to get things to compile and link. Users are free to override OPT
2230 # when running configure or make. The build should not break if they do.
2231 # BASECFLAGS should generally not be messed with, however.
2233 # XXX shouldn't some/most/all of this code be merged with the stuff later
2234 # on that fiddles with OPT and BASECFLAGS?
2235 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2236 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2238 # Check whether --with-gcc was given.
2239 if test "${with_gcc+set}" = set; then
2247 without_gcc=$withval;;
2251 case $ac_sys_system in
2261 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2262 echo "${ECHO_T}$without_gcc" >&6; }
2264 # If the user switches compilers, we can't believe the cache
2265 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2267 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2268 (it is also a good idea to do 'make clean' before compiling)" >&5
2269 echo "$as_me: error: cached CC is different -- throw away $cache_file
2270 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2271 { (exit 1); exit 1; }; }
2275 ac_cpp='$CPP $CPPFLAGS'
2276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279 if test -n "$ac_tool_prefix"; then
2280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 if test -n "$CC"; then
2288 ac_cv_prog_CC="$CC" # Let the user override the test.
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 if test -n "$CC"; then
2309 { echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6; }
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2318 if test -z "$ac_cv_prog_CC"; then
2320 # Extract the first word of "gcc", so it can be a program name with args.
2321 set dummy gcc; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 if test -n "$ac_ct_CC"; then
2328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_ac_ct_CC="gcc"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6; }
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2356 if test "x$ac_ct_CC" = x; then
2359 case $cross_compiling:$ac_tool_warned in
2361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2362 whose name does not start with the host triplet. If you think this
2363 configuration is useful to you, please write to autoconf@gnu.org." >&5
2364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet. If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2367 ac_tool_warned=yes ;;
2375 if test -z "$CC"; then
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}cc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_CC="${ac_tool_prefix}cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 if test -n "$CC"; then
2406 { echo "$as_me:$LINENO: result: $CC" >&5
2407 echo "${ECHO_T}$CC" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2416 if test -z "$CC"; then
2417 # Extract the first word of "cc", so it can be a program name with args.
2418 set dummy cc; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2436 ac_prog_rejected=yes
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 if test $ac_prog_rejected = yes; then
2448 # We found a bogon in the path, so make sure we never use it.
2449 set dummy $ac_cv_prog_CC
2451 if test $# != 0; then
2452 # We chose a different compiler from the bogus one.
2453 # However, it has the same basename, so the bogon will be chosen
2454 # first if we set CC to just the basename; use the full file name.
2456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2462 if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2472 if test -z "$CC"; then
2473 if test -n "$ac_tool_prefix"; then
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2477 set dummy $ac_tool_prefix$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_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 test -n "$CC" && break
2516 if test -z "$CC"; then
2518 for ac_prog in cl.exe
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2550 echo "${ECHO_T}$ac_ct_CC" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2557 test -n "$ac_ct_CC" && break
2560 if test "x$ac_ct_CC" = x; then
2563 case $cross_compiling:$ac_tool_warned in
2565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2566 whose name does not start with the host triplet. If you think this
2567 configuration is useful to you, please write to autoconf@gnu.org." >&5
2568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2569 whose name does not start with the host triplet. If you think this
2570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2571 ac_tool_warned=yes ;;
2580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2581 See \`config.log
' for more details." >&5
2582 echo "$as_me: error: no acceptable C compiler found in \$PATH
2583 See \`config.log' for more details.
" >&2;}
2584 { (exit 1); exit 1; }; }
2586 # Provide some information about the compiler.
2587 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2588 ac_compiler=`set X $ac_compile; echo $2`
2589 { (ac_try="$ac_compiler --version >&5"
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compiler --version >&5") 2>&5
2597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2598 (exit $ac_status); }
2599 { (ac_try="$ac_compiler -v >&5"
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compiler -v >&5") 2>&5
2607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2608 (exit $ac_status); }
2609 { (ac_try="$ac_compiler -V >&5"
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compiler -V >&5") 2>&5
2617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2618 (exit $ac_status); }
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2635 ac_clean_files_save=$ac_clean_files
2636 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2637 # Try to create an executable without -o first, disregard a.out.
2638 # It will help us diagnose broken compilers, and finding out an intuition
2640 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2641 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2642 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2644 # List of possible output files, starting from the most likely.
2645 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2646 # only as a last resort. b.out is created by i960 compilers.
2647 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2649 # The IRIX 6 linker writes into existing files which may not be
2650 # executable, retaining their permissions. Remove them first so a
2651 # subsequent execution test works.
2653 for ac_file in $ac_files
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2662 if { (ac_try="$ac_link_default"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_link_default") 2>&5
2670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2671 (exit $ac_status); }; then
2672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2675 # so that the user can short-circuit this test for compilers unknown to
2677 for ac_file in $ac_files ''
2679 test -f "$ac_file" || continue
2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2684 # We found the default executable, but exeext='' is most
2688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2690 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2692 # We set ac_cv_exeext here because the later test for it is not
2693 # safe: cross compilers may not add the suffix if given an `-o'
2694 # argument, so we may need to know it at that point already.
2695 # Even if this section looks crufty: it has the advantage of
2702 test "$ac_cv_exeext" = no && ac_cv_exeext=
2708 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2709 echo "${ECHO_T}$ac_file" >&6; }
2710 if test -z "$ac_file"; then
2711 echo "$as_me: failed program was
:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2715 See \
`config.log' for more details." >&5
2716 echo "$as_me: error: C compiler cannot create executables
2717 See \`config.log
' for more details." >&2;}
2718 { (exit 77); exit 77; }; }
2721 ac_exeext=$ac_cv_exeext
2723 # Check that the compiler produces executables we can run. If not, either
2724 # the compiler is broken, or we cross compile.
2725 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2726 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2727 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2728 # If not cross compiling, check that we can run a simple program.
2729 if test "$cross_compiling" != yes; then
2730 if { ac_try='.
/$ac_file'
2731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_try") 2>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 if test "$cross_compiling" = maybe; then
2745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2746 If you meant to cross compile, use \`--host'.
2747 See \
`config.log' for more details." >&5
2748 echo "$as_me: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details.
" >&2;}
2751 { (exit 1); exit 1; }; }
2755 { echo "$as_me:$LINENO: result
: yes" >&5
2756 echo "${ECHO_T}yes" >&6; }
2758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2759 ac_clean_files=$ac_clean_files_save
2760 # Check that the compiler produces executables we can run. If not, either
2761 # the compiler is broken, or we cross compile.
2762 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2763 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2764 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2765 echo "${ECHO_T}$cross_compiling" >&6; }
2767 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2768 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2769 if { (ac_try="$ac_link"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_link") 2>&5
2777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2778 (exit $ac_status); }; then
2779 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2780 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2781 # work properly (i.e., refer to `conftest.exe'), while it won't with
2783 for ac_file in conftest.exe conftest conftest.*; do
2784 test -f "$ac_file" || continue
2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2787 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2793 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2794 See \
`config.log' for more details." >&5
2795 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2796 See \`config.log
' for more details." >&2;}
2797 { (exit 1); exit 1; }; }
2800 rm -f conftest$ac_cv_exeext
2801 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2802 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2804 rm -f conftest.$ac_ext
2805 EXEEXT=$ac_cv_exeext
2807 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2808 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2809 if test "${ac_cv_objext+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 rm -f conftest.o conftest.obj
2828 if { (ac_try="$ac_compile"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compile") 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; then
2838 for ac_file in conftest.o conftest.obj conftest.*; do
2839 test -f "$ac_file" || continue;
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2842 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2847 echo "$as_me: failed program was:" >&5
2848 sed 's
/^
/|
/' conftest.$ac_ext >&5
2850 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2851 See \`config.log' for more details.
" >&5
2852 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2853 See \
`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2859 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2860 echo "${ECHO_T}$ac_cv_objext" >&6; }
2861 OBJEXT=$ac_cv_objext
2863 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2864 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2865 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2886 rm -f conftest.$ac_objext
2887 if { (ac_try="$ac_compile"
2889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2890 *) ac_try_echo
=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2895 grep -v '^ *+' conftest.er1
>conftest.err
2897 cat conftest.err
>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.
$ac_objext; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.
$ac_ext >&5
2911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2912 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2915 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2916 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2917 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2918 ac_test_CFLAGS
=${CFLAGS+set}
2919 ac_save_CFLAGS
=$CFLAGS
2920 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2921 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_cc_g+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 ac_save_c_werror_flag
=$ac_c_werror_flag
2926 ac_c_werror_flag
=yes
2929 cat >conftest.
$ac_ext <<_ACEOF
2932 cat confdefs.h
>>conftest.
$ac_ext
2933 cat >>conftest.
$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2944 rm -f conftest.
$ac_objext
2945 if { (ac_try
="$ac_compile"
2947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } && {
2958 test -z "$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2986 *) ac_try_echo
=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2991 grep -v '^ *+' conftest.er1
>conftest.err
2993 cat conftest.err
>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.
$ac_objext; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.
$ac_ext >&5
3004 ac_c_werror_flag
=$ac_save_c_werror_flag
3006 cat >conftest.
$ac_ext <<_ACEOF
3009 cat confdefs.h
>>conftest.
$ac_ext
3010 cat >>conftest.
$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.
$ac_objext
3022 if { (ac_try
="$ac_compile"
3024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } && {
3035 test -z "$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 } && test -s conftest.$ac_objext; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_c_werror_flag=$ac_save_c_werror_flag
3055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3057 if test "$ac_test_CFLAGS" = set; then
3058 CFLAGS=$ac_save_CFLAGS
3059 elif test $ac_cv_prog_cc_g = yes; then
3060 if test "$GCC" = yes; then
3066 if test "$GCC" = yes; then
3072 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3073 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_cc_c89+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 ac_cv_prog_cc_c89=no
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3087 #include <sys/types.h>
3088 #include <sys/stat.h>
3089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3090 struct buf { int x; };
3091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3092 static char *e (p, i)
3098 static char *f (char * (*g) (char **, int), char **p, ...)
3103 s = g (p, va_arg (v,int));
3108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3109 function prototypes and stuff, but not '\xHH' hex character constants.
3110 These don't provoke an error unfortunately, instead are silently treated
3111 as 'x'. The following induces an error, until -std is added to get
3112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3113 array size at least. It's necessary to write '\x00'==0 to get something
3114 that's true only with -std. */
3115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3118 inside strings and character constants. */
3120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3122 int test (int i, double x);
3123 struct s1 {int (*f) (int a);};
3124 struct s2 {int (*f) (double a);};
3125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3139 CC="$ac_save_CC $ac_arg"
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3144 *) ac_try_echo
=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compile") 2>conftest.er1
3149 grep -v '^ *+' conftest.er1
>conftest.err
3151 cat conftest.err
>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && {
3154 test -z "$ac_c_werror_flag" ||
3155 test ! -s conftest.err
3156 } && test -s conftest.
$ac_objext; then
3157 ac_cv_prog_cc_c89
=$ac_arg
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.
$ac_ext >&5
3165 rm -f core conftest.err conftest.
$ac_objext
3166 test "x$ac_cv_prog_cc_c89" != "xno" && break
3168 rm -f conftest.
$ac_ext
3173 case "x$ac_cv_prog_cc_c89" in
3175 { echo "$as_me:$LINENO: result: none needed" >&5
3176 echo "${ECHO_T}none needed" >&6; } ;;
3178 { echo "$as_me:$LINENO: result: unsupported" >&5
3179 echo "${ECHO_T}unsupported" >&6; } ;;
3181 CC
="$CC $ac_cv_prog_cc_c89"
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3188 ac_cpp
='$CPP $CPPFLAGS'
3189 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3196 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3197 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3199 # Check whether --with-cxx_main was given.
3200 if test "${with_cxx_main+set}" = set; then
3201 withval
=$with_cxx_main;
3204 no
) with_cxx_main
=no
3206 yes) with_cxx_main
=yes
3208 *) with_cxx_main
=yes
3222 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3223 echo "${ECHO_T}$with_cxx_main" >&6; }
3229 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3230 set dummy g
++; ac_word
=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_path_CXX+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 for as_dir
in notfound
3245 test -z "$as_dir" && as_dir
=.
3246 for ac_exec_ext
in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3261 if test -n "$CXX"; then
3262 { echo "$as_me:$LINENO: result: $CXX" >&5
3263 echo "${ECHO_T}$CXX" >&6; }
3265 { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3270 cc
) # Extract the first word of "c++", so it can be a program name with args.
3271 set dummy c
++; ac_word
=$2
3272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3274 if test "${ac_cv_path_CXX+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3283 for as_dir
in notfound
3286 test -z "$as_dir" && as_dir
=.
3287 for ac_exec_ext
in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3302 if test -n "$CXX"; then
3303 { echo "$as_me:$LINENO: result: $CXX" >&5
3304 echo "${ECHO_T}$CXX" >&6; }
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3312 if test "$CXX" = "notfound"
3319 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy
$ac_prog; ac_word
=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_CXX+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -n "$CXX"; then
3329 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir
=.
3336 for ac_exec_ext
in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CXX
="$ac_prog"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$CXX"; then
3350 { echo "$as_me:$LINENO: result: $CXX" >&5
3351 echo "${ECHO_T}$CXX" >&6; }
3353 { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; }
3358 test -n "$CXX" && break
3360 test -n "$CXX" || CXX
="notfound"
3362 if test "$CXX" = "notfound"
3367 if test "$preset_cxx" != "$CXX"
3369 { echo "$as_me:$LINENO: WARNING:
3371 By default, distutils will build C++ extension modules with \"$CXX\".
3372 If this is not intended, then set CXX on the configure command line.
3374 echo "$as_me: WARNING:
3376 By default, distutils will build C++ extension modules with \"$CXX\".
3377 If this is not intended, then set CXX on the configure command line.
3382 # checks for UNIX variants that set C preprocessor variables
3385 ac_cpp
='$CPP $CPPFLAGS'
3386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3389 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3390 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3391 # On Suns, sometimes $CPP names a directory.
3392 if test -n "$CPP" && test -d "$CPP"; then
3395 if test -z "$CPP"; then
3396 if test "${ac_cv_prog_CPP+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 # Double quotes because CPP needs to be expanded
3400 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 for ac_c_preproc_warn_flag
in '' yes
3405 # Use a header file that comes with gcc, so configuring glibc
3406 # with a fresh cross-compiler works.
3407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408 # <limits.h> exists even on freestanding compilers.
3409 # On the NeXT, cc -E runs the code through the compiler's parser,
3410 # not just through cpp. "Syntax error" is here to catch this case.
3411 cat >conftest.
$ac_ext <<_ACEOF
3414 cat confdefs.h
>>conftest.
$ac_ext
3415 cat >>conftest.
$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3418 # include <limits.h>
3420 # include <assert.h>
3424 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } >/dev/null && {
3437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 # Broken: fails on valid input.
3449 rm -f conftest.err conftest.$ac_ext
3451 # OK, works on sane cases. Now check whether nonexistent headers
3452 # can be detected and how.
3453 cat >conftest.$ac_ext <<_ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 #include <ac_nonexistent.h>
3461 if { (ac_try="$ac_cpp conftest.$ac_ext"
3463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3464 *) ac_try_echo
=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469 grep -v '^ *+' conftest.er1
>conftest.err
3471 cat conftest.err
>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev
/null
&& {
3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3477 # Broken: success on invalid input.
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.
$ac_ext >&5
3483 # Passes both tests.
3488 rm -f conftest.err conftest.
$ac_ext
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.
$ac_ext
3493 if $ac_preproc_ok; then
3505 { echo "$as_me:$LINENO: result: $CPP" >&5
3506 echo "${ECHO_T}$CPP" >&6; }
3508 for ac_c_preproc_warn_flag
in '' yes
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.
$ac_ext <<_ACEOF
3519 cat confdefs.h
>>conftest.
$ac_ext
3520 cat >>conftest.
$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3523 # include <limits.h>
3525 # include <assert.h>
3529 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null && {
3542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 # Broken: fails on valid input.
3554 rm -f conftest.err conftest.$ac_ext
3556 # OK, works on sane cases. Now check whether nonexistent headers
3557 # can be detected and how.
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3569 *) ac_try_echo
=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1
>conftest.err
3576 cat conftest.err
>&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev
/null
&& {
3579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3582 # Broken: success on invalid input.
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.
$ac_ext >&5
3588 # Passes both tests.
3593 rm -f conftest.err conftest.
$ac_ext
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.
$ac_ext
3598 if $ac_preproc_ok; then
3601 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3602 See \`config.log' for more details." >&5
3603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
3609 ac_cpp
='$CPP $CPPFLAGS'
3610 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3615 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3616 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3617 if test "${ac_cv_path_GREP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 # Extract the first word of "grep ggrep" to use in msg output
3621 if test -z "$GREP"; then
3622 set dummy
grep ggrep
; ac_prog_name
=$2
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 ac_path_GREP_found
=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3629 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3632 test -z "$as_dir" && as_dir
=.
3633 for ac_prog
in grep ggrep
; do
3634 for ac_exec_ext
in '' $ac_executable_extensions; do
3635 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3636 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3641 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3644 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3652 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3653 ac_count
=`expr $ac_count + 1`
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP
="$ac_path_GREP"
3657 ac_path_GREP_max
=$ac_count
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3662 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3666 $ac_path_GREP_found && break 3
3676 GREP
="$ac_cv_path_GREP"
3677 if test -z "$GREP"; then
3678 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3679 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3680 { (exit 1); exit 1; }; }
3684 ac_cv_path_GREP
=$GREP
3689 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3690 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3691 GREP
="$ac_cv_path_GREP"
3694 { echo "$as_me:$LINENO: checking for egrep" >&5
3695 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_EGREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3700 then ac_cv_path_EGREP
="$GREP -E"
3702 # Extract the first word of "egrep" to use in msg output
3703 if test -z "$EGREP"; then
3704 set dummy
egrep; ac_prog_name
=$2
3705 if test "${ac_cv_path_EGREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 ac_path_EGREP_found
=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3711 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3714 test -z "$as_dir" && as_dir
=.
3715 for ac_prog
in egrep; do
3716 for ac_exec_ext
in '' $ac_executable_extensions; do
3717 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3718 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3719 # Check for GNU ac_path_EGREP and select it if it is found.
3720 # Check for GNU $ac_path_EGREP
3721 case `"$ac_path_EGREP" --version 2>&1` in
3723 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3726 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 echo 'EGREP' >> "conftest.nl"
3733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3734 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3735 ac_count
=`expr $ac_count + 1`
3736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_EGREP
="$ac_path_EGREP"
3739 ac_path_EGREP_max
=$ac_count
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3744 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3748 $ac_path_EGREP_found && break 3
3758 EGREP
="$ac_cv_path_EGREP"
3759 if test -z "$EGREP"; then
3760 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762 { (exit 1); exit 1; }; }
3766 ac_cv_path_EGREP
=$EGREP
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3774 EGREP
="$ac_cv_path_EGREP"
3778 { echo "$as_me:$LINENO: checking for AIX" >&5
3779 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3780 cat >conftest.
$ac_ext <<_ACEOF
3783 cat confdefs.h
>>conftest.
$ac_ext
3784 cat >>conftest.
$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 $EGREP "yes" >/dev
/null
2>&1; then
3793 { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795 cat >>confdefs.h
<<\_ACEOF
3796 #define _ALL_SOURCE 1
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3807 # Check for unsupported systems
3808 case $ac_sys_system/$ac_sys_release in
3810 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3811 echo See README
for details.
3816 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3817 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3819 # Check whether --with-suffix was given.
3820 if test "${with_suffix+set}" = set; then
3821 withval
=$with_suffix;
3825 *) EXEEXT
=$withval;;
3829 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3830 echo "${ECHO_T}$EXEEXT" >&6; }
3832 # Test whether we're running on a non-case-sensitive system, in which
3833 # case we give a warning if no ext is given
3835 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3836 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3837 if test ! -d CaseSensitiveTestDir
; then
3838 mkdir CaseSensitiveTestDir
3841 if test -d casesensitivetestdir
3843 { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3847 { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3851 rmdir CaseSensitiveTestDir
3856 gcc
) CC
="$CC -D_HAVE_BSDI";;
3860 case $ac_sys_system in
3863 cc|
*/cc
) CC
="$CC -Ae";;
3867 cc
) CC
="$CC -Wl,-Bexport";;
3870 # Some functions have a prototype only with that define, e.g. confstr
3872 cat >>confdefs.h
<<\_ACEOF
3873 #define __EXTENSIONS__ 1
3881 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3882 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3883 if test -z "$LIBRARY"
3885 LIBRARY
='libpython$(VERSION).a'
3887 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3888 echo "${ECHO_T}$LIBRARY" >&6; }
3890 # LDLIBRARY is the name of the library to link against (as opposed to the
3891 # name of the library into which to insert object files). BLDLIBRARY is also
3892 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3893 # is blank as the main program is not linked directly against LDLIBRARY.
3894 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3895 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3896 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3897 # DLLLIBRARY is the shared (i.e., DLL) library.
3899 # RUNSHARED is used to run shared python without installed libraries
3901 # INSTSONAME is the name of the shared library that will be use to install
3902 # on the system - some systems like version suffix, others don't
3909 LDLIBRARY
="$LIBRARY"
3910 BLDLIBRARY
='$(LDLIBRARY)'
3911 INSTSONAME
='$(LDLIBRARY)'
3916 # LINKCC is the command that links the python executable -- default is $(CC).
3917 # If CXX is set, and if it is needed to link a main function that was
3918 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3919 # python might then depend on the C++ runtime
3920 # This is altered for AIX in order to build the export list before
3923 { echo "$as_me:$LINENO: checking LINKCC" >&5
3924 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3925 if test -z "$LINKCC"
3927 LINKCC
='$(PURIFY) $(MAINCC)'
3928 case $ac_sys_system in
3931 if test $ac_sys_release -ge 5 -o \
3932 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3935 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3937 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3939 # qcc must be used because the other compilers do not
3944 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3945 echo "${ECHO_T}$LINKCC" >&6; }
3947 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3948 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3949 # Check whether --enable-shared was given.
3950 if test "${enable_shared+set}" = set; then
3951 enableval
=$enable_shared;
3955 if test -z "$enable_shared"
3957 case $ac_sys_system in
3959 enable_shared
="yes";;
3961 enable_shared
="no";;
3964 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3965 echo "${ECHO_T}$enable_shared" >&6; }
3967 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3968 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3969 # Check whether --enable-profiling was given.
3970 if test "${enable_profiling+set}" = set; then
3971 enableval
=$enable_profiling; ac_save_cc
="$CC"
3973 if test "$cross_compiling" = yes; then
3974 ac_enable_profiling
="no"
3976 cat >conftest.
$ac_ext <<_ACEOF
3979 cat confdefs.h
>>conftest.
$ac_ext
3980 cat >>conftest.
$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 int main() { return 0; }
3984 rm -f conftest
$ac_exeext
3985 if { (ac_try
="$ac_link"
3987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_link") 2>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3997 *) ac_try_echo
=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_enable_profiling
="yes"
4006 echo "$as_me: program exited with status $ac_status" >&5
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.
$ac_ext >&5
4011 ac_enable_profiling
="no"
4013 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4020 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4021 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4023 case "$ac_enable_profiling" in
4025 BASECFLAGS
="-pg $BASECFLAGS"
4026 LDFLAGS
="-pg $LDFLAGS"
4030 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4031 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4033 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4034 # library that we build, but we do not want to link against it (we
4035 # will find it with a -framework option). For this reason there is an
4036 # extra variable BLDLIBRARY against which Python and the extension
4037 # modules are linked, BLDLIBRARY. This is normally the same as
4038 # LDLIBRARY, but empty for MacOSX framework builds.
4039 if test "$enable_framework"
4041 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4042 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4045 BLDLIBRARY
='$(LDLIBRARY)'
4048 # Other platforms follow
4049 if test $enable_shared = "yes"; then
4051 cat >>confdefs.h
<<\_ACEOF
4052 #define Py_ENABLE_SHARED 1
4055 case $ac_sys_system in
4057 LDLIBRARY
='libpython$(VERSION).dll.a'
4058 DLLLIBRARY
='libpython$(VERSION).dll'
4061 LDLIBRARY
='libpython$(VERSION).so'
4062 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4063 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4064 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4066 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4067 LDLIBRARY
='libpython$(VERSION).so'
4068 BLDLIBRARY
='-L. -lpython$(VERSION)'
4069 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4070 case $ac_sys_system in
4072 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4075 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4080 LDLIBRARY
='libpython$(VERSION).so'
4083 LDLIBRARY
='libpython$(VERSION).sl'
4086 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4087 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4090 LDLIBRARY
='libpython$(VERSION).so'
4091 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4092 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4095 LDLIBRARY
='libpython$(VERSION).so'
4096 BLDLIBRARY
='-L. -lpython$(VERSION)'
4097 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4100 LDLIBRARY
='libpython$(VERSION).dylib'
4101 BLDLIBRARY
='-L. -lpython$(VERSION)'
4102 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4106 else # shared is disabled
4107 case $ac_sys_system in
4109 BLDLIBRARY
='$(LIBRARY)'
4110 LDLIBRARY
='libpython$(VERSION).dll.a'
4115 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4116 echo "${ECHO_T}$LDLIBRARY" >&6; }
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4120 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_RANLIB+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 if test -n "$RANLIB"; then
4127 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir
=.
4134 for ac_exec_ext
in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 RANLIB
=$ac_cv_prog_RANLIB
4147 if test -n "$RANLIB"; then
4148 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4149 echo "${ECHO_T}$RANLIB" >&6; }
4151 { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4157 if test -z "$ac_cv_prog_RANLIB"; then
4158 ac_ct_RANLIB
=$RANLIB
4159 # Extract the first word of "ranlib", so it can be a program name with args.
4160 set dummy ranlib
; ac_word
=$2
4161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 if test -n "$ac_ct_RANLIB"; then
4167 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir
=.
4174 for ac_exec_ext
in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4187 if test -n "$ac_ct_RANLIB"; then
4188 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4189 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4191 { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4195 if test "x$ac_ct_RANLIB" = x
; then
4198 case $cross_compiling:$ac_tool_warned in
4200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4201 whose name does not start with the host triplet. If you think this
4202 configuration is useful to you, please write to autoconf@gnu.org." >&5
4203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4204 whose name does not start with the host triplet. If you think this
4205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4206 ac_tool_warned
=yes ;;
4208 RANLIB
=$ac_ct_RANLIB
4211 RANLIB
="$ac_cv_prog_RANLIB"
4215 for ac_prog
in ar aal
4217 # Extract the first word of "$ac_prog", so it can be a program name with args.
4218 set dummy
$ac_prog; ac_word
=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_AR+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$AR"; then
4225 ac_cv_prog_AR
="$AR" # Let the user override the test.
4227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4231 test -z "$as_dir" && as_dir
=.
4232 for ac_exec_ext
in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_AR
="$ac_prog"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 if test -n "$AR"; then
4246 { echo "$as_me:$LINENO: result: $AR" >&5
4247 echo "${ECHO_T}$AR" >&6; }
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4254 test -n "$AR" && break
4256 test -n "$AR" || AR
="ar"
4260 # Extract the first word of "svnversion", so it can be a program name with args.
4261 set dummy svnversion
; ac_word
=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 if test -n "$SVNVERSION"; then
4268 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir
=.
4275 for ac_exec_ext
in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_SVNVERSION
="found"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4288 SVNVERSION
=$ac_cv_prog_SVNVERSION
4289 if test -n "$SVNVERSION"; then
4290 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4291 echo "${ECHO_T}$SVNVERSION" >&6; }
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test $SVNVERSION = found
4300 SVNVERSION
="svnversion \$(srcdir)"
4302 SVNVERSION
="echo exported"
4307 # install -d does not work on BSDI or HP-UX
4308 if test -z "$INSTALL"
4310 INSTALL
="${srcdir}/install-sh -c"
4314 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4315 if test -f "$ac_dir/install-sh"; then
4317 ac_install_sh
="$ac_aux_dir/install-sh -c"
4319 elif test -f "$ac_dir/install.sh"; then
4321 ac_install_sh
="$ac_aux_dir/install.sh -c"
4323 elif test -f "$ac_dir/shtool"; then
4325 ac_install_sh
="$ac_aux_dir/shtool install -c"
4329 if test -z "$ac_aux_dir"; then
4330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4331 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4332 { (exit 1); exit 1; }; }
4335 # These three variables are undocumented and unsupported,
4336 # and are intended to be withdrawn in a future Autoconf release.
4337 # They can cause serious problems if a builder's source tree is in a directory
4338 # whose full name contains unusual characters.
4339 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4340 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4341 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4344 # Find a good install program. We prefer a C program (faster),
4345 # so one script is as good as another. But avoid the broken or
4346 # incompatible versions:
4347 # SysV /etc/install, /usr/sbin/install
4348 # SunOS /usr/etc/install
4349 # IRIX /sbin/install
4351 # AmigaOS /C/install, which installs bootblocks on floppy discs
4352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4355 # OS/2's system install, which has a completely different semantic
4356 # ./install, which can be erroneously created by make from ./install.sh.
4357 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4359 if test -z "$INSTALL"; then
4360 if test "${ac_cv_path_install+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir
=.
4368 # Account for people who put trailing slashes in PATH elements.
4370 .
/ | .
// |
/cC
/* | \
4371 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4372 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4375 # OSF1 and SCO ODT 3.0 have their own names for install.
4376 # Don't use installbsd from OSF since it installs stuff as root
4378 for ac_prog
in ginstall scoinst
install; do
4379 for ac_exec_ext
in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4381 if test $ac_prog = install &&
4382 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4383 # AIX install. It has an incompatible calling convention.
4385 elif test $ac_prog = install &&
4386 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4387 # program-specific install script used by HP pwplus--don't use.
4390 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4403 if test "${ac_cv_path_install+set}" = set; then
4404 INSTALL
=$ac_cv_path_install
4406 # As a last resort, use the slow shell script. Don't cache a
4407 # value for INSTALL within a source directory, because that will
4408 # break other packages using the cache if that directory is
4409 # removed, or if the value is a relative name.
4410 INSTALL
=$ac_install_sh
4413 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4414 echo "${ECHO_T}$INSTALL" >&6; }
4416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4417 # It thinks the first close brace ends the variable substitution.
4418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4422 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4425 # Not every filesystem supports hard links
4427 if test -z "$LN" ; then
4428 case $ac_sys_system in
4429 CYGWIN
*) LN
="ln -s";;
4430 atheos
*) LN
="ln -s";;
4435 # Check for --with-pydebug
4436 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4437 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4439 # Check whether --with-pydebug was given.
4440 if test "${with_pydebug+set}" = set; then
4441 withval
=$with_pydebug;
4442 if test "$withval" != no
4445 cat >>confdefs.h
<<\_ACEOF
4449 { echo "$as_me:$LINENO: result: yes" >&5
4450 echo "${ECHO_T}yes" >&6; };
4452 else { echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4456 { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4461 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4462 # merged with this chunk of code?
4464 # Optimizer/debugger flags
4465 # ------------------------
4466 # (The following bit of code is complicated enough - please keep things
4467 # indented properly. Just pretend you're editing Python code. ;-)
4469 # There are two parallel sets of case statements below, one that checks to
4470 # see if OPT was set and one that does BASECFLAGS setting based upon
4471 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4474 # tweak OPT based on compiler and platform, only if the user didn't set
4475 # it on the command line
4481 if test "$CC" != 'g++' ; then
4482 STRICT_PROTO
="-Wstrict-prototypes"
4484 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4485 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4488 case $ac_cv_prog_cc_g in
4490 if test "$Py_DEBUG" = 'true' ; then
4491 # Optimization messes up debuggers, so turn it off for
4493 OPT
="-g -Wall $STRICT_PROTO"
4495 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4499 OPT
="-O3 -Wall $STRICT_PROTO"
4502 case $ac_sys_system in
4503 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4513 # The current (beta) Monterey compiler dies with optimizations
4514 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4515 case $ac_sys_system in
4525 # The -arch flags for universal builds on OSX
4526 UNIVERSAL_ARCH_FLAGS
=
4529 # tweak BASECFLAGS based on compiler and platform
4532 # Python violates C99 rules, by casting between incompatible
4533 # pointer types. GCC may generate bad code as a result of that,
4534 # so use -fno-strict-aliasing if supported.
4535 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4536 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4538 CC
="$CC -fno-strict-aliasing"
4539 if test "$cross_compiling" = yes; then
4540 ac_cv_no_strict_aliasing_ok
=no
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 int main() { return 0; }
4550 rm -f conftest
$ac_exeext
4551 if { (ac_try
="$ac_link"
4553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_link") 2>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4561 { (case "(($ac_try" in
4562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4563 *) ac_try_echo
=$ac_try;;
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_try") 2>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_cv_no_strict_aliasing_ok
=yes
4572 echo "$as_me: program exited with status $ac_status" >&5
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.
$ac_ext >&5
4577 ac_cv_no_strict_aliasing_ok
=no
4579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4584 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4585 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4586 if test $ac_cv_no_strict_aliasing_ok = yes
4588 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4591 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4592 # support. Without this, treatment of subnormals doesn't follow
4594 case $ac_sys_machine in
4596 BASECFLAGS
="$BASECFLAGS -mieee"
4600 case $ac_sys_system in
4602 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4604 # is there any other compiler on Darwin besides gcc?
4606 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4607 # used to be here, but non-Apple gcc doesn't accept them.
4610 if test "${enable_universalsdk}"; then
4611 UNIVERSAL_ARCH_FLAGS
=""
4612 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4613 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4616 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4617 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4619 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4620 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4621 ARCH_RUN_32BIT
="arch -i386 -ppc"
4624 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4625 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4626 { (exit 1); exit 1; }; }
4631 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4632 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4633 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4634 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4638 # Calculate the right deployment target for this build.
4640 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4641 if test ${cur_target} '>' 10.2; then
4644 if test "${UNIVERSAL_ARCHS}" = "all"; then
4645 # Ensure that the default platform for a 4-way
4646 # universal build is OSX 10.5, that's the first
4647 # OS release where 4-way builds make sense.
4650 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4652 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4653 # environment with a value that is the same as what we'll use
4654 # in the Makefile to ensure that we'll get the same compiler
4655 # environment during configure and build time.
4656 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4657 export MACOSX_DEPLOYMENT_TARGET
4658 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4662 BASECFLAGS
="$BASECFLAGS -mieee"
4668 case $ac_sys_system in
4669 OpenUNIX
*|UnixWare
*)
4670 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4673 BASECFLAGS
="$BASECFLAGS -ieee -std"
4676 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4682 if test "$Py_DEBUG" = 'true'; then
4688 if test "$ac_arch_flags"
4690 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4693 # disable check for icc since it seems to pass, but generates a warning
4696 ac_cv_opt_olimit_ok
=no
4699 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4700 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4701 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 CC
="$CC -OPT:Olimit=0"
4706 if test "$cross_compiling" = yes; then
4707 ac_cv_opt_olimit_ok
=no
4709 cat >conftest.
$ac_ext <<_ACEOF
4712 cat confdefs.h
>>conftest.
$ac_ext
4713 cat >>conftest.
$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 int main() { return 0; }
4717 rm -f conftest
$ac_exeext
4718 if { (ac_try
="$ac_link"
4720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_link") 2>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4728 { (case "(($ac_try" in
4729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4730 *) ac_try_echo
=$ac_try;;
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_try") 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_opt_olimit_ok
=yes
4739 echo "$as_me: program exited with status $ac_status" >&5
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.
$ac_ext >&5
4744 ac_cv_opt_olimit_ok
=no
4746 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4753 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4754 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4755 if test $ac_cv_opt_olimit_ok = yes; then
4756 case $ac_sys_system in
4757 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4758 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4763 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4767 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4768 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4769 if test "${ac_cv_olimit_ok+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 CC
="$CC -Olimit 1500"
4774 if test "$cross_compiling" = yes; then
4777 cat >conftest.
$ac_ext <<_ACEOF
4780 cat confdefs.h
>>conftest.
$ac_ext
4781 cat >>conftest.
$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 int main() { return 0; }
4785 rm -f conftest
$ac_exeext
4786 if { (ac_try
="$ac_link"
4788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_link") 2>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4796 { (case "(($ac_try" in
4797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4798 *) ac_try_echo
=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_try") 2>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4807 echo "$as_me: program exited with status $ac_status" >&5
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.
$ac_ext >&5
4814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4821 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4822 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4823 if test $ac_cv_olimit_ok = yes; then
4824 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4828 # Check whether GCC supports PyArg_ParseTuple format
4829 if test "$GCC" = "yes"
4831 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4832 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4834 CFLAGS
="$CFLAGS -Werror"
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4842 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4852 rm -f conftest.
$ac_objext
4853 if { (ac_try
="$ac_compile"
4855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4870 cat >>confdefs.h <<\_ACEOF
4871 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4874 { echo "$as_me:$LINENO: result: yes" >&5
4875 echo "${ECHO_T}yes" >&6; }
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 # On some compilers, pthreads are available without further options
4890 # (e.g. MacOS X). On some of these systems, the compiler will not
4891 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4892 # So we have to see first whether pthreads are available without
4893 # options before we can check whether -Kpthread improves anything.
4894 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4895 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4896 if test "${ac_cv_pthread_is_default+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 if test "$cross_compiling" = yes; then
4900 ac_cv_pthread_is_default=no
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4909 #include <pthread.h>
4911 void* routine(void* p){return NULL;}
4915 if(pthread_create(&p,NULL,routine,NULL)!=0)
4917 (void)pthread_detach(p);
4922 rm -f conftest$ac_exeext
4923 if { (ac_try="$ac_link"
4925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4926 *) ac_try_echo
=$ac_try;;
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_link") 2>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4933 { (case "(($ac_try" in
4934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_try") 2>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4943 ac_cv_pthread_is_default=yes
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4953 ac_cv_pthread_is_default=no
4955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4962 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4963 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4966 if test $ac_cv_pthread_is_default = yes
4970 # -Kpthread, if available, provides the right #defines
4971 # and linker options to make pthread_create available
4972 # Some compilers won't report that they do not support -Kpthread,
4973 # so we need to run a program to see whether it really made the
4974 # function available.
4975 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4976 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4977 if test "${ac_cv_kpthread+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 if test "$cross_compiling" = yes; then
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4992 #include <pthread.h>
4994 void* routine(void* p){return NULL;}
4998 if(pthread_create(&p,NULL,routine,NULL)!=0)
5000 (void)pthread_detach(p);
5005 rm -f conftest$ac_exeext
5006 if { (ac_try="$ac_link"
5008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5009 *) ac_try_echo
=$ac_try;;
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_link") 2>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5016 { (case "(($ac_try" in
5017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_try") 2>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5027 echo "$as_me: program exited with status $ac_status" >&5
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5041 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5042 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5045 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5047 # -Kthread, if available, provides the right #defines
5048 # and linker options to make pthread_create available
5049 # Some compilers won't report that they do not support -Kthread,
5050 # so we need to run a program to see whether it really made the
5051 # function available.
5052 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5053 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5054 if test "${ac_cv_kthread+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 if test "$cross_compiling" = yes; then
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5069 #include <pthread.h>
5071 void* routine(void* p){return NULL;}
5075 if(pthread_create(&p,NULL,routine,NULL)!=0)
5077 (void)pthread_detach(p);
5082 rm -f conftest$ac_exeext
5083 if { (ac_try="$ac_link"
5085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5086 *) ac_try_echo
=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_link") 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5093 { (case "(($ac_try" in
5094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_try") 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5104 echo "$as_me: program exited with status $ac_status" >&5
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5119 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5122 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5124 # -pthread, if available, provides the right #defines
5125 # and linker options to make pthread_create available
5126 # Some compilers won't report that they do not support -pthread,
5127 # so we need to run a program to see whether it really made the
5128 # function available.
5129 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5130 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5131 if test "${ac_cv_thread+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 if test "$cross_compiling" = yes; then
5139 cat >conftest.$ac_ext <<_ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5146 #include <pthread.h>
5148 void* routine(void* p){return NULL;}
5152 if(pthread_create(&p,NULL,routine,NULL)!=0)
5154 (void)pthread_detach(p);
5159 rm -f conftest$ac_exeext
5160 if { (ac_try="$ac_link"
5162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5163 *) ac_try_echo
=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_link") 2>&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5170 { (case "(($ac_try" in
5171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_try") 2>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5181 echo "$as_me: program exited with status $ac_status" >&5
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5195 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5196 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5199 # If we have set a CC compiler flag for thread support then
5200 # check if it works for CXX, too.
5204 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5205 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5208 if test "$ac_cv_kpthread" = "yes"
5210 CXX="$CXX -Kpthread"
5211 ac_cv_cxx_thread=yes
5212 elif test "$ac_cv_kthread" = "yes"
5215 ac_cv_cxx_thread=yes
5216 elif test "$ac_cv_pthread" = "yes"
5219 ac_cv_cxx_thread=yes
5222 if test $ac_cv_cxx_thread = yes
5224 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5225 $CXX -c conftest.$ac_ext 2>&5
5226 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5227 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5229 ac_cv_cxx_thread=yes
5235 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5236 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5241 # checks for header files
5242 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5243 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5244 if test "${ac_cv_header_stdc+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 cat >conftest.$ac_ext <<_ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5275 grep -v '^ *+' conftest.er1
>conftest.err
5277 cat conftest.err
>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest.
$ac_objext; then
5283 ac_cv_header_stdc
=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.
$ac_ext >&5
5288 ac_cv_header_stdc
=no
5291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5293 if test $ac_cv_header_stdc = yes; then
5294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5295 cat >conftest.
$ac_ext <<_ACEOF
5298 cat confdefs.h
>>conftest.
$ac_ext
5299 cat >>conftest.
$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5305 $EGREP "memchr" >/dev
/null
2>&1; then
5308 ac_cv_header_stdc
=no
5314 if test $ac_cv_header_stdc = yes; then
5315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5316 cat >conftest.
$ac_ext <<_ACEOF
5319 cat confdefs.h
>>conftest.
$ac_ext
5320 cat >>conftest.
$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 $EGREP "free" >/dev
/null
2>&1; then
5329 ac_cv_header_stdc
=no
5335 if test $ac_cv_header_stdc = yes; then
5336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5337 if test "$cross_compiling" = yes; then
5340 cat >conftest.
$ac_ext <<_ACEOF
5343 cat confdefs.h
>>conftest.
$ac_ext
5344 cat >>conftest.
$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5348 #if ((' ' & 0x0FF) == 0x020)
5349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5352 # define ISLOWER(c) \
5353 (('a' <= (c) && (c) <= 'i') \
5354 || ('j' <= (c) && (c) <= 'r') \
5355 || ('s' <= (c) && (c) <= 'z'))
5356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5364 for (i = 0; i < 256; i++)
5365 if (XOR (islower (i), ISLOWER (i))
5366 || toupper (i) != TOUPPER (i))
5371 rm -f conftest
$ac_exeext
5372 if { (ac_try
="$ac_link"
5374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_link") 2>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5382 { (case "(($ac_try" in
5383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5384 *) ac_try_echo
=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_try") 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5393 echo "$as_me: program exited with status $ac_status" >&5
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.
$ac_ext >&5
5398 ac_cv_header_stdc
=no
5400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5406 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5407 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5408 if test $ac_cv_header_stdc = yes; then
5410 cat >>confdefs.h
<<\_ACEOF
5411 #define STDC_HEADERS 1
5416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5426 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5427 inttypes.h stdint.h unistd.h
5429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 cat >conftest.
$ac_ext <<_ACEOF
5438 cat confdefs.h
>>conftest.
$ac_ext
5439 cat >>conftest.
$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5443 #include <$ac_header>
5445 rm -f conftest.
$ac_objext
5446 if { (ac_try
="$ac_compile"
5448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 eval "$as_ac_Header=yes"
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 eval "$as_ac_Header=no"
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 ac_res=`eval echo '${'$as_ac_Header'}'`
5473 { echo "$as_me:$LINENO: result: $ac_res" >&5
5474 echo "${ECHO_T}$ac_res" >&6; }
5475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5539 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5541 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5542 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5544 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5545 sys/lock.h sys/mkdev.h sys/modem.h \
5546 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5547 sys/termio.h sys/time.h \
5548 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5549 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5550 bluetooth/bluetooth.h linux/tipc.h
5552 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_res=`eval echo '${'$as_ac_Header'}'`
5560 { echo "$as_me:$LINENO: result: $ac_res" >&5
5561 echo "${ECHO_T}$ac_res" >&6; }
5563 # Is the header compilable?
5564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 $ac_includes_default
5573 #include <$ac_header>
5575 rm -f conftest.$ac_objext
5576 if { (ac_try="$ac_compile"
5578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5579 *) ac_try_echo
=$ac_try;;
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_compile") 2>conftest.er1
5584 grep -v '^ *+' conftest.er1
>conftest.err
5586 cat conftest.err
>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && {
5589 test -z "$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 } && test -s conftest.
$ac_objext; then
5592 ac_header_compiler
=yes
5594 echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.
$ac_ext >&5
5597 ac_header_compiler
=no
5600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5602 echo "${ECHO_T}$ac_header_compiler" >&6; }
5604 # Is the header present?
5605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5607 cat >conftest.
$ac_ext <<_ACEOF
5610 cat confdefs.h
>>conftest.
$ac_ext
5611 cat >>conftest.
$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <$ac_header>
5615 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1 >conftest.err
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } >/dev/null && {
5628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5631 ac_header_preproc=yes
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 ac_header_preproc=no
5639 rm -f conftest.err conftest.$ac_ext
5640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5641 echo "${ECHO_T}$ac_header_preproc" >&6; }
5643 # So? What about this header?
5644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5650 ac_header_preproc=yes
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5666 ## ------------------------------------------------ ##
5667 ## Report this to http://www.python.org/python-bugs ##
5668 ## ------------------------------------------------ ##
5670 ) | sed "s/^/$as_me: WARNING: /" >&2
5673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 eval "$as_ac_Header=\$ac_header_preproc"
5680 ac_res=`eval echo '${'$as_ac_Header'}'`
5681 { echo "$as_me:$LINENO: result: $ac_res" >&5
5682 echo "${ECHO_T}$ac_res" >&6; }
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686 cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5701 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5702 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5703 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5725 rm -f conftest.$ac_objext
5726 if { (ac_try="$ac_compile"
5728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5729 *) ac_try_echo
=$ac_try;;
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_compile") 2>conftest.er1
5734 grep -v '^ *+' conftest.er1
>conftest.err
5736 cat conftest.err
>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest.
$ac_objext; then
5742 eval "$as_ac_Header=yes"
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.
$ac_ext >&5
5747 eval "$as_ac_Header=no"
5750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5752 ac_res
=`eval echo '${'$as_ac_Header'}'`
5753 { echo "$as_me:$LINENO: result: $ac_res" >&5
5754 echo "${ECHO_T}$ac_res" >&6; }
5755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5756 cat >>confdefs.h
<<_ACEOF
5757 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5760 ac_header_dirent
=$ac_hdr; break
5764 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5765 if test $ac_header_dirent = dirent.h
; then
5766 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5767 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5768 if test "${ac_cv_search_opendir+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 ac_func_search_save_LIBS
=$LIBS
5772 cat >conftest.
$ac_ext <<_ACEOF
5775 cat confdefs.h
>>conftest.
$ac_ext
5776 cat >>conftest.
$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5779 /* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
5794 for ac_lib
in '' dir
; do
5795 if test -z "$ac_lib"; then
5796 ac_res
="none required"
5799 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5801 rm -f conftest.
$ac_objext conftest
$ac_exeext
5802 if { (ac_try
="$ac_link"
5804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_link") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest$ac_exeext &&
5818 $as_test_x conftest$ac_exeext; then
5819 ac_cv_search_opendir=$ac_res
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5829 if test "${ac_cv_search_opendir+set}" = set; then
5833 if test "${ac_cv_search_opendir+set}" = set; then
5836 ac_cv_search_opendir=no
5839 LIBS=$ac_func_search_save_LIBS
5841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5843 ac_res=$ac_cv_search_opendir
5844 if test "$ac_res" != no; then
5845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5852 if test "${ac_cv_search_opendir+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 ac_func_search_save_LIBS=$LIBS
5856 cat >conftest.$ac_ext <<_ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5863 /* Override any GCC internal prototype to avoid an error.
5864 Use char because int might match the return type of a GCC
5865 builtin and then its argument prototype would still apply. */
5878 for ac_lib in '' x; do
5879 if test -z "$ac_lib"; then
5880 ac_res="none required"
5883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (ac_try="$ac_link"
5888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5889 *) ac_try_echo
=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_link") 2>conftest.er1
5894 grep -v '^ *+' conftest.er1
>conftest.err
5896 cat conftest.err
>&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && {
5899 test -z "$ac_c_werror_flag" ||
5900 test ! -s conftest.err
5901 } && test -s conftest
$ac_exeext &&
5902 $as_test_x conftest
$ac_exeext; then
5903 ac_cv_search_opendir
=$ac_res
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.
$ac_ext >&5
5911 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5913 if test "${ac_cv_search_opendir+set}" = set; then
5917 if test "${ac_cv_search_opendir+set}" = set; then
5920 ac_cv_search_opendir
=no
5923 LIBS
=$ac_func_search_save_LIBS
5925 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5926 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5927 ac_res
=$ac_cv_search_opendir
5928 if test "$ac_res" != no
; then
5929 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5935 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5936 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5937 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 cat >conftest.
$ac_ext <<_ACEOF
5943 cat confdefs.h
>>conftest.
$ac_ext
5944 cat >>conftest.
$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <sys/types.h>
5950 return makedev(0, 0);
5955 rm -f conftest.
$ac_objext conftest
$ac_exeext
5956 if { (ac_try
="$ac_link"
5958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_link") 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && {
5969 test -z "$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest$ac_exeext &&
5972 $as_test_x conftest$ac_exeext; then
5973 ac_cv_header_sys_types_h_makedev=yes
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_cv_header_sys_types_h_makedev=no
5981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5982 conftest$ac_exeext conftest.$ac_ext
5985 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5986 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5988 if test $ac_cv_header_sys_types_h_makedev = no; then
5989 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
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 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5996 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5998 # Is the header compilable?
5999 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6000 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 $ac_includes_default
6008 #include <sys/mkdev.h>
6010 rm -f conftest.$ac_objext
6011 if { (ac_try="$ac_compile"
6013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6014 *) ac_try_echo
=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6019 grep -v '^ *+' conftest.er1
>conftest.err
6021 cat conftest.err
>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && {
6024 test -z "$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6026 } && test -s conftest.
$ac_objext; then
6027 ac_header_compiler
=yes
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.
$ac_ext >&5
6032 ac_header_compiler
=no
6035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6037 echo "${ECHO_T}$ac_header_compiler" >&6; }
6039 # Is the header present?
6040 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6041 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6042 cat >conftest.
$ac_ext <<_ACEOF
6045 cat confdefs.h
>>conftest.
$ac_ext
6046 cat >>conftest.
$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include <sys/mkdev.h>
6050 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6058 grep -v '^ *+' conftest.er1 >conftest.err
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } >/dev/null && {
6063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6066 ac_header_preproc=yes
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_header_preproc=no
6074 rm -f conftest.err conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6076 echo "${ECHO_T}$ac_header_preproc" >&6; }
6078 # So? What about this header?
6079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6081 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6082 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6083 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6084 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6085 ac_header_preproc=yes
6088 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6089 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6091 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6093 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6095 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6097 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6099 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6101 ## ------------------------------------------------ ##
6102 ## Report this to http://www.python.org/python-bugs ##
6103 ## ------------------------------------------------ ##
6105 ) | sed "s/^/$as_me: WARNING: /" >&2
6108 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6109 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6110 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6115 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6116 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6119 if test $ac_cv_header_sys_mkdev_h = yes; then
6121 cat >>confdefs.h <<\_ACEOF
6122 #define MAJOR_IN_MKDEV 1
6129 if test $ac_cv_header_sys_mkdev_h = no; then
6130 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
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 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6137 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6139 # Is the header compilable?
6140 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6141 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 $ac_includes_default
6149 #include <sys/sysmacros.h>
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6155 *) ac_try_echo
=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1
>conftest.err
6162 cat conftest.err
>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.
$ac_objext; then
6168 ac_header_compiler
=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.
$ac_ext >&5
6173 ac_header_compiler
=no
6176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6178 echo "${ECHO_T}$ac_header_compiler" >&6; }
6180 # Is the header present?
6181 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6182 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6183 cat >conftest.
$ac_ext <<_ACEOF
6186 cat confdefs.h
>>conftest.
$ac_ext
6187 cat >>conftest.
$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <sys/sysmacros.h>
6191 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6199 grep -v '^ *+' conftest.er1 >conftest.err
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null && {
6204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6207 ac_header_preproc=yes
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 ac_header_preproc=no
6215 rm -f conftest.err conftest.$ac_ext
6216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6217 echo "${ECHO_T}$ac_header_preproc" >&6; }
6219 # So? What about this header?
6220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6222 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6223 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6225 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6226 ac_header_preproc=yes
6229 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6230 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6232 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6234 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6235 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6236 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6238 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6240 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6242 ## ------------------------------------------------ ##
6243 ## Report this to http://www.python.org/python-bugs ##
6244 ## ------------------------------------------------ ##
6246 ) | sed "s/^/$as_me: WARNING: /" >&2
6249 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6250 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6251 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6257 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6260 if test $ac_cv_header_sys_sysmacros_h = yes; then
6262 cat >>confdefs.h <<\_ACEOF
6263 #define MAJOR_IN_SYSMACROS 1
6273 # On Solaris, term.h requires curses.h
6275 for ac_header in term.h
6277 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 #ifdef HAVE_CURSES_H
6295 #include <$ac_header>
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6301 *) ac_try_echo
=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1
>conftest.err
6308 cat conftest.err
>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.
$ac_objext; then
6314 eval "$as_ac_Header=yes"
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.
$ac_ext >&5
6319 eval "$as_ac_Header=no"
6322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6324 ac_res
=`eval echo '${'$as_ac_Header'}'`
6325 { echo "$as_me:$LINENO: result: $ac_res" >&5
6326 echo "${ECHO_T}$ac_res" >&6; }
6327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6328 cat >>confdefs.h
<<_ACEOF
6329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6337 # On Linux, netlink.h requires asm/types.h
6339 for ac_header
in linux
/netlink.h
6341 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6344 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 cat >conftest.
$ac_ext <<_ACEOF
6350 cat confdefs.h
>>conftest.
$ac_ext
6351 cat >>conftest.
$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6354 #ifdef HAVE_ASM_TYPES_H
6355 #include <asm/types.h>
6357 #ifdef HAVE_SYS_SOCKET_H
6358 #include <sys/socket.h>
6362 #include <$ac_header>
6364 rm -f conftest.
$ac_objext
6365 if { (ac_try
="$ac_compile"
6367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 eval "$as_ac_Header=yes"
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 eval "$as_ac_Header=no"
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 ac_res=`eval echo '${'$as_ac_Header'}'`
6392 { echo "$as_me:$LINENO: result: $ac_res" >&5
6393 echo "${ECHO_T}$ac_res" >&6; }
6394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6395 cat >>confdefs.h <<_ACEOF
6396 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6404 # checks for typedefs
6406 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6407 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 $EGREP "clock_t" >/dev/null 2>&1; then
6423 cat >>confdefs.h <<\_ACEOF
6424 #define clock_t long
6431 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6432 echo "${ECHO_T}$was_it_defined" >&6; }
6434 # Check whether using makedev requires defining _OSF_SOURCE
6435 { echo "$as_me:$LINENO: checking for makedev" >&5
6436 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6452 rm -f conftest.$ac_objext conftest$ac_exeext
6453 if { (ac_try="$ac_link"
6455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6456 *) ac_try_echo
=$ac_try;;
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_link") 2>conftest.er1
6461 grep -v '^ *+' conftest.er1
>conftest.err
6463 cat conftest.err
>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest
$ac_exeext &&
6469 $as_test_x conftest
$ac_exeext; then
6470 ac_cv_has_makedev
=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.
$ac_ext >&5
6475 ac_cv_has_makedev
=no
6478 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6479 conftest
$ac_exeext conftest.
$ac_ext
6480 if test "$ac_cv_has_makedev" = "no"; then
6481 # we didn't link, try if _OSF_SOURCE will allow us to link
6482 cat >conftest.
$ac_ext <<_ACEOF
6485 cat confdefs.h
>>conftest.
$ac_ext
6486 cat >>conftest.
$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6489 #define _OSF_SOURCE 1
6490 #include <sys/types.h>
6500 rm -f conftest.
$ac_objext conftest
$ac_exeext
6501 if { (ac_try
="$ac_link"
6503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_link") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest$ac_exeext &&
6517 $as_test_x conftest$ac_exeext; then
6518 ac_cv_has_makedev=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_cv_has_makedev=no
6526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527 conftest$ac_exeext conftest.$ac_ext
6528 if test "$ac_cv_has_makedev" = "yes"; then
6530 cat >>confdefs.h <<\_ACEOF
6531 #define _OSF_SOURCE 1
6536 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6537 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6538 if test "$ac_cv_has_makedev" = "yes"; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_MAKEDEV 1
6546 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6547 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6548 # defined, but the compiler does not support pragma redefine_extname,
6549 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6550 # structures (such as rlimit64) without declaring them. As a
6551 # work-around, disable LFS on such configurations
6554 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6555 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6563 #define _LARGEFILE_SOURCE 1
6564 #define _FILE_OFFSET_BITS 64
6565 #include <sys/resource.h>
6575 rm -f conftest.$ac_objext
6576 if { (ac_try="$ac_compile"
6578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6579 *) ac_try_echo
=$ac_try;;
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6584 grep -v '^ *+' conftest.er1
>conftest.err
6586 cat conftest.err
>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.
$ac_objext; then
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.
$ac_ext >&5
6600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6601 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6602 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6603 if test "$sol_lfs_bug" = "yes"; then
6607 if test "$use_lfs" = "yes"; then
6608 # Two defines needed to enable largefile support on various platforms
6609 # These may affect some typedefs
6611 cat >>confdefs.h
<<\_ACEOF
6612 #define _LARGEFILE_SOURCE 1
6616 cat >>confdefs.h
<<\_ACEOF
6617 #define _FILE_OFFSET_BITS 64
6622 # Add some code to confdefs.h so that the test for off_t works on SCO
6623 cat >> confdefs.h
<<\EOF
6629 # Type availability checks
6630 { echo "$as_me:$LINENO: checking for mode_t" >&5
6631 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6632 if test "${ac_cv_type_mode_t+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 cat >conftest.
$ac_ext <<_ACEOF
6638 cat confdefs.h
>>conftest.
$ac_ext
6639 cat >>conftest.
$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 $ac_includes_default
6642 typedef mode_t ac__type_new_;
6646 if ((ac__type_new_ *) 0)
6648 if (sizeof (ac__type_new_))
6654 rm -f conftest.
$ac_objext
6655 if { (ac_try
="$ac_compile"
6657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_type_mode_t=yes
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_cv_type_mode_t=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6682 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6683 if test $ac_cv_type_mode_t = yes; then
6687 cat >>confdefs.h <<_ACEOF
6693 { echo "$as_me:$LINENO: checking for off_t" >&5
6694 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6695 if test "${ac_cv_type_off_t+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 cat >conftest.$ac_ext <<_ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 typedef off_t ac__type_new_;
6709 if ((ac__type_new_ *) 0)
6711 if (sizeof (ac__type_new_))
6717 rm -f conftest.$ac_objext
6718 if { (ac_try="$ac_compile"
6720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6721 *) ac_try_echo
=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6726 grep -v '^ *+' conftest.er1
>conftest.err
6728 cat conftest.err
>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && {
6731 test -z "$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6733 } && test -s conftest.
$ac_objext; then
6734 ac_cv_type_off_t
=yes
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.
$ac_ext >&5
6742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6745 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6746 if test $ac_cv_type_off_t = yes; then
6750 cat >>confdefs.h
<<_ACEOF
6751 #define off_t long int
6756 { echo "$as_me:$LINENO: checking for pid_t" >&5
6757 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6758 if test "${ac_cv_type_pid_t+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.
$ac_ext <<_ACEOF
6764 cat confdefs.h
>>conftest.
$ac_ext
6765 cat >>conftest.
$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 $ac_includes_default
6768 typedef pid_t ac__type_new_;
6772 if ((ac__type_new_ *) 0)
6774 if (sizeof (ac__type_new_))
6780 rm -f conftest.
$ac_objext
6781 if { (ac_try
="$ac_compile"
6783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6789 grep -v '^ *+' conftest.er1 >conftest.err
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_type_pid_t=yes
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6808 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6809 if test $ac_cv_type_pid_t = yes; then
6813 cat >>confdefs.h <<_ACEOF
6819 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6820 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6821 if test "${ac_cv_type_signal+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6836 return *(signal (0, 0)) (0) == 1;
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6845 *) ac_try_echo
=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6850 grep -v '^ *+' conftest.er1
>conftest.err
6852 cat conftest.err
>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.
$ac_objext; then
6858 ac_cv_type_signal
=int
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.
$ac_ext >&5
6863 ac_cv_type_signal
=void
6866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6869 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6871 cat >>confdefs.h
<<_ACEOF
6872 #define RETSIGTYPE $ac_cv_type_signal
6876 { echo "$as_me:$LINENO: checking for size_t" >&5
6877 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6878 if test "${ac_cv_type_size_t+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 cat >conftest.
$ac_ext <<_ACEOF
6884 cat confdefs.h
>>conftest.
$ac_ext
6885 cat >>conftest.
$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 $ac_includes_default
6888 typedef size_t ac__type_new_;
6892 if ((ac__type_new_ *) 0)
6894 if (sizeof (ac__type_new_))
6900 rm -f conftest.
$ac_objext
6901 if { (ac_try
="$ac_compile"
6903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.$ac_objext; then
6917 ac_cv_type_size_t=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_cv_type_size_t=no
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6928 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6929 if test $ac_cv_type_size_t = yes; then
6933 cat >>confdefs.h <<_ACEOF
6934 #define size_t unsigned int
6939 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6940 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6941 if test "${ac_cv_type_uid_t+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 #include <sys/types.h>
6953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6954 $EGREP "uid_t" >/dev/null 2>&1; then
6955 ac_cv_type_uid_t=yes
6962 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6963 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6964 if test $ac_cv_type_uid_t = no; then
6966 cat >>confdefs.h <<\_ACEOF
6971 cat >>confdefs.h <<\_ACEOF
6978 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6979 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6980 if test "${ac_cv_c_uint32_t+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
6985 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 $ac_includes_default
6996 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7003 rm -f conftest.$ac_objext
7004 if { (ac_try="$ac_compile"
7006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7007 *) ac_try_echo
=$ac_try;;
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_compile") 2>conftest.er1
7012 grep -v '^ *+' conftest.er1
>conftest.err
7014 cat conftest.err
>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest.
$ac_objext; then
7021 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7022 *) ac_cv_c_uint32_t
=$ac_type ;;
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.
$ac_ext >&5
7032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7033 test "$ac_cv_c_uint32_t" != no
&& break
7036 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7037 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7038 case $ac_cv_c_uint32_t in #(
7042 cat >>confdefs.h
<<\_ACEOF
7047 cat >>confdefs.h
<<_ACEOF
7048 #define uint32_t $ac_cv_c_uint32_t
7054 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7055 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7056 if test "${ac_cv_c_uint64_t+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7061 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7062 cat >conftest.
$ac_ext <<_ACEOF
7065 cat confdefs.h
>>conftest.
$ac_ext
7066 cat >>conftest.
$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 $ac_includes_default
7072 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7079 rm -f conftest.
$ac_objext
7080 if { (ac_try
="$ac_compile"
7082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_compile") 2>conftest.er1
7088 grep -v '^ *+' conftest.er1 >conftest.err
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } && {
7093 test -z "$ac_c_werror_flag" ||
7094 test ! -s conftest.err
7095 } && test -s conftest.$ac_objext; then
7097 uint64_t) ac_cv_c_uint64_t=yes ;;
7098 *) ac_cv_c_uint64_t=$ac_type ;;
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 test "$ac_cv_c_uint64_t" != no && break
7112 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7113 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7114 case $ac_cv_c_uint64_t in #(
7118 cat >>confdefs.h <<\_ACEOF
7123 cat >>confdefs.h <<_ACEOF
7124 #define uint64_t $ac_cv_c_uint64_t
7130 { echo "$as_me:$LINENO: checking for int32_t" >&5
7131 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7132 if test "${ac_cv_c_int32_t+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 for ac_type in 'int32_t' 'int' 'long int' \
7137 'long long int' 'short int' 'signed char'; do
7138 cat >conftest.$ac_ext <<_ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7148 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7155 rm -f conftest.$ac_objext
7156 if { (ac_try="$ac_compile"
7158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7159 *) ac_try_echo
=$ac_try;;
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compile") 2>conftest.er1
7164 grep -v '^ *+' conftest.er1
>conftest.err
7166 cat conftest.err
>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && {
7169 test -z "$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 } && test -s conftest.
$ac_objext; then
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7182 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7183 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7190 rm -f conftest.
$ac_objext
7191 if { (ac_try
="$ac_compile"
7193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7213 int32_t) ac_cv_c_int32_t=yes ;;
7214 *) ac_cv_c_int32_t=$ac_type ;;
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 test "$ac_cv_c_int32_t" != no && break
7231 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7232 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7233 case $ac_cv_c_int32_t in #(
7237 cat >>confdefs.h <<_ACEOF
7238 #define int32_t $ac_cv_c_int32_t
7244 { echo "$as_me:$LINENO: checking for int64_t" >&5
7245 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7246 if test "${ac_cv_c_int64_t+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 for ac_type in 'int64_t' 'int' 'long int' \
7251 'long long int' 'short int' 'signed char'; do
7252 cat >conftest.$ac_ext <<_ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 $ac_includes_default
7262 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7273 *) ac_try_echo
=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7278 grep -v '^ *+' conftest.er1
>conftest.err
7280 cat conftest.err
>&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && {
7283 test -z "$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 } && test -s conftest.
$ac_objext; then
7286 cat >conftest.
$ac_ext <<_ACEOF
7289 cat confdefs.h
>>conftest.
$ac_ext
7290 cat >>conftest.
$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 $ac_includes_default
7296 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7297 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7304 rm -f conftest.
$ac_objext
7305 if { (ac_try
="$ac_compile"
7307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1 >conftest.err
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7327 int64_t) ac_cv_c_int64_t=yes ;;
7328 *) ac_cv_c_int64_t=$ac_type ;;
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 test "$ac_cv_c_int64_t" != no && break
7345 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7346 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7347 case $ac_cv_c_int64_t in #(
7351 cat >>confdefs.h <<_ACEOF
7352 #define int64_t $ac_cv_c_int64_t
7357 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7358 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7359 if test "${ac_cv_type_ssize_t+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 $ac_includes_default
7369 typedef ssize_t ac__type_new_;
7373 if ((ac__type_new_ *) 0)
7375 if (sizeof (ac__type_new_))
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7385 *) ac_try_echo
=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1
>conftest.err
7392 cat conftest.err
>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.
$ac_objext; then
7398 ac_cv_type_ssize_t
=yes
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.
$ac_ext >&5
7403 ac_cv_type_ssize_t
=no
7406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7409 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7410 if test $ac_cv_type_ssize_t = yes; then
7412 cat >>confdefs.h
<<\_ACEOF
7413 #define HAVE_SSIZE_T 1
7419 # Sizes of various common basic types
7420 # ANSI C requires sizeof(char) == 1, so no need to check it
7421 { echo "$as_me:$LINENO: checking for int" >&5
7422 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7423 if test "${ac_cv_type_int+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 cat >conftest.
$ac_ext <<_ACEOF
7429 cat confdefs.h
>>conftest.
$ac_ext
7430 cat >>conftest.
$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 typedef int ac__type_new_;
7437 if ((ac__type_new_ *) 0)
7439 if (sizeof (ac__type_new_))
7445 rm -f conftest.
$ac_objext
7446 if { (ac_try
="$ac_compile"
7448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_compile") 2>conftest.er1
7454 grep -v '^ *+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7473 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7475 # The cast to long int works around a bug in the HP C Compiler
7476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7477 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7478 # This bug is HP SR number 8606223364.
7479 { echo "$as_me:$LINENO: checking size of int" >&5
7480 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7481 if test "${ac_cv_sizeof_int+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 if test "$cross_compiling" = yes; then
7485 # Depending upon the size, compute the lo and hi bounds.
7486 cat >conftest.$ac_ext <<_ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 $ac_includes_default
7493 typedef int ac__type_sizeof_;
7497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7504 rm -f conftest.$ac_objext
7505 if { (ac_try="$ac_compile"
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7513 grep -v '^
*+' conftest.er1 >conftest.err
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7523 cat >conftest.$ac_ext <<_ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 typedef int ac__type_sizeof_;
7534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7541 rm -f conftest.$ac_objext
7542 if { (ac_try="$ac_compile"
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7550 grep -v '^
*+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7558 ac_hi=$ac_mid; break
7560 echo "$as_me: failed program was:" >&5
7561 sed 's
/^
/|
/' conftest.$ac_ext >&5
7563 ac_lo=`expr $ac_mid + 1`
7564 if test $ac_lo -le $ac_mid; then
7568 ac_mid=`expr 2 '*' $ac_mid + 1`
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 echo "$as_me: failed program was:" >&5
7575 sed 's
/^
/|
/' conftest.$ac_ext >&5
7577 cat >conftest.$ac_ext <<_ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 $ac_includes_default
7584 typedef int ac__type_sizeof_;
7588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7595 rm -f conftest.$ac_objext
7596 if { (ac_try="$ac_compile"
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7604 grep -v '^
*+' conftest.er1 >conftest.err
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7614 cat >conftest.$ac_ext <<_ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 $ac_includes_default
7621 typedef int ac__type_sizeof_;
7625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7641 grep -v '^
*+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 ac_lo=$ac_mid; break
7651 echo "$as_me: failed program was:" >&5
7652 sed 's
/^
/|
/' conftest.$ac_ext >&5
7654 ac_hi=`expr '(' $ac_mid ')' - 1`
7655 if test $ac_mid -le $ac_hi; then
7659 ac_mid=`expr 2 '*' $ac_mid`
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 echo "$as_me: failed program was:" >&5
7666 sed 's
/^
/|
/' conftest.$ac_ext >&5
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 # Binary search between lo and hi bounds.
7676 while test "x$ac_lo" != "x$ac_hi"; do
7677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 typedef int ac__type_sizeof_;
7689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^
*+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7715 echo "$as_me: failed program was:" >&5
7716 sed 's
/^
/|
/' conftest.$ac_ext >&5
7718 ac_lo=`expr '(' $ac_mid ')' + 1`
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 ?*) ac_cv_sizeof_int=$ac_lo;;
7725 '') if test "$ac_cv_type_int" = yes; then
7726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7727 See \`config.log' for more details.
" >&5
7728 echo "$as_me: error
: cannot compute sizeof
(int
)
7729 See \
`config.log' for more details." >&2;}
7730 { (exit 77); exit 77; }; }
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7743 typedef int ac__type_sizeof_;
7744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7752 FILE *f = fopen ("conftest.val", "w");
7755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7757 long int i = longval ();
7758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7760 fprintf (f, "%ld\n", i);
7764 unsigned long int i = ulongval ();
7765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7767 fprintf (f, "%lu\n", i);
7769 return ferror (f) || fclose (f) != 0;
7775 rm -f conftest$ac_exeext
7776 if { (ac_try="$ac_link"
7778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7779 *) ac_try_echo
=$ac_try;;
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_link") 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7786 { (case "(($ac_try" in
7787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_try") 2>&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_sizeof_int=`cat conftest.val
`
7797 echo "$as_me: program exited with status $ac_status" >&5
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7802 if test "$ac_cv_type_int" = yes; then
7803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7804 See \`config.log
' for more details." >&5
7805 echo "$as_me: error: cannot compute sizeof (int)
7806 See \`config.log' for more details.
" >&2;}
7807 { (exit 77); exit 77; }; }
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7816 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7817 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7821 cat >>confdefs.h <<_ACEOF
7822 #define SIZEOF_INT $ac_cv_sizeof_int
7826 { echo "$as_me:$LINENO: checking
for long
" >&5
7827 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7828 if test "${ac_cv_type_long+set}" = set; then
7829 echo $ECHO_N "(cached
) $ECHO_C" >&6
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 $ac_includes_default
7838 typedef long ac__type_new_;
7842 if ((ac__type_new_ *) 0)
7844 if (sizeof (ac__type_new_))
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_compile") 2>conftest.er1
7859 grep -v '^ *+' conftest.er1 >conftest.err
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest.$ac_objext; then
7869 echo "$as_me: failed program was
:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7878 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7880 # The cast to long int works around a bug in the HP C Compiler
7881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7883 # This bug is HP SR number 8606223364.
7884 { echo "$as_me:$LINENO: checking size of long
" >&5
7885 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7886 if test "${ac_cv_sizeof_long+set}" = set; then
7887 echo $ECHO_N "(cached
) $ECHO_C" >&6
7889 if test "$cross_compiling" = yes; then
7890 # Depending upon the size, compute the lo and hi bounds.
7891 cat >conftest.$ac_ext <<_ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7897 $ac_includes_default
7898 typedef long ac__type_sizeof_;
7902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7909 rm -f conftest.$ac_objext
7910 if { (ac_try="$ac_compile"
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7916 (eval "$ac_compile") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest.$ac_objext; then
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 typedef long ac__type_sizeof_;
7939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7963 ac_hi=$ac_mid; break
7965 echo "$as_me: failed program was
:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_lo=`expr $ac_mid + 1`
7969 if test $ac_lo -le $ac_mid; then
7973 ac_mid=`expr 2 '*' $ac_mid + 1`
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 echo "$as_me: failed program was
:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 $ac_includes_default
7989 typedef long ac__type_sizeof_;
7993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 typedef long ac__type_sizeof_;
8030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8037 rm -f conftest.$ac_objext
8038 if { (ac_try="$ac_compile"
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8054 ac_lo=$ac_mid; break
8056 echo "$as_me: failed program was
:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 ac_hi=`expr '(' $ac_mid ')' - 1`
8060 if test $ac_mid -le $ac_hi; then
8064 ac_mid=`expr 2 '*' $ac_mid`
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 echo "$as_me: failed program was
:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 # Binary search between lo and hi bounds.
8081 while test "x
$ac_lo" != "x
$ac_hi"; do
8082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 $ac_includes_default
8090 typedef long ac__type_sizeof_;
8094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8101 rm -f conftest.$ac_objext
8102 if { (ac_try="$ac_compile"
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_compile") 2>conftest.er1
8110 grep -v '^ *+' conftest.er1 >conftest.err
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest.$ac_objext; then
8120 echo "$as_me: failed program was
:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_lo=`expr '(' $ac_mid ')' + 1`
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 ?*) ac_cv_sizeof_long=$ac_lo;;
8130 '') if test "$ac_cv_type_long" = yes; then
8131 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8132 See \
`config.log' for more details." >&5
8133 echo "$as_me: error: cannot compute sizeof (long)
8134 See \`config.log
' for more details." >&2;}
8135 { (exit 77); exit 77; }; }
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 typedef long ac__type_sizeof_;
8149 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8150 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8157 FILE *f = fopen ("conftest.val", "w");
8160 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8162 long int i = longval ();
8163 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8165 fprintf (f, "%ld\n", i);
8169 unsigned long int i = ulongval ();
8170 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8172 fprintf (f, "%lu\n", i);
8174 return ferror (f) || fclose (f) != 0;
8180 rm -f conftest$ac_exeext
8181 if { (ac_try="$ac_link"
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_link") 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_cv_sizeof_long=`cat conftest.val`
8202 echo "$as_me: program exited with status $ac_status" >&5
8203 echo "$as_me: failed program was:" >&5
8204 sed 's
/^
/|
/' conftest.$ac_ext >&5
8207 if test "$ac_cv_type_long" = yes; then
8208 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8209 See \`config.log' for more details.
" >&5
8210 echo "$as_me: error
: cannot compute sizeof
(long
)
8211 See \
`config.log' for more details." >&2;}
8212 { (exit 77); exit 77; }; }
8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8222 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8226 cat >>confdefs.h <<_ACEOF
8227 #define SIZEOF_LONG $ac_cv_sizeof_long
8231 { echo "$as_me:$LINENO: checking for void *" >&5
8232 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8233 if test "${ac_cv_type_void_p+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 typedef void * ac__type_new_;
8247 if ((ac__type_new_ *) 0)
8249 if (sizeof (ac__type_new_))
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8259 *) ac_try_echo
=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1
>conftest.err
8266 cat conftest.err
>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.
$ac_objext; then
8272 ac_cv_type_void_p
=yes
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.
$ac_ext >&5
8277 ac_cv_type_void_p
=no
8280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8282 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8283 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8285 # The cast to long int works around a bug in the HP C Compiler
8286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8288 # This bug is HP SR number 8606223364.
8289 { echo "$as_me:$LINENO: checking size of void *" >&5
8290 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8291 if test "${ac_cv_sizeof_void_p+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 if test "$cross_compiling" = yes; then
8295 # Depending upon the size, compute the lo and hi bounds.
8296 cat >conftest.
$ac_ext <<_ACEOF
8299 cat confdefs.h
>>conftest.
$ac_ext
8300 cat >>conftest.
$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 typedef void * ac__type_sizeof_;
8307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8314 rm -f conftest.
$ac_objext
8315 if { (ac_try
="$ac_compile"
8317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest.$ac_objext; then
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 typedef void * ac__type_sizeof_;
8344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8355 *) ac_try_echo
=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1
>conftest.err
8362 cat conftest.err
>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.
$ac_objext; then
8368 ac_hi
=$ac_mid; break
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.
$ac_ext >&5
8373 ac_lo
=`expr $ac_mid + 1`
8374 if test $ac_lo -le $ac_mid; then
8378 ac_mid
=`expr 2 '*' $ac_mid + 1`
8381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.
$ac_ext >&5
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 typedef void * ac__type_sizeof_;
8398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8405 rm -f conftest.
$ac_objext
8406 if { (ac_try
="$ac_compile"
8408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8414 grep -v '^ *+' conftest.er1 >conftest.err
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.$ac_objext; then
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8431 typedef void * ac__type_sizeof_;
8435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8442 rm -f conftest.$ac_objext
8443 if { (ac_try="$ac_compile"
8445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8446 *) ac_try_echo
=$ac_try;;
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8451 grep -v '^ *+' conftest.er1
>conftest.err
8453 cat conftest.err
>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.
$ac_objext; then
8459 ac_lo
=$ac_mid; break
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.
$ac_ext >&5
8464 ac_hi
=`expr '(' $ac_mid ')' - 1`
8465 if test $ac_mid -le $ac_hi; then
8469 ac_mid
=`expr 2 '*' $ac_mid`
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.
$ac_ext >&5
8481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 # Binary search between lo and hi bounds.
8486 while test "x$ac_lo" != "x$ac_hi"; do
8487 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8488 cat >conftest.
$ac_ext <<_ACEOF
8491 cat confdefs.h
>>conftest.
$ac_ext
8492 cat >>conftest.
$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 $ac_includes_default
8495 typedef void * ac__type_sizeof_;
8499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8506 rm -f conftest.
$ac_objext
8507 if { (ac_try
="$ac_compile"
8509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8515 grep -v '^ *+' conftest.er1 >conftest.err
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_lo=`expr '(' $ac_mid ')' + 1`
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8535 '') if test "$ac_cv_type_void_p" = yes; then
8536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8537 See \`config.log
' for more details." >&5
8538 echo "$as_me: error: cannot compute sizeof (void *)
8539 See \`config.log' for more details.
" >&2;}
8540 { (exit 77); exit 77; }; }
8542 ac_cv_sizeof_void_p=0
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 typedef void * ac__type_sizeof_;
8554 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8555 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8562 FILE *f = fopen ("conftest.val
", "w
");
8565 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8567 long int i = longval ();
8568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8570 fprintf (f, "%ld
\n", i);
8574 unsigned long int i = ulongval ();
8575 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8577 fprintf (f, "%lu
\n", i);
8579 return ferror (f) || fclose (f) != 0;
8585 rm -f conftest$ac_exeext
8586 if { (ac_try="$ac_link"
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_link") 2>&5
8594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_cv_sizeof_void_p=`cat conftest.val`
8607 echo "$as_me: program exited with status
$ac_status" >&5
8608 echo "$as_me: failed program was
:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8612 if test "$ac_cv_type_void_p" = yes; then
8613 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8614 See \
`config.log' for more details." >&5
8615 echo "$as_me: error: cannot compute sizeof (void *)
8616 See \`config.log
' for more details." >&2;}
8617 { (exit 77); exit 77; }; }
8619 ac_cv_sizeof_void_p=0
8622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8626 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8627 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8631 cat >>confdefs.h <<_ACEOF
8632 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8636 { echo "$as_me:$LINENO: checking for short" >&5
8637 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8638 if test "${ac_cv_type_short+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 cat >conftest.$ac_ext <<_ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 $ac_includes_default
8648 typedef short ac__type_new_;
8652 if ((ac__type_new_ *) 0)
8654 if (sizeof (ac__type_new_))
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8669 grep -v '^
*+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8677 ac_cv_type_short=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's
/^
/|
/' conftest.$ac_ext >&5
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8688 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8690 # The cast to long int works around a bug in the HP C Compiler
8691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8693 # This bug is HP SR number 8606223364.
8694 { echo "$as_me:$LINENO: checking size of short" >&5
8695 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8696 if test "${ac_cv_sizeof_short+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 if test "$cross_compiling" = yes; then
8700 # Depending upon the size, compute the lo and hi bounds.
8701 cat >conftest.
$ac_ext <<_ACEOF
8704 cat confdefs.h
>>conftest.
$ac_ext
8705 cat >>conftest.
$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 $ac_includes_default
8708 typedef short ac__type_sizeof_;
8712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8719 rm -f conftest.
$ac_objext
8720 if { (ac_try
="$ac_compile"
8722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_compile") 2>conftest.er1
8728 grep -v '^ *+' conftest.er1 >conftest.err
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } && {
8733 test -z "$ac_c_werror_flag" ||
8734 test ! -s conftest.err
8735 } && test -s conftest.$ac_objext; then
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 typedef short ac__type_sizeof_;
8749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8756 rm -f conftest.$ac_objext
8757 if { (ac_try="$ac_compile"
8759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8760 *) ac_try_echo
=$ac_try;;
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8765 grep -v '^ *+' conftest.er1
>conftest.err
8767 cat conftest.err
>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.
$ac_objext; then
8773 ac_hi
=$ac_mid; break
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.
$ac_ext >&5
8778 ac_lo
=`expr $ac_mid + 1`
8779 if test $ac_lo -le $ac_mid; then
8783 ac_mid
=`expr 2 '*' $ac_mid + 1`
8786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.
$ac_ext >&5
8792 cat >conftest.
$ac_ext <<_ACEOF
8795 cat confdefs.h
>>conftest.
$ac_ext
8796 cat >>conftest.
$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 $ac_includes_default
8799 typedef short ac__type_sizeof_;
8803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8810 rm -f conftest.
$ac_objext
8811 if { (ac_try
="$ac_compile"
8813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_compile") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest.$ac_objext; then
8829 cat >conftest.$ac_ext <<_ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 $ac_includes_default
8836 typedef short ac__type_sizeof_;
8840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8851 *) ac_try_echo
=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1
>conftest.err
8858 cat conftest.err
>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest.
$ac_objext; then
8864 ac_lo
=$ac_mid; break
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.
$ac_ext >&5
8869 ac_hi
=`expr '(' $ac_mid ')' - 1`
8870 if test $ac_mid -le $ac_hi; then
8874 ac_mid
=`expr 2 '*' $ac_mid`
8877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.
$ac_ext >&5
8886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8890 # Binary search between lo and hi bounds.
8891 while test "x$ac_lo" != "x$ac_hi"; do
8892 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8893 cat >conftest.
$ac_ext <<_ACEOF
8896 cat confdefs.h
>>conftest.
$ac_ext
8897 cat >>conftest.
$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 $ac_includes_default
8900 typedef short ac__type_sizeof_;
8904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8911 rm -f conftest.
$ac_objext
8912 if { (ac_try
="$ac_compile"
8914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_compile") 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest.$ac_objext; then
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8933 ac_lo=`expr '(' $ac_mid ')' + 1`
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 ?*) ac_cv_sizeof_short=$ac_lo;;
8940 '') if test "$ac_cv_type_short" = yes; then
8941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8942 See \`config.log
' for more details." >&5
8943 echo "$as_me: error: cannot compute sizeof (short)
8944 See \`config.log' for more details.
" >&2;}
8945 { (exit 77); exit 77; }; }
8947 ac_cv_sizeof_short=0
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 typedef short ac__type_sizeof_;
8959 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8960 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8967 FILE *f = fopen ("conftest.val
", "w
");
8970 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8972 long int i = longval ();
8973 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8975 fprintf (f, "%ld
\n", i);
8979 unsigned long int i = ulongval ();
8980 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8982 fprintf (f, "%lu
\n", i);
8984 return ferror (f) || fclose (f) != 0;
8990 rm -f conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_link") 2>&5
8999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9001 { (case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_try") 2>&5
9008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_sizeof_short=`cat conftest.val`
9012 echo "$as_me: program exited with status
$ac_status" >&5
9013 echo "$as_me: failed program was
:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9017 if test "$ac_cv_type_short" = yes; then
9018 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9019 See \
`config.log' for more details." >&5
9020 echo "$as_me: error: cannot compute sizeof (short)
9021 See \`config.log
' for more details." >&2;}
9022 { (exit 77); exit 77; }; }
9024 ac_cv_sizeof_short=0
9027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9031 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9032 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9036 cat >>confdefs.h <<_ACEOF
9037 #define SIZEOF_SHORT $ac_cv_sizeof_short
9041 { echo "$as_me:$LINENO: checking for float" >&5
9042 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9043 if test "${ac_cv_type_float+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 $ac_includes_default
9053 typedef float ac__type_new_;
9057 if ((ac__type_new_ *) 0)
9059 if (sizeof (ac__type_new_))
9065 rm -f conftest.$ac_objext
9066 if { (ac_try="$ac_compile"
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9074 grep -v '^
*+' conftest.er1 >conftest.err
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && {
9079 test -z "$ac_c_werror_flag" ||
9080 test ! -s conftest.err
9081 } && test -s conftest.$ac_objext; then
9082 ac_cv_type_float=yes
9084 echo "$as_me: failed program was:" >&5
9085 sed 's
/^
/|
/' conftest.$ac_ext >&5
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9093 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9095 # The cast to long int works around a bug in the HP C Compiler
9096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9098 # This bug is HP SR number 8606223364.
9099 { echo "$as_me:$LINENO: checking size of float" >&5
9100 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9101 if test "${ac_cv_sizeof_float+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 if test "$cross_compiling" = yes; then
9105 # Depending upon the size, compute the lo and hi bounds.
9106 cat >conftest.
$ac_ext <<_ACEOF
9109 cat confdefs.h
>>conftest.
$ac_ext
9110 cat >>conftest.
$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 $ac_includes_default
9113 typedef float ac__type_sizeof_;
9117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9124 rm -f conftest.
$ac_objext
9125 if { (ac_try
="$ac_compile"
9127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && {
9138 test -z "$ac_c_werror_flag" ||
9139 test ! -s conftest.err
9140 } && test -s conftest.$ac_objext; then
9143 cat >conftest.$ac_ext <<_ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 $ac_includes_default
9150 typedef float ac__type_sizeof_;
9154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9165 *) ac_try_echo
=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1
>conftest.err
9172 cat conftest.err
>&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.
$ac_objext; then
9178 ac_hi
=$ac_mid; break
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.
$ac_ext >&5
9183 ac_lo
=`expr $ac_mid + 1`
9184 if test $ac_lo -le $ac_mid; then
9188 ac_mid
=`expr 2 '*' $ac_mid + 1`
9191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.
$ac_ext >&5
9197 cat >conftest.
$ac_ext <<_ACEOF
9200 cat confdefs.h
>>conftest.
$ac_ext
9201 cat >>conftest.
$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 $ac_includes_default
9204 typedef float ac__type_sizeof_;
9208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9215 rm -f conftest.
$ac_objext
9216 if { (ac_try
="$ac_compile"
9218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_compile") 2>conftest.er1
9224 grep -v '^ *+' conftest.er1 >conftest.err
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } && {
9229 test -z "$ac_c_werror_flag" ||
9230 test ! -s conftest.err
9231 } && test -s conftest.$ac_objext; then
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9241 typedef float ac__type_sizeof_;
9245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9252 rm -f conftest.$ac_objext
9253 if { (ac_try="$ac_compile"
9255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9256 *) ac_try_echo
=$ac_try;;
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9261 grep -v '^ *+' conftest.er1
>conftest.err
9263 cat conftest.err
>&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.
$ac_objext; then
9269 ac_lo
=$ac_mid; break
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.
$ac_ext >&5
9274 ac_hi
=`expr '(' $ac_mid ')' - 1`
9275 if test $ac_mid -le $ac_hi; then
9279 ac_mid
=`expr 2 '*' $ac_mid`
9282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.
$ac_ext >&5
9291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9295 # Binary search between lo and hi bounds.
9296 while test "x$ac_lo" != "x$ac_hi"; do
9297 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 typedef float ac__type_sizeof_;
9309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9316 rm -f conftest.
$ac_objext
9317 if { (ac_try
="$ac_compile"
9319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
9325 grep -v '^ *+' conftest.er1 >conftest.err
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_lo=`expr '(' $ac_mid ')' + 1`
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 ?*) ac_cv_sizeof_float=$ac_lo;;
9345 '') if test "$ac_cv_type_float" = yes; then
9346 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9347 See \`config.log
' for more details." >&5
9348 echo "$as_me: error: cannot compute sizeof (float)
9349 See \`config.log' for more details.
" >&2;}
9350 { (exit 77); exit 77; }; }
9352 ac_cv_sizeof_float=0
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 typedef float ac__type_sizeof_;
9364 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9365 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9372 FILE *f = fopen ("conftest.val
", "w
");
9375 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9377 long int i = longval ();
9378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9380 fprintf (f, "%ld
\n", i);
9384 unsigned long int i = ulongval ();
9385 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9387 fprintf (f, "%lu
\n", i);
9389 return ferror (f) || fclose (f) != 0;
9395 rm -f conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>&5
9404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9406 { (case "(($ac_try" in
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9411 (eval "$ac_try") 2>&5
9413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 ac_cv_sizeof_float=`cat conftest.val`
9417 echo "$as_me: program exited with status
$ac_status" >&5
9418 echo "$as_me: failed program was
:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9422 if test "$ac_cv_type_float" = yes; then
9423 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9424 See \
`config.log' for more details." >&5
9425 echo "$as_me: error: cannot compute sizeof (float)
9426 See \`config.log
' for more details." >&2;}
9427 { (exit 77); exit 77; }; }
9429 ac_cv_sizeof_float=0
9432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9436 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9437 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9441 cat >>confdefs.h <<_ACEOF
9442 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9446 { echo "$as_me:$LINENO: checking for double" >&5
9447 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9448 if test "${ac_cv_type_double+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 cat >conftest.$ac_ext <<_ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9457 $ac_includes_default
9458 typedef double ac__type_new_;
9462 if ((ac__type_new_ *) 0)
9464 if (sizeof (ac__type_new_))
9470 rm -f conftest.$ac_objext
9471 if { (ac_try="$ac_compile"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_compile") 2>conftest.er1
9479 grep -v '^
*+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest.$ac_objext; then
9487 ac_cv_type_double=yes
9489 echo "$as_me: failed program was:" >&5
9490 sed 's
/^
/|
/' conftest.$ac_ext >&5
9492 ac_cv_type_double=no
9495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9498 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9500 # The cast to long int works around a bug in the HP C Compiler
9501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9503 # This bug is HP SR number 8606223364.
9504 { echo "$as_me:$LINENO: checking size of double" >&5
9505 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9506 if test "${ac_cv_sizeof_double+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 if test "$cross_compiling" = yes; then
9510 # Depending upon the size, compute the lo and hi bounds.
9511 cat >conftest.
$ac_ext <<_ACEOF
9514 cat confdefs.h
>>conftest.
$ac_ext
9515 cat >>conftest.
$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 $ac_includes_default
9518 typedef double ac__type_sizeof_;
9522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9529 rm -f conftest.
$ac_objext
9530 if { (ac_try
="$ac_compile"
9532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 typedef double ac__type_sizeof_;
9559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9570 *) ac_try_echo
=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1
>conftest.err
9577 cat conftest.err
>&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.
$ac_objext; then
9583 ac_hi
=$ac_mid; break
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.
$ac_ext >&5
9588 ac_lo
=`expr $ac_mid + 1`
9589 if test $ac_lo -le $ac_mid; then
9593 ac_mid
=`expr 2 '*' $ac_mid + 1`
9596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.
$ac_ext >&5
9602 cat >conftest.
$ac_ext <<_ACEOF
9605 cat confdefs.h
>>conftest.
$ac_ext
9606 cat >>conftest.
$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 $ac_includes_default
9609 typedef double ac__type_sizeof_;
9613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9620 rm -f conftest.
$ac_objext
9621 if { (ac_try
="$ac_compile"
9623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_compile") 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest.$ac_objext; then
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 $ac_includes_default
9646 typedef double ac__type_sizeof_;
9650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9657 rm -f conftest.$ac_objext
9658 if { (ac_try="$ac_compile"
9660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9661 *) ac_try_echo
=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_compile") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1
>conftest.err
9668 cat conftest.err
>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest.
$ac_objext; then
9674 ac_lo
=$ac_mid; break
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.
$ac_ext >&5
9679 ac_hi
=`expr '(' $ac_mid ')' - 1`
9680 if test $ac_mid -le $ac_hi; then
9684 ac_mid
=`expr 2 '*' $ac_mid`
9687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.
$ac_ext >&5
9696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9700 # Binary search between lo and hi bounds.
9701 while test "x$ac_lo" != "x$ac_hi"; do
9702 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9703 cat >conftest.
$ac_ext <<_ACEOF
9706 cat confdefs.h
>>conftest.
$ac_ext
9707 cat >>conftest.
$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 $ac_includes_default
9710 typedef double ac__type_sizeof_;
9714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9721 rm -f conftest.
$ac_objext
9722 if { (ac_try
="$ac_compile"
9724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_compile") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest.$ac_objext; then
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_lo=`expr '(' $ac_mid ')' + 1`
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 ?*) ac_cv_sizeof_double=$ac_lo;;
9750 '') if test "$ac_cv_type_double" = yes; then
9751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9752 See \`config.log
' for more details." >&5
9753 echo "$as_me: error: cannot compute sizeof (double)
9754 See \`config.log' for more details.
" >&2;}
9755 { (exit 77); exit 77; }; }
9757 ac_cv_sizeof_double=0
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 typedef double ac__type_sizeof_;
9769 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9770 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9777 FILE *f = fopen ("conftest.val
", "w
");
9780 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9782 long int i = longval ();
9783 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9785 fprintf (f, "%ld
\n", i);
9789 unsigned long int i = ulongval ();
9790 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9792 fprintf (f, "%lu
\n", i);
9794 return ferror (f) || fclose (f) != 0;
9800 rm -f conftest$ac_exeext
9801 if { (ac_try="$ac_link"
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_link") 2>&5
9809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_sizeof_double=`cat conftest.val`
9822 echo "$as_me: program exited with status
$ac_status" >&5
9823 echo "$as_me: failed program was
:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9827 if test "$ac_cv_type_double" = yes; then
9828 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9829 See \
`config.log' for more details." >&5
9830 echo "$as_me: error: cannot compute sizeof (double)
9831 See \`config.log
' for more details." >&2;}
9832 { (exit 77); exit 77; }; }
9834 ac_cv_sizeof_double=0
9837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9841 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9842 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9846 cat >>confdefs.h <<_ACEOF
9847 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9851 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9852 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9853 if test "${ac_cv_type_fpos_t+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 cat >conftest.$ac_ext <<_ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 $ac_includes_default
9863 typedef fpos_t ac__type_new_;
9867 if ((ac__type_new_ *) 0)
9869 if (sizeof (ac__type_new_))
9875 rm -f conftest.$ac_objext
9876 if { (ac_try="$ac_compile"
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_compile") 2>conftest.er1
9884 grep -v '^
*+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest.$ac_objext; then
9892 ac_cv_type_fpos_t=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's
/^
/|
/' conftest.$ac_ext >&5
9897 ac_cv_type_fpos_t=no
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9903 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9905 # The cast to long int works around a bug in the HP C Compiler
9906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9908 # This bug is HP SR number 8606223364.
9909 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9910 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9911 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 if test "$cross_compiling" = yes; then
9915 # Depending upon the size, compute the lo and hi bounds.
9916 cat >conftest.
$ac_ext <<_ACEOF
9919 cat confdefs.h
>>conftest.
$ac_ext
9920 cat >>conftest.
$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9923 typedef fpos_t ac__type_sizeof_;
9927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9934 rm -f conftest.
$ac_objext
9935 if { (ac_try
="$ac_compile"
9937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_compile") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest.$ac_objext; then
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 typedef fpos_t ac__type_sizeof_;
9964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9971 rm -f conftest.$ac_objext
9972 if { (ac_try="$ac_compile"
9974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9975 *) ac_try_echo
=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_compile") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1
>conftest.err
9982 cat conftest.err
>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest.
$ac_objext; then
9988 ac_hi
=$ac_mid; break
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.
$ac_ext >&5
9993 ac_lo
=`expr $ac_mid + 1`
9994 if test $ac_lo -le $ac_mid; then
9998 ac_mid
=`expr 2 '*' $ac_mid + 1`
10001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.
$ac_ext >&5
10007 cat >conftest.
$ac_ext <<_ACEOF
10010 cat confdefs.h
>>conftest.
$ac_ext
10011 cat >>conftest.
$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 $ac_includes_default
10014 typedef fpos_t ac__type_sizeof_;
10018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10025 rm -f conftest.
$ac_objext
10026 if { (ac_try
="$ac_compile"
10027 case "(($ac_try" in
10028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_compile") 2>conftest.er1
10034 grep -v '^ *+' conftest.er1 >conftest.err
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } && {
10039 test -z "$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 } && test -s conftest.$ac_objext; then
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 typedef fpos_t ac__type_sizeof_;
10055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10066 *) ac_try_echo
=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_compile") 2>conftest.er1
10071 grep -v '^ *+' conftest.er1
>conftest.err
10073 cat conftest.err
>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } && {
10076 test -z "$ac_c_werror_flag" ||
10077 test ! -s conftest.err
10078 } && test -s conftest.
$ac_objext; then
10079 ac_lo
=$ac_mid; break
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.
$ac_ext >&5
10084 ac_hi
=`expr '(' $ac_mid ')' - 1`
10085 if test $ac_mid -le $ac_hi; then
10089 ac_mid
=`expr 2 '*' $ac_mid`
10092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.
$ac_ext >&5
10101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10105 # Binary search between lo and hi bounds.
10106 while test "x$ac_lo" != "x$ac_hi"; do
10107 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10108 cat >conftest.
$ac_ext <<_ACEOF
10111 cat confdefs.h
>>conftest.
$ac_ext
10112 cat >>conftest.
$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10115 typedef fpos_t ac__type_sizeof_;
10119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10126 rm -f conftest.
$ac_objext
10127 if { (ac_try
="$ac_compile"
10128 case "(($ac_try" in
10129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_lo=`expr '(' $ac_mid ')' + 1`
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10155 '') if test "$ac_cv_type_fpos_t" = yes; then
10156 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10157 See \`config.log
' for more details." >&5
10158 echo "$as_me: error: cannot compute sizeof (fpos_t)
10159 See \`config.log' for more details.
" >&2;}
10160 { (exit 77); exit 77; }; }
10162 ac_cv_sizeof_fpos_t=0
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 $ac_includes_default
10173 typedef fpos_t ac__type_sizeof_;
10174 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10175 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10177 #include <stdlib.h>
10182 FILE *f = fopen ("conftest.val
", "w
");
10185 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10187 long int i = longval ();
10188 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10190 fprintf (f, "%ld
\n", i);
10194 unsigned long int i = ulongval ();
10195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10197 fprintf (f, "%lu
\n", i);
10199 return ferror (f) || fclose (f) != 0;
10205 rm -f conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>&5
10214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_sizeof_fpos_t=`cat conftest.val`
10227 echo "$as_me: program exited with status
$ac_status" >&5
10228 echo "$as_me: failed program was
:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10231 ( exit $ac_status )
10232 if test "$ac_cv_type_fpos_t" = yes; then
10233 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10234 See \
`config.log' for more details." >&5
10235 echo "$as_me: error: cannot compute sizeof (fpos_t)
10236 See \`config.log
' for more details." >&2;}
10237 { (exit 77); exit 77; }; }
10239 ac_cv_sizeof_fpos_t=0
10242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10246 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10247 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10251 cat >>confdefs.h <<_ACEOF
10252 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10256 { echo "$as_me:$LINENO: checking for size_t" >&5
10257 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10258 if test "${ac_cv_type_size_t+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 $ac_includes_default
10268 typedef size_t ac__type_new_;
10272 if ((ac__type_new_ *) 0)
10274 if (sizeof (ac__type_new_))
10280 rm -f conftest.$ac_objext
10281 if { (ac_try="$ac_compile"
10282 case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_compile") 2>conftest.er1
10289 grep -v '^
*+' conftest.er1 >conftest.err
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && {
10294 test -z "$ac_c_werror_flag" ||
10295 test ! -s conftest.err
10296 } && test -s conftest.$ac_objext; then
10297 ac_cv_type_size_t=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's
/^
/|
/' conftest.$ac_ext >&5
10302 ac_cv_type_size_t=no
10305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10308 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10310 # The cast to long int works around a bug in the HP C Compiler
10311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10313 # This bug is HP SR number 8606223364.
10314 { echo "$as_me:$LINENO: checking size of size_t" >&5
10315 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10316 if test "${ac_cv_sizeof_size_t+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 if test "$cross_compiling" = yes; then
10320 # Depending upon the size, compute the lo and hi bounds.
10321 cat >conftest.
$ac_ext <<_ACEOF
10324 cat confdefs.h
>>conftest.
$ac_ext
10325 cat >>conftest.
$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 typedef size_t ac__type_sizeof_;
10332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10339 rm -f conftest.
$ac_objext
10340 if { (ac_try
="$ac_compile"
10341 case "(($ac_try" in
10342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_compile") 2>conftest.er1
10348 grep -v '^ *+' conftest.er1 >conftest.err
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 } && test -s conftest.$ac_objext; then
10358 cat >conftest.$ac_ext <<_ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 $ac_includes_default
10365 typedef size_t ac__type_sizeof_;
10369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10376 rm -f conftest.$ac_objext
10377 if { (ac_try="$ac_compile"
10378 case "(($ac_try" in
10379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10380 *) ac_try_echo
=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_compile") 2>conftest.er1
10385 grep -v '^ *+' conftest.er1
>conftest.err
10387 cat conftest.err
>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && {
10390 test -z "$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10392 } && test -s conftest.
$ac_objext; then
10393 ac_hi
=$ac_mid; break
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.
$ac_ext >&5
10398 ac_lo
=`expr $ac_mid + 1`
10399 if test $ac_lo -le $ac_mid; then
10403 ac_mid
=`expr 2 '*' $ac_mid + 1`
10406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.
$ac_ext >&5
10412 cat >conftest.
$ac_ext <<_ACEOF
10415 cat confdefs.h
>>conftest.
$ac_ext
10416 cat >>conftest.
$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10419 typedef size_t ac__type_sizeof_;
10423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10430 rm -f conftest.
$ac_objext
10431 if { (ac_try
="$ac_compile"
10432 case "(($ac_try" in
10433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10439 grep -v '^ *+' conftest.er1 >conftest.err
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && {
10444 test -z "$ac_c_werror_flag" ||
10445 test ! -s conftest.err
10446 } && test -s conftest.$ac_objext; then
10449 cat >conftest.$ac_ext <<_ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 $ac_includes_default
10456 typedef size_t ac__type_sizeof_;
10460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10467 rm -f conftest.$ac_objext
10468 if { (ac_try="$ac_compile"
10469 case "(($ac_try" in
10470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10471 *) ac_try_echo
=$ac_try;;
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_compile") 2>conftest.er1
10476 grep -v '^ *+' conftest.er1
>conftest.err
10478 cat conftest.err
>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest.
$ac_objext; then
10484 ac_lo
=$ac_mid; break
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.
$ac_ext >&5
10489 ac_hi
=`expr '(' $ac_mid ')' - 1`
10490 if test $ac_mid -le $ac_hi; then
10494 ac_mid
=`expr 2 '*' $ac_mid`
10497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.
$ac_ext >&5
10506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10510 # Binary search between lo and hi bounds.
10511 while test "x$ac_lo" != "x$ac_hi"; do
10512 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10513 cat >conftest.
$ac_ext <<_ACEOF
10516 cat confdefs.h
>>conftest.
$ac_ext
10517 cat >>conftest.
$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 $ac_includes_default
10520 typedef size_t ac__type_sizeof_;
10524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10531 rm -f conftest.
$ac_objext
10532 if { (ac_try
="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest.$ac_objext; then
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_lo=`expr '(' $ac_mid ')' + 1`
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10560 '') if test "$ac_cv_type_size_t" = yes; then
10561 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10562 See \`config.log
' for more details." >&5
10563 echo "$as_me: error: cannot compute sizeof (size_t)
10564 See \`config.log' for more details.
" >&2;}
10565 { (exit 77); exit 77; }; }
10567 ac_cv_sizeof_size_t=0
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 $ac_includes_default
10578 typedef size_t ac__type_sizeof_;
10579 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10580 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10582 #include <stdlib.h>
10587 FILE *f = fopen ("conftest.val
", "w
");
10590 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10592 long int i = longval ();
10593 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10595 fprintf (f, "%ld
\n", i);
10599 unsigned long int i = ulongval ();
10600 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10602 fprintf (f, "%lu
\n", i);
10604 return ferror (f) || fclose (f) != 0;
10610 rm -f conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>&5
10619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10621 { (case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_try") 2>&5
10628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_cv_sizeof_size_t=`cat conftest.val`
10632 echo "$as_me: program exited with status
$ac_status" >&5
10633 echo "$as_me: failed program was
:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ( exit $ac_status )
10637 if test "$ac_cv_type_size_t" = yes; then
10638 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10639 See \
`config.log' for more details." >&5
10640 echo "$as_me: error: cannot compute sizeof (size_t)
10641 See \`config.log
' for more details." >&2;}
10642 { (exit 77); exit 77; }; }
10644 ac_cv_sizeof_size_t=0
10647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10651 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10652 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10656 cat >>confdefs.h <<_ACEOF
10657 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10661 { echo "$as_me:$LINENO: checking for pid_t" >&5
10662 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10663 if test "${ac_cv_type_pid_t+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 cat >conftest.$ac_ext <<_ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 $ac_includes_default
10673 typedef pid_t ac__type_new_;
10677 if ((ac__type_new_ *) 0)
10679 if (sizeof (ac__type_new_))
10685 rm -f conftest.$ac_objext
10686 if { (ac_try="$ac_compile"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_compile") 2>conftest.er1
10694 grep -v '^
*+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest.$ac_objext; then
10702 ac_cv_type_pid_t=yes
10704 echo "$as_me: failed program was:" >&5
10705 sed 's
/^
/|
/' conftest.$ac_ext >&5
10707 ac_cv_type_pid_t=no
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10713 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10715 # The cast to long int works around a bug in the HP C Compiler
10716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10718 # This bug is HP SR number 8606223364.
10719 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10720 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10721 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 if test "$cross_compiling" = yes; then
10725 # Depending upon the size, compute the lo and hi bounds.
10726 cat >conftest.
$ac_ext <<_ACEOF
10729 cat confdefs.h
>>conftest.
$ac_ext
10730 cat >>conftest.
$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 $ac_includes_default
10733 typedef pid_t ac__type_sizeof_;
10737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10744 rm -f conftest.
$ac_objext
10745 if { (ac_try
="$ac_compile"
10746 case "(($ac_try" in
10747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_compile") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest.$ac_objext; then
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 $ac_includes_default
10770 typedef pid_t ac__type_sizeof_;
10774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10785 *) ac_try_echo
=$ac_try;;
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_compile") 2>conftest.er1
10790 grep -v '^ *+' conftest.er1
>conftest.err
10792 cat conftest.err
>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && {
10795 test -z "$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 } && test -s conftest.
$ac_objext; then
10798 ac_hi
=$ac_mid; break
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.
$ac_ext >&5
10803 ac_lo
=`expr $ac_mid + 1`
10804 if test $ac_lo -le $ac_mid; then
10808 ac_mid
=`expr 2 '*' $ac_mid + 1`
10811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.
$ac_ext >&5
10817 cat >conftest.
$ac_ext <<_ACEOF
10820 cat confdefs.h
>>conftest.
$ac_ext
10821 cat >>conftest.
$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 $ac_includes_default
10824 typedef pid_t ac__type_sizeof_;
10828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10835 rm -f conftest.
$ac_objext
10836 if { (ac_try
="$ac_compile"
10837 case "(($ac_try" in
10838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_compile") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest.$ac_objext; then
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 $ac_includes_default
10861 typedef pid_t ac__type_sizeof_;
10865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10872 rm -f conftest.$ac_objext
10873 if { (ac_try="$ac_compile"
10874 case "(($ac_try" in
10875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10876 *) ac_try_echo
=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_compile") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1
>conftest.err
10883 cat conftest.err
>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest.
$ac_objext; then
10889 ac_lo
=$ac_mid; break
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.
$ac_ext >&5
10894 ac_hi
=`expr '(' $ac_mid ')' - 1`
10895 if test $ac_mid -le $ac_hi; then
10899 ac_mid
=`expr 2 '*' $ac_mid`
10902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.
$ac_ext >&5
10911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10915 # Binary search between lo and hi bounds.
10916 while test "x$ac_lo" != "x$ac_hi"; do
10917 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10918 cat >conftest.
$ac_ext <<_ACEOF
10921 cat confdefs.h
>>conftest.
$ac_ext
10922 cat >>conftest.
$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 $ac_includes_default
10925 typedef pid_t ac__type_sizeof_;
10929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10936 rm -f conftest.
$ac_objext
10937 if { (ac_try
="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest.$ac_objext; then
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ac_lo=`expr '(' $ac_mid ')' + 1`
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10965 '') if test "$ac_cv_type_pid_t" = yes; then
10966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10967 See \`config.log
' for more details." >&5
10968 echo "$as_me: error: cannot compute sizeof (pid_t)
10969 See \`config.log' for more details.
" >&2;}
10970 { (exit 77); exit 77; }; }
10972 ac_cv_sizeof_pid_t=0
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 $ac_includes_default
10983 typedef pid_t ac__type_sizeof_;
10984 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10985 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10987 #include <stdlib.h>
10992 FILE *f = fopen ("conftest.val
", "w
");
10995 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10997 long int i = longval ();
10998 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11000 fprintf (f, "%ld
\n", i);
11004 unsigned long int i = ulongval ();
11005 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11007 fprintf (f, "%lu
\n", i);
11009 return ferror (f) || fclose (f) != 0;
11015 rm -f conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>&5
11024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_cv_sizeof_pid_t=`cat conftest.val`
11037 echo "$as_me: program exited with status
$ac_status" >&5
11038 echo "$as_me: failed program was
:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ( exit $ac_status )
11042 if test "$ac_cv_type_pid_t" = yes; then
11043 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11044 See \
`config.log' for more details." >&5
11045 echo "$as_me: error: cannot compute sizeof (pid_t)
11046 See \`config.log
' for more details." >&2;}
11047 { (exit 77); exit 77; }; }
11049 ac_cv_sizeof_pid_t=0
11052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11056 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11057 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11061 cat >>confdefs.h <<_ACEOF
11062 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11067 { echo "$as_me:$LINENO: checking for long long support" >&5
11068 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11080 long long x; x = (long long)0;
11085 rm -f conftest.$ac_objext
11086 if { (ac_try="$ac_compile"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_compile") 2>conftest.er1
11094 grep -v '^
*+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest.$ac_objext; then
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_LONG_LONG 1
11111 echo "$as_me: failed program was:" >&5
11112 sed 's
/^
/|
/' conftest.$ac_ext >&5
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11119 echo "${ECHO_T}$have_long_long" >&6; }
11120 if test "$have_long_long" = yes ; then
11121 { echo "$as_me:$LINENO: checking for long long" >&5
11122 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11123 if test "${ac_cv_type_long_long+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 $ac_includes_default
11133 typedef long long ac__type_new_;
11137 if ((ac__type_new_ *) 0)
11139 if (sizeof (ac__type_new_))
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11154 grep -v '^
*+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_c_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest.$ac_objext; then
11162 ac_cv_type_long_long=yes
11164 echo "$as_me: failed program was:" >&5
11165 sed 's
/^
/|
/' conftest.$ac_ext >&5
11167 ac_cv_type_long_long=no
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11173 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11175 # The cast to long int works around a bug in the HP C Compiler
11176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11178 # This bug is HP SR number 8606223364.
11179 { echo "$as_me:$LINENO: checking size of long long" >&5
11180 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11181 if test "${ac_cv_sizeof_long_long+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 if test "$cross_compiling" = yes; then
11185 # Depending upon the size, compute the lo and hi bounds.
11186 cat >conftest.
$ac_ext <<_ACEOF
11189 cat confdefs.h
>>conftest.
$ac_ext
11190 cat >>conftest.
$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 typedef long long ac__type_sizeof_;
11197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11204 rm -f conftest.
$ac_objext
11205 if { (ac_try
="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11213 grep -v '^ *+' conftest.er1 >conftest.err
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest.$ac_objext; then
11223 cat >conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 $ac_includes_default
11230 typedef long long ac__type_sizeof_;
11234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11241 rm -f conftest.$ac_objext
11242 if { (ac_try="$ac_compile"
11243 case "(($ac_try" in
11244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11245 *) ac_try_echo
=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_compile") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1
>conftest.err
11252 cat conftest.err
>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest.
$ac_objext; then
11258 ac_hi
=$ac_mid; break
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.
$ac_ext >&5
11263 ac_lo
=`expr $ac_mid + 1`
11264 if test $ac_lo -le $ac_mid; then
11268 ac_mid
=`expr 2 '*' $ac_mid + 1`
11271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.
$ac_ext >&5
11277 cat >conftest.
$ac_ext <<_ACEOF
11280 cat confdefs.h
>>conftest.
$ac_ext
11281 cat >>conftest.
$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 $ac_includes_default
11284 typedef long long ac__type_sizeof_;
11288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11295 rm -f conftest.
$ac_objext
11296 if { (ac_try
="$ac_compile"
11297 case "(($ac_try" in
11298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11304 grep -v '^ *+' conftest.er1 >conftest.err
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11314 cat >conftest.$ac_ext <<_ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 $ac_includes_default
11321 typedef long long ac__type_sizeof_;
11325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11332 rm -f conftest.$ac_objext
11333 if { (ac_try="$ac_compile"
11334 case "(($ac_try" in
11335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11336 *) ac_try_echo
=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_compile") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1
>conftest.err
11343 cat conftest.err
>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && {
11346 test -z "$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11348 } && test -s conftest.
$ac_objext; then
11349 ac_lo
=$ac_mid; break
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.
$ac_ext >&5
11354 ac_hi
=`expr '(' $ac_mid ')' - 1`
11355 if test $ac_mid -le $ac_hi; then
11359 ac_mid
=`expr 2 '*' $ac_mid`
11362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.
$ac_ext >&5
11371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11375 # Binary search between lo and hi bounds.
11376 while test "x$ac_lo" != "x$ac_hi"; do
11377 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11378 cat >conftest.
$ac_ext <<_ACEOF
11381 cat confdefs.h
>>conftest.
$ac_ext
11382 cat >>conftest.
$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 typedef long long ac__type_sizeof_;
11389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11396 rm -f conftest.
$ac_objext
11397 if { (ac_try
="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_lo=`expr '(' $ac_mid ')' + 1`
11421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11425 '') if test "$ac_cv_type_long_long" = yes; then
11426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11427 See \`config.log
' for more details." >&5
11428 echo "$as_me: error: cannot compute sizeof (long long)
11429 See \`config.log' for more details.
" >&2;}
11430 { (exit 77); exit 77; }; }
11432 ac_cv_sizeof_long_long=0
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 $ac_includes_default
11443 typedef long long ac__type_sizeof_;
11444 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11445 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11447 #include <stdlib.h>
11452 FILE *f = fopen ("conftest.val
", "w
");
11455 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11457 long int i = longval ();
11458 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11460 fprintf (f, "%ld
\n", i);
11464 unsigned long int i = ulongval ();
11465 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11467 fprintf (f, "%lu
\n", i);
11469 return ferror (f) || fclose (f) != 0;
11475 rm -f conftest$ac_exeext
11476 if { (ac_try="$ac_link"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_link") 2>&5
11484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_sizeof_long_long=`cat conftest.val`
11497 echo "$as_me: program exited with status
$ac_status" >&5
11498 echo "$as_me: failed program was
:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ( exit $ac_status )
11502 if test "$ac_cv_type_long_long" = yes; then
11503 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11504 See \
`config.log' for more details." >&5
11505 echo "$as_me: error: cannot compute sizeof (long long)
11506 See \`config.log
' for more details." >&2;}
11507 { (exit 77); exit 77; }; }
11509 ac_cv_sizeof_long_long=0
11512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11516 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11517 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11521 cat >>confdefs.h <<_ACEOF
11522 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11528 { echo "$as_me:$LINENO: checking for long double support" >&5
11529 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11530 have_long_double=no
11531 cat >conftest.$ac_ext <<_ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11541 long double x; x = (long double)0;
11546 rm -f conftest.$ac_objext
11547 if { (ac_try="$ac_compile"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_compile") 2>conftest.er1
11555 grep -v '^
*+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } && {
11560 test -z "$ac_c_werror_flag" ||
11561 test ! -s conftest.err
11562 } && test -s conftest.$ac_objext; then
11565 cat >>confdefs.h <<\_ACEOF
11566 #define HAVE_LONG_DOUBLE 1
11569 have_long_double=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's
/^
/|
/' conftest.$ac_ext >&5
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11580 echo "${ECHO_T}$have_long_double" >&6; }
11581 if test "$have_long_double" = yes ; then
11582 { echo "$as_me:$LINENO: checking for long double" >&5
11583 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11584 if test "${ac_cv_type_long_double+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 cat >conftest.$ac_ext <<_ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 $ac_includes_default
11594 typedef long double ac__type_new_;
11598 if ((ac__type_new_ *) 0)
11600 if (sizeof (ac__type_new_))
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11615 grep -v '^
*+' conftest.er1 >conftest.err
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
11623 ac_cv_type_long_double=yes
11625 echo "$as_me: failed program was:" >&5
11626 sed 's
/^
/|
/' conftest.$ac_ext >&5
11628 ac_cv_type_long_double=no
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11634 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11636 # The cast to long int works around a bug in the HP C Compiler
11637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11639 # This bug is HP SR number 8606223364.
11640 { echo "$as_me:$LINENO: checking size of long double" >&5
11641 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11642 if test "${ac_cv_sizeof_long_double+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 if test "$cross_compiling" = yes; then
11646 # Depending upon the size, compute the lo and hi bounds.
11647 cat >conftest.
$ac_ext <<_ACEOF
11650 cat confdefs.h
>>conftest.
$ac_ext
11651 cat >>conftest.
$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 $ac_includes_default
11654 typedef long double ac__type_sizeof_;
11658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11665 rm -f conftest.
$ac_objext
11666 if { (ac_try
="$ac_compile"
11667 case "(($ac_try" in
11668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_compile") 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } && {
11679 test -z "$ac_c_werror_flag" ||
11680 test ! -s conftest.err
11681 } && test -s conftest.$ac_objext; then
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11691 typedef long double ac__type_sizeof_;
11695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11706 *) ac_try_echo
=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.
$ac_objext; then
11719 ac_hi
=$ac_mid; break
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.
$ac_ext >&5
11724 ac_lo
=`expr $ac_mid + 1`
11725 if test $ac_lo -le $ac_mid; then
11729 ac_mid
=`expr 2 '*' $ac_mid + 1`
11732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.
$ac_ext >&5
11738 cat >conftest.
$ac_ext <<_ACEOF
11741 cat confdefs.h
>>conftest.
$ac_ext
11742 cat >>conftest.
$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 $ac_includes_default
11745 typedef long double ac__type_sizeof_;
11749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11756 rm -f conftest.
$ac_objext
11757 if { (ac_try
="$ac_compile"
11758 case "(($ac_try" in
11759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_compile") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest.$ac_objext; then
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 typedef long double ac__type_sizeof_;
11786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11797 *) ac_try_echo
=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1
>conftest.err
11804 cat conftest.err
>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest.
$ac_objext; then
11810 ac_lo
=$ac_mid; break
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.
$ac_ext >&5
11815 ac_hi
=`expr '(' $ac_mid ')' - 1`
11816 if test $ac_mid -le $ac_hi; then
11820 ac_mid
=`expr 2 '*' $ac_mid`
11823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.
$ac_ext >&5
11832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11836 # Binary search between lo and hi bounds.
11837 while test "x$ac_lo" != "x$ac_hi"; do
11838 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11839 cat >conftest.
$ac_ext <<_ACEOF
11842 cat confdefs.h
>>conftest.
$ac_ext
11843 cat >>conftest.
$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 typedef long double ac__type_sizeof_;
11850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11857 rm -f conftest.
$ac_objext
11858 if { (ac_try
="$ac_compile"
11859 case "(($ac_try" in
11860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_lo=`expr '(' $ac_mid ')' + 1`
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11886 '') if test "$ac_cv_type_long_double" = yes; then
11887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11888 See \`config.log
' for more details." >&5
11889 echo "$as_me: error: cannot compute sizeof (long double)
11890 See \`config.log' for more details.
" >&2;}
11891 { (exit 77); exit 77; }; }
11893 ac_cv_sizeof_long_double=0
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 $ac_includes_default
11904 typedef long double ac__type_sizeof_;
11905 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11906 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11908 #include <stdlib.h>
11913 FILE *f = fopen ("conftest.val
", "w
");
11916 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11918 long int i = longval ();
11919 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11921 fprintf (f, "%ld
\n", i);
11925 unsigned long int i = ulongval ();
11926 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11928 fprintf (f, "%lu
\n", i);
11930 return ferror (f) || fclose (f) != 0;
11936 rm -f conftest$ac_exeext
11937 if { (ac_try="$ac_link"
11938 case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_link") 2>&5
11945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_sizeof_long_double=`cat conftest.val`
11958 echo "$as_me: program exited with status
$ac_status" >&5
11959 echo "$as_me: failed program was
:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ( exit $ac_status )
11963 if test "$ac_cv_type_long_double" = yes; then
11964 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
11965 See \
`config.log' for more details." >&5
11966 echo "$as_me: error: cannot compute sizeof (long double)
11967 See \`config.log
' for more details." >&2;}
11968 { (exit 77); exit 77; }; }
11970 ac_cv_sizeof_long_double=0
11973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11978 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11982 cat >>confdefs.h <<_ACEOF
11983 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11990 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11991 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11993 cat >conftest.$ac_ext <<_ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
12003 _Bool x; x = (_Bool)0;
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12017 grep -v '^
*+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest.$ac_objext; then
12027 cat >>confdefs.h <<\_ACEOF
12028 #define HAVE_C99_BOOL 1
12034 echo "$as_me: failed program was:" >&5
12035 sed 's
/^
/|
/' conftest.$ac_ext >&5
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12042 echo "${ECHO_T}$have_c99_bool" >&6; }
12043 if test "$have_c99_bool" = yes ; then
12044 { echo "$as_me:$LINENO: checking for _Bool" >&5
12045 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12046 if test "${ac_cv_type__Bool+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 $ac_includes_default
12056 typedef _Bool ac__type_new_;
12060 if ((ac__type_new_ *) 0)
12062 if (sizeof (ac__type_new_))
12068 rm -f conftest.$ac_objext
12069 if { (ac_try="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12077 grep -v '^
*+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.$ac_objext; then
12085 ac_cv_type__Bool=yes
12087 echo "$as_me: failed program was:" >&5
12088 sed 's
/^
/|
/' conftest.$ac_ext >&5
12090 ac_cv_type__Bool=no
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12096 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12098 # The cast to long int works around a bug in the HP C Compiler
12099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12101 # This bug is HP SR number 8606223364.
12102 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12103 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12104 if test "${ac_cv_sizeof__Bool+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 if test "$cross_compiling" = yes; then
12108 # Depending upon the size, compute the lo and hi bounds.
12109 cat >conftest.
$ac_ext <<_ACEOF
12112 cat confdefs.h
>>conftest.
$ac_ext
12113 cat >>conftest.
$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 $ac_includes_default
12116 typedef _Bool ac__type_sizeof_;
12120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12127 rm -f conftest.
$ac_objext
12128 if { (ac_try
="$ac_compile"
12129 case "(($ac_try" in
12130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_compile") 2>conftest.er1
12136 grep -v '^ *+' conftest.er1 >conftest.err
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest.$ac_objext; then
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 typedef _Bool ac__type_sizeof_;
12157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12168 *) ac_try_echo
=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1
>conftest.err
12175 cat conftest.err
>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.
$ac_objext; then
12181 ac_hi
=$ac_mid; break
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.
$ac_ext >&5
12186 ac_lo
=`expr $ac_mid + 1`
12187 if test $ac_lo -le $ac_mid; then
12191 ac_mid
=`expr 2 '*' $ac_mid + 1`
12194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.
$ac_ext >&5
12200 cat >conftest.
$ac_ext <<_ACEOF
12203 cat confdefs.h
>>conftest.
$ac_ext
12204 cat >>conftest.
$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 typedef _Bool ac__type_sizeof_;
12211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12218 rm -f conftest.
$ac_objext
12219 if { (ac_try
="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_compile") 2>conftest.er1
12227 grep -v '^ *+' conftest.er1 >conftest.err
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && {
12232 test -z "$ac_c_werror_flag" ||
12233 test ! -s conftest.err
12234 } && test -s conftest.$ac_objext; then
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 typedef _Bool ac__type_sizeof_;
12248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12259 *) ac_try_echo
=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1
>conftest.err
12266 cat conftest.err
>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.
$ac_objext; then
12272 ac_lo
=$ac_mid; break
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.
$ac_ext >&5
12277 ac_hi
=`expr '(' $ac_mid ')' - 1`
12278 if test $ac_mid -le $ac_hi; then
12282 ac_mid
=`expr 2 '*' $ac_mid`
12285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.
$ac_ext >&5
12294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12298 # Binary search between lo and hi bounds.
12299 while test "x$ac_lo" != "x$ac_hi"; do
12300 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12301 cat >conftest.
$ac_ext <<_ACEOF
12304 cat confdefs.h
>>conftest.
$ac_ext
12305 cat >>conftest.
$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 $ac_includes_default
12308 typedef _Bool ac__type_sizeof_;
12312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12319 rm -f conftest.
$ac_objext
12320 if { (ac_try
="$ac_compile"
12321 case "(($ac_try" in
12322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_compile") 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
12335 } && test -s conftest.$ac_objext; then
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_lo=`expr '(' $ac_mid ')' + 1`
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12348 '') if test "$ac_cv_type__Bool" = yes; then
12349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12350 See \`config.log
' for more details." >&5
12351 echo "$as_me: error: cannot compute sizeof (_Bool)
12352 See \`config.log' for more details.
" >&2;}
12353 { (exit 77); exit 77; }; }
12355 ac_cv_sizeof__Bool=0
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 $ac_includes_default
12366 typedef _Bool ac__type_sizeof_;
12367 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12368 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12370 #include <stdlib.h>
12375 FILE *f = fopen ("conftest.val
", "w
");
12378 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12380 long int i = longval ();
12381 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12383 fprintf (f, "%ld
\n", i);
12387 unsigned long int i = ulongval ();
12388 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12390 fprintf (f, "%lu
\n", i);
12392 return ferror (f) || fclose (f) != 0;
12398 rm -f conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>&5
12407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12409 { (case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_try") 2>&5
12416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 ac_cv_sizeof__Bool=`cat conftest.val`
12420 echo "$as_me: program exited with status
$ac_status" >&5
12421 echo "$as_me: failed program was
:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ( exit $ac_status )
12425 if test "$ac_cv_type__Bool" = yes; then
12426 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12427 See \
`config.log' for more details." >&5
12428 echo "$as_me: error: cannot compute sizeof (_Bool)
12429 See \`config.log
' for more details." >&2;}
12430 { (exit 77); exit 77; }; }
12432 ac_cv_sizeof__Bool=0
12435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12439 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12440 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12444 cat >>confdefs.h <<_ACEOF
12445 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12451 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12452 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12453 if test "${ac_cv_type_uintptr_t+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 #ifdef HAVE_STDINT_H
12463 #include <stdint.h>
12466 typedef uintptr_t ac__type_new_;
12470 if ((ac__type_new_ *) 0)
12472 if (sizeof (ac__type_new_))
12478 rm -f conftest.$ac_objext
12479 if { (ac_try="$ac_compile"
12480 case "(($ac_try" in
12481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482 *) ac_try_echo=$ac_try;;
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485 (eval "$ac_compile") 2>conftest.er1
12487 grep -v '^
*+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } && {
12492 test -z "$ac_c_werror_flag" ||
12493 test ! -s conftest.err
12494 } && test -s conftest.$ac_objext; then
12495 ac_cv_type_uintptr_t=yes
12497 echo "$as_me: failed program was:" >&5
12498 sed 's
/^
/|
/' conftest.$ac_ext >&5
12500 ac_cv_type_uintptr_t=no
12503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12506 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12507 if test $ac_cv_type_uintptr_t = yes; then
12509 cat >>confdefs.h <<_ACEOF
12510 #define HAVE_UINTPTR_T 1
12513 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12514 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12515 if test "${ac_cv_type_uintptr_t+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 $ac_includes_default
12525 typedef uintptr_t ac__type_new_;
12529 if ((ac__type_new_ *) 0)
12531 if (sizeof (ac__type_new_))
12537 rm -f conftest.$ac_objext
12538 if { (ac_try="$ac_compile"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_compile") 2>conftest.er1
12546 grep -v '^
*+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest.$ac_objext; then
12554 ac_cv_type_uintptr_t=yes
12556 echo "$as_me: failed program was:" >&5
12557 sed 's
/^
/|
/' conftest.$ac_ext >&5
12559 ac_cv_type_uintptr_t=no
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12565 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12567 # The cast to long int works around a bug in the HP C Compiler
12568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12570 # This bug is HP SR number 8606223364.
12571 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12572 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12573 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 if test "$cross_compiling" = yes; then
12577 # Depending upon the size, compute the lo and hi bounds.
12578 cat >conftest.
$ac_ext <<_ACEOF
12581 cat confdefs.h
>>conftest.
$ac_ext
12582 cat >>conftest.
$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 $ac_includes_default
12585 typedef uintptr_t ac__type_sizeof_;
12589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12596 rm -f conftest.
$ac_objext
12597 if { (ac_try
="$ac_compile"
12598 case "(($ac_try" in
12599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_compile") 2>conftest.er1
12605 grep -v '^ *+' conftest.er1 >conftest.err
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } && {
12610 test -z "$ac_c_werror_flag" ||
12611 test ! -s conftest.err
12612 } && test -s conftest.$ac_objext; then
12615 cat >conftest.$ac_ext <<_ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 typedef uintptr_t ac__type_sizeof_;
12626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12637 *) ac_try_echo
=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12642 grep -v '^ *+' conftest.er1
>conftest.err
12644 cat conftest.err
>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.
$ac_objext; then
12650 ac_hi
=$ac_mid; break
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.
$ac_ext >&5
12655 ac_lo
=`expr $ac_mid + 1`
12656 if test $ac_lo -le $ac_mid; then
12660 ac_mid
=`expr 2 '*' $ac_mid + 1`
12663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.
$ac_ext >&5
12669 cat >conftest.
$ac_ext <<_ACEOF
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 typedef uintptr_t ac__type_sizeof_;
12680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12687 rm -f conftest.
$ac_objext
12688 if { (ac_try
="$ac_compile"
12689 case "(($ac_try" in
12690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest.$ac_objext; then
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12713 typedef uintptr_t ac__type_sizeof_;
12717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12728 *) ac_try_echo
=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_compile") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1
>conftest.err
12735 cat conftest.err
>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest.
$ac_objext; then
12741 ac_lo
=$ac_mid; break
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.
$ac_ext >&5
12746 ac_hi
=`expr '(' $ac_mid ')' - 1`
12747 if test $ac_mid -le $ac_hi; then
12751 ac_mid
=`expr 2 '*' $ac_mid`
12754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.
$ac_ext >&5
12763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12767 # Binary search between lo and hi bounds.
12768 while test "x$ac_lo" != "x$ac_hi"; do
12769 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12770 cat >conftest.
$ac_ext <<_ACEOF
12773 cat confdefs.h
>>conftest.
$ac_ext
12774 cat >>conftest.
$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 $ac_includes_default
12777 typedef uintptr_t ac__type_sizeof_;
12781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12788 rm -f conftest.
$ac_objext
12789 if { (ac_try
="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_compile") 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && {
12802 test -z "$ac_c_werror_flag" ||
12803 test ! -s conftest.err
12804 } && test -s conftest.$ac_objext; then
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 ac_lo=`expr '(' $ac_mid ')' + 1`
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12817 '') if test "$ac_cv_type_uintptr_t" = yes; then
12818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12819 See \`config.log
' for more details." >&5
12820 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12821 See \`config.log' for more details.
" >&2;}
12822 { (exit 77); exit 77; }; }
12824 ac_cv_sizeof_uintptr_t=0
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 $ac_includes_default
12835 typedef uintptr_t ac__type_sizeof_;
12836 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12837 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12839 #include <stdlib.h>
12844 FILE *f = fopen ("conftest.val
", "w
");
12847 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12849 long int i = longval ();
12850 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12852 fprintf (f, "%ld
\n", i);
12856 unsigned long int i = ulongval ();
12857 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12859 fprintf (f, "%lu
\n", i);
12861 return ferror (f) || fclose (f) != 0;
12867 rm -f conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>&5
12876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12878 { (case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_try") 2>&5
12885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12889 echo "$as_me: program exited with status
$ac_status" >&5
12890 echo "$as_me: failed program was
:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ( exit $ac_status )
12894 if test "$ac_cv_type_uintptr_t" = yes; then
12895 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12896 See \
`config.log' for more details." >&5
12897 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12898 See \`config.log
' for more details." >&2;}
12899 { (exit 77); exit 77; }; }
12901 ac_cv_sizeof_uintptr_t=0
12904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12908 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12909 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12913 cat >>confdefs.h <<_ACEOF
12914 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12922 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12923 { echo "$as_me:$LINENO: checking size of off_t" >&5
12924 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12925 if test "${ac_cv_sizeof_off_t+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 if test "$cross_compiling" = yes; then
12929 ac_cv_sizeof_off_t
=4
12931 cat >conftest.
$ac_ext <<_ACEOF
12934 cat confdefs.h
>>conftest.
$ac_ext
12935 cat >>conftest.
$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12938 #include <sys/types.h>
12941 FILE *f=fopen("conftestval", "w");
12943 fprintf(f, "%d\n", sizeof(off_t));
12947 rm -f conftest
$ac_exeext
12948 if { (ac_try
="$ac_link"
12949 case "(($ac_try" in
12950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_link") 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12960 *) ac_try_echo
=$ac_try;;
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_cv_sizeof_off_t
=`cat conftestval`
12969 echo "$as_me: program exited with status $ac_status" >&5
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.
$ac_ext >&5
12973 ( exit $ac_status )
12974 ac_cv_sizeof_off_t
=0
12976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12984 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12986 cat >>confdefs.h
<<_ACEOF
12987 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12991 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12992 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12993 if test "$have_long_long" = yes -a \
12994 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12995 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12997 cat >>confdefs.h
<<\_ACEOF
12998 #define HAVE_LARGEFILE_SUPPORT 1
13001 { echo "$as_me:$LINENO: result: yes" >&5
13002 echo "${ECHO_T}yes" >&6; }
13004 { echo "$as_me:$LINENO: result: no" >&5
13005 echo "${ECHO_T}no" >&6; }
13008 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13009 { echo "$as_me:$LINENO: checking size of time_t" >&5
13010 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13011 if test "${ac_cv_sizeof_time_t+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 if test "$cross_compiling" = yes; then
13015 ac_cv_sizeof_time_t
=4
13017 cat >conftest.
$ac_ext <<_ACEOF
13020 cat confdefs.h
>>conftest.
$ac_ext
13021 cat >>conftest.
$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13027 FILE *f=fopen("conftestval", "w");
13029 fprintf(f, "%d\n", sizeof(time_t));
13033 rm -f conftest
$ac_exeext
13034 if { (ac_try
="$ac_link"
13035 case "(($ac_try" in
13036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13046 *) ac_try_echo
=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_sizeof_time_t
=`cat conftestval`
13055 echo "$as_me: program exited with status $ac_status" >&5
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.
$ac_ext >&5
13059 ( exit $ac_status )
13060 ac_cv_sizeof_time_t
=0
13062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13069 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13070 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13072 cat >>confdefs.h
<<_ACEOF
13073 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13078 # if have pthread_t then define SIZEOF_PTHREAD_T
13080 if test "$ac_cv_kpthread" = "yes"
13081 then CC
="$CC -Kpthread"
13082 elif test "$ac_cv_kthread" = "yes"
13083 then CC
="$CC -Kthread"
13084 elif test "$ac_cv_pthread" = "yes"
13085 then CC
="$CC -pthread"
13087 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13088 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13090 cat >conftest.
$ac_ext <<_ACEOF
13093 cat confdefs.h
>>conftest.
$ac_ext
13094 cat >>conftest.
$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #include <pthread.h>
13100 pthread_t x; x = *(pthread_t*)0;
13105 rm -f conftest.
$ac_objext
13106 if { (ac_try
="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest.$ac_objext; then
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13132 echo "${ECHO_T}$have_pthread_t" >&6; }
13133 if test "$have_pthread_t" = yes ; then
13134 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13135 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13136 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13137 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 if test "$cross_compiling" = yes; then
13141 ac_cv_sizeof_pthread_t=4
13143 cat >conftest.$ac_ext <<_ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13150 #include <pthread.h>
13153 FILE *f=fopen("conftestval", "w");
13155 fprintf(f, "%d\n", sizeof(pthread_t));
13159 rm -f conftest$ac_exeext
13160 if { (ac_try="$ac_link"
13161 case "(($ac_try" in
13162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13163 *) ac_try_echo
=$ac_try;;
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_link") 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13170 { (case "(($ac_try" in
13171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_cv_sizeof_pthread_t=`cat conftestval
`
13181 echo "$as_me: program exited with status $ac_status" >&5
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 ( exit $ac_status )
13186 ac_cv_sizeof_pthread_t=0
13188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13195 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13196 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13198 cat >>confdefs.h <<_ACEOF
13199 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13208 case $ac_sys_system/$ac_sys_release in
13209 Darwin/[01567]\..*)
13210 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13213 OTHER_LIBTOOL_OPT=""
13218 case $ac_sys_system/$ac_sys_release in
13219 Darwin/[01567]\..*)
13220 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13221 if test "${enable_universalsdk}"; then
13224 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13226 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13227 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13229 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13230 if test ${gcc_version} '<' 4.0
13232 LIBTOOL_CRUFT="-lcc_dynamic"
13236 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13237 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13238 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13241 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13242 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13243 if test "$enable_framework"
13245 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13246 # -F. is needed to allow linking to the framework while
13247 # in the build location.
13249 cat >>confdefs.h <<\_ACEOF
13250 #define WITH_NEXT_FRAMEWORK 1
13253 { echo "$as_me:$LINENO: result: yes" >&5
13254 echo "${ECHO_T}yes" >&6; }
13256 { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13260 { echo "$as_me:$LINENO: checking for dyld" >&5
13261 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13262 case $ac_sys_system/$ac_sys_release in
13265 cat >>confdefs.h <<\_ACEOF
13266 #define WITH_DYLD 1
13269 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13270 echo "${ECHO_T}always on for Darwin" >&6; }
13273 { echo "$as_me:$LINENO: result: no" >&5
13274 echo "${ECHO_T}no" >&6; }
13278 # Set info about shared libraries.
13284 # SO is the extension of shared libraries `(including the dot
!)
13285 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13286 { echo "$as_me:$LINENO: checking SO" >&5
13287 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13290 case $ac_sys_system in
13301 # this might also be a termcap variable, see #610332
13303 echo '====================================================================='
13305 echo '+ WARNING: You have set SO in your environment. +'
13306 echo '+ Do you really mean to change the extension for shared libraries? +'
13307 echo '+ Continuing in 10 seconds to let you to ponder. +'
13309 echo '====================================================================='
13312 { echo "$as_me:$LINENO: result: $SO" >&5
13313 echo "${ECHO_T}$SO" >&6; }
13316 cat >>confdefs.h
<<_ACEOF
13317 #define SHLIB_EXT "$SO"
13320 # LDSHARED is the ld *command* used to create shared library
13321 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13322 # (Shared libraries in this instance are shared modules to be loaded into
13323 # Python, as opposed to building Python itself as a shared library.)
13324 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13325 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13326 if test -z "$LDSHARED"
13328 case $ac_sys_system/$ac_sys_release in
13330 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13331 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13333 IRIX
/5*) LDSHARED
="ld -shared";;
13334 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13336 if test "$GCC" = "yes"
13337 then LDSHARED
='$(CC) -shared'
13338 else LDSHARED
='$(CC) -G';
13341 if test "$GCC" = "yes"
13342 then LDSHARED
='$(CC) -shared'
13343 else LDSHARED
='ld -b';
13345 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13347 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13348 if test "$enable_framework" ; then
13349 # Link against the framework. All externals should be defined.
13350 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13351 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13353 # No framework. Ignore undefined symbols, assuming they come from Python
13354 LDSHARED
="$LDSHARED -undefined suppress"
13356 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13357 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13358 if test "$enable_framework" ; then
13359 # Link against the framework. All externals should be defined.
13360 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13361 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13363 # No framework, use the Python app as bundle-loader
13364 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13365 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13368 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13369 # This allows an extension to be used in any Python
13371 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13373 if test "${enable_universalsdk}"; then
13374 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13376 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13377 BLDSHARED
="$LDSHARED"
13379 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13380 if test "$enable_framework" ; then
13381 # Link against the framework. All externals should be defined.
13382 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13383 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13385 # No framework, use the Python app as bundle-loader
13386 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13387 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13391 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13392 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13394 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13396 LDSHARED
="$CC -shared ${LDFLAGS}"
13398 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13401 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13403 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13406 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13407 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13410 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13414 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13415 OpenUNIX
*|UnixWare
*)
13416 if test "$GCC" = "yes"
13417 then LDSHARED
='$(CC) -shared'
13418 else LDSHARED
='$(CC) -G'
13420 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13421 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13422 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13423 atheos
*) LDSHARED
="gcc -shared";;
13427 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13428 echo "${ECHO_T}$LDSHARED" >&6; }
13429 BLDSHARED
=${BLDSHARED-$LDSHARED}
13430 # CCSHARED are the C *flags* used to create objects to go into a shared
13431 # library (module) -- this is only needed for a few systems
13432 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13433 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13434 if test -z "$CCSHARED"
13436 case $ac_sys_system/$ac_sys_release in
13437 SunOS
*) if test "$GCC" = yes;
13438 then CCSHARED
="-fPIC";
13439 elif test `uname -p` = sparc
;
13440 then CCSHARED
="-xcode=pic32";
13441 else CCSHARED
="-Kpic";
13443 hp
*|HP
*) if test "$GCC" = yes;
13444 then CCSHARED
="-fPIC";
13445 else CCSHARED
="+z";
13447 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13448 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13449 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13450 OpenUNIX
*|UnixWare
*)
13451 if test "$GCC" = "yes"
13452 then CCSHARED
="-fPIC"
13453 else CCSHARED
="-KPIC"
13456 if test "$GCC" = "yes"
13457 then CCSHARED
="-fPIC"
13458 else CCSHARED
="-Kpic -belf"
13460 Monterey
*) CCSHARED
="-G";;
13461 IRIX
*/6*) case $CC in
13462 *gcc
*) CCSHARED
="-shared";;
13465 atheos
*) CCSHARED
="-fPIC";;
13468 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13469 echo "${ECHO_T}$CCSHARED" >&6; }
13470 # LINKFORSHARED are the flags passed to the $(CC) command that links
13471 # the python executable -- this is only needed for a few systems
13472 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13473 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13474 if test -z "$LINKFORSHARED"
13476 case $ac_sys_system/$ac_sys_release in
13477 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13479 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13480 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13481 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13482 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13483 # -u libsys_s pulls in all symbols in libsys
13485 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13487 # not used by the core itself but which needs to be in the core so
13488 # that dynamically loaded extension modules have access to it.
13489 # -prebind is no longer used, because it actually seems to give a
13490 # slowdown in stead of a speedup, maybe due to the large number of
13491 # dynamic loads Python does.
13493 LINKFORSHARED
="$extra_undefs"
13494 if test "$enable_framework"
13496 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13498 LINKFORSHARED
="$LINKFORSHARED";;
13499 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13500 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13501 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13502 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13503 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13505 LINKFORSHARED
="-Wl,--export-dynamic"
13507 SunOS
/5*) case $CC in
13509 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13511 LINKFORSHARED
="-Xlinker --export-dynamic"
13515 if test $enable_shared = "no"
13517 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13520 # -Wl,-E causes the symbols to be added to the dynamic
13521 # symbol table so that they can be found when a module
13522 # is loaded. -N 2048K causes the stack size to be set
13523 # to 2048 kilobytes so that the stack doesn't overflow
13524 # when running test_compile.py.
13525 LINKFORSHARED
='-Wl,-E -N 2048K';;
13528 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13529 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13533 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13534 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13535 if test ! "$LIBRARY" = "$LDLIBRARY"
13537 case $ac_sys_system in
13539 # Cygwin needs CCSHARED when building extension DLLs
13540 # but not when building the interpreter DLL.
13541 CFLAGSFORSHARED
='';;
13543 CFLAGSFORSHARED
='$(CCSHARED)'
13546 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13547 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13549 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13550 # library (with --enable-shared).
13551 # For platforms on which shared libraries are not allowed to have unresolved
13552 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13553 # if it is not required, since it creates a dependency of the shared library
13554 # to LIBS. This, in turn, means that applications linking the shared libpython
13555 # don't need to link LIBS explicitly. The default should be only changed
13556 # on systems where this approach causes problems.
13558 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13559 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13560 case "$ac_sys_system" in
13564 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13565 echo "${ECHO_T}$SHLIBS" >&6; }
13568 # checks for libraries
13570 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13571 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 ac_check_lib_save_LIBS
=$LIBS
13577 cat >conftest.
$ac_ext <<_ACEOF
13580 cat confdefs.h
>>conftest.
$ac_ext
13581 cat >>conftest.
$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13599 rm -f conftest.
$ac_objext conftest
$ac_exeext
13600 if { (ac_try
="$ac_link"
13601 case "(($ac_try" in
13602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest$ac_exeext &&
13616 $as_test_x conftest$ac_exeext; then
13617 ac_cv_lib_dl_dlopen=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_cv_lib_dl_dlopen=no
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LIBS=$ac_check_lib_save_LIBS
13629 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13631 if test $ac_cv_lib_dl_dlopen = yes; then
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_LIBDL 1
13639 # Dynamic linking for SunOS/Solaris and SYSV
13641 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 ac_check_lib_save_LIBS=$LIBS
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13655 /* Override any GCC internal prototype to avoid an error.
13656 Use char because int might match the return type of a GCC
13657 builtin and then its argument prototype would still apply. */
13665 return shl_load ();
13670 rm -f conftest.$ac_objext conftest$ac_exeext
13671 if { (ac_try="$ac_link"
13672 case "(($ac_try" in
13673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13674 *) ac_try_echo
=$ac_try;;
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_link") 2>conftest.er1
13679 grep -v '^ *+' conftest.er1
>conftest.err
13681 cat conftest.err
>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } && {
13684 test -z "$ac_c_werror_flag" ||
13685 test ! -s conftest.err
13686 } && test -s conftest
$ac_exeext &&
13687 $as_test_x conftest
$ac_exeext; then
13688 ac_cv_lib_dld_shl_load
=yes
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.
$ac_ext >&5
13693 ac_cv_lib_dld_shl_load
=no
13696 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13697 conftest
$ac_exeext conftest.
$ac_ext
13698 LIBS
=$ac_check_lib_save_LIBS
13700 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13701 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13702 if test $ac_cv_lib_dld_shl_load = yes; then
13703 cat >>confdefs.h
<<_ACEOF
13704 #define HAVE_LIBDLD 1
13710 # Dynamic linking for HP-UX
13712 # only check for sem_init if thread support is requested
13713 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13714 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13715 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13716 if test "${ac_cv_search_sem_init+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 ac_func_search_save_LIBS
=$LIBS
13720 cat >conftest.
$ac_ext <<_ACEOF
13723 cat confdefs.h
>>conftest.
$ac_ext
13724 cat >>conftest.
$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13737 return sem_init ();
13742 for ac_lib
in '' pthread rt posix4
; do
13743 if test -z "$ac_lib"; then
13744 ac_res
="none required"
13747 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13749 rm -f conftest.
$ac_objext conftest
$ac_exeext
13750 if { (ac_try
="$ac_link"
13751 case "(($ac_try" in
13752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_link") 2>conftest.er1
13758 grep -v '^ *+' conftest.er1 >conftest.err
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } && {
13763 test -z "$ac_c_werror_flag" ||
13764 test ! -s conftest.err
13765 } && test -s conftest$ac_exeext &&
13766 $as_test_x conftest$ac_exeext; then
13767 ac_cv_search_sem_init=$ac_res
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13777 if test "${ac_cv_search_sem_init+set}" = set; then
13781 if test "${ac_cv_search_sem_init+set}" = set; then
13784 ac_cv_search_sem_init=no
13786 rm conftest.$ac_ext
13787 LIBS=$ac_func_search_save_LIBS
13789 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13790 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13791 ac_res=$ac_cv_search_sem_init
13792 if test "$ac_res" != no; then
13793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13796 # 'Real Time' functions on Solaris
13797 # posix4 on Solaris 2.6
13798 # pthread (first!) on Linux
13801 # check if we need libintl for locale functions
13802 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13803 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13804 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-lintl $LIBS"
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13822 char textdomain ();
13826 return textdomain ();
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (ac_try="$ac_link"
13833 case "(($ac_try" in
13834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13835 *) ac_try_echo
=$ac_try;;
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_link") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1
>conftest.err
13842 cat conftest.err
>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest
$ac_exeext &&
13848 $as_test_x conftest
$ac_exeext; then
13849 ac_cv_lib_intl_textdomain
=yes
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.
$ac_ext >&5
13854 ac_cv_lib_intl_textdomain
=no
13857 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13858 conftest
$ac_exeext conftest.
$ac_ext
13859 LIBS
=$ac_check_lib_save_LIBS
13861 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13862 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13863 if test $ac_cv_lib_intl_textdomain = yes; then
13865 cat >>confdefs.h
<<\_ACEOF
13866 #define WITH_LIBINTL 1
13872 # checks for system dependent C++ extensions support
13873 case "$ac_sys_system" in
13874 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13875 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13876 cat >conftest.
$ac_ext <<_ACEOF
13879 cat confdefs.h
>>conftest.
$ac_ext
13880 cat >>conftest.
$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 #include "/usr/lpp/xlC/include/load.h"
13886 loadAndInit("", 0, "")
13891 rm -f conftest.
$ac_objext conftest
$ac_exeext
13892 if { (ac_try
="$ac_link"
13893 case "(($ac_try" in
13894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest$ac_exeext &&
13908 $as_test_x conftest$ac_exeext; then
13910 cat >>confdefs.h <<\_ACEOF
13911 #define AIX_GENUINE_CPLUSPLUS 1
13914 { echo "$as_me:$LINENO: result: yes" >&5
13915 echo "${ECHO_T}yes" >&6; }
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 { echo "$as_me:$LINENO: result: no" >&5
13921 echo "${ECHO_T}no" >&6; }
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext;;
13929 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13930 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13931 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13932 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 ac_check_lib_save_LIBS=$LIBS
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (ac_try="$ac_link"
13961 case "(($ac_try" in
13962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13963 *) ac_try_echo
=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1
>conftest.err
13970 cat conftest.err
>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest
$ac_exeext &&
13976 $as_test_x conftest
$ac_exeext; then
13977 ac_cv_lib_nsl_t_open
=yes
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.
$ac_ext >&5
13982 ac_cv_lib_nsl_t_open
=no
13985 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13986 conftest
$ac_exeext conftest.
$ac_ext
13987 LIBS
=$ac_check_lib_save_LIBS
13989 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13990 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13991 if test $ac_cv_lib_nsl_t_open = yes; then
13995 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13996 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13997 if test "${ac_cv_lib_socket_socket+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 ac_check_lib_save_LIBS
=$LIBS
14001 LIBS
="-lsocket $LIBS $LIBS"
14002 cat >conftest.
$ac_ext <<_ACEOF
14005 cat confdefs.h
>>conftest.
$ac_ext
14006 cat >>conftest.
$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14009 /* Override any GCC internal prototype to avoid an error.
14010 Use char because int might match the return type of a GCC
14011 builtin and then its argument prototype would still apply. */
14024 rm -f conftest.
$ac_objext conftest
$ac_exeext
14025 if { (ac_try
="$ac_link"
14026 case "(($ac_try" in
14027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_link") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } && {
14038 test -z "$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14040 } && test -s conftest$ac_exeext &&
14041 $as_test_x conftest$ac_exeext; then
14042 ac_cv_lib_socket_socket=yes
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_cv_lib_socket_socket=no
14050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14051 conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14054 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14055 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14056 if test $ac_cv_lib_socket_socket = yes; then
14057 LIBS="-lsocket $LIBS"
14061 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14062 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14064 # Check whether --with-libs was given.
14065 if test "${with_libs+set}" = set; then
14066 withval=$with_libs;
14067 { echo "$as_me:$LINENO: result: $withval" >&5
14068 echo "${ECHO_T}$withval" >&6; }
14069 LIBS="$withval $LIBS"
14072 { echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6; }
14077 # Check for use of the system libffi library
14078 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14079 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14081 # Check whether --with-system_ffi was given.
14082 if test "${with_system_ffi+set}" = set; then
14083 withval=$with_system_ffi;
14087 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14088 echo "${ECHO_T}$with_system_ffi" >&6; }
14090 # Determine if signalmodule should be used.
14093 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14094 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14096 # Check whether --with-signal-module was given.
14097 if test "${with_signal_module+set}" = set; then
14098 withval=$with_signal_module;
14102 if test -z "$with_signal_module"
14103 then with_signal_module="yes"
14105 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14106 echo "${ECHO_T}$with_signal_module" >&6; }
14108 if test "${with_signal_module}" = "yes"; then
14109 USE_SIGNAL_MODULE=""
14112 USE_SIGNAL_MODULE="#"
14113 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14116 # This is used to generate Setup.config
14118 USE_THREAD_MODULE=""
14120 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14121 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14124 # Check whether --with-dec-threads was given.
14125 if test "${with_dec_threads+set}" = set; then
14126 withval=$with_dec_threads;
14127 { echo "$as_me:$LINENO: result: $withval" >&5
14128 echo "${ECHO_T}$withval" >&6; }
14130 if test "${with_thread+set}" != set; then
14131 with_thread="$withval";
14134 { echo "$as_me:$LINENO: result: no" >&5
14135 echo "${ECHO_T}no" >&6; }
14139 # Templates for things AC_DEFINEd more than once.
14140 # For a single AC_DEFINE, no template is needed.
14148 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14149 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14151 # Check whether --with-threads was given.
14152 if test "${with_threads+set}" = set; then
14153 withval=$with_threads;
14157 # --with-thread is deprecated, but check for it anyway
14159 # Check whether --with-thread was given.
14160 if test "${with_thread+set}" = set; then
14161 withval=$with_thread; with_threads=$with_thread
14165 if test -z "$with_threads"
14166 then with_threads="yes"
14168 { echo "$as_me:$LINENO: result: $with_threads" >&5
14169 echo "${ECHO_T}$with_threads" >&6; }
14172 if test "$with_threads" = "no"
14174 USE_THREAD_MODULE="#"
14175 elif test "$ac_cv_pthread_is_default" = yes
14177 cat >>confdefs.h <<\_ACEOF
14178 #define WITH_THREAD 1
14181 # Defining _REENTRANT on system with POSIX threads should not hurt.
14182 cat >>confdefs.h <<\_ACEOF
14183 #define _REENTRANT 1
14187 THREADOBJ="Python/thread.o"
14188 elif test "$ac_cv_kpthread" = "yes"
14191 if test "$ac_cv_cxx_thread" = "yes"; then
14192 CXX="$CXX -Kpthread"
14194 cat >>confdefs.h <<\_ACEOF
14195 #define WITH_THREAD 1
14199 THREADOBJ="Python/thread.o"
14200 elif test "$ac_cv_kthread" = "yes"
14203 if test "$ac_cv_cxx_thread" = "yes"; then
14204 CXX="$CXX -Kthread"
14206 cat >>confdefs.h <<\_ACEOF
14207 #define WITH_THREAD 1
14211 THREADOBJ="Python/thread.o"
14212 elif test "$ac_cv_pthread" = "yes"
14215 if test "$ac_cv_cxx_thread" = "yes"; then
14216 CXX="$CXX -pthread"
14218 cat >>confdefs.h <<\_ACEOF
14219 #define WITH_THREAD 1
14223 THREADOBJ="Python/thread.o"
14225 if test ! -z "$with_threads" -a -d "$with_threads"
14226 then LDFLAGS="$LDFLAGS -L$with_threads"
14228 if test ! -z "$withval" -a -d "$withval"
14229 then LDFLAGS="$LDFLAGS -L$withval"
14232 # According to the POSIX spec, a pthreads implementation must
14233 # define _POSIX_THREADS in unistd.h. Some apparently don't
14234 # (e.g. gnu pth with pthread emulation)
14235 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14236 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14244 #include <unistd.h>
14245 #ifdef _POSIX_THREADS
14250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14251 $EGREP "yes" >/dev/null 2>&1; then
14252 unistd_defines_pthreads=yes
14254 unistd_defines_pthreads=no
14258 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14259 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14261 cat >>confdefs.h <<\_ACEOF
14262 #define _REENTRANT 1
14265 if test "${ac_cv_header_cthreads_h+set}" = set; then
14266 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14267 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14268 if test "${ac_cv_header_cthreads_h+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14272 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14274 # Is the header compilable?
14275 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14276 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 $ac_includes_default
14284 #include <cthreads.h>
14286 rm -f conftest.$ac_objext
14287 if { (ac_try="$ac_compile"
14288 case "(($ac_try" in
14289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14290 *) ac_try_echo
=$ac_try;;
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_compile") 2>conftest.er1
14295 grep -v '^ *+' conftest.er1
>conftest.err
14297 cat conftest.err
>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } && {
14300 test -z "$ac_c_werror_flag" ||
14301 test ! -s conftest.err
14302 } && test -s conftest.
$ac_objext; then
14303 ac_header_compiler
=yes
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.
$ac_ext >&5
14308 ac_header_compiler
=no
14311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14313 echo "${ECHO_T}$ac_header_compiler" >&6; }
14315 # Is the header present?
14316 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14317 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14318 cat >conftest.
$ac_ext <<_ACEOF
14321 cat confdefs.h
>>conftest.
$ac_ext
14322 cat >>conftest.
$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 #include <cthreads.h>
14326 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14327 case "(($ac_try" in
14328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } >/dev/null && {
14339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14342 ac_header_preproc=yes
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ac_header_preproc=no
14350 rm -f conftest.err conftest.$ac_ext
14351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14352 echo "${ECHO_T}$ac_header_preproc" >&6; }
14354 # So? What about this header?
14355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14357 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14358 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14359 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14360 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14361 ac_header_preproc=yes
14364 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14365 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14367 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14369 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14371 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14372 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14373 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14374 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14375 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14377 ## ------------------------------------------------ ##
14378 ## Report this to http://www.python.org/python-bugs ##
14379 ## ------------------------------------------------ ##
14381 ) | sed "s/^/$as_me: WARNING: /" >&2
14384 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14385 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14386 if test "${ac_cv_header_cthreads_h+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 ac_cv_header_cthreads_h=$ac_header_preproc
14391 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14392 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14395 if test $ac_cv_header_cthreads_h = yes; then
14396 cat >>confdefs.h <<\_ACEOF
14397 #define WITH_THREAD 1
14400 cat >>confdefs.h <<\_ACEOF
14401 #define C_THREADS 1
14405 cat >>confdefs.h <<\_ACEOF
14406 #define HURD_C_THREADS 1
14409 LIBS="$LIBS -lthreads"
14410 THREADOBJ="Python/thread.o"
14413 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14414 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14415 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14416 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14420 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14422 # Is the header compilable?
14423 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14424 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 $ac_includes_default
14432 #include <mach/cthreads.h>
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14438 *) ac_try_echo
=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_compile") 2>conftest.er1
14443 grep -v '^ *+' conftest.er1
>conftest.err
14445 cat conftest.err
>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } && {
14448 test -z "$ac_c_werror_flag" ||
14449 test ! -s conftest.err
14450 } && test -s conftest.
$ac_objext; then
14451 ac_header_compiler
=yes
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.
$ac_ext >&5
14456 ac_header_compiler
=no
14459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14461 echo "${ECHO_T}$ac_header_compiler" >&6; }
14463 # Is the header present?
14464 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14465 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14466 cat >conftest.
$ac_ext <<_ACEOF
14469 cat confdefs.h
>>conftest.
$ac_ext
14470 cat >>conftest.
$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <mach/cthreads.h>
14474 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14475 case "(($ac_try" in
14476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } >/dev/null && {
14487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14488 test ! -s conftest.err
14490 ac_header_preproc=yes
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 ac_header_preproc=no
14498 rm -f conftest.err conftest.$ac_ext
14499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14500 echo "${ECHO_T}$ac_header_preproc" >&6; }
14502 # So? What about this header?
14503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14505 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14506 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14508 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14509 ac_header_preproc=yes
14512 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14513 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14515 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14517 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14519 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14521 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14523 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14525 ## ------------------------------------------------ ##
14526 ## Report this to http://www.python.org/python-bugs ##
14527 ## ------------------------------------------------ ##
14529 ) | sed "s/^/$as_me: WARNING: /" >&2
14532 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14533 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14534 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14539 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14540 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14543 if test $ac_cv_header_mach_cthreads_h = yes; then
14544 cat >>confdefs.h <<\_ACEOF
14545 #define WITH_THREAD 1
14548 cat >>confdefs.h <<\_ACEOF
14549 #define C_THREADS 1
14553 cat >>confdefs.h <<\_ACEOF
14554 #define MACH_C_THREADS 1
14557 THREADOBJ="Python/thread.o"
14560 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14561 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14563 # Check whether --with-pth was given.
14564 if test "${with_pth+set}" = set; then
14565 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14566 echo "${ECHO_T}$withval" >&6; }
14567 cat >>confdefs.h <<\_ACEOF
14568 #define WITH_THREAD 1
14572 cat >>confdefs.h <<\_ACEOF
14577 THREADOBJ="Python/thread.o"
14579 { echo "$as_me:$LINENO: result: no" >&5
14580 echo "${ECHO_T}no" >&6; }
14582 # Just looking for pthread_create in libpthread is not enough:
14583 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14584 # So we really have to include pthread.h, and then link.
14586 LIBS="$LIBS -lpthread"
14587 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14588 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14589 cat >conftest.$ac_ext <<_ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 #include <pthread.h>
14597 void * start_routine (void *arg) { exit (0); }
14602 pthread_create (NULL, NULL, start_routine, NULL)
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (ac_try="$ac_link"
14609 case "(($ac_try" in
14610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14611 *) ac_try_echo
=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_link") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1
>conftest.err
14618 cat conftest.err
>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } && {
14621 test -z "$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14623 } && test -s conftest
$ac_exeext &&
14624 $as_test_x conftest
$ac_exeext; then
14626 { echo "$as_me:$LINENO: result: yes" >&5
14627 echo "${ECHO_T}yes" >&6; }
14628 cat >>confdefs.h
<<\_ACEOF
14629 #define WITH_THREAD 1
14633 THREADOBJ
="Python/thread.o"
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.
$ac_ext >&5
14640 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14641 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14642 if test "${ac_cv_func_pthread_detach+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 cat >conftest.
$ac_ext <<_ACEOF
14648 cat confdefs.h
>>conftest.
$ac_ext
14649 cat >>conftest.
$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14653 #define pthread_detach innocuous_pthread_detach
14655 /* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char pthread_detach (); below.
14657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658 <limits.h> exists even on freestanding compilers. */
14661 # include <limits.h>
14663 # include <assert.h>
14666 #undef pthread_detach
14668 /* Override any GCC internal prototype to avoid an error.
14669 Use char because int might match the return type of a GCC
14670 builtin and then its argument prototype would still apply. */
14674 char pthread_detach ();
14675 /* The GNU C library defines this for functions which it implements
14676 to always fail with ENOSYS. Some functions are actually named
14677 something starting with __ and the normal name is an alias. */
14678 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14685 return pthread_detach ();
14690 rm -f conftest.
$ac_objext conftest
$ac_exeext
14691 if { (ac_try
="$ac_link"
14692 case "(($ac_try" in
14693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_link") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext &&
14707 $as_test_x conftest$ac_exeext; then
14708 ac_cv_func_pthread_detach=yes
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_cv_func_pthread_detach=no
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717 conftest$ac_exeext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14720 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14721 if test $ac_cv_func_pthread_detach = yes; then
14722 cat >>confdefs.h <<\_ACEOF
14723 #define WITH_THREAD 1
14727 THREADOBJ="Python/thread.o"
14730 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14731 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14732 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14733 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14737 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14739 # Is the header compilable?
14740 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14741 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 $ac_includes_default
14749 #include <atheos/threads.h>
14751 rm -f conftest.$ac_objext
14752 if { (ac_try="$ac_compile"
14753 case "(($ac_try" in
14754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14755 *) ac_try_echo
=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1
>conftest.err
14762 cat conftest.err
>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest.
$ac_objext; then
14768 ac_header_compiler
=yes
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.
$ac_ext >&5
14773 ac_header_compiler
=no
14776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14778 echo "${ECHO_T}$ac_header_compiler" >&6; }
14780 # Is the header present?
14781 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14782 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14783 cat >conftest.
$ac_ext <<_ACEOF
14786 cat confdefs.h
>>conftest.
$ac_ext
14787 cat >>conftest.
$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <atheos/threads.h>
14791 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14792 case "(($ac_try" in
14793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14799 grep -v '^ *+' conftest.er1 >conftest.err
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null && {
14804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805 test ! -s conftest.err
14807 ac_header_preproc=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_header_preproc=no
14815 rm -f conftest.err conftest.$ac_ext
14816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 echo "${ECHO_T}$ac_header_preproc" >&6; }
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14823 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14825 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14829 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14830 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14832 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14834 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14836 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14838 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14840 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14842 ## ------------------------------------------------ ##
14843 ## Report this to http://www.python.org/python-bugs ##
14844 ## ------------------------------------------------ ##
14846 ) | sed "s/^/$as_me: WARNING: /" >&2
14849 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14850 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14851 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 ac_cv_header_atheos_threads_h=$ac_header_preproc
14856 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14857 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14860 if test $ac_cv_header_atheos_threads_h = yes; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define WITH_THREAD 1
14866 cat >>confdefs.h <<\_ACEOF
14867 #define ATHEOS_THREADS 1
14870 THREADOBJ="Python/thread.o"
14873 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14874 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14875 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lpthreads $LIBS"
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14893 char pthread_create ();
14897 return pthread_create ();
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (ac_try="$ac_link"
14904 case "(($ac_try" in
14905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14906 *) ac_try_echo
=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_link") 2>conftest.er1
14911 grep -v '^ *+' conftest.er1
>conftest.err
14913 cat conftest.err
>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest
$ac_exeext &&
14919 $as_test_x conftest
$ac_exeext; then
14920 ac_cv_lib_pthreads_pthread_create
=yes
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.
$ac_ext >&5
14925 ac_cv_lib_pthreads_pthread_create
=no
14928 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14929 conftest
$ac_exeext conftest.
$ac_ext
14930 LIBS
=$ac_check_lib_save_LIBS
14932 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14933 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14934 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14935 cat >>confdefs.h
<<\_ACEOF
14936 #define WITH_THREAD 1
14940 LIBS
="$LIBS -lpthreads"
14941 THREADOBJ
="Python/thread.o"
14944 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14945 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14946 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 ac_check_lib_save_LIBS
=$LIBS
14951 cat >conftest.
$ac_ext <<_ACEOF
14954 cat confdefs.h
>>conftest.
$ac_ext
14955 cat >>conftest.
$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14958 /* Override any GCC internal prototype to avoid an error.
14959 Use char because int might match the return type of a GCC
14960 builtin and then its argument prototype would still apply. */
14964 char pthread_create ();
14968 return pthread_create ();
14973 rm -f conftest.
$ac_objext conftest
$ac_exeext
14974 if { (ac_try
="$ac_link"
14975 case "(($ac_try" in
14976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_link") 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest$ac_exeext &&
14990 $as_test_x conftest$ac_exeext; then
14991 ac_cv_lib_c_r_pthread_create=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_lib_c_r_pthread_create=no
14999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_check_lib_save_LIBS
15003 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15004 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15005 if test $ac_cv_lib_c_r_pthread_create = yes; then
15006 cat >>confdefs.h <<\_ACEOF
15007 #define WITH_THREAD 1
15012 THREADOBJ="Python/thread.o"
15015 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15016 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15017 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-lpthread $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15035 char __pthread_create_system ();
15039 return __pthread_create_system ();
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15048 *) ac_try_echo
=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1
>conftest.err
15055 cat conftest.err
>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest
$ac_exeext &&
15061 $as_test_x conftest
$ac_exeext; then
15062 ac_cv_lib_pthread___pthread_create_system
=yes
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.
$ac_ext >&5
15067 ac_cv_lib_pthread___pthread_create_system
=no
15070 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15071 conftest
$ac_exeext conftest.
$ac_ext
15072 LIBS
=$ac_check_lib_save_LIBS
15074 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15075 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15076 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15077 cat >>confdefs.h
<<\_ACEOF
15078 #define WITH_THREAD 1
15082 LIBS
="$LIBS -lpthread"
15083 THREADOBJ
="Python/thread.o"
15086 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15087 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15088 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 ac_check_lib_save_LIBS
=$LIBS
15093 cat >conftest.
$ac_ext <<_ACEOF
15096 cat confdefs.h
>>conftest.
$ac_ext
15097 cat >>conftest.
$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15100 /* Override any GCC internal prototype to avoid an error.
15101 Use char because int might match the return type of a GCC
15102 builtin and then its argument prototype would still apply. */
15106 char pthread_create ();
15110 return pthread_create ();
15115 rm -f conftest.
$ac_objext conftest
$ac_exeext
15116 if { (ac_try
="$ac_link"
15117 case "(($ac_try" in
15118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_link") 2>conftest.er1
15124 grep -v '^ *+' conftest.er1 >conftest.err
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && {
15129 test -z "$ac_c_werror_flag" ||
15130 test ! -s conftest.err
15131 } && test -s conftest$ac_exeext &&
15132 $as_test_x conftest$ac_exeext; then
15133 ac_cv_lib_cma_pthread_create=yes
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_cv_lib_cma_pthread_create=no
15141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15142 conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS
15145 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15146 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15147 if test $ac_cv_lib_cma_pthread_create = yes; then
15148 cat >>confdefs.h <<\_ACEOF
15149 #define WITH_THREAD 1
15154 THREADOBJ="Python/thread.o"
15157 USE_THREAD_MODULE="#"
15174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15175 conftest$ac_exeext conftest.$ac_ext
15185 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15186 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15187 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 ac_check_lib_save_LIBS=$LIBS
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply. */
15209 return usconfig ();
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (ac_try="$ac_link"
15216 case "(($ac_try" in
15217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15218 *) ac_try_echo
=$ac_try;;
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_link") 2>conftest.er1
15223 grep -v '^ *+' conftest.er1
>conftest.err
15225 cat conftest.err
>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest
$ac_exeext &&
15231 $as_test_x conftest
$ac_exeext; then
15232 ac_cv_lib_mpc_usconfig
=yes
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.
$ac_ext >&5
15237 ac_cv_lib_mpc_usconfig
=no
15240 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15241 conftest
$ac_exeext conftest.
$ac_ext
15242 LIBS
=$ac_check_lib_save_LIBS
15244 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15245 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15246 if test $ac_cv_lib_mpc_usconfig = yes; then
15247 cat >>confdefs.h
<<\_ACEOF
15248 #define WITH_THREAD 1
15252 THREADOBJ
="Python/thread.o"
15253 USE_THREAD_MODULE
=""
15257 if test "$posix_threads" != "yes"; then
15258 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15259 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15260 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 ac_check_lib_save_LIBS
=$LIBS
15264 LIBS
="-lthread $LIBS"
15265 cat >conftest.
$ac_ext <<_ACEOF
15268 cat confdefs.h
>>conftest.
$ac_ext
15269 cat >>conftest.
$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15278 char thr_create ();
15282 return thr_create ();
15287 rm -f conftest.
$ac_objext conftest
$ac_exeext
15288 if { (ac_try
="$ac_link"
15289 case "(($ac_try" in
15290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>conftest.er1
15296 grep -v '^ *+' conftest.er1 >conftest.err
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } && {
15301 test -z "$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 } && test -s conftest$ac_exeext &&
15304 $as_test_x conftest$ac_exeext; then
15305 ac_cv_lib_thread_thr_create=yes
15307 echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.$ac_ext >&5
15310 ac_cv_lib_thread_thr_create=no
15313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15314 conftest$ac_exeext conftest.$ac_ext
15315 LIBS=$ac_check_lib_save_LIBS
15317 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15318 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15319 if test $ac_cv_lib_thread_thr_create = yes; then
15320 cat >>confdefs.h <<\_ACEOF
15321 #define WITH_THREAD 1
15324 LIBS="$LIBS -lthread"
15325 THREADOBJ="Python/thread.o"
15326 USE_THREAD_MODULE=""
15331 if test "$USE_THREAD_MODULE" != "#"
15333 # If the above checks didn't disable threads, (at least) OSF1
15334 # needs this '-threads' argument during linking.
15335 case $ac_sys_system in
15336 OSF1) LDLAST=-threads;;
15341 if test "$posix_threads" = "yes"; then
15342 if test "$unistd_defines_pthreads" = "no"; then
15344 cat >>confdefs.h <<\_ACEOF
15345 #define _POSIX_THREADS 1
15350 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15351 case $ac_sys_system/$ac_sys_release in
15353 cat >>confdefs.h <<\_ACEOF
15354 #define HAVE_PTHREAD_DESTRUCTOR 1
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15372 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15373 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15374 if test "${ac_cv_pthread_system_supported+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 if test "$cross_compiling" = yes; then
15378 ac_cv_pthread_system_supported=no
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <pthread.h>
15387 void *foo(void *parm) {
15391 pthread_attr_t attr;
15393 if (pthread_attr_init(&attr)) exit(-1);
15394 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15395 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15399 rm -f conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15403 *) ac_try_echo
=$ac_try;;
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_link") 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15410 { (case "(($ac_try" in
15411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_pthread_system_supported=yes
15421 echo "$as_me: program exited with status $ac_status" >&5
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ( exit $ac_status )
15426 ac_cv_pthread_system_supported=no
15428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15436 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15437 if test "$ac_cv_pthread_system_supported" = "yes"; then
15439 cat >>confdefs.h <<\_ACEOF
15440 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15445 for ac_func in pthread_sigmask
15447 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 cat >conftest.$ac_ext <<_ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15461 #define $ac_func innocuous_$ac_func
15463 /* System header to define __stub macros and hopefully few prototypes,
15464 which can conflict with char $ac_func (); below.
15465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15466 <limits.h> exists even on freestanding compilers. */
15469 # include <limits.h>
15471 # include <assert.h>
15476 /* Override any GCC internal prototype to avoid an error.
15477 Use char because int might match the return type of a GCC
15478 builtin and then its argument prototype would still apply. */
15483 /* The GNU C library defines this for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486 #if defined __stub_$ac_func || defined __stub___$ac_func
15493 return $ac_func ();
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15502 *) ac_try_echo
=$ac_try;;
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15507 grep -v '^ *+' conftest.er1
>conftest.err
15509 cat conftest.err
>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } && {
15512 test -z "$ac_c_werror_flag" ||
15513 test ! -s conftest.err
15514 } && test -s conftest
$ac_exeext &&
15515 $as_test_x conftest
$ac_exeext; then
15516 eval "$as_ac_var=yes"
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.
$ac_ext >&5
15521 eval "$as_ac_var=no"
15524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15525 conftest
$ac_exeext conftest.
$ac_ext
15527 ac_res
=`eval echo '${'$as_ac_var'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15530 if test `eval echo '${'$as_ac_var'}'` = yes; then
15531 cat >>confdefs.h
<<_ACEOF
15532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 case $ac_sys_system in
15537 cat >>confdefs.h
<<\_ACEOF
15538 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15549 # Check for enable-ipv6
15552 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15553 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15554 # Check whether --enable-ipv6 was given.
15555 if test "${enable_ipv6+set}" = set; then
15556 enableval
=$enable_ipv6; case "$enableval" in
15558 { echo "$as_me:$LINENO: result: no" >&5
15559 echo "${ECHO_T}no" >&6; }
15562 *) { echo "$as_me:$LINENO: result: yes" >&5
15563 echo "${ECHO_T}yes" >&6; }
15564 cat >>confdefs.h
<<\_ACEOF
15565 #define ENABLE_IPV6 1
15573 if test "$cross_compiling" = yes; then
15574 { echo "$as_me:$LINENO: result: no" >&5
15575 echo "${ECHO_T}no" >&6; }
15579 cat >conftest.
$ac_ext <<_ACEOF
15582 cat confdefs.h
>>conftest.
$ac_ext
15583 cat >>conftest.
$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 /* AF_INET6 available check */
15586 #include <sys/types.h>
15587 #include <sys/socket.h>
15590 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15597 rm -f conftest
$ac_exeext
15598 if { (ac_try
="$ac_link"
15599 case "(($ac_try" in
15600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_link") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15610 *) ac_try_echo
=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 { echo "$as_me:$LINENO: result: yes" >&5
15618 echo "${ECHO_T}yes" >&6; }
15621 echo "$as_me: program exited with status $ac_status" >&5
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.
$ac_ext >&5
15625 ( exit $ac_status )
15626 { echo "$as_me:$LINENO: result: no" >&5
15627 echo "${ECHO_T}no" >&6; }
15630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15635 if test "$ipv6" = "yes"; then
15636 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15637 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15638 cat >conftest.
$ac_ext <<_ACEOF
15641 cat confdefs.h
>>conftest.
$ac_ext
15642 cat >>conftest.
$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <sys/types.h>
15645 #include <netinet/in.h>
15649 struct sockaddr_in6 x;
15655 rm -f conftest.
$ac_objext
15656 if { (ac_try
="$ac_compile"
15657 case "(($ac_try" in
15658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_compile") 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest.$ac_objext; then
15672 { echo "$as_me:$LINENO: result: yes" >&5
15673 echo "${ECHO_T}yes" >&6; }
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 { echo "$as_me:$LINENO: result: no" >&5
15680 echo "${ECHO_T}no" >&6; }
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 if test "$ipv6" = "yes"; then
15688 cat >>confdefs.h <<\_ACEOF
15689 #define ENABLE_IPV6 1
15701 if test "$ipv6" = "yes"; then
15702 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15703 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15704 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15708 cat >conftest.$ac_ext <<_ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15715 #include <netinet/in.h>
15716 #ifdef IPV6_INRIA_VERSION
15720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15721 $EGREP "yes" >/dev/null 2>&1; then
15728 cat >conftest.$ac_ext <<_ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15735 #include <netinet/in.h>
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741 $EGREP "yes" >/dev/null 2>&1; then
15744 ipv6libdir=/usr/local/v6/lib
15751 cat >conftest.$ac_ext <<_ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15758 #include <features.h>
15759 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "yes" >/dev/null 2>&1; then
15772 if test -d /usr/inet6; then
15775 ipv6libdir=/usr/inet6/lib
15776 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15780 if test -f /etc/netconfig; then
15781 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 #include <sys/param.h>
15796 #ifdef _TOSHIBA_INET6
15800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15801 $EGREP "yes" >/dev/null 2>&1; then
15804 ipv6libdir=/usr/local/v6/lib
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15817 #include </usr/local/v6/include/sys/v6config.h>
15822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15823 $EGREP "yes" >/dev/null 2>&1; then
15826 ipv6libdir=/usr/local/v6/lib;
15827 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15833 cat >conftest.$ac_ext <<_ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15840 #include <sys/param.h>
15841 #ifdef _ZETA_MINAMI_INET6
15845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15846 $EGREP "yes" >/dev/null 2>&1; then
15849 ipv6libdir=/usr/local/v6/lib
15855 if test "$ipv6type" != "unknown"; then
15859 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15860 echo "${ECHO_T}$ipv6type" >&6; }
15863 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15864 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15865 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15866 echo "using lib$ipv6lib"
15868 if test $ipv6trylibc = "yes"; then
15871 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15872 echo "You need to fetch lib$ipv6lib.a from appropriate"
15873 echo 'ipv6 kit and compile beforehand.'
15879 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15880 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 #include <Carbon/Carbon.h>
15891 FSIORefNum fRef = 0
15896 rm -f conftest.$ac_objext
15897 if { (ac_try="$ac_compile"
15898 case "(($ac_try" in
15899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15900 *) ac_try_echo
=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_compile") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1
>conftest.err
15907 cat conftest.err
>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && {
15910 test -z "$ac_c_werror_flag" ||
15911 test ! -s conftest.err
15912 } && test -s conftest.
$ac_objext; then
15914 cat >>confdefs.h
<<\_ACEOF
15915 #define HAVE_OSX105_SDK 1
15918 { echo "$as_me:$LINENO: result: yes" >&5
15919 echo "${ECHO_T}yes" >&6; }
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.
$ac_ext >&5
15924 { echo "$as_me:$LINENO: result: no" >&5
15925 echo "${ECHO_T}no" >&6; }
15929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15931 # Check for --with-doc-strings
15932 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15933 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15935 # Check whether --with-doc-strings was given.
15936 if test "${with_doc_strings+set}" = set; then
15937 withval
=$with_doc_strings;
15941 if test -z "$with_doc_strings"
15942 then with_doc_strings
="yes"
15944 if test "$with_doc_strings" != "no"
15947 cat >>confdefs.h
<<\_ACEOF
15948 #define WITH_DOC_STRINGS 1
15952 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15953 echo "${ECHO_T}$with_doc_strings" >&6; }
15955 # Check for Python-specific malloc support
15956 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15957 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15959 # Check whether --with-tsc was given.
15960 if test "${with_tsc+set}" = set; then
15962 if test "$withval" != no
15965 cat >>confdefs.h
<<\_ACEOF
15969 { echo "$as_me:$LINENO: result: yes" >&5
15970 echo "${ECHO_T}yes" >&6; }
15971 else { echo "$as_me:$LINENO: result: no" >&5
15972 echo "${ECHO_T}no" >&6; }
15975 { echo "$as_me:$LINENO: result: no" >&5
15976 echo "${ECHO_T}no" >&6; }
15980 # Check for Python-specific malloc support
15981 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15982 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15984 # Check whether --with-pymalloc was given.
15985 if test "${with_pymalloc+set}" = set; then
15986 withval
=$with_pymalloc;
15990 if test -z "$with_pymalloc"
15991 then with_pymalloc
="yes"
15993 if test "$with_pymalloc" != "no"
15996 cat >>confdefs.h
<<\_ACEOF
15997 #define WITH_PYMALLOC 1
16001 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16002 echo "${ECHO_T}$with_pymalloc" >&6; }
16004 # Check for --with-wctype-functions
16005 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16006 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16008 # Check whether --with-wctype-functions was given.
16009 if test "${with_wctype_functions+set}" = set; then
16010 withval
=$with_wctype_functions;
16011 if test "$withval" != no
16014 cat >>confdefs.h
<<\_ACEOF
16015 #define WANT_WCTYPE_FUNCTIONS 1
16018 { echo "$as_me:$LINENO: result: yes" >&5
16019 echo "${ECHO_T}yes" >&6; }
16020 else { echo "$as_me:$LINENO: result: no" >&5
16021 echo "${ECHO_T}no" >&6; }
16024 { echo "$as_me:$LINENO: result: no" >&5
16025 echo "${ECHO_T}no" >&6; }
16029 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16033 # the dlopen() function means we might want to use dynload_shlib.o. some
16034 # platforms, such as AIX, have dlopen(), but don't want to use it.
16036 for ac_func
in dlopen
16038 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16041 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 cat >conftest.
$ac_ext <<_ACEOF
16047 cat confdefs.h
>>conftest.
$ac_ext
16048 cat >>conftest.
$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16052 #define $ac_func innocuous_$ac_func
16054 /* System header to define __stub macros and hopefully few prototypes,
16055 which can conflict with char $ac_func (); below.
16056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16057 <limits.h> exists even on freestanding compilers. */
16060 # include <limits.h>
16062 # include <assert.h>
16067 /* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
16074 /* The GNU C library defines this for functions which it implements
16075 to always fail with ENOSYS. Some functions are actually named
16076 something starting with __ and the normal name is an alias. */
16077 #if defined __stub_$ac_func || defined __stub___$ac_func
16084 return $ac_func ();
16089 rm -f conftest.
$ac_objext conftest
$ac_exeext
16090 if { (ac_try
="$ac_link"
16091 case "(($ac_try" in
16092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_link") 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } && {
16103 test -z "$ac_c_werror_flag" ||
16104 test ! -s conftest.err
16105 } && test -s conftest$ac_exeext &&
16106 $as_test_x conftest$ac_exeext; then
16107 eval "$as_ac_var=yes"
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 eval "$as_ac_var=no"
16115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16116 conftest$ac_exeext conftest.$ac_ext
16118 ac_res=`eval echo '${'$as_ac_var'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16121 if test `eval echo '${'$as_ac_var'}'` = yes; then
16122 cat >>confdefs.h <<_ACEOF
16123 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16130 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16131 # loading of modules.
16133 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16134 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16135 if test -z "$DYNLOADFILE"
16137 case $ac_sys_system/$ac_sys_release in
16138 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16139 if test "$ac_cv_func_dlopen" = yes
16140 then DYNLOADFILE="dynload_shlib.o"
16141 else DYNLOADFILE="dynload_aix.o"
16144 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16145 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16146 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16147 atheos*) DYNLOADFILE="dynload_atheos.o";;
16149 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16150 # out any dynamic loading
16151 if test "$ac_cv_func_dlopen" = yes
16152 then DYNLOADFILE="dynload_shlib.o"
16153 else DYNLOADFILE="dynload_stub.o"
16158 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16159 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16160 if test "$DYNLOADFILE" != "dynload_stub.o"
16163 cat >>confdefs.h <<\_ACEOF
16164 #define HAVE_DYNAMIC_LOADING 1
16169 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16172 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16173 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16174 if test -z "$MACHDEP_OBJS"
16176 MACHDEP_OBJS=$extra_machdep_objs
16178 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16180 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16181 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16183 # checks for library functions
16271 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16272 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16273 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16274 getpriority getpwent getspnam getspent getsid getwd \
16275 kill killpg lchmod lchown lstat mkfifo mknod mktime \
16276 mremap nice pathconf pause plock poll pthread_init \
16277 putenv readlink realpath \
16278 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16280 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16281 sigaction siginterrupt sigrelse strftime strlcpy \
16282 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16283 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty
16285 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 cat >conftest.$ac_ext <<_ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16299 #define $ac_func innocuous_$ac_func
16301 /* System header to define __stub macros and hopefully few prototypes,
16302 which can conflict with char $ac_func (); below.
16303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16304 <limits.h> exists even on freestanding compilers. */
16307 # include <limits.h>
16309 # include <assert.h>
16314 /* Override any GCC internal prototype to avoid an error.
16315 Use char because int might match the return type of a GCC
16316 builtin and then its argument prototype would still apply. */
16321 /* The GNU C library defines this for functions which it implements
16322 to always fail with ENOSYS. Some functions are actually named
16323 something starting with __ and the normal name is an alias. */
16324 #if defined __stub_$ac_func || defined __stub___$ac_func
16331 return $ac_func ();
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (ac_try="$ac_link"
16338 case "(($ac_try" in
16339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16340 *) ac_try_echo
=$ac_try;;
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1
>conftest.err
16347 cat conftest.err
>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest
$ac_exeext &&
16353 $as_test_x conftest
$ac_exeext; then
16354 eval "$as_ac_var=yes"
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.
$ac_ext >&5
16359 eval "$as_ac_var=no"
16362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16363 conftest
$ac_exeext conftest.
$ac_ext
16365 ac_res
=`eval echo '${'$as_ac_var'}'`
16366 { echo "$as_me:$LINENO: result: $ac_res" >&5
16367 echo "${ECHO_T}$ac_res" >&6; }
16368 if test `eval echo '${'$as_ac_var'}'` = yes; then
16369 cat >>confdefs.h
<<_ACEOF
16370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16377 # For some functions, having a definition is not sufficient, since
16378 # we want to take their address.
16379 { echo "$as_me:$LINENO: checking for chroot" >&5
16380 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16381 cat >conftest.
$ac_ext <<_ACEOF
16384 cat confdefs.h
>>conftest.
$ac_ext
16385 cat >>conftest.
$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 #include <unistd.h>
16396 rm -f conftest.
$ac_objext
16397 if { (ac_try
="$ac_compile"
16398 case "(($ac_try" in
16399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_compile") 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest.$ac_objext; then
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_CHROOT 1
16418 { echo "$as_me:$LINENO: result: yes" >&5
16419 echo "${ECHO_T}yes" >&6; }
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 { echo "$as_me:$LINENO: result: no" >&5
16425 echo "${ECHO_T}no" >&6; }
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: checking for link" >&5
16431 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 #include <unistd.h>
16447 rm -f conftest.$ac_objext
16448 if { (ac_try="$ac_compile"
16449 case "(($ac_try" in
16450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16451 *) ac_try_echo
=$ac_try;;
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_compile") 2>conftest.er1
16456 grep -v '^ *+' conftest.er1
>conftest.err
16458 cat conftest.err
>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } && {
16461 test -z "$ac_c_werror_flag" ||
16462 test ! -s conftest.err
16463 } && test -s conftest.
$ac_objext; then
16465 cat >>confdefs.h
<<\_ACEOF
16466 #define HAVE_LINK 1
16469 { echo "$as_me:$LINENO: result: yes" >&5
16470 echo "${ECHO_T}yes" >&6; }
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.
$ac_ext >&5
16475 { echo "$as_me:$LINENO: result: no" >&5
16476 echo "${ECHO_T}no" >&6; }
16480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16481 { echo "$as_me:$LINENO: checking for symlink" >&5
16482 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16483 cat >conftest.
$ac_ext <<_ACEOF
16486 cat confdefs.h
>>conftest.
$ac_ext
16487 cat >>conftest.
$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <unistd.h>
16498 rm -f conftest.
$ac_objext
16499 if { (ac_try
="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest.$ac_objext; then
16516 cat >>confdefs.h <<\_ACEOF
16517 #define HAVE_SYMLINK 1
16520 { echo "$as_me:$LINENO: result: yes" >&5
16521 echo "${ECHO_T}yes" >&6; }
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 { echo "$as_me:$LINENO: result: no" >&5
16527 echo "${ECHO_T}no" >&6; }
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 { echo "$as_me:$LINENO: checking for fchdir" >&5
16533 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16534 cat >conftest.$ac_ext <<_ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 #include <unistd.h>
16549 rm -f conftest.$ac_objext
16550 if { (ac_try="$ac_compile"
16551 case "(($ac_try" in
16552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16553 *) ac_try_echo
=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_compile") 2>conftest.er1
16558 grep -v '^ *+' conftest.er1
>conftest.err
16560 cat conftest.err
>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest.
$ac_objext; then
16567 cat >>confdefs.h
<<\_ACEOF
16568 #define HAVE_FCHDIR 1
16571 { echo "$as_me:$LINENO: result: yes" >&5
16572 echo "${ECHO_T}yes" >&6; }
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.
$ac_ext >&5
16577 { echo "$as_me:$LINENO: result: no" >&5
16578 echo "${ECHO_T}no" >&6; }
16582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16583 { echo "$as_me:$LINENO: checking for fsync" >&5
16584 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16585 cat >conftest.
$ac_ext <<_ACEOF
16588 cat confdefs.h
>>conftest.
$ac_ext
16589 cat >>conftest.
$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 #include <unistd.h>
16600 rm -f conftest.
$ac_objext
16601 if { (ac_try
="$ac_compile"
16602 case "(($ac_try" in
16603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_compile") 2>conftest.er1
16609 grep -v '^ *+' conftest.er1 >conftest.err
16611 cat conftest.err >&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } && {
16614 test -z "$ac_c_werror_flag" ||
16615 test ! -s conftest.err
16616 } && test -s conftest.$ac_objext; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_FSYNC 1
16622 { echo "$as_me:$LINENO: result: yes" >&5
16623 echo "${ECHO_T}yes" >&6; }
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 { echo "$as_me:$LINENO: result: no" >&5
16629 echo "${ECHO_T}no" >&6; }
16633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16635 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16636 cat >conftest.$ac_ext <<_ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 #include <unistd.h>
16651 rm -f conftest.$ac_objext
16652 if { (ac_try="$ac_compile"
16653 case "(($ac_try" in
16654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16655 *) ac_try_echo
=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_compile") 2>conftest.er1
16660 grep -v '^ *+' conftest.er1
>conftest.err
16662 cat conftest.err
>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && {
16665 test -z "$ac_c_werror_flag" ||
16666 test ! -s conftest.err
16667 } && test -s conftest.
$ac_objext; then
16669 cat >>confdefs.h
<<\_ACEOF
16670 #define HAVE_FDATASYNC 1
16673 { echo "$as_me:$LINENO: result: yes" >&5
16674 echo "${ECHO_T}yes" >&6; }
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.
$ac_ext >&5
16679 { echo "$as_me:$LINENO: result: no" >&5
16680 echo "${ECHO_T}no" >&6; }
16684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16685 { echo "$as_me:$LINENO: checking for epoll" >&5
16686 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16687 cat >conftest.
$ac_ext <<_ACEOF
16690 cat confdefs.h
>>conftest.
$ac_ext
16691 cat >>conftest.
$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <sys/epoll.h>
16697 void *x=epoll_create
16702 rm -f conftest.
$ac_objext
16703 if { (ac_try
="$ac_compile"
16704 case "(($ac_try" in
16705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } && {
16716 test -z "$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16718 } && test -s conftest.$ac_objext; then
16720 cat >>confdefs.h <<\_ACEOF
16721 #define HAVE_EPOLL 1
16724 { echo "$as_me:$LINENO: result: yes" >&5
16725 echo "${ECHO_T}yes" >&6; }
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 { echo "$as_me:$LINENO: result: no" >&5
16731 echo "${ECHO_T}no" >&6; }
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 { echo "$as_me:$LINENO: checking for kqueue" >&5
16737 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16745 #include <sys/types.h>
16746 #include <sys/event.h>
16756 rm -f conftest.$ac_objext
16757 if { (ac_try="$ac_compile"
16758 case "(($ac_try" in
16759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16760 *) ac_try_echo
=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_compile") 2>conftest.er1
16765 grep -v '^ *+' conftest.er1
>conftest.err
16767 cat conftest.err
>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest.
$ac_objext; then
16774 cat >>confdefs.h
<<\_ACEOF
16775 #define HAVE_KQUEUE 1
16778 { echo "$as_me:$LINENO: result: yes" >&5
16779 echo "${ECHO_T}yes" >&6; }
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.
$ac_ext >&5
16784 { echo "$as_me:$LINENO: result: no" >&5
16785 echo "${ECHO_T}no" >&6; }
16789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16790 # On some systems (eg. FreeBSD 5), we would find a definition of the
16791 # functions ctermid_r, setgroups in the library, but no prototype
16792 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16793 # address to avoid compiler warnings and potential miscompilations
16794 # because of the missing prototypes.
16796 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16797 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16798 cat >conftest.
$ac_ext <<_ACEOF
16801 cat confdefs.h
>>conftest.
$ac_ext
16802 cat >>conftest.
$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16805 #include "confdefs.h"
16811 void* p = ctermid_r
16816 rm -f conftest.
$ac_objext
16817 if { (ac_try
="$ac_compile"
16818 case "(($ac_try" in
16819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_compile") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest.$ac_objext; then
16834 cat >>confdefs.h <<\_ACEOF
16835 #define HAVE_CTERMID_R 1
16838 { echo "$as_me:$LINENO: result: yes" >&5
16839 echo "${ECHO_T}yes" >&6; }
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 { echo "$as_me:$LINENO: result: no" >&5
16845 echo "${ECHO_T}no" >&6; }
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 { echo "$as_me:$LINENO: checking for flock" >&5
16852 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16860 #include "confdefs.h"
16861 #include <sys/file.h>
16871 rm -f conftest.$ac_objext
16872 if { (ac_try="$ac_compile"
16873 case "(($ac_try" in
16874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16875 *) ac_try_echo
=$ac_try;;
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_compile") 2>conftest.er1
16880 grep -v '^ *+' conftest.er1
>conftest.err
16882 cat conftest.err
>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && {
16885 test -z "$ac_c_werror_flag" ||
16886 test ! -s conftest.err
16887 } && test -s conftest.
$ac_objext; then
16889 cat >>confdefs.h
<<\_ACEOF
16890 #define HAVE_FLOCK 1
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.
$ac_ext >&5
16899 { echo "$as_me:$LINENO: result: no" >&5
16900 echo "${ECHO_T}no" >&6; }
16904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16906 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16907 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16908 cat >conftest.
$ac_ext <<_ACEOF
16911 cat confdefs.h
>>conftest.
$ac_ext
16912 cat >>conftest.
$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16915 #include "confdefs.h"
16916 #include <unistd.h>
16921 void* p = getpagesize
16926 rm -f conftest.
$ac_objext
16927 if { (ac_try
="$ac_compile"
16928 case "(($ac_try" in
16929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_compile") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } && {
16940 test -z "$ac_c_werror_flag" ||
16941 test ! -s conftest.err
16942 } && test -s conftest.$ac_objext; then
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE_GETPAGESIZE 1
16948 { echo "$as_me:$LINENO: result: yes" >&5
16949 echo "${ECHO_T}yes" >&6; }
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 { echo "$as_me:$LINENO: result: no" >&5
16955 echo "${ECHO_T}no" >&6; }
16959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 for ac_prog in true
16963 # Extract the first word of "$ac_prog", so it can be a program name with args.
16964 set dummy $ac_prog; ac_word=$2
16965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16967 if test "${ac_cv_prog_TRUE+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 if test -n "$TRUE"; then
16971 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16974 for as_dir in $PATH
16977 test -z "$as_dir" && as_dir=.
16978 for ac_exec_ext in '' $ac_executable_extensions; do
16979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16980 ac_cv_prog_TRUE="$ac_prog"
16981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16990 TRUE=$ac_cv_prog_TRUE
16991 if test -n "$TRUE"; then
16992 { echo "$as_me:$LINENO: result: $TRUE" >&5
16993 echo "${ECHO_T}$TRUE" >&6; }
16995 { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
17000 test -n "$TRUE" && break
17002 test -n "$TRUE" || TRUE="/bin/true"
17005 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17006 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17007 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 ac_check_lib_save_LIBS=$LIBS
17012 cat >conftest.$ac_ext <<_ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17019 /* Override any GCC internal prototype to avoid an error.
17020 Use char because int might match the return type of a GCC
17021 builtin and then its argument prototype would still apply. */
17029 return inet_aton ();
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17038 *) ac_try_echo
=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17043 grep -v '^ *+' conftest.er1
>conftest.err
17045 cat conftest.err
>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } && {
17048 test -z "$ac_c_werror_flag" ||
17049 test ! -s conftest.err
17050 } && test -s conftest
$ac_exeext &&
17051 $as_test_x conftest
$ac_exeext; then
17052 ac_cv_lib_c_inet_aton
=yes
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.
$ac_ext >&5
17057 ac_cv_lib_c_inet_aton
=no
17060 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17061 conftest
$ac_exeext conftest.
$ac_ext
17062 LIBS
=$ac_check_lib_save_LIBS
17064 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17065 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17066 if test $ac_cv_lib_c_inet_aton = yes; then
17070 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17071 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17072 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 ac_check_lib_save_LIBS
=$LIBS
17076 LIBS
="-lresolv $LIBS"
17077 cat >conftest.
$ac_ext <<_ACEOF
17080 cat confdefs.h
>>conftest.
$ac_ext
17081 cat >>conftest.
$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17084 /* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17094 return inet_aton ();
17099 rm -f conftest.
$ac_objext conftest
$ac_exeext
17100 if { (ac_try
="$ac_link"
17101 case "(($ac_try" in
17102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext &&
17116 $as_test_x conftest$ac_exeext; then
17117 ac_cv_lib_resolv_inet_aton=yes
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 ac_cv_lib_resolv_inet_aton=no
17125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17126 conftest$ac_exeext conftest.$ac_ext
17127 LIBS=$ac_check_lib_save_LIBS
17129 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17130 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17131 if test $ac_cv_lib_resolv_inet_aton = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133 #define HAVE_LIBRESOLV 1
17136 LIBS="-lresolv $LIBS"
17144 # On Tru64, chflags seems to be present, but calling it will
17146 { echo "$as_me:$LINENO: checking for chflags" >&5
17147 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17148 if test "$cross_compiling" = yes; then
17149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17150 See \`config.log
' for more details." >&5
17151 echo "$as_me: error: cannot run test program while cross compiling
17152 See \`config.log' for more details.
" >&2;}
17153 { (exit 1); exit 1; }; }
17155 cat >conftest.$ac_ext <<_ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17162 #include <sys/stat.h>
17163 #include <unistd.h>
17164 int main(int argc, char*argv[])
17166 if(chflags(argv[0], 0) != 0)
17172 rm -f conftest$ac_exeext
17173 if { (ac_try="$ac_link"
17174 case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_link") 2>&5
17181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17191 (exit $ac_status); }; }; then
17193 cat >>confdefs.h <<\_ACEOF
17194 #define HAVE_CHFLAGS 1
17197 { echo "$as_me:$LINENO: result
: yes" >&5
17198 echo "${ECHO_T}yes" >&6; }
17200 echo "$as_me: program exited with status
$ac_status" >&5
17201 echo "$as_me: failed program was
:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ( exit $ac_status )
17205 { echo "$as_me:$LINENO: result
: no
" >&5
17206 echo "${ECHO_T}no
" >&6; }
17209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17214 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
17215 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
17216 if test "$cross_compiling" = yes; then
17217 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
17218 See \
`config.log' for more details." >&5
17219 echo "$as_me: error: cannot run test program while cross compiling
17220 See \`config.log
' for more details." >&2;}
17221 { (exit 1); exit 1; }; }
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17230 #include <sys/stat.h>
17231 #include <unistd.h>
17232 int main(int argc, char*argv[])
17234 if(lchflags(argv[0], 0) != 0)
17240 rm -f conftest$ac_exeext
17241 if { (ac_try="$ac_link"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_link") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_LCHFLAGS 1
17265 { echo "$as_me:$LINENO: result: yes" >&5
17266 echo "${ECHO_T}yes" >&6; }
17268 echo "$as_me: program exited with status $ac_status" >&5
17269 echo "$as_me: failed program was:" >&5
17270 sed 's
/^
/|
/' conftest.$ac_ext >&5
17272 ( exit $ac_status )
17273 { echo "$as_me:$LINENO: result: no" >&5
17274 echo "${ECHO_T}no" >&6; }
17277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17282 case $ac_sys_system/$ac_sys_release in
17284 _CUR_CFLAGS="${CFLAGS}"
17285 _CUR_LDFLAGS="${LDFLAGS}"
17286 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17287 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17291 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17292 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17293 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 ac_check_lib_save_LIBS=$LIBS
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17305 /* Override any GCC internal prototype to avoid an error.
17306 Use char because int might match the return type of a GCC
17307 builtin and then its argument prototype would still apply. */
17311 char inflateCopy ();
17315 return inflateCopy ();
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17329 grep -v '^
*+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 ac_cv_lib_z_inflateCopy=yes
17340 echo "$as_me: failed program was:" >&5
17341 sed 's
/^
/|
/' conftest.$ac_ext >&5
17343 ac_cv_lib_z_inflateCopy=no
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17350 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17351 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17352 if test $ac_cv_lib_z_inflateCopy = yes; then
17354 cat >>confdefs.h <<\_ACEOF
17355 #define HAVE_ZLIB_COPY 1
17361 case $ac_sys_system/$ac_sys_release in
17363 CFLAGS="${_CUR_CFLAGS}"
17364 LDFLAGS="${_CUR_LDFLAGS}"
17368 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17369 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 #include "confdefs.h"
17383 void* p = hstrerror; hstrerror(0)
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
17397 grep -v '^
*+' conftest.er1 >conftest.err
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && {
17402 test -z "$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 } && test -s conftest$ac_exeext &&
17405 $as_test_x conftest$ac_exeext; then
17407 cat >>confdefs.h <<\_ACEOF
17408 #define HAVE_HSTRERROR 1
17411 { echo "$as_me:$LINENO: result: yes" >&5
17412 echo "${ECHO_T}yes" >&6; }
17414 echo "$as_me: failed program was:" >&5
17415 sed 's
/^
/|
/' conftest.$ac_ext >&5
17417 { echo "$as_me:$LINENO: result: no" >&5
17418 echo "${ECHO_T}no" >&6; }
17422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17423 conftest$ac_exeext conftest.$ac_ext
17425 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17426 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17434 #include "confdefs.h"
17435 #include <sys/types.h>
17436 #include <sys/socket.h>
17437 #include <netinet/in.h>
17438 #include <arpa/inet.h>
17443 void* p = inet_aton;inet_aton(0,0)
17448 rm -f conftest.$ac_objext conftest$ac_exeext
17449 if { (ac_try="$ac_link"
17450 case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_link") 2>conftest.er1
17457 grep -v '^
*+' conftest.er1 >conftest.err
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } && {
17462 test -z "$ac_c_werror_flag" ||
17463 test ! -s conftest.err
17464 } && test -s conftest$ac_exeext &&
17465 $as_test_x conftest$ac_exeext; then
17467 cat >>confdefs.h <<\_ACEOF
17468 #define HAVE_INET_ATON 1
17471 { echo "$as_me:$LINENO: result: yes" >&5
17472 echo "${ECHO_T}yes" >&6; }
17474 echo "$as_me: failed program was:" >&5
17475 sed 's
/^
/|
/' conftest.$ac_ext >&5
17477 { echo "$as_me:$LINENO: result: no" >&5
17478 echo "${ECHO_T}no" >&6; }
17482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17483 conftest$ac_exeext conftest.$ac_ext
17485 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17486 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17487 cat >conftest.$ac_ext <<_ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17494 #include "confdefs.h"
17495 #include <sys/types.h>
17496 #include <sys/socket.h>
17497 #include <netinet/in.h>
17498 #include <arpa/inet.h>
17503 void* p = inet_pton
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17517 grep -v '^
*+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_INET_PTON 1
17530 { echo "$as_me:$LINENO: result: yes" >&5
17531 echo "${ECHO_T}yes" >&6; }
17533 echo "$as_me: failed program was:" >&5
17534 sed 's
/^
/|
/' conftest.$ac_ext >&5
17536 { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 # On some systems, setgroups is in unistd.h, on others, in grp.h
17544 { echo "$as_me:$LINENO: checking for setgroups" >&5
17545 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17553 #include "confdefs.h"
17554 #include <unistd.h>
17562 void* p = setgroups
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17576 grep -v '^
*+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest.$ac_objext; then
17585 cat >>confdefs.h <<\_ACEOF
17586 #define HAVE_SETGROUPS 1
17589 { echo "$as_me:$LINENO: result: yes" >&5
17590 echo "${ECHO_T}yes" >&6; }
17592 echo "$as_me: failed program was:" >&5
17593 sed 's
/^
/|
/' conftest.$ac_ext >&5
17595 { echo "$as_me:$LINENO: result: no" >&5
17596 echo "${ECHO_T}no" >&6; }
17600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602 # check for openpty and forkpty
17605 for ac_func in openpty
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17621 #define $ac_func innocuous_$ac_func
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17629 # include <limits.h>
17631 # include <assert.h>
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17643 /* The GNU C library defines this for functions which it implements
17644 to always fail with ENOSYS. Some functions are actually named
17645 something starting with __ and the normal name is an alias. */
17646 #if defined __stub_$ac_func || defined __stub___$ac_func
17653 return $ac_func ();
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^
*+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 eval "$as_ac_var=yes"
17678 echo "$as_me: failed program was:" >&5
17679 sed 's
/^
/|
/' conftest.$ac_ext >&5
17681 eval "$as_ac_var=no"
17684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17685 conftest$ac_exeext conftest.$ac_ext
17687 ac_res=`eval echo '${'$as_ac_var'}'`
17688 { echo "$as_me:$LINENO: result: $ac_res" >&5
17689 echo "${ECHO_T}$ac_res" >&6; }
17690 if test `eval echo '${'$as_ac_var'}'` = yes; then
17691 cat >>confdefs.h <<_ACEOF
17692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17696 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17697 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17698 if test "${ac_cv_lib_util_openpty+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 ac_check_lib_save_LIBS=$LIBS
17702 LIBS="-lutil $LIBS"
17703 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17734 grep -v '^
*+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } && {
17739 test -z "$ac_c_werror_flag" ||
17740 test ! -s conftest.err
17741 } && test -s conftest$ac_exeext &&
17742 $as_test_x conftest$ac_exeext; then
17743 ac_cv_lib_util_openpty=yes
17745 echo "$as_me: failed program was:" >&5
17746 sed 's
/^
/|
/' conftest.$ac_ext >&5
17748 ac_cv_lib_util_openpty=no
17751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17752 conftest$ac_exeext conftest.$ac_ext
17753 LIBS=$ac_check_lib_save_LIBS
17755 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17756 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17757 if test $ac_cv_lib_util_openpty = yes; then
17758 cat >>confdefs.h <<\_ACEOF
17759 #define HAVE_OPENPTY 1
17761 LIBS="$LIBS -lutil"
17763 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17764 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17765 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 ac_check_lib_save_LIBS=$LIBS
17770 cat >conftest.$ac_ext <<_ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_link") 2>conftest.er1
17801 grep -v '^
*+' conftest.er1 >conftest.err
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext &&
17809 $as_test_x conftest$ac_exeext; then
17810 ac_cv_lib_bsd_openpty=yes
17812 echo "$as_me: failed program was:" >&5
17813 sed 's
/^
/|
/' conftest.$ac_ext >&5
17815 ac_cv_lib_bsd_openpty=no
17818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17819 conftest$ac_exeext conftest.$ac_ext
17820 LIBS=$ac_check_lib_save_LIBS
17822 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17823 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17824 if test $ac_cv_lib_bsd_openpty = yes; then
17825 cat >>confdefs.h <<\_ACEOF
17826 #define HAVE_OPENPTY 1
17839 for ac_func in forkpty
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855 #define $ac_func innocuous_$ac_func
17857 /* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17863 # include <limits.h>
17865 # include <assert.h>
17870 /* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17887 return $ac_func ();
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17901 grep -v '^
*+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } && {
17906 test -z "$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 } && test -s conftest$ac_exeext &&
17909 $as_test_x conftest$ac_exeext; then
17910 eval "$as_ac_var=yes"
17912 echo "$as_me: failed program was:" >&5
17913 sed 's
/^
/|
/' conftest.$ac_ext >&5
17915 eval "$as_ac_var=no"
17918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17919 conftest$ac_exeext conftest.$ac_ext
17921 ac_res=`eval echo '${'$as_ac_var'}'`
17922 { echo "$as_me:$LINENO: result: $ac_res" >&5
17923 echo "${ECHO_T}$ac_res" >&6; }
17924 if test `eval echo '${'$as_ac_var'}'` = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17930 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17931 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17932 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 ac_check_lib_save_LIBS=$LIBS
17936 LIBS="-lutil $LIBS"
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17944 /* Override any GCC internal prototype to avoid an error.
17945 Use char because int might match the return type of a GCC
17946 builtin and then its argument prototype would still apply. */
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (ac_try="$ac_link"
17961 case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>conftest.er1
17968 grep -v '^
*+' conftest.er1 >conftest.err
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && {
17973 test -z "$ac_c_werror_flag" ||
17974 test ! -s conftest.err
17975 } && test -s conftest$ac_exeext &&
17976 $as_test_x conftest$ac_exeext; then
17977 ac_cv_lib_util_forkpty=yes
17979 echo "$as_me: failed program was:" >&5
17980 sed 's
/^
/|
/' conftest.$ac_ext >&5
17982 ac_cv_lib_util_forkpty=no
17985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17986 conftest$ac_exeext conftest.$ac_ext
17987 LIBS=$ac_check_lib_save_LIBS
17989 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17990 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17991 if test $ac_cv_lib_util_forkpty = yes; then
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_FORKPTY 1
17995 LIBS="$LIBS -lutil"
17997 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17998 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17999 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 ac_check_lib_save_LIBS=$LIBS
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_link") 2>conftest.er1
18035 grep -v '^
*+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } && {
18040 test -z "$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18042 } && test -s conftest$ac_exeext &&
18043 $as_test_x conftest$ac_exeext; then
18044 ac_cv_lib_bsd_forkpty=yes
18046 echo "$as_me: failed program was:" >&5
18047 sed 's
/^
/|
/' conftest.$ac_ext >&5
18049 ac_cv_lib_bsd_forkpty=no
18052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18056 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18057 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18058 if test $ac_cv_lib_bsd_forkpty = yes; then
18059 cat >>confdefs.h <<\_ACEOF
18060 #define HAVE_FORKPTY 1
18075 for ac_func in memmove
18077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18091 #define $ac_func innocuous_$ac_func
18093 /* System header to define __stub macros and hopefully few prototypes,
18094 which can conflict with char $ac_func (); below.
18095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18096 <limits.h> exists even on freestanding compilers. */
18099 # include <limits.h>
18101 # include <assert.h>
18106 /* Override any GCC internal prototype to avoid an error.
18107 Use char because int might match the return type of a GCC
18108 builtin and then its argument prototype would still apply. */
18113 /* The GNU C library defines this for functions which it implements
18114 to always fail with ENOSYS. Some functions are actually named
18115 something starting with __ and the normal name is an alias. */
18116 #if defined __stub_$ac_func || defined __stub___$ac_func
18123 return $ac_func ();
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (ac_try="$ac_link"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_link") 2>conftest.er1
18137 grep -v '^
*+' conftest.er1 >conftest.err
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } && {
18142 test -z "$ac_c_werror_flag" ||
18143 test ! -s conftest.err
18144 } && test -s conftest$ac_exeext &&
18145 $as_test_x conftest$ac_exeext; then
18146 eval "$as_ac_var=yes"
18148 echo "$as_me: failed program was:" >&5
18149 sed 's
/^
/|
/' conftest.$ac_ext >&5
18151 eval "$as_ac_var=no"
18154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18155 conftest$ac_exeext conftest.$ac_ext
18157 ac_res=`eval echo '${'$as_ac_var'}'`
18158 { echo "$as_me:$LINENO: result: $ac_res" >&5
18159 echo "${ECHO_T}$ac_res" >&6; }
18160 if test `eval echo '${'$as_ac_var'}'` = yes; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18169 # check for long file support functions
18176 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define $ac_func innocuous_$ac_func
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char $ac_func (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18200 # include <limits.h>
18202 # include <assert.h>
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined __stub_$ac_func || defined __stub___$ac_func
18224 return $ac_func ();
18229 rm -f conftest.$ac_objext conftest$ac_exeext
18230 if { (ac_try="$ac_link"
18231 case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18238 grep -v '^
*+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && {
18243 test -z "$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 } && test -s conftest$ac_exeext &&
18246 $as_test_x conftest$ac_exeext; then
18247 eval "$as_ac_var=yes"
18249 echo "$as_me: failed program was:" >&5
18250 sed 's
/^
/|
/' conftest.$ac_ext >&5
18252 eval "$as_ac_var=no"
18255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18256 conftest$ac_exeext conftest.$ac_ext
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18273 for ac_func in dup2 getcwd strdup
18275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18289 #define $ac_func innocuous_$ac_func
18291 /* System header to define __stub macros and hopefully few prototypes,
18292 which can conflict with char $ac_func (); below.
18293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18294 <limits.h> exists even on freestanding compilers. */
18297 # include <limits.h>
18299 # include <assert.h>
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18311 /* The GNU C library defines this for functions which it implements
18312 to always fail with ENOSYS. Some functions are actually named
18313 something starting with __ and the normal name is an alias. */
18314 #if defined __stub_$ac_func || defined __stub___$ac_func
18321 return $ac_func ();
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18335 grep -v '^
*+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext &&
18343 $as_test_x conftest$ac_exeext; then
18344 eval "$as_ac_var=yes"
18346 echo "$as_me: failed program was:" >&5
18347 sed 's
/^
/|
/' conftest.$ac_ext >&5
18349 eval "$as_ac_var=no"
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18355 ac_res=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357 echo "${ECHO_T}$ac_res" >&6; }
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18364 case " $LIBOBJS " in
18365 *" $ac_func.$ac_objext "* ) ;;
18366 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18375 for ac_func in getpgrp
18377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18391 #define $ac_func innocuous_$ac_func
18393 /* System header to define __stub macros and hopefully few prototypes,
18394 which can conflict with char $ac_func (); below.
18395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18396 <limits.h> exists even on freestanding compilers. */
18399 # include <limits.h>
18401 # include <assert.h>
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18413 /* The GNU C library defines this for functions which it implements
18414 to always fail with ENOSYS. Some functions are actually named
18415 something starting with __ and the normal name is an alias. */
18416 #if defined __stub_$ac_func || defined __stub___$ac_func
18423 return $ac_func ();
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (ac_try="$ac_link"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_link") 2>conftest.er1
18437 grep -v '^
*+' conftest.er1 >conftest.err
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && {
18442 test -z "$ac_c_werror_flag" ||
18443 test ! -s conftest.err
18444 } && test -s conftest$ac_exeext &&
18445 $as_test_x conftest$ac_exeext; then
18446 eval "$as_ac_var=yes"
18448 echo "$as_me: failed program was:" >&5
18449 sed 's
/^
/|
/' conftest.$ac_ext >&5
18451 eval "$as_ac_var=no"
18454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18455 conftest$ac_exeext conftest.$ac_ext
18457 ac_res=`eval echo '${'$as_ac_var'}'`
18458 { echo "$as_me:$LINENO: result: $ac_res" >&5
18459 echo "${ECHO_T}$ac_res" >&6; }
18460 if test `eval echo '${'$as_ac_var'}'` = yes; then
18461 cat >>confdefs.h <<_ACEOF
18462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18464 cat >conftest.$ac_ext <<_ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18470 #include <unistd.h>
18479 rm -f conftest.$ac_objext
18480 if { (ac_try="$ac_compile"
18481 case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_compile") 2>conftest.er1
18488 grep -v '^
*+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } && {
18493 test -z "$ac_c_werror_flag" ||
18494 test ! -s conftest.err
18495 } && test -s conftest.$ac_objext; then
18497 cat >>confdefs.h <<\_ACEOF
18498 #define GETPGRP_HAVE_ARG 1
18503 echo "$as_me: failed program was:" >&5
18504 sed 's
/^
/|
/' conftest.$ac_ext >&5
18509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 for ac_func in setpgrp
18517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 cat >conftest.$ac_ext <<_ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18531 #define $ac_func innocuous_$ac_func
18533 /* System header to define __stub macros and hopefully few prototypes,
18534 which can conflict with char $ac_func (); below.
18535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536 <limits.h> exists even on freestanding compilers. */
18539 # include <limits.h>
18541 # include <assert.h>
18546 /* Override any GCC internal prototype to avoid an error.
18547 Use char because int might match the return type of a GCC
18548 builtin and then its argument prototype would still apply. */
18553 /* The GNU C library defines this for functions which it implements
18554 to always fail with ENOSYS. Some functions are actually named
18555 something starting with __ and the normal name is an alias. */
18556 #if defined __stub_$ac_func || defined __stub___$ac_func
18563 return $ac_func ();
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18577 grep -v '^
*+' conftest.er1 >conftest.err
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest$ac_exeext &&
18585 $as_test_x conftest$ac_exeext; then
18586 eval "$as_ac_var=yes"
18588 echo "$as_me: failed program was:" >&5
18589 sed 's
/^
/|
/' conftest.$ac_ext >&5
18591 eval "$as_ac_var=no"
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18597 ac_res=`eval echo '${'$as_ac_var'}'`
18598 { echo "$as_me:$LINENO: result: $ac_res" >&5
18599 echo "${ECHO_T}$ac_res" >&6; }
18600 if test `eval echo '${'$as_ac_var'}'` = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 #include <unistd.h>
18619 rm -f conftest.$ac_objext
18620 if { (ac_try="$ac_compile"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_compile") 2>conftest.er1
18628 grep -v '^
*+' conftest.er1 >conftest.err
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } && {
18633 test -z "$ac_c_werror_flag" ||
18634 test ! -s conftest.err
18635 } && test -s conftest.$ac_objext; then
18637 cat >>confdefs.h <<\_ACEOF
18638 #define SETPGRP_HAVE_ARG 1
18643 echo "$as_me: failed program was:" >&5
18644 sed 's
/^
/|
/' conftest.$ac_ext >&5
18649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18655 for ac_func in gettimeofday
18657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18671 #define $ac_func innocuous_$ac_func
18673 /* System header to define __stub macros and hopefully few prototypes,
18674 which can conflict with char $ac_func (); below.
18675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18676 <limits.h> exists even on freestanding compilers. */
18679 # include <limits.h>
18681 # include <assert.h>
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18693 /* The GNU C library defines this for functions which it implements
18694 to always fail with ENOSYS. Some functions are actually named
18695 something starting with __ and the normal name is an alias. */
18696 #if defined __stub_$ac_func || defined __stub___$ac_func
18703 return $ac_func ();
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_link") 2>conftest.er1
18717 grep -v '^
*+' conftest.er1 >conftest.err
18719 cat conftest.err >&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } && {
18722 test -z "$ac_c_werror_flag" ||
18723 test ! -s conftest.err
18724 } && test -s conftest$ac_exeext &&
18725 $as_test_x conftest$ac_exeext; then
18726 eval "$as_ac_var=yes"
18728 echo "$as_me: failed program was:" >&5
18729 sed 's
/^
/|
/' conftest.$ac_ext >&5
18731 eval "$as_ac_var=no"
18734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18735 conftest$ac_exeext conftest.$ac_ext
18737 ac_res=`eval echo '${'$as_ac_var'}'`
18738 { echo "$as_me:$LINENO: result: $ac_res" >&5
18739 echo "${ECHO_T}$ac_res" >&6; }
18740 if test `eval echo '${'$as_ac_var'}'` = yes; then
18741 cat >>confdefs.h <<_ACEOF
18742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 #include <sys/time.h>
18754 gettimeofday((struct timeval*)0,(struct timezone*)0);
18759 rm -f conftest.$ac_objext
18760 if { (ac_try="$ac_compile"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_compile") 2>conftest.er1
18768 grep -v '^
*+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest.$ac_objext; then
18778 echo "$as_me: failed program was:" >&5
18779 sed 's
/^
/|
/' conftest.$ac_ext >&5
18782 cat >>confdefs.h <<\_ACEOF
18783 #define GETTIMEOFDAY_NO_TZ 1
18789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795 { echo "$as_me:$LINENO: checking for major" >&5
18796 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18797 cat >conftest.$ac_ext <<_ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h. */
18804 #if defined(MAJOR_IN_MKDEV)
18805 #include <sys/mkdev.h>
18806 #elif defined(MAJOR_IN_SYSMACROS)
18807 #include <sys/sysmacros.h>
18809 #include <sys/types.h>
18816 makedev(major(0),minor(0));
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18831 grep -v '^
*+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest$ac_exeext &&
18839 $as_test_x conftest$ac_exeext; then
18842 cat >>confdefs.h <<\_ACEOF
18843 #define HAVE_DEVICE_MACROS 1
18846 { echo "$as_me:$LINENO: result: yes" >&5
18847 echo "${ECHO_T}yes" >&6; }
18850 echo "$as_me: failed program was:" >&5
18851 sed 's
/^
/|
/' conftest.$ac_ext >&5
18854 { echo "$as_me:$LINENO: result: no" >&5
18855 echo "${ECHO_T}no" >&6; }
18859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18860 conftest$ac_exeext conftest.$ac_ext
18862 # On OSF/1 V5.1, getaddrinfo is available, but a define
18863 # for [no]getaddrinfo in netdb.h.
18864 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18865 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18866 cat >conftest.$ac_ext <<_ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18873 #include <sys/types.h>
18874 #include <sys/socket.h>
18882 getaddrinfo(NULL, NULL, NULL, NULL);
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_link") 2>conftest.er1
18897 grep -v '^
*+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest$ac_exeext &&
18905 $as_test_x conftest$ac_exeext; then
18907 { echo "$as_me:$LINENO: result: yes" >&5
18908 echo "${ECHO_T}yes" >&6; }
18909 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18910 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18911 if test "$cross_compiling" = yes; then
18912 { echo "$as_me:$LINENO: result: buggy" >&5
18913 echo "${ECHO_T}buggy" >&6; }
18914 buggygetaddrinfo=yes
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18923 #include <sys/types.h>
18925 #include <string.h>
18926 #include <sys/socket.h>
18927 #include <netinet/in.h>
18931 int passive, gaierr, inet4 = 0, inet6 = 0;
18932 struct addrinfo hints, *ai, *aitop;
18933 char straddr[INET6_ADDRSTRLEN], strport[16];
18935 for (passive = 0; passive <= 1; passive++) {
18936 memset(&hints, 0, sizeof(hints));
18937 hints.ai_family = AF_UNSPEC;
18938 hints.ai_flags = passive ? AI_PASSIVE : 0;
18939 hints.ai_socktype = SOCK_STREAM;
18940 hints.ai_protocol = IPPROTO_TCP;
18941 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18942 (void)gai_strerror(gaierr);
18945 for (ai = aitop; ai; ai = ai->ai_next) {
18946 if (ai->ai_addr == NULL ||
18947 ai->ai_addrlen == 0 ||
18948 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18949 straddr, sizeof(straddr), strport, sizeof(strport),
18950 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18953 switch (ai->ai_family) {
18955 if (strcmp(strport, "54321") != 0) {
18959 if (strcmp(straddr, "0.0.0.0") != 0) {
18963 if (strcmp(straddr, "127.0.0.1") != 0) {
18970 if (strcmp(strport, "54321") != 0) {
18974 if (strcmp(straddr, "::") != 0) {
18978 if (strcmp(straddr, "::1") != 0) {
18988 /* another family support? */
18994 if (!(inet4 == 0 || inet4 == 2))
18996 if (!(inet6 == 0 || inet6 == 2))
19000 freeaddrinfo(aitop);
19005 freeaddrinfo(aitop);
19010 rm -f conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_link") 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 { echo "$as_me:$LINENO: result: good" >&5
19031 echo "${ECHO_T}good" >&6; }
19032 buggygetaddrinfo=no
19034 echo "$as_me: program exited with status $ac_status" >&5
19035 echo "$as_me: failed program was:" >&5
19036 sed 's
/^
/|
/' conftest.$ac_ext >&5
19038 ( exit $ac_status )
19039 { echo "$as_me:$LINENO: result: buggy" >&5
19040 echo "${ECHO_T}buggy" >&6; }
19041 buggygetaddrinfo=yes
19043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19048 echo "$as_me: failed program was:" >&5
19049 sed 's
/^
/|
/' conftest.$ac_ext >&5
19052 { echo "$as_me:$LINENO: result: no" >&5
19053 echo "${ECHO_T}no" >&6; }
19054 buggygetaddrinfo=yes
19058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19059 conftest$ac_exeext conftest.$ac_ext
19061 if test "$buggygetaddrinfo" = "yes"; then
19062 if test "$ipv6" = "yes"; then
19063 echo 'Fatal
: You must get working getaddrinfo
() function.
'
19064 echo ' or you can specify
"--disable-ipv6"'.
19069 cat >>confdefs.h <<\_ACEOF
19070 #define HAVE_GETADDRINFO 1
19075 for ac_func in getnameinfo
19077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 cat >conftest.$ac_ext <<_ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19091 #define $ac_func innocuous_$ac_func
19093 /* System header to define __stub macros and hopefully few prototypes,
19094 which can conflict with char $ac_func (); below.
19095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19096 <limits.h> exists even on freestanding compilers. */
19099 # include <limits.h>
19101 # include <assert.h>
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19113 /* The GNU C library defines this for functions which it implements
19114 to always fail with ENOSYS. Some functions are actually named
19115 something starting with __ and the normal name is an alias. */
19116 #if defined __stub_$ac_func || defined __stub___$ac_func
19123 return $ac_func ();
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (ac_try="$ac_link"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_link") 2>conftest.er1
19137 grep -v '^
*+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest$ac_exeext &&
19145 $as_test_x conftest$ac_exeext; then
19146 eval "$as_ac_var=yes"
19148 echo "$as_me: failed program was:" >&5
19149 sed 's
/^
/|
/' conftest.$ac_ext >&5
19151 eval "$as_ac_var=no"
19154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19155 conftest$ac_exeext conftest.$ac_ext
19157 ac_res=`eval echo '${'$as_ac_var'}'`
19158 { echo "$as_me:$LINENO: result: $ac_res" >&5
19159 echo "${ECHO_T}$ac_res" >&6; }
19160 if test `eval echo '${'$as_ac_var'}'` = yes; then
19161 cat >>confdefs.h <<_ACEOF
19162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19169 # checks for structures
19170 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19171 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19172 if test "${ac_cv_header_time+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 #include <sys/types.h>
19182 #include <sys/time.h>
19188 if ((struct tm *) 0)
19194 rm -f conftest.$ac_objext
19195 if { (ac_try="$ac_compile"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_compile") 2>conftest.er1
19203 grep -v '^
*+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest.$ac_objext; then
19211 ac_cv_header_time=yes
19213 echo "$as_me: failed program was:" >&5
19214 sed 's
/^
/|
/' conftest.$ac_ext >&5
19216 ac_cv_header_time=no
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19221 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19222 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19223 if test $ac_cv_header_time = yes; then
19225 cat >>confdefs.h <<\_ACEOF
19226 #define TIME_WITH_SYS_TIME 1
19231 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19232 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19233 if test "${ac_cv_struct_tm+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <sys/types.h>
19249 int *p = &tm.tm_sec;
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_compile") 2>conftest.er1
19264 grep -v '^
*+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest.$ac_objext; then
19272 ac_cv_struct_tm=time.h
19274 echo "$as_me: failed program was:" >&5
19275 sed 's
/^
/|
/' conftest.$ac_ext >&5
19277 ac_cv_struct_tm=sys/time.h
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19283 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19284 if test $ac_cv_struct_tm = sys/time.h; then
19286 cat >>confdefs.h <<\_ACEOF
19287 #define TM_IN_SYS_TIME 1
19292 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19293 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19294 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 cat >conftest.$ac_ext <<_ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 #include <sys/types.h>
19304 #include <$ac_cv_struct_tm>
19310 static struct tm ac_aggr;
19311 if (ac_aggr.tm_zone)
19317 rm -f conftest.$ac_objext
19318 if { (ac_try="$ac_compile"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_compile") 2>conftest.er1
19326 grep -v '^
*+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest.$ac_objext; then
19334 ac_cv_member_struct_tm_tm_zone=yes
19336 echo "$as_me: failed program was:" >&5
19337 sed 's
/^
/|
/' conftest.$ac_ext >&5
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #include <sys/types.h>
19346 #include <$ac_cv_struct_tm>
19352 static struct tm ac_aggr;
19353 if (sizeof ac_aggr.tm_zone)
19359 rm -f conftest.$ac_objext
19360 if { (ac_try="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19368 grep -v '^
*+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } && {
19373 test -z "$ac_c_werror_flag" ||
19374 test ! -s conftest.err
19375 } && test -s conftest.$ac_objext; then
19376 ac_cv_member_struct_tm_tm_zone=yes
19378 echo "$as_me: failed program was:" >&5
19379 sed 's
/^
/|
/' conftest.$ac_ext >&5
19381 ac_cv_member_struct_tm_tm_zone=no
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19390 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19391 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define HAVE_STRUCT_TM_TM_ZONE 1
19400 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19402 cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_TM_ZONE 1
19407 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19408 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19409 if test "${ac_cv_have_decl_tzname+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19431 rm -f conftest.$ac_objext
19432 if { (ac_try="$ac_compile"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_compile") 2>conftest.er1
19440 grep -v '^
*+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest.$ac_objext; then
19448 ac_cv_have_decl_tzname=yes
19450 echo "$as_me: failed program was:" >&5
19451 sed 's
/^
/|
/' conftest.$ac_ext >&5
19453 ac_cv_have_decl_tzname=no
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19458 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19459 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19460 if test $ac_cv_have_decl_tzname = yes; then
19462 cat >>confdefs.h <<_ACEOF
19463 #define HAVE_DECL_TZNAME 1
19468 cat >>confdefs.h <<_ACEOF
19469 #define HAVE_DECL_TZNAME 0
19476 { echo "$as_me:$LINENO: checking for tzname" >&5
19477 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19478 if test "${ac_cv_var_tzname+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 #if !HAVE_DECL_TZNAME
19489 extern char *tzname[];
19495 return tzname[0][0];
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_link") 2>conftest.er1
19509 grep -v '^
*+' conftest.er1 >conftest.err
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && {
19514 test -z "$ac_c_werror_flag" ||
19515 test ! -s conftest.err
19516 } && test -s conftest$ac_exeext &&
19517 $as_test_x conftest$ac_exeext; then
19518 ac_cv_var_tzname=yes
19520 echo "$as_me: failed program was:" >&5
19521 sed 's
/^
/|
/' conftest.$ac_ext >&5
19523 ac_cv_var_tzname=no
19526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19527 conftest$ac_exeext conftest.$ac_ext
19529 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19530 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19531 if test $ac_cv_var_tzname = yes; then
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_TZNAME 1
19540 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19541 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19542 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 $ac_includes_default
19555 static struct stat ac_aggr;
19556 if (ac_aggr.st_rdev)
19562 rm -f conftest.$ac_objext
19563 if { (ac_try="$ac_compile"
19564 case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_compile") 2>conftest.er1
19571 grep -v '^
*+' conftest.er1 >conftest.err
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } && {
19576 test -z "$ac_c_werror_flag" ||
19577 test ! -s conftest.err
19578 } && test -s conftest.$ac_objext; then
19579 ac_cv_member_struct_stat_st_rdev=yes
19581 echo "$as_me: failed program was:" >&5
19582 sed 's
/^
/|
/' conftest.$ac_ext >&5
19584 cat >conftest.$ac_ext <<_ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 $ac_includes_default
19594 static struct stat ac_aggr;
19595 if (sizeof ac_aggr.st_rdev)
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19610 grep -v '^
*+' conftest.er1 >conftest.err
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_cv_member_struct_stat_st_rdev=yes
19620 echo "$as_me: failed program was:" >&5
19621 sed 's
/^
/|
/' conftest.$ac_ext >&5
19623 ac_cv_member_struct_stat_st_rdev=no
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19632 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19633 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19635 cat >>confdefs.h <<_ACEOF
19636 #define HAVE_STRUCT_STAT_ST_RDEV 1
19642 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19643 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19644 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 $ac_includes_default
19657 static struct stat ac_aggr;
19658 if (ac_aggr.st_blksize)
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19673 grep -v '^
*+' conftest.er1 >conftest.err
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && {
19678 test -z "$ac_c_werror_flag" ||
19679 test ! -s conftest.err
19680 } && test -s conftest.$ac_objext; then
19681 ac_cv_member_struct_stat_st_blksize=yes
19683 echo "$as_me: failed program was:" >&5
19684 sed 's
/^
/|
/' conftest.$ac_ext >&5
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 $ac_includes_default
19696 static struct stat ac_aggr;
19697 if (sizeof ac_aggr.st_blksize)
19703 rm -f conftest.$ac_objext
19704 if { (ac_try="$ac_compile"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_compile") 2>conftest.er1
19712 grep -v '^
*+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } && {
19717 test -z "$ac_c_werror_flag" ||
19718 test ! -s conftest.err
19719 } && test -s conftest.$ac_objext; then
19720 ac_cv_member_struct_stat_st_blksize=yes
19722 echo "$as_me: failed program was:" >&5
19723 sed 's
/^
/|
/' conftest.$ac_ext >&5
19725 ac_cv_member_struct_stat_st_blksize=no
19728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19734 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19735 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19737 cat >>confdefs.h <<_ACEOF
19738 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19744 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19745 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19746 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19759 static struct stat ac_aggr;
19760 if (ac_aggr.st_flags)
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19775 grep -v '^
*+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest.$ac_objext; then
19783 ac_cv_member_struct_stat_st_flags=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's
/^
/|
/' conftest.$ac_ext >&5
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 $ac_includes_default
19798 static struct stat ac_aggr;
19799 if (sizeof ac_aggr.st_flags)
19805 rm -f conftest.$ac_objext
19806 if { (ac_try="$ac_compile"
19807 case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_compile") 2>conftest.er1
19814 grep -v '^
*+' conftest.er1 >conftest.err
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest.$ac_objext; then
19822 ac_cv_member_struct_stat_st_flags=yes
19824 echo "$as_me: failed program was:" >&5
19825 sed 's
/^
/|
/' conftest.$ac_ext >&5
19827 ac_cv_member_struct_stat_st_flags=no
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19836 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19837 if test $ac_cv_member_struct_stat_st_flags = yes; then
19839 cat >>confdefs.h <<_ACEOF
19840 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19846 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19847 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19848 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19861 static struct stat ac_aggr;
19862 if (ac_aggr.st_gen)
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19877 grep -v '^
*+' conftest.er1 >conftest.err
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.$ac_objext; then
19885 ac_cv_member_struct_stat_st_gen=yes
19887 echo "$as_me: failed program was:" >&5
19888 sed 's
/^
/|
/' conftest.$ac_ext >&5
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 $ac_includes_default
19900 static struct stat ac_aggr;
19901 if (sizeof ac_aggr.st_gen)
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
19916 grep -v '^
*+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && {
19921 test -z "$ac_c_werror_flag" ||
19922 test ! -s conftest.err
19923 } && test -s conftest.$ac_objext; then
19924 ac_cv_member_struct_stat_st_gen=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's
/^
/|
/' conftest.$ac_ext >&5
19929 ac_cv_member_struct_stat_st_gen=no
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19939 if test $ac_cv_member_struct_stat_st_gen = yes; then
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STRUCT_STAT_ST_GEN 1
19948 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19949 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19950 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 cat >conftest.$ac_ext <<_ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19963 static struct stat ac_aggr;
19964 if (ac_aggr.st_birthtime)
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19979 grep -v '^
*+' conftest.er1 >conftest.err
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.$ac_objext; then
19987 ac_cv_member_struct_stat_st_birthtime=yes
19989 echo "$as_me: failed program was:" >&5
19990 sed 's
/^
/|
/' conftest.$ac_ext >&5
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
20002 static struct stat ac_aggr;
20003 if (sizeof ac_aggr.st_birthtime)
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20018 grep -v '^
*+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_cv_member_struct_stat_st_birthtime=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's
/^
/|
/' conftest.$ac_ext >&5
20031 ac_cv_member_struct_stat_st_birthtime=no
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20041 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20050 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20051 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20052 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 $ac_includes_default
20065 static struct stat ac_aggr;
20066 if (ac_aggr.st_blocks)
20072 rm -f conftest.$ac_objext
20073 if { (ac_try="$ac_compile"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_compile") 2>conftest.er1
20081 grep -v '^
*+' conftest.er1 >conftest.err
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } && {
20086 test -z "$ac_c_werror_flag" ||
20087 test ! -s conftest.err
20088 } && test -s conftest.$ac_objext; then
20089 ac_cv_member_struct_stat_st_blocks=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's
/^
/|
/' conftest.$ac_ext >&5
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 $ac_includes_default
20104 static struct stat ac_aggr;
20105 if (sizeof ac_aggr.st_blocks)
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20120 grep -v '^
*+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest.$ac_objext; then
20128 ac_cv_member_struct_stat_st_blocks=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's
/^
/|
/' conftest.$ac_ext >&5
20133 ac_cv_member_struct_stat_st_blocks=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20142 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20143 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20150 cat >>confdefs.h <<\_ACEOF
20151 #define HAVE_ST_BLOCKS 1
20155 case " $LIBOBJS " in
20156 *" fileblocks.$ac_objext "* ) ;;
20157 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20165 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20166 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20167 if test "${ac_cv_header_time_altzone+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 cat >conftest.$ac_ext <<_ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20185 rm -f conftest.$ac_objext
20186 if { (ac_try="$ac_compile"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_compile") 2>conftest.er1
20194 grep -v '^
*+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest.$ac_objext; then
20202 ac_cv_header_time_altzone=yes
20204 echo "$as_me: failed program was:" >&5
20205 sed 's
/^
/|
/' conftest.$ac_ext >&5
20207 ac_cv_header_time_altzone=no
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20213 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20214 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20215 if test $ac_cv_header_time_altzone = yes; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define HAVE_ALTZONE 1
20224 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20225 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20226 cat >conftest.$ac_ext <<_ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20233 #include <sys/types.h>
20234 #include <sys/select.h>
20235 #include <sys/time.h>
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_compile") 2>conftest.er1
20254 grep -v '^
*+' conftest.er1 >conftest.err
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } && {
20259 test -z "$ac_c_werror_flag" ||
20260 test ! -s conftest.err
20261 } && test -s conftest.$ac_objext; then
20264 cat >>confdefs.h <<\_ACEOF
20265 #define SYS_SELECT_WITH_SYS_TIME 1
20271 echo "$as_me: failed program was:" >&5
20272 sed 's
/^
/|
/' conftest.$ac_ext >&5
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20279 echo "${ECHO_T}$was_it_defined" >&6; }
20281 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20282 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20283 if test "${ac_cv_struct_addrinfo+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 cat >conftest.$ac_ext <<_ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20293 # include <netdb.h>
20302 rm -f conftest.$ac_objext
20303 if { (ac_try="$ac_compile"
20304 case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_compile") 2>conftest.er1
20311 grep -v '^
*+' conftest.er1 >conftest.err
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest.$ac_objext; then
20319 ac_cv_struct_addrinfo=yes
20321 echo "$as_me: failed program was:" >&5
20322 sed 's
/^
/|
/' conftest.$ac_ext >&5
20324 ac_cv_struct_addrinfo=no
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20331 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20332 if test $ac_cv_struct_addrinfo = yes; then
20334 cat >>confdefs.h <<\_ACEOF
20335 #define HAVE_ADDRINFO 1
20340 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20341 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20342 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 # include <sys/types.h>
20353 # include <sys/socket.h>
20357 struct sockaddr_storage s
20362 rm -f conftest.$ac_objext
20363 if { (ac_try="$ac_compile"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_compile") 2>conftest.er1
20371 grep -v '^
*+' conftest.er1 >conftest.err
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } && {
20376 test -z "$ac_c_werror_flag" ||
20377 test ! -s conftest.err
20378 } && test -s conftest.$ac_objext; then
20379 ac_cv_struct_sockaddr_storage=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's
/^
/|
/' conftest.$ac_ext >&5
20384 ac_cv_struct_sockaddr_storage=no
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20390 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20391 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20392 if test $ac_cv_struct_sockaddr_storage = yes; then
20394 cat >>confdefs.h <<\_ACEOF
20395 #define HAVE_SOCKADDR_STORAGE 1
20400 # checks for compiler characteristics
20403 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20404 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20405 if test "${ac_cv_c_char_unsigned+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20418 static int test_array [1 - 2 * !(((char) -1) < 0)];
20425 rm -f conftest.$ac_objext
20426 if { (ac_try="$ac_compile"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_compile") 2>conftest.er1
20434 grep -v '^
*+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest.$ac_objext; then
20442 ac_cv_c_char_unsigned=no
20444 echo "$as_me: failed program was:" >&5
20445 sed 's
/^
/|
/' conftest.$ac_ext >&5
20447 ac_cv_c_char_unsigned=yes
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20453 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20454 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20455 cat >>confdefs.h <<\_ACEOF
20456 #define __CHAR_UNSIGNED__ 1
20461 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20462 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20463 if test "${ac_cv_c_const+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20476 /* FIXME: Include the comments suggested by Paul. */
20477 #ifndef __cplusplus
20478 /* Ultrix mips cc rejects this. */
20479 typedef int charset[2];
20481 /* SunOS 4.1.1 cc rejects this. */
20482 char const *const *pcpcc;
20484 /* NEC SVR4.0.2 mips cc rejects this. */
20485 struct point {int x, y;};
20486 static struct point const zero = {0,0};
20487 /* AIX XL C 1.02.0.0 rejects this.
20488 It does not let you subtract one const X* pointer from another in
20489 an arm of an if-expression whose if-part is not a constant
20491 const char *g = "string";
20492 pcpcc = &g + (g ? g-g : 0);
20493 /* HPUX 7.0 cc rejects these. */
20495 ppc = (char**) pcpcc;
20496 pcpcc = (char const *const *) ppc;
20497 { /* SCO 3.2v4 cc rejects this. */
20499 char const *s = 0 ? (char *) 0 : (char const *) 0;
20504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20505 int x[] = {25, 17};
20506 const int *foo = &x[0];
20509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20510 typedef const int *iptr;
20514 { /* AIX XL C 1.02.0.0 rejects this saying
20515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20516 struct s { int j; const int *ap[3]; };
20517 struct s *b; b->j = 5;
20519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20520 const int foo = 10;
20521 if (!foo) return 0;
20523 return !cs[0] && !zero.x;
20530 rm -f conftest.$ac_objext
20531 if { (ac_try="$ac_compile"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_compile") 2>conftest.er1
20539 grep -v '^
*+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest.$ac_objext; then
20549 echo "$as_me: failed program was:" >&5
20550 sed 's
/^
/|
/' conftest.$ac_ext >&5
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20558 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20559 if test $ac_cv_c_const = no; then
20561 cat >>confdefs.h <<\_ACEOF
20569 { echo "$as_me:$LINENO: checking for working volatile" >&5
20570 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20571 cat >conftest.$ac_ext <<_ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20581 volatile int x; x = 0;
20586 rm -f conftest.$ac_objext
20587 if { (ac_try="$ac_compile"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_compile") 2>conftest.er1
20595 grep -v '^
*+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest.$ac_objext; then
20605 echo "$as_me: failed program was:" >&5
20606 sed 's
/^
/|
/' conftest.$ac_ext >&5
20609 cat >>confdefs.h <<\_ACEOF
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 { echo "$as_me:$LINENO: result: $works" >&5
20618 echo "${ECHO_T}$works" >&6; }
20621 { echo "$as_me:$LINENO: checking for working signed char" >&5
20622 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^
*+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20657 echo "$as_me: failed program was:" >&5
20658 sed 's
/^
/|
/' conftest.$ac_ext >&5
20661 cat >>confdefs.h <<\_ACEOF
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result: $works" >&5
20670 echo "${ECHO_T}$works" >&6; }
20673 { echo "$as_me:$LINENO: checking for prototypes" >&5
20674 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20675 cat >conftest.$ac_ext <<_ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 int foo(int x) { return 0; }
20690 rm -f conftest.$ac_objext
20691 if { (ac_try="$ac_compile"
20692 case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_compile") 2>conftest.er1
20699 grep -v '^
*+' conftest.er1 >conftest.err
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } && {
20704 test -z "$ac_c_werror_flag" ||
20705 test ! -s conftest.err
20706 } && test -s conftest.$ac_objext; then
20709 cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_PROTOTYPES 1
20713 have_prototypes=yes
20716 echo "$as_me: failed program was:" >&5
20717 sed 's
/^
/|
/' conftest.$ac_ext >&5
20722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20724 echo "${ECHO_T}$have_prototypes" >&6; }
20727 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20728 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20729 cat >conftest.$ac_ext <<_ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20736 #include <stdarg.h>
20737 int foo(int x, ...) {
20741 va_arg(va, char *);
20742 va_arg(va, double);
20749 return foo(10, "", 3.14);
20754 rm -f conftest.$ac_objext
20755 if { (ac_try="$ac_compile"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_compile") 2>conftest.er1
20763 grep -v '^
*+' conftest.er1 >conftest.err
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest.$ac_objext; then
20773 cat >>confdefs.h <<\_ACEOF
20774 #define HAVE_STDARG_PROTOTYPES 1
20780 echo "$as_me: failed program was:" >&5
20781 sed 's
/^
/|
/' conftest.$ac_ext >&5
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20787 { echo "$as_me:$LINENO: result: $works" >&5
20788 echo "${ECHO_T}$works" >&6; }
20790 # check for socketpair
20791 { echo "$as_me:$LINENO: checking for socketpair" >&5
20792 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20800 #include <sys/types.h>
20801 #include <sys/socket.h>
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20820 grep -v '^
*+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.$ac_objext; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_SOCKETPAIR 1
20833 { echo "$as_me:$LINENO: result: yes" >&5
20834 echo "${ECHO_T}yes" >&6; }
20836 echo "$as_me: failed program was:" >&5
20837 sed 's
/^
/|
/' conftest.$ac_ext >&5
20839 { echo "$as_me:$LINENO: result: no" >&5
20840 echo "${ECHO_T}no" >&6; }
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 # check if sockaddr has sa_len member
20847 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20848 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 #include <sys/types.h>
20856 #include <sys/socket.h>
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_compile") 2>conftest.er1
20875 grep -v '^
*+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest.$ac_objext; then
20883 { echo "$as_me:$LINENO: result: yes" >&5
20884 echo "${ECHO_T}yes" >&6; }
20886 cat >>confdefs.h <<\_ACEOF
20887 #define HAVE_SOCKADDR_SA_LEN 1
20891 echo "$as_me: failed program was:" >&5
20892 sed 's
/^
/|
/' conftest.$ac_ext >&5
20894 { echo "$as_me:$LINENO: result: no" >&5
20895 echo "${ECHO_T}no" >&6; }
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 va_list_is_array=no
20901 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20902 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20903 cat >conftest.$ac_ext <<_ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20910 #ifdef HAVE_STDARG_PROTOTYPES
20911 #include <stdarg.h>
20913 #include <varargs.h>
20919 va_list list1, list2; list1 = list2;
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20933 grep -v '^
*+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && {
20938 test -z "$ac_c_werror_flag" ||
20939 test ! -s conftest.err
20940 } && test -s conftest.$ac_objext; then
20943 echo "$as_me: failed program was:" >&5
20944 sed 's
/^
/|
/' conftest.$ac_ext >&5
20948 cat >>confdefs.h <<\_ACEOF
20949 #define VA_LIST_IS_ARRAY 1
20952 va_list_is_array=yes
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20958 echo "${ECHO_T}$va_list_is_array" >&6; }
20960 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20964 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20965 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20966 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20977 #define gethostbyname_r innocuous_gethostbyname_r
20979 /* System header to define __stub macros and hopefully few prototypes,
20980 which can conflict with char gethostbyname_r (); below.
20981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20982 <limits.h> exists even on freestanding compilers. */
20985 # include <limits.h>
20987 # include <assert.h>
20990 #undef gethostbyname_r
20992 /* Override any GCC internal prototype to avoid an error.
20993 Use char because int might match the return type of a GCC
20994 builtin and then its argument prototype would still apply. */
20998 char gethostbyname_r ();
20999 /* The GNU C library defines this for functions which it implements
21000 to always fail with ENOSYS. Some functions are actually named
21001 something starting with __ and the normal name is an alias. */
21002 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21009 return gethostbyname_r ();
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (ac_try="$ac_link"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_link") 2>conftest.er1
21023 grep -v '^
*+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest$ac_exeext &&
21031 $as_test_x conftest$ac_exeext; then
21032 ac_cv_func_gethostbyname_r=yes
21034 echo "$as_me: failed program was:" >&5
21035 sed 's
/^
/|
/' conftest.$ac_ext >&5
21037 ac_cv_func_gethostbyname_r=no
21040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041 conftest$ac_exeext conftest.$ac_ext
21043 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21044 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21045 if test $ac_cv_func_gethostbyname_r = yes; then
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_GETHOSTBYNAME_R 1
21051 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21052 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21054 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21055 cat >conftest.$ac_ext <<_ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21062 # include <netdb.h>
21069 struct hostent *he, *res;
21074 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21080 rm -f conftest.$ac_objext
21081 if { (ac_try="$ac_compile"
21082 case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_compile") 2>conftest.er1
21089 grep -v '^
*+' conftest.er1 >conftest.err
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } && {
21094 test -z "$ac_c_werror_flag" ||
21095 test ! -s conftest.err
21096 } && test -s conftest.$ac_objext; then
21098 cat >>confdefs.h <<\_ACEOF
21099 #define HAVE_GETHOSTBYNAME_R 1
21103 cat >>confdefs.h <<\_ACEOF
21104 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21107 { echo "$as_me:$LINENO: result: yes" >&5
21108 echo "${ECHO_T}yes" >&6; }
21111 echo "$as_me: failed program was:" >&5
21112 sed 's
/^
/|
/' conftest.$ac_ext >&5
21115 { echo "$as_me:$LINENO: result: no" >&5
21116 echo "${ECHO_T}no" >&6; }
21117 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21118 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21119 cat >conftest.$ac_ext <<_ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21126 # include <netdb.h>
21133 struct hostent *he;
21138 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21144 rm -f conftest.$ac_objext
21145 if { (ac_try="$ac_compile"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_compile") 2>conftest.er1
21153 grep -v '^
*+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } && {
21158 test -z "$ac_c_werror_flag" ||
21159 test ! -s conftest.err
21160 } && test -s conftest.$ac_objext; then
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_GETHOSTBYNAME_R 1
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21171 { echo "$as_me:$LINENO: result: yes" >&5
21172 echo "${ECHO_T}yes" >&6; }
21175 echo "$as_me: failed program was:" >&5
21176 sed 's
/^
/|
/' conftest.$ac_ext >&5
21179 { echo "$as_me:$LINENO: result: no" >&5
21180 echo "${ECHO_T}no" >&6; }
21181 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21182 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21190 # include <netdb.h>
21197 struct hostent *he;
21198 struct hostent_data data;
21200 (void) gethostbyname_r(name, he, &data);
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_compile") 2>conftest.er1
21215 grep -v '^
*+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest.$ac_objext; then
21224 cat >>confdefs.h <<\_ACEOF
21225 #define HAVE_GETHOSTBYNAME_R 1
21229 cat >>confdefs.h <<\_ACEOF
21230 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21233 { echo "$as_me:$LINENO: result: yes" >&5
21234 echo "${ECHO_T}yes" >&6; }
21237 echo "$as_me: failed program was:" >&5
21238 sed 's
/^
/|
/' conftest.$ac_ext >&5
21241 { echo "$as_me:$LINENO: result: no" >&5
21242 echo "${ECHO_T}no" >&6; }
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 for ac_func in gethostbyname
21262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21276 #define $ac_func innocuous_$ac_func
21278 /* System header to define __stub macros and hopefully few prototypes,
21279 which can conflict with char $ac_func (); below.
21280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21281 <limits.h> exists even on freestanding compilers. */
21284 # include <limits.h>
21286 # include <assert.h>
21291 /* Override any GCC internal prototype to avoid an error.
21292 Use char because int might match the return type of a GCC
21293 builtin and then its argument prototype would still apply. */
21298 /* The GNU C library defines this for functions which it implements
21299 to always fail with ENOSYS. Some functions are actually named
21300 something starting with __ and the normal name is an alias. */
21301 #if defined __stub_$ac_func || defined __stub___$ac_func
21308 return $ac_func ();
21313 rm -f conftest.$ac_objext conftest$ac_exeext
21314 if { (ac_try="$ac_link"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_link") 2>conftest.er1
21322 grep -v '^
*+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest$ac_exeext &&
21330 $as_test_x conftest$ac_exeext; then
21331 eval "$as_ac_var=yes"
21333 echo "$as_me: failed program was:" >&5
21334 sed 's
/^
/|
/' conftest.$ac_ext >&5
21336 eval "$as_ac_var=no"
21339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340 conftest$ac_exeext conftest.$ac_ext
21342 ac_res=`eval echo '${'$as_ac_var'}'`
21343 { echo "$as_me:$LINENO: result: $ac_res" >&5
21344 echo "${ECHO_T}$ac_res" >&6; }
21345 if test `eval echo '${'$as_ac_var'}'` = yes; then
21346 cat >>confdefs.h <<_ACEOF
21347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21362 # checks for system services
21365 # Linux requires this for correct f.p. operations
21366 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21367 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21368 if test "${ac_cv_func___fpu_control+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21371 cat >conftest.$ac_ext <<_ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21379 #define __fpu_control innocuous___fpu_control
21381 /* System header to define __stub macros and hopefully few prototypes,
21382 which can conflict with char __fpu_control (); below.
21383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21384 <limits.h> exists even on freestanding compilers. */
21387 # include <limits.h>
21389 # include <assert.h>
21392 #undef __fpu_control
21394 /* Override any GCC internal prototype to avoid an error.
21395 Use char because int might match the return type of a GCC
21396 builtin and then its argument prototype would still apply. */
21400 char __fpu_control ();
21401 /* The GNU C library defines this for functions which it implements
21402 to always fail with ENOSYS. Some functions are actually named
21403 something starting with __ and the normal name is an alias. */
21404 #if defined __stub___fpu_control || defined __stub_____fpu_control
21411 return __fpu_control ();
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_link") 2>conftest.er1
21425 grep -v '^
*+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && {
21430 test -z "$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 } && test -s conftest$ac_exeext &&
21433 $as_test_x conftest$ac_exeext; then
21434 ac_cv_func___fpu_control=yes
21436 echo "$as_me: failed program was:" >&5
21437 sed 's
/^
/|
/' conftest.$ac_ext >&5
21439 ac_cv_func___fpu_control=no
21442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21443 conftest$ac_exeext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21446 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21447 if test $ac_cv_func___fpu_control = yes; then
21451 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21452 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21453 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21456 ac_check_lib_save_LIBS=$LIBS
21457 LIBS="-lieee $LIBS"
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21465 /* Override any GCC internal prototype to avoid an error.
21466 Use char because int might match the return type of a GCC
21467 builtin and then its argument prototype would still apply. */
21471 char __fpu_control ();
21475 return __fpu_control ();
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (ac_try="$ac_link"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_link") 2>conftest.er1
21489 grep -v '^
*+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest$ac_exeext &&
21497 $as_test_x conftest$ac_exeext; then
21498 ac_cv_lib_ieee___fpu_control=yes
21500 echo "$as_me: failed program was:" >&5
21501 sed 's
/^
/|
/' conftest.$ac_ext >&5
21503 ac_cv_lib_ieee___fpu_control=no
21506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21507 conftest$ac_exeext conftest.$ac_ext
21508 LIBS=$ac_check_lib_save_LIBS
21510 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21511 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21512 if test $ac_cv_lib_ieee___fpu_control = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define HAVE_LIBIEEE 1
21517 LIBS="-lieee $LIBS"
21525 # Check for --with-fpectl
21526 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21527 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21529 # Check whether --with-fpectl was given.
21530 if test "${with_fpectl+set}" = set; then
21531 withval=$with_fpectl;
21532 if test "$withval" != no
21535 cat >>confdefs.h <<\_ACEOF
21536 #define WANT_SIGFPE_HANDLER 1
21539 { echo "$as_me:$LINENO: result: yes" >&5
21540 echo "${ECHO_T}yes" >&6; }
21541 else { echo "$as_me:$LINENO: result: no" >&5
21542 echo "${ECHO_T}no" >&6; }
21545 { echo "$as_me:$LINENO: result: no" >&5
21546 echo "${ECHO_T}no" >&6; }
21550 # check for --with-libm=...
21552 case $ac_sys_system in
21556 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21557 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21559 # Check whether --with-libm was given.
21560 if test "${with_libm+set}" = set; then
21561 withval=$with_libm;
21562 if test "$withval" = no
21564 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21565 echo "${ECHO_T}force LIBM empty" >&6; }
21566 elif test "$withval" != yes
21568 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21569 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21570 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21571 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21572 { (exit 1); exit 1; }; }
21575 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21576 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21580 # check for --with-libc=...
21582 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21583 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21585 # Check whether --with-libc was given.
21586 if test "${with_libc+set}" = set; then
21587 withval=$with_libc;
21588 if test "$withval" = no
21590 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21591 echo "${ECHO_T}force LIBC empty" >&6; }
21592 elif test "$withval" != yes
21594 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21595 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21596 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21597 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21598 { (exit 1); exit 1; }; }
21601 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21602 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21606 # ************************************
21607 # * Check for mathematical functions *
21608 # ************************************
21613 # Detect whether system arithmetic is subject to x87-style double
21614 # rounding issues. The result of this test has little meaning on non
21615 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21616 # mode is round-to-nearest and double rounding issues are present, and
21617 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21618 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21619 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21620 if test "${ac_cv_x87_double_rounding+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
21624 if test "$cross_compiling" = yes; then
21625 ac_cv_x87_double_rounding=no
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21634 #include <stdlib.h>
21637 volatile double x, y, z;
21638 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21639 x = 0.99999999999999989; /* 1-2**-53 */
21643 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21649 /* both tests show evidence of double rounding */
21654 rm -f conftest$ac_exeext
21655 if { (ac_try="$ac_link"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_link") 2>&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21665 { (case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_try") 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 ac_cv_x87_double_rounding=no
21676 echo "$as_me: program exited with status $ac_status" >&5
21677 echo "$as_me: failed program was:" >&5
21678 sed 's
/^
/|
/' conftest.$ac_ext >&5
21680 ( exit $ac_status )
21681 ac_cv_x87_double_rounding=yes
21683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21689 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21690 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21691 if test "$ac_cv_x87_double_rounding" = yes
21694 cat >>confdefs.h <<\_ACEOF
21695 #define X87_DOUBLE_ROUNDING 1
21700 # Multiprocessing check for broken sem_getvalue
21701 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
21702 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
21703 if test "$cross_compiling" = yes; then
21704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21705 See \`config.log' for more details.
" >&5
21706 echo "$as_me: error
: cannot run
test program
while cross compiling
21707 See \
`config.log' for more details." >&2;}
21708 { (exit 1); exit 1; }; }
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21717 #include <unistd.h>
21720 #include <semaphore.h>
21721 #include <sys/stat.h>
21724 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
21728 perror("sem_open");
21732 res = sem_getvalue(a, &count);
21734 return res==-1 ? 1 : 0;
21739 rm -f conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21743 *) ac_try_echo
=$ac_try;;
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_link") 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21750 { (case "(($ac_try" in
21751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_try") 2>&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759 { echo "$as_me:$LINENO: result: no" >&5
21760 echo "${ECHO_T}no" >&6; }
21762 echo "$as_me: program exited with status $ac_status" >&5
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ( exit $ac_status )
21767 { echo "$as_me:$LINENO: result: yes" >&5
21768 echo "${ECHO_T}yes" >&6; }
21770 cat >>confdefs.h <<\_ACEOF
21771 #define HAVE_BROKEN_SEM_GETVALUE 1
21776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21781 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21782 # -0. on some architectures.
21783 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21784 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21785 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 if test "$cross_compiling" = yes; then
21790 ac_cv_tanh_preserves_zero_sign=no
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21800 #include <stdlib.h>
21802 /* return 0 if either negative zeros don't exist
21803 on this platform or if negative zeros exist
21804 and tanh(-0.) == -0. */
21805 if (atan2(0., -1.) == atan2(-0., -1.) ||
21806 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21811 rm -f conftest$ac_exeext
21812 if { (ac_try="$ac_link"
21813 case "(($ac_try" in
21814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21815 *) ac_try_echo
=$ac_try;;
21817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818 (eval "$ac_link") 2>&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21822 { (case "(($ac_try" in
21823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 ac_cv_tanh_preserves_zero_sign=yes
21833 echo "$as_me: program exited with status $ac_status" >&5
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ( exit $ac_status )
21838 ac_cv_tanh_preserves_zero_sign=no
21840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21847 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21848 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21851 cat >>confdefs.h <<\_ACEOF
21852 #define TANH_PRESERVES_ZERO_SIGN 1
21865 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
21867 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21881 #define $ac_func innocuous_$ac_func
21883 /* System header to define __stub macros and hopefully few prototypes,
21884 which can conflict with char $ac_func (); below.
21885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21886 <limits.h> exists even on freestanding compilers. */
21889 # include <limits.h>
21891 # include <assert.h>
21896 /* Override any GCC internal prototype to avoid an error.
21897 Use char because int might match the return type of a GCC
21898 builtin and then its argument prototype would still apply. */
21903 /* The GNU C library defines this for functions which it implements
21904 to always fail with ENOSYS. Some functions are actually named
21905 something starting with __ and the normal name is an alias. */
21906 #if defined __stub_$ac_func || defined __stub___$ac_func
21913 return $ac_func ();
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21922 *) ac_try_echo
=$ac_try;;
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_link") 2>conftest.er1
21927 grep -v '^ *+' conftest.er1
>conftest.err
21929 cat conftest.err
>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } && {
21932 test -z "$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21934 } && test -s conftest
$ac_exeext &&
21935 $as_test_x conftest
$ac_exeext; then
21936 eval "$as_ac_var=yes"
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.
$ac_ext >&5
21941 eval "$as_ac_var=no"
21944 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21945 conftest
$ac_exeext conftest.
$ac_ext
21947 ac_res
=`eval echo '${'$as_ac_var'}'`
21948 { echo "$as_me:$LINENO: result: $ac_res" >&5
21949 echo "${ECHO_T}$ac_res" >&6; }
21950 if test `eval echo '${'$as_ac_var'}'` = yes; then
21951 cat >>confdefs.h
<<_ACEOF
21952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21958 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
21959 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
21960 if test "${ac_cv_have_decl_isinf+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21963 cat >conftest.
$ac_ext <<_ACEOF
21966 cat confdefs.h
>>conftest.
$ac_ext
21967 cat >>conftest.
$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21982 rm -f conftest.
$ac_objext
21983 if { (ac_try
="$ac_compile"
21984 case "(($ac_try" in
21985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_compile") 2>conftest.er1
21991 grep -v '^ *+' conftest.er1 >conftest.err
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } && {
21996 test -z "$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21998 } && test -s conftest.$ac_objext; then
21999 ac_cv_have_decl_isinf=yes
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_cv_have_decl_isinf=no
22007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22010 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22011 if test $ac_cv_have_decl_isinf = yes; then
22013 cat >>confdefs.h <<_ACEOF
22014 #define HAVE_DECL_ISINF 1
22019 cat >>confdefs.h <<_ACEOF
22020 #define HAVE_DECL_ISINF 0
22025 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22026 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22027 if test "${ac_cv_have_decl_isnan+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22049 rm -f conftest.$ac_objext
22050 if { (ac_try="$ac_compile"
22051 case "(($ac_try" in
22052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22053 *) ac_try_echo
=$ac_try;;
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_compile") 2>conftest.er1
22058 grep -v '^ *+' conftest.er1
>conftest.err
22060 cat conftest.err
>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest.
$ac_objext; then
22066 ac_cv_have_decl_isnan
=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.
$ac_ext >&5
22071 ac_cv_have_decl_isnan
=no
22074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22077 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22078 if test $ac_cv_have_decl_isnan = yes; then
22080 cat >>confdefs.h
<<_ACEOF
22081 #define HAVE_DECL_ISNAN 1
22086 cat >>confdefs.h
<<_ACEOF
22087 #define HAVE_DECL_ISNAN 0
22092 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22093 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22094 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 cat >conftest.
$ac_ext <<_ACEOF
22100 cat confdefs.h
>>conftest.
$ac_ext
22101 cat >>conftest.
$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22116 rm -f conftest.
$ac_objext
22117 if { (ac_try
="$ac_compile"
22118 case "(($ac_try" in
22119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_compile") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest.$ac_objext; then
22133 ac_cv_have_decl_isfinite=yes
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ac_cv_have_decl_isfinite=no
22141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22144 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22145 if test $ac_cv_have_decl_isfinite = yes; then
22147 cat >>confdefs.h <<_ACEOF
22148 #define HAVE_DECL_ISFINITE 1
22153 cat >>confdefs.h <<_ACEOF
22154 #define HAVE_DECL_ISFINITE 0
22164 # determine what size digit to use for Python's longs
22165 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22166 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22167 # Check whether --enable-big-digits was given.
22168 if test "${enable_big_digits+set}" = set; then
22169 enableval=$enable_big_digits; case $enable_big_digits in
22171 enable_big_digits=30 ;;
22173 enable_big_digits=15 ;;
22177 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22178 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22179 { (exit 1); exit 1; }; } ;;
22181 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22182 echo "${ECHO_T}$enable_big_digits" >&6; }
22184 cat >>confdefs.h <<_ACEOF
22185 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22190 { echo "$as_me:$LINENO: result: no value specified" >&5
22191 echo "${ECHO_T}no value specified" >&6; }
22195 # check for wchar.h
22196 if test "${ac_cv_header_wchar_h+set}" = set; then
22197 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22198 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22199 if test "${ac_cv_header_wchar_h+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22203 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22205 # Is the header compilable?
22206 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22207 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22208 cat >conftest.$ac_ext <<_ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22214 $ac_includes_default
22217 rm -f conftest.$ac_objext
22218 if { (ac_try="$ac_compile"
22219 case "(($ac_try" in
22220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22221 *) ac_try_echo
=$ac_try;;
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_compile") 2>conftest.er1
22226 grep -v '^ *+' conftest.er1
>conftest.err
22228 cat conftest.err
>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } && {
22231 test -z "$ac_c_werror_flag" ||
22232 test ! -s conftest.err
22233 } && test -s conftest.
$ac_objext; then
22234 ac_header_compiler
=yes
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.
$ac_ext >&5
22239 ac_header_compiler
=no
22242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22244 echo "${ECHO_T}$ac_header_compiler" >&6; }
22246 # Is the header present?
22247 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22248 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22249 cat >conftest.
$ac_ext <<_ACEOF
22252 cat confdefs.h
>>conftest.
$ac_ext
22253 cat >>conftest.
$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22257 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22258 case "(($ac_try" in
22259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } >/dev/null && {
22270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22273 ac_header_preproc=yes
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ac_header_preproc=no
22281 rm -f conftest.err conftest.$ac_ext
22282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22283 echo "${ECHO_T}$ac_header_preproc" >&6; }
22285 # So? What about this header?
22286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22288 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22289 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22290 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22291 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22292 ac_header_preproc=yes
22295 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22296 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22297 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22298 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22300 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22302 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22304 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22306 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22308 ## ------------------------------------------------ ##
22309 ## Report this to http://www.python.org/python-bugs ##
22310 ## ------------------------------------------------ ##
22312 ) | sed "s/^/$as_me: WARNING: /" >&2
22315 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22316 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22317 if test "${ac_cv_header_wchar_h+set}" = set; then
22318 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 ac_cv_header_wchar_h=$ac_header_preproc
22322 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22323 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22326 if test $ac_cv_header_wchar_h = yes; then
22329 cat >>confdefs.h <<\_ACEOF
22330 #define HAVE_WCHAR_H 1
22342 # determine wchar_t size
22343 if test "$wchar_h" = yes
22345 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22346 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22347 if test "${ac_cv_type_wchar_t+set}" = set; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22358 typedef wchar_t ac__type_new_;
22362 if ((ac__type_new_ *) 0)
22364 if (sizeof (ac__type_new_))
22370 rm -f conftest.$ac_objext
22371 if { (ac_try="$ac_compile"
22372 case "(($ac_try" in
22373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22374 *) ac_try_echo
=$ac_try;;
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_compile") 2>conftest.er1
22379 grep -v '^ *+' conftest.er1
>conftest.err
22381 cat conftest.err
>&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } && {
22384 test -z "$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 } && test -s conftest.
$ac_objext; then
22387 ac_cv_type_wchar_t
=yes
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.
$ac_ext >&5
22392 ac_cv_type_wchar_t
=no
22395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22397 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22398 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22400 # The cast to long int works around a bug in the HP C Compiler
22401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22403 # This bug is HP SR number 8606223364.
22404 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22405 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22406 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 if test "$cross_compiling" = yes; then
22410 # Depending upon the size, compute the lo and hi bounds.
22411 cat >conftest.
$ac_ext <<_ACEOF
22414 cat confdefs.h
>>conftest.
$ac_ext
22415 cat >>conftest.
$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22419 typedef wchar_t ac__type_sizeof_;
22423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22430 rm -f conftest.
$ac_objext
22431 if { (ac_try
="$ac_compile"
22432 case "(($ac_try" in
22433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_compile") 2>conftest.er1
22439 grep -v '^ *+' conftest.er1 >conftest.err
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest.$ac_objext; then
22449 cat >conftest.$ac_ext <<_ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22457 typedef wchar_t ac__type_sizeof_;
22461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22468 rm -f conftest.$ac_objext
22469 if { (ac_try="$ac_compile"
22470 case "(($ac_try" in
22471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22472 *) ac_try_echo
=$ac_try;;
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_compile") 2>conftest.er1
22477 grep -v '^ *+' conftest.er1
>conftest.err
22479 cat conftest.err
>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest.
$ac_objext; then
22485 ac_hi
=$ac_mid; break
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.
$ac_ext >&5
22490 ac_lo
=`expr $ac_mid + 1`
22491 if test $ac_lo -le $ac_mid; then
22495 ac_mid
=`expr 2 '*' $ac_mid + 1`
22498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.
$ac_ext >&5
22504 cat >conftest.
$ac_ext <<_ACEOF
22507 cat confdefs.h
>>conftest.
$ac_ext
22508 cat >>conftest.
$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22512 typedef wchar_t ac__type_sizeof_;
22516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22523 rm -f conftest.
$ac_objext
22524 if { (ac_try
="$ac_compile"
22525 case "(($ac_try" in
22526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_compile") 2>conftest.er1
22532 grep -v '^ *+' conftest.er1 >conftest.err
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest.$ac_objext; then
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22550 typedef wchar_t ac__type_sizeof_;
22554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22565 *) ac_try_echo
=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_compile") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1
>conftest.err
22572 cat conftest.err
>&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest.
$ac_objext; then
22578 ac_lo
=$ac_mid; break
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.
$ac_ext >&5
22583 ac_hi
=`expr '(' $ac_mid ')' - 1`
22584 if test $ac_mid -le $ac_hi; then
22588 ac_mid
=`expr 2 '*' $ac_mid`
22591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22594 echo "$as_me: failed program was:" >&5
22595 sed 's/^/| /' conftest.
$ac_ext >&5
22600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22604 # Binary search between lo and hi bounds.
22605 while test "x$ac_lo" != "x$ac_hi"; do
22606 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22607 cat >conftest.
$ac_ext <<_ACEOF
22610 cat confdefs.h
>>conftest.
$ac_ext
22611 cat >>conftest.
$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22615 typedef wchar_t ac__type_sizeof_;
22619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22626 rm -f conftest.
$ac_objext
22627 if { (ac_try
="$ac_compile"
22628 case "(($ac_try" in
22629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22630 *) ac_try_echo=$ac_try;;
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633 (eval "$ac_compile") 2>conftest.er1
22635 grep -v '^ *+' conftest.er1 >conftest.err
22637 cat conftest.err >&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && {
22640 test -z "$ac_c_werror_flag" ||
22641 test ! -s conftest.err
22642 } && test -s conftest.$ac_objext; then
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 ac_lo=`expr '(' $ac_mid ')' + 1`
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22655 '') if test "$ac_cv_type_wchar_t" = yes; then
22656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22657 See \`config.log
' for more details." >&5
22658 echo "$as_me: error: cannot compute sizeof (wchar_t)
22659 See \`config.log' for more details.
" >&2;}
22660 { (exit 77); exit 77; }; }
22662 ac_cv_sizeof_wchar_t=0
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22674 typedef wchar_t ac__type_sizeof_;
22675 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22676 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22678 #include <stdlib.h>
22683 FILE *f = fopen ("conftest.val
", "w
");
22686 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22688 long int i = longval ();
22689 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22691 fprintf (f, "%ld
\n", i);
22695 unsigned long int i = ulongval ();
22696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22698 fprintf (f, "%lu
\n", i);
22700 return ferror (f) || fclose (f) != 0;
22706 rm -f conftest$ac_exeext
22707 if { (ac_try="$ac_link"
22708 case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_link") 2>&5
22715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22717 { (case "(($ac_try" in
22718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719 *) ac_try_echo=$ac_try;;
22721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22722 (eval "$ac_try") 2>&5
22724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22725 (exit $ac_status); }; }; then
22726 ac_cv_sizeof_wchar_t=`cat conftest.val`
22728 echo "$as_me: program exited with status
$ac_status" >&5
22729 echo "$as_me: failed program was
:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 ( exit $ac_status )
22733 if test "$ac_cv_type_wchar_t" = yes; then
22734 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22735 See \
`config.log' for more details." >&5
22736 echo "$as_me: error: cannot compute sizeof (wchar_t)
22737 See \`config.log
' for more details." >&2;}
22738 { (exit 77); exit 77; }; }
22740 ac_cv_sizeof_wchar_t=0
22743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22747 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22748 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22752 cat >>confdefs.h <<_ACEOF
22753 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22759 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22760 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22770 #if TCL_UTF_MAX != 6
22771 # error "NOT UCS4_TCL"
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^
*+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_UCS4_TCL 1
22807 echo "$as_me: failed program was:" >&5
22808 sed 's
/^
/|
/' conftest.$ac_ext >&5
22813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22814 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22815 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22817 # check whether wchar_t is signed or not
22818 if test "$wchar_h" = yes
22820 # check whether wchar_t is signed or not
22821 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22822 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22823 if test "${ac_cv_wchar_t_signed+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 if test "$cross_compiling" = yes; then
22828 ac_cv_wchar_t_signed=yes
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22840 /* Success: exit code 0 */
22841 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22845 rm -f conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_link") 2>&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22856 { (case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_try") 2>&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; }; then
22865 ac_cv_wchar_t_signed=yes
22867 echo "$as_me: program exited with status $ac_status" >&5
22868 echo "$as_me: failed program was:" >&5
22869 sed 's
/^
/|
/' conftest.$ac_ext >&5
22871 ( exit $ac_status )
22872 ac_cv_wchar_t_signed=no
22874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22880 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22881 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22884 { echo "$as_me:$LINENO: checking what type to use for str" >&5
22885 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
22887 # Check whether --with-wide-unicode was given.
22888 if test "${with_wide_unicode+set}" = set; then
22889 withval=$with_wide_unicode;
22890 if test "$withval" != no
22891 then unicode_size="4"
22892 else unicode_size="2"
22897 case "$have_ucs4_tcl" in
22898 yes) unicode_size="4" ;;
22899 *) unicode_size="2" ;;
22907 case "$unicode_size" in
22908 4) cat >>confdefs.h <<\_ACEOF
22909 #define Py_UNICODE_SIZE 4
22912 *) cat >>confdefs.h <<\_ACEOF
22913 #define Py_UNICODE_SIZE 2
22921 # wchar_t is only usable if it maps to an unsigned type
22922 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22923 -a "$ac_cv_wchar_t_signed" = "no"
22925 PY_UNICODE_TYPE="wchar_t"
22927 cat >>confdefs.h <<\_ACEOF
22928 #define HAVE_USABLE_WCHAR_T 1
22931 cat >>confdefs.h <<\_ACEOF
22932 #define PY_UNICODE_TYPE wchar_t
22935 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22937 PY_UNICODE_TYPE="unsigned short"
22938 cat >>confdefs.h <<\_ACEOF
22939 #define PY_UNICODE_TYPE unsigned short
22942 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22944 PY_UNICODE_TYPE="unsigned long"
22945 cat >>confdefs.h <<\_ACEOF
22946 #define PY_UNICODE_TYPE unsigned long
22950 PY_UNICODE_TYPE="no type found"
22952 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22953 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22955 # check for endianness
22956 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22957 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22958 if test "${ac_cv_c_bigendian+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 # See if sys/param.h defines the BYTE_ORDER macro.
22962 cat >conftest.$ac_ext <<_ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <sys/types.h>
22969 #include <sys/param.h>
22974 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22975 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22976 bogus endian macros
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_compile") 2>conftest.er1
22992 grep -v '^
*+' conftest.er1 >conftest.err
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } && {
22997 test -z "$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 } && test -s conftest.$ac_objext; then
23000 # It does; now see whether it defined to BIG_ENDIAN or not.
23001 cat >conftest.$ac_ext <<_ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 #include <sys/types.h>
23008 #include <sys/param.h>
23013 #if BYTE_ORDER != BIG_ENDIAN
23021 rm -f conftest.$ac_objext
23022 if { (ac_try="$ac_compile"
23023 case "(($ac_try" in
23024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23025 *) ac_try_echo=$ac_try;;
23027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23028 (eval "$ac_compile") 2>conftest.er1
23030 grep -v '^
*+' conftest.er1 >conftest.err
23032 cat conftest.err >&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); } && {
23035 test -z "$ac_c_werror_flag" ||
23036 test ! -s conftest.err
23037 } && test -s conftest.$ac_objext; then
23038 ac_cv_c_bigendian=yes
23040 echo "$as_me: failed program was:" >&5
23041 sed 's
/^
/|
/' conftest.$ac_ext >&5
23043 ac_cv_c_bigendian=no
23046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23048 echo "$as_me: failed program was:" >&5
23049 sed 's
/^
/|
/' conftest.$ac_ext >&5
23051 # It does not; compile a test program.
23052 if test "$cross_compiling" = yes; then
23053 # try to guess the endianness by grepping values into an object file
23054 ac_cv_c_bigendian=unknown
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23062 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23063 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23064 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23065 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23066 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23070 _ascii (); _ebcdic ();
23075 rm -f conftest.$ac_objext
23076 if { (ac_try="$ac_compile"
23077 case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_compile") 2>conftest.er1
23084 grep -v '^
*+' conftest.er1 >conftest.err
23086 cat conftest.err >&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } && {
23089 test -z "$ac_c_werror_flag" ||
23090 test ! -s conftest.err
23091 } && test -s conftest.$ac_objext; then
23092 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23093 ac_cv_c_bigendian=yes
23095 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23096 if test "$ac_cv_c_bigendian" = unknown; then
23097 ac_cv_c_bigendian=no
23099 # finding both strings is unlikely to happen, but who knows?
23100 ac_cv_c_bigendian=unknown
23104 echo "$as_me: failed program was:" >&5
23105 sed 's
/^
/|
/' conftest.$ac_ext >&5
23110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 $ac_includes_default
23123 /* Are we little or big endian? From Harbison&Steele. */
23127 char c[sizeof (long int)];
23130 return u.c[sizeof (long int) - 1] == 1;
23136 rm -f conftest$ac_exeext
23137 if { (ac_try="$ac_link"
23138 case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_link") 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23147 { (case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_try") 2>&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; }; then
23156 ac_cv_c_bigendian=no
23158 echo "$as_me: program exited with status $ac_status" >&5
23159 echo "$as_me: failed program was:" >&5
23160 sed 's
/^
/|
/' conftest.$ac_ext >&5
23162 ( exit $ac_status )
23163 ac_cv_c_bigendian=yes
23165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23173 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23174 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23175 case $ac_cv_c_bigendian in
23178 cat >>confdefs.h <<\_ACEOF
23179 #define WORDS_BIGENDIAN 1
23185 { { echo "$as_me:$LINENO: error: unknown endianness
23186 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23187 echo "$as_me: error: unknown endianness
23188 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23189 { (exit 1); exit 1; }; } ;;
23193 # Check whether right shifting a negative integer extends the sign bit
23194 # or fills with zeros (like the Cray J90, according to Tim Peters).
23195 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23196 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23197 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 if test "$cross_compiling" = yes; then
23202 ac_cv_rshift_extends_sign=yes
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23213 exit(((-1)>>3 == -1) ? 0 : 1);
23217 rm -f conftest$ac_exeext
23218 if { (ac_try="$ac_link"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_link") 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23228 { (case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_try") 2>&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 ac_cv_rshift_extends_sign=yes
23239 echo "$as_me: program exited with status $ac_status" >&5
23240 echo "$as_me: failed program was:" >&5
23241 sed 's
/^
/|
/' conftest.$ac_ext >&5
23243 ( exit $ac_status )
23244 ac_cv_rshift_extends_sign=no
23246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23252 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23253 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23254 if test "$ac_cv_rshift_extends_sign" = no
23257 cat >>confdefs.h <<\_ACEOF
23258 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23263 # check for getc_unlocked and related locking functions
23264 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23265 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23266 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23270 cat >conftest.$ac_ext <<_ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23281 FILE *f = fopen("/dev/null", "r");
23290 rm -f conftest.$ac_objext conftest$ac_exeext
23291 if { (ac_try="$ac_link"
23292 case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_link") 2>conftest.er1
23299 grep -v '^
*+' conftest.er1 >conftest.err
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && {
23304 test -z "$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 } && test -s conftest$ac_exeext &&
23307 $as_test_x conftest$ac_exeext; then
23308 ac_cv_have_getc_unlocked=yes
23310 echo "$as_me: failed program was:" >&5
23311 sed 's
/^
/|
/' conftest.$ac_ext >&5
23313 ac_cv_have_getc_unlocked=no
23316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23317 conftest$ac_exeext conftest.$ac_ext
23320 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23321 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23322 if test "$ac_cv_have_getc_unlocked" = yes
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_GETC_UNLOCKED 1
23331 # check where readline lives
23332 # save the value of LIBS so we don't actually link Python with readline
23333 LIBS_no_readline
=$LIBS
23335 # On some systems we need to link readline to a termcap compatible
23336 # library. NOTE: Keep the precedence of listed libraries synchronised
23338 py_cv_lib_readline
=no
23339 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23340 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23341 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23342 if test -z "$py_libtermcap"; then
23343 READLINE_LIBS
="-lreadline"
23345 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23347 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23348 cat >conftest.
$ac_ext <<_ACEOF
23351 cat confdefs.h
>>conftest.
$ac_ext
23352 cat >>conftest.
$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23355 /* Override any GCC internal prototype to avoid an error.
23356 Use char because int might match the return type of a GCC
23357 builtin and then its argument prototype would still apply. */
23365 return readline ();
23370 rm -f conftest.
$ac_objext conftest
$ac_exeext
23371 if { (ac_try
="$ac_link"
23372 case "(($ac_try" in
23373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_link") 2>conftest.er1
23379 grep -v '^ *+' conftest.er1 >conftest.err
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest$ac_exeext &&
23387 $as_test_x conftest$ac_exeext; then
23388 py_cv_lib_readline=yes
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23397 conftest$ac_exeext conftest.$ac_ext
23398 if test $py_cv_lib_readline = yes; then
23402 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23403 #AC_SUBST([READLINE_LIBS])
23404 if test $py_cv_lib_readline = no; then
23405 { echo "$as_me:$LINENO: result: none" >&5
23406 echo "${ECHO_T}none" >&6; }
23408 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23409 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23411 cat >>confdefs.h <<\_ACEOF
23412 #define HAVE_LIBREADLINE 1
23417 # check for readline 2.1
23418 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23419 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23420 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 ac_check_lib_save_LIBS=$LIBS
23424 LIBS="-lreadline $READLINE_LIBS $LIBS"
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23432 /* Override any GCC internal prototype to avoid an error.
23433 Use char because int might match the return type of a GCC
23434 builtin and then its argument prototype would still apply. */
23438 char rl_callback_handler_install ();
23442 return rl_callback_handler_install ();
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23451 *) ac_try_echo
=$ac_try;;
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_link") 2>conftest.er1
23456 grep -v '^ *+' conftest.er1
>conftest.err
23458 cat conftest.err
>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest
$ac_exeext &&
23464 $as_test_x conftest
$ac_exeext; then
23465 ac_cv_lib_readline_rl_callback_handler_install
=yes
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.
$ac_ext >&5
23470 ac_cv_lib_readline_rl_callback_handler_install
=no
23473 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23474 conftest
$ac_exeext conftest.
$ac_ext
23475 LIBS
=$ac_check_lib_save_LIBS
23477 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23478 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23479 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23481 cat >>confdefs.h
<<\_ACEOF
23482 #define HAVE_RL_CALLBACK 1
23488 # check for readline 2.2
23489 cat >conftest.
$ac_ext <<_ACEOF
23492 cat confdefs.h
>>conftest.
$ac_ext
23493 cat >>conftest.
$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 #include <readline/readline.h>
23497 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23498 case "(($ac_try" in
23499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23505 grep -v '^ *+' conftest.er1 >conftest.err
23507 cat conftest.err >&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } >/dev/null && {
23510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23511 test ! -s conftest.err
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23521 rm -f conftest.err conftest.$ac_ext
23522 if test $have_readline = yes
23524 cat >conftest.$ac_ext <<_ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h. */
23530 #include <readline/readline.h>
23533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23534 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23536 cat >>confdefs.h <<\_ACEOF
23537 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23545 # check for readline 4.0
23546 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23547 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23548 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23551 ac_check_lib_save_LIBS=$LIBS
23552 LIBS="-lreadline $READLINE_LIBS $LIBS"
23553 cat >conftest.$ac_ext <<_ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h. */
23560 /* Override any GCC internal prototype to avoid an error.
23561 Use char because int might match the return type of a GCC
23562 builtin and then its argument prototype would still apply. */
23566 char rl_pre_input_hook ();
23570 return rl_pre_input_hook ();
23575 rm -f conftest.$ac_objext conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23579 *) ac_try_echo
=$ac_try;;
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_link") 2>conftest.er1
23584 grep -v '^ *+' conftest.er1
>conftest.err
23586 cat conftest.err
>&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && {
23589 test -z "$ac_c_werror_flag" ||
23590 test ! -s conftest.err
23591 } && test -s conftest
$ac_exeext &&
23592 $as_test_x conftest
$ac_exeext; then
23593 ac_cv_lib_readline_rl_pre_input_hook
=yes
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.
$ac_ext >&5
23598 ac_cv_lib_readline_rl_pre_input_hook
=no
23601 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23602 conftest
$ac_exeext conftest.
$ac_ext
23603 LIBS
=$ac_check_lib_save_LIBS
23605 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23606 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23607 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23609 cat >>confdefs.h
<<\_ACEOF
23610 #define HAVE_RL_PRE_INPUT_HOOK 1
23617 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23618 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23619 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23620 echo $ECHO_N "(cached) $ECHO_C" >&6
23622 ac_check_lib_save_LIBS
=$LIBS
23623 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23624 cat >conftest.
$ac_ext <<_ACEOF
23627 cat confdefs.h
>>conftest.
$ac_ext
23628 cat >>conftest.
$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23631 /* Override any GCC internal prototype to avoid an error.
23632 Use char because int might match the return type of a GCC
23633 builtin and then its argument prototype would still apply. */
23637 char rl_completion_display_matches_hook ();
23641 return rl_completion_display_matches_hook ();
23646 rm -f conftest.
$ac_objext conftest
$ac_exeext
23647 if { (ac_try
="$ac_link"
23648 case "(($ac_try" in
23649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_link") 2>conftest.er1
23655 grep -v '^ *+' conftest.er1 >conftest.err
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && {
23660 test -z "$ac_c_werror_flag" ||
23661 test ! -s conftest.err
23662 } && test -s conftest$ac_exeext &&
23663 $as_test_x conftest$ac_exeext; then
23664 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23673 conftest$ac_exeext conftest.$ac_ext
23674 LIBS=$ac_check_lib_save_LIBS
23676 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23677 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23678 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23687 # check for readline 4.2
23688 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23689 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23690 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23693 ac_check_lib_save_LIBS=$LIBS
23694 LIBS="-lreadline $READLINE_LIBS $LIBS"
23695 cat >conftest.$ac_ext <<_ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23702 /* Override any GCC internal prototype to avoid an error.
23703 Use char because int might match the return type of a GCC
23704 builtin and then its argument prototype would still apply. */
23708 char rl_completion_matches ();
23712 return rl_completion_matches ();
23717 rm -f conftest.$ac_objext conftest$ac_exeext
23718 if { (ac_try="$ac_link"
23719 case "(($ac_try" in
23720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23721 *) ac_try_echo
=$ac_try;;
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_link") 2>conftest.er1
23726 grep -v '^ *+' conftest.er1
>conftest.err
23728 cat conftest.err
>&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } && {
23731 test -z "$ac_c_werror_flag" ||
23732 test ! -s conftest.err
23733 } && test -s conftest
$ac_exeext &&
23734 $as_test_x conftest
$ac_exeext; then
23735 ac_cv_lib_readline_rl_completion_matches
=yes
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.
$ac_ext >&5
23740 ac_cv_lib_readline_rl_completion_matches
=no
23743 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23744 conftest
$ac_exeext conftest.
$ac_ext
23745 LIBS
=$ac_check_lib_save_LIBS
23747 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23748 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23749 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23751 cat >>confdefs.h
<<\_ACEOF
23752 #define HAVE_RL_COMPLETION_MATCHES 1
23758 # also in readline 4.2
23759 cat >conftest.
$ac_ext <<_ACEOF
23762 cat confdefs.h
>>conftest.
$ac_ext
23763 cat >>conftest.
$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 #include <readline/readline.h>
23767 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23768 case "(($ac_try" in
23769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23775 grep -v '^ *+' conftest.er1 >conftest.err
23777 cat conftest.err >&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } >/dev/null && {
23780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23781 test ! -s conftest.err
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23791 rm -f conftest.err conftest.$ac_ext
23792 if test $have_readline = yes
23794 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23800 #include <readline/readline.h>
23803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23804 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23806 cat >>confdefs.h <<\_ACEOF
23807 #define HAVE_RL_CATCH_SIGNAL 1
23815 # End of readline checks: restore LIBS
23816 LIBS=$LIBS_no_readline
23818 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23819 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23820 if test "${ac_cv_broken_nice+set}" = set; then
23821 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 if test "$cross_compiling" = yes; then
23825 ac_cv_broken_nice=no
23827 cat >conftest.$ac_ext <<_ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23836 int val1 = nice(1);
23837 if (val1 != -1 && val1 == nice(2))
23843 rm -f conftest$ac_exeext
23844 if { (ac_try="$ac_link"
23845 case "(($ac_try" in
23846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23847 *) ac_try_echo
=$ac_try;;
23849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23850 (eval "$ac_link") 2>&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23854 { (case "(($ac_try" in
23855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_try") 2>&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23863 ac_cv_broken_nice=yes
23865 echo "$as_me: program exited with status $ac_status" >&5
23866 echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23869 ( exit $ac_status )
23870 ac_cv_broken_nice=no
23872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23878 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23879 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23880 if test "$ac_cv_broken_nice" = yes
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_BROKEN_NICE 1
23889 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23890 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23891 if test "$cross_compiling" = yes; then
23892 ac_cv_broken_poll=no
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23905 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23909 int poll_test = poll (&poll_struct, 1, 0);
23915 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23926 rm -f conftest$ac_exeext
23927 if { (ac_try="$ac_link"
23928 case "(($ac_try" in
23929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23930 *) ac_try_echo
=$ac_try;;
23932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23933 (eval "$ac_link") 2>&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23937 { (case "(($ac_try" in
23938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_try") 2>&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 ac_cv_broken_poll=yes
23948 echo "$as_me: program exited with status $ac_status" >&5
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ( exit $ac_status )
23953 ac_cv_broken_poll=no
23955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23959 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23960 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23961 if test "$ac_cv_broken_poll" = yes
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_BROKEN_POLL 1
23970 # Before we can test tzset, we need to check if struct tm has a tm_zone
23971 # (which is not required by ISO C or UNIX spec) and/or if we support
23973 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23974 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23975 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 #include <sys/types.h>
23985 #include <$ac_cv_struct_tm>
23991 static struct tm ac_aggr;
23992 if (ac_aggr.tm_zone)
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
24000 case "(($ac_try" in
24001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24002 *) ac_try_echo
=$ac_try;;
24004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24007 grep -v '^ *+' conftest.er1
>conftest.err
24009 cat conftest.err
>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.
$ac_objext; then
24015 ac_cv_member_struct_tm_tm_zone
=yes
24017 echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.
$ac_ext >&5
24020 cat >conftest.
$ac_ext <<_ACEOF
24023 cat confdefs.h
>>conftest.
$ac_ext
24024 cat >>conftest.
$ac_ext <<_ACEOF
24025 /* end confdefs.h. */
24026 #include <sys/types.h>
24027 #include <$ac_cv_struct_tm>
24033 static struct tm ac_aggr;
24034 if (sizeof ac_aggr.tm_zone)
24040 rm -f conftest.
$ac_objext
24041 if { (ac_try
="$ac_compile"
24042 case "(($ac_try" in
24043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24044 *) ac_try_echo=$ac_try;;
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047 (eval "$ac_compile") 2>conftest.er1
24049 grep -v '^ *+' conftest.er1 >conftest.err
24051 cat conftest.err >&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } && {
24054 test -z "$ac_c_werror_flag" ||
24055 test ! -s conftest.err
24056 } && test -s conftest.$ac_objext; then
24057 ac_cv_member_struct_tm_tm_zone=yes
24059 echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_member_struct_tm_tm_zone=no
24065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24071 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24072 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24074 cat >>confdefs.h <<_ACEOF
24075 #define HAVE_STRUCT_TM_TM_ZONE 1
24081 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_TM_ZONE 1
24088 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24089 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24090 if test "${ac_cv_have_decl_tzname+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24093 cat >conftest.$ac_ext <<_ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h. */
24112 rm -f conftest.$ac_objext
24113 if { (ac_try="$ac_compile"
24114 case "(($ac_try" in
24115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24116 *) ac_try_echo
=$ac_try;;
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119 (eval "$ac_compile") 2>conftest.er1
24121 grep -v '^ *+' conftest.er1
>conftest.err
24123 cat conftest.err
>&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest.
$ac_objext; then
24129 ac_cv_have_decl_tzname
=yes
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.
$ac_ext >&5
24134 ac_cv_have_decl_tzname
=no
24137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24139 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24140 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24141 if test $ac_cv_have_decl_tzname = yes; then
24143 cat >>confdefs.h
<<_ACEOF
24144 #define HAVE_DECL_TZNAME 1
24149 cat >>confdefs.h
<<_ACEOF
24150 #define HAVE_DECL_TZNAME 0
24157 { echo "$as_me:$LINENO: checking for tzname" >&5
24158 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24159 if test "${ac_cv_var_tzname+set}" = set; then
24160 echo $ECHO_N "(cached) $ECHO_C" >&6
24162 cat >conftest.
$ac_ext <<_ACEOF
24165 cat confdefs.h
>>conftest.
$ac_ext
24166 cat >>conftest.
$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24169 #if !HAVE_DECL_TZNAME
24170 extern char *tzname[];
24176 return tzname[0][0];
24181 rm -f conftest.
$ac_objext conftest
$ac_exeext
24182 if { (ac_try
="$ac_link"
24183 case "(($ac_try" in
24184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_link") 2>conftest.er1
24190 grep -v '^ *+' conftest.er1 >conftest.err
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } && {
24195 test -z "$ac_c_werror_flag" ||
24196 test ! -s conftest.err
24197 } && test -s conftest$ac_exeext &&
24198 $as_test_x conftest$ac_exeext; then
24199 ac_cv_var_tzname=yes
24201 echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24204 ac_cv_var_tzname=no
24207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24208 conftest$ac_exeext conftest.$ac_ext
24210 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24211 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24212 if test $ac_cv_var_tzname = yes; then
24214 cat >>confdefs.h <<\_ACEOF
24215 #define HAVE_TZNAME 1
24222 # check tzset(3) exists and works like we expect it to
24223 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24224 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24225 if test "${ac_cv_working_tzset+set}" = set; then
24226 echo $ECHO_N "(cached) $ECHO_C" >&6
24229 if test "$cross_compiling" = yes; then
24230 ac_cv_working_tzset=no
24232 cat >conftest.$ac_ext <<_ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24239 #include <stdlib.h>
24241 #include <string.h>
24244 extern char *tzname[];
24249 /* Note that we need to ensure that not only does tzset(3)
24250 do 'something' with localtime, but it works as documented
24251 in the library reference and as expected by the test suite.
24252 This includes making sure that tzname is set properly if
24253 tm->tm_zone does not exist since it is the alternative way
24254 of getting timezone info.
24256 Red Hat 6.2 doesn't understand the southern hemisphere
24257 after New Year's Day.
24260 time_t groundhogday = 1044144000; /* GMT-based */
24261 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24263 putenv("TZ=UTC+0");
24265 if (localtime(&groundhogday)->tm_hour != 0)
24268 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24269 if (strcmp(tzname[0], "UTC") ||
24270 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24274 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24276 if (localtime(&groundhogday)->tm_hour != 19)
24279 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24283 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24285 if (localtime(&groundhogday)->tm_hour != 11)
24288 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24292 #if HAVE_STRUCT_TM_TM_ZONE
24293 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24295 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24303 rm -f conftest$ac_exeext
24304 if { (ac_try="$ac_link"
24305 case "(($ac_try" in
24306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24307 *) ac_try_echo
=$ac_try;;
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310 (eval "$ac_link") 2>&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24314 { (case "(($ac_try" in
24315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_try") 2>&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; }; then
24323 ac_cv_working_tzset=yes
24325 echo "$as_me: program exited with status $ac_status" >&5
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 ( exit $ac_status )
24330 ac_cv_working_tzset=no
24332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24338 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24339 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24340 if test "$ac_cv_working_tzset" = yes
24343 cat >>confdefs.h <<\_ACEOF
24344 #define HAVE_WORKING_TZSET 1
24349 # Look for subsecond timestamps in struct stat
24350 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24351 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24352 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 #include <sys/stat.h>
24367 st.st_mtim.tv_nsec = 1;
24373 rm -f conftest.$ac_objext
24374 if { (ac_try="$ac_compile"
24375 case "(($ac_try" in
24376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24377 *) ac_try_echo
=$ac_try;;
24379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24380 (eval "$ac_compile") 2>conftest.er1
24382 grep -v '^ *+' conftest.er1
>conftest.err
24384 cat conftest.err
>&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } && {
24387 test -z "$ac_c_werror_flag" ||
24388 test ! -s conftest.err
24389 } && test -s conftest.
$ac_objext; then
24390 ac_cv_stat_tv_nsec
=yes
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.
$ac_ext >&5
24395 ac_cv_stat_tv_nsec
=no
24398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24401 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24402 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24403 if test "$ac_cv_stat_tv_nsec" = yes
24406 cat >>confdefs.h
<<\_ACEOF
24407 #define HAVE_STAT_TV_NSEC 1
24412 # Look for BSD style subsecond timestamps in struct stat
24413 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24414 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24415 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 cat >conftest.
$ac_ext <<_ACEOF
24421 cat confdefs.h
>>conftest.
$ac_ext
24422 cat >>conftest.
$ac_ext <<_ACEOF
24423 /* end confdefs.h. */
24424 #include <sys/stat.h>
24430 st.st_mtimespec.tv_nsec = 1;
24436 rm -f conftest.
$ac_objext
24437 if { (ac_try
="$ac_compile"
24438 case "(($ac_try" in
24439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_compile") 2>conftest.er1
24445 grep -v '^ *+' conftest.er1 >conftest.err
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest.$ac_objext; then
24453 ac_cv_stat_tv_nsec2=yes
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24458 ac_cv_stat_tv_nsec2=no
24461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24464 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24465 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24466 if test "$ac_cv_stat_tv_nsec2" = yes
24469 cat >>confdefs.h <<\_ACEOF
24470 #define HAVE_STAT_TV_NSEC2 1
24475 # On HP/UX 11.0, mvwdelch is a block with a return statement
24476 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24477 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24478 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 #include <curses.h>
24493 rtn = mvwdelch(0,0,0);
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24503 *) ac_try_echo
=$ac_try;;
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24508 grep -v '^ *+' conftest.er1
>conftest.err
24510 cat conftest.err
>&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.
$ac_objext; then
24516 ac_cv_mvwdelch_is_expression
=yes
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.
$ac_ext >&5
24521 ac_cv_mvwdelch_is_expression
=no
24524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24527 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24528 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24530 if test "$ac_cv_mvwdelch_is_expression" = yes
24533 cat >>confdefs.h
<<\_ACEOF
24534 #define MVWDELCH_IS_EXPRESSION 1
24539 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24540 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24541 if test "${ac_cv_window_has_flags+set}" = set; then
24542 echo $ECHO_N "(cached) $ECHO_C" >&6
24544 cat >conftest.
$ac_ext <<_ACEOF
24547 cat confdefs.h
>>conftest.
$ac_ext
24548 cat >>conftest.
$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 #include <curses.h>
24562 rm -f conftest.
$ac_objext
24563 if { (ac_try
="$ac_compile"
24564 case "(($ac_try" in
24565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
24579 ac_cv_window_has_flags=yes
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24584 ac_cv_window_has_flags=no
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24591 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24594 if test "$ac_cv_window_has_flags" = yes
24597 cat >>confdefs.h <<\_ACEOF
24598 #define WINDOW_HAS_FLAGS 1
24603 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24604 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 #include <curses.h>
24615 void *x=is_term_resized
24620 rm -f conftest.$ac_objext
24621 if { (ac_try="$ac_compile"
24622 case "(($ac_try" in
24623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24624 *) ac_try_echo
=$ac_try;;
24626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24627 (eval "$ac_compile") 2>conftest.er1
24629 grep -v '^ *+' conftest.er1
>conftest.err
24631 cat conftest.err
>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); } && {
24634 test -z "$ac_c_werror_flag" ||
24635 test ! -s conftest.err
24636 } && test -s conftest.
$ac_objext; then
24638 cat >>confdefs.h
<<\_ACEOF
24639 #define HAVE_CURSES_IS_TERM_RESIZED 1
24642 { echo "$as_me:$LINENO: result: yes" >&5
24643 echo "${ECHO_T}yes" >&6; }
24645 echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.
$ac_ext >&5
24648 { echo "$as_me:$LINENO: result: no" >&5
24649 echo "${ECHO_T}no" >&6; }
24653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24655 { echo "$as_me:$LINENO: checking for resize_term" >&5
24656 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24657 cat >conftest.
$ac_ext <<_ACEOF
24660 cat confdefs.h
>>conftest.
$ac_ext
24661 cat >>conftest.
$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 #include <curses.h>
24667 void *x=resize_term
24672 rm -f conftest.
$ac_objext
24673 if { (ac_try
="$ac_compile"
24674 case "(($ac_try" in
24675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_compile") 2>conftest.er1
24681 grep -v '^ *+' conftest.er1 >conftest.err
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } && {
24686 test -z "$ac_c_werror_flag" ||
24687 test ! -s conftest.err
24688 } && test -s conftest.$ac_objext; then
24690 cat >>confdefs.h <<\_ACEOF
24691 #define HAVE_CURSES_RESIZE_TERM 1
24694 { echo "$as_me:$LINENO: result: yes" >&5
24695 echo "${ECHO_T}yes" >&6; }
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24700 { echo "$as_me:$LINENO: result: no" >&5
24701 echo "${ECHO_T}no" >&6; }
24705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24707 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24708 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24709 cat >conftest.$ac_ext <<_ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h. */
24715 #include <curses.h>
24724 rm -f conftest.$ac_objext
24725 if { (ac_try="$ac_compile"
24726 case "(($ac_try" in
24727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24728 *) ac_try_echo
=$ac_try;;
24730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24731 (eval "$ac_compile") 2>conftest.er1
24733 grep -v '^ *+' conftest.er1
>conftest.err
24735 cat conftest.err
>&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && {
24738 test -z "$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 } && test -s conftest.
$ac_objext; then
24742 cat >>confdefs.h
<<\_ACEOF
24743 #define HAVE_CURSES_RESIZETERM 1
24746 { echo "$as_me:$LINENO: result: yes" >&5
24747 echo "${ECHO_T}yes" >&6; }
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.
$ac_ext >&5
24752 { echo "$as_me:$LINENO: result: no" >&5
24753 echo "${ECHO_T}no" >&6; }
24757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24759 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24760 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24762 if test -r /dev
/ptmx
24764 { echo "$as_me:$LINENO: result: yes" >&5
24765 echo "${ECHO_T}yes" >&6; }
24767 cat >>confdefs.h
<<\_ACEOF
24768 #define HAVE_DEV_PTMX 1
24772 { echo "$as_me:$LINENO: result: no" >&5
24773 echo "${ECHO_T}no" >&6; }
24776 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24777 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24779 if test -r /dev
/ptc
24781 { echo "$as_me:$LINENO: result: yes" >&5
24782 echo "${ECHO_T}yes" >&6; }
24784 cat >>confdefs.h
<<\_ACEOF
24785 #define HAVE_DEV_PTC 1
24789 { echo "$as_me:$LINENO: result: no" >&5
24790 echo "${ECHO_T}no" >&6; }
24793 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24794 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24795 if test "$cross_compiling" = yes; then
24796 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24797 See \`config.log' for more details." >&5
24798 echo "$as_me: error: cannot run test program while cross compiling
24799 See \`config.log' for more details." >&2;}
24800 { (exit 1); exit 1; }; }
24802 cat >conftest.
$ac_ext <<_ACEOF
24805 cat confdefs.h
>>conftest.
$ac_ext
24806 cat >>conftest.
$ac_ext <<_ACEOF
24807 /* end confdefs.h. */
24809 #include <stddef.h>
24810 #include <string.h>
24812 #ifdef HAVE_SYS_TYPES_H
24813 #include <sys/types.h>
24816 #ifdef HAVE_SSIZE_T
24817 typedef ssize_t Py_ssize_t;
24818 #elif SIZEOF_VOID_P == SIZEOF_LONG
24819 typedef long Py_ssize_t;
24821 typedef int Py_ssize_t;
24828 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24831 if (strcmp(buffer, "123"))
24834 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24837 if (strcmp(buffer, "-123"))
24843 rm -f conftest
$ac_exeext
24844 if { (ac_try
="$ac_link"
24845 case "(($ac_try" in
24846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850 (eval "$ac_link") 2>&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24854 { (case "(($ac_try" in
24855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24856 *) ac_try_echo
=$ac_try;;
24858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24859 (eval "$ac_try") 2>&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; }; then
24863 { echo "$as_me:$LINENO: result: yes" >&5
24864 echo "${ECHO_T}yes" >&6; }
24866 cat >>confdefs.h
<<\_ACEOF
24867 #define PY_FORMAT_SIZE_T "z"
24871 echo "$as_me: program exited with status $ac_status" >&5
24872 echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.
$ac_ext >&5
24875 ( exit $ac_status )
24876 { echo "$as_me:$LINENO: result: no" >&5
24877 echo "${ECHO_T}no" >&6; }
24879 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24884 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24885 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24886 if test "${ac_cv_type_socklen_t+set}" = set; then
24887 echo $ECHO_N "(cached) $ECHO_C" >&6
24889 cat >conftest.
$ac_ext <<_ACEOF
24892 cat confdefs.h
>>conftest.
$ac_ext
24893 cat >>conftest.
$ac_ext <<_ACEOF
24894 /* end confdefs.h. */
24896 #ifdef HAVE_SYS_TYPES_H
24897 #include <sys/types.h>
24899 #ifdef HAVE_SYS_SOCKET_H
24900 #include <sys/socket.h>
24904 typedef socklen_t ac__type_new_;
24908 if ((ac__type_new_ *) 0)
24910 if (sizeof (ac__type_new_))
24916 rm -f conftest.
$ac_objext
24917 if { (ac_try
="$ac_compile"
24918 case "(($ac_try" in
24919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_compile") 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } && {
24930 test -z "$ac_c_werror_flag" ||
24931 test ! -s conftest.err
24932 } && test -s conftest.$ac_objext; then
24933 ac_cv_type_socklen_t=yes
24935 echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24938 ac_cv_type_socklen_t=no
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24944 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24945 if test $ac_cv_type_socklen_t = yes; then
24949 cat >>confdefs.h <<\_ACEOF
24950 #define socklen_t int
24956 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
24957 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
24958 if test "$cross_compiling" = yes; then
24959 ac_cv_broken_mbstowcs=no
24961 cat >conftest.$ac_ext <<_ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24971 const char *str = "text";
24972 len = mbstowcs(NULL, str, 0);
24977 rm -f conftest$ac_exeext
24978 if { (ac_try="$ac_link"
24979 case "(($ac_try" in
24980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24981 *) ac_try_echo
=$ac_try;;
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_link") 2>&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24988 { (case "(($ac_try" in
24989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24990 *) ac_try_echo=$ac_try;;
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993 (eval "$ac_try") 2>&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; }; then
24997 ac_cv_broken_mbstowcs=no
24999 echo "$as_me: program exited with status $ac_status" >&5
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ( exit $ac_status )
25004 ac_cv_broken_mbstowcs=yes
25006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25010 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25011 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25012 if test "$ac_cv_broken_mbstowcs" = yes
25015 cat >>confdefs.h <<\_ACEOF
25016 #define HAVE_BROKEN_MBSTOWCS 1
25021 # Check for --with-computed-gotos
25022 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25023 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25025 # Check whether --with-computed-gotos was given.
25026 if test "${with_computed_gotos+set}" = set; then
25027 withval=$with_computed_gotos;
25028 if test "$withval" != no
25031 cat >>confdefs.h <<\_ACEOF
25032 #define USE_COMPUTED_GOTOS 1
25035 { echo "$as_me:$LINENO: result: yes" >&5
25036 echo "${ECHO_T}yes" >&6; }
25037 else { echo "$as_me:$LINENO: result: no" >&5
25038 echo "${ECHO_T}no" >&6; }
25041 { echo "$as_me:$LINENO: result: no" >&5
25042 echo "${ECHO_T}no" >&6; }
25049 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25051 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25055 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25056 { echo "$as_me:$LINENO: checking for build directories" >&5
25057 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25058 for dir in $SRCDIRS; do
25059 if test ! -d $dir; then
25063 { echo "$as_me:$LINENO: result: done" >&5
25064 echo "${ECHO_T}done" >&6; }
25066 # generate output files
25067 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25069 cat >confcache <<\_ACEOF
25070 # This file is a shell script that caches the results of configure
25071 # tests run on this system so they can be shared between configure
25072 # scripts and configure runs, see configure's option --config-cache.
25073 # It is not useful on other systems. If it contains results you don't
25074 # want to keep, you may remove or edit it.
25076 # config.status only pays attention to the cache file if you give it
25077 # the --recheck option to rerun configure.
25079 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25081 # following values.
25085 # The following way of writing the cache mishandles newlines in values,
25086 # but we know of no workaround that is simple, portable, and efficient.
25087 # So, we kill variables containing newlines.
25088 # Ultrix sh set writes to stderr and can't be redirected directly,
25089 # and sets the high bit in the cache file unless we assign to the vars.
25091 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25092 eval ac_val
=\$
$ac_var
25096 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25100 _ | IFS | as_nl
) ;; #(
25101 *) $as_unset $ac_var ;;
25107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25108 *${as_nl}ac_space
=\
*)
25109 # `set' does not quote correctly, so add quotes (double-quote
25110 # substitution turns \\\\ into \\, and sed turns \\ into \).
25113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25116 # `set' quotes correctly as required by POSIX, so do not add quotes.
25117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25130 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25131 if test -w "$cache_file"; then
25132 test "x$cache_file" != "x/dev/null" &&
25133 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25134 echo "$as_me: updating cache $cache_file" >&6;}
25135 cat confcache
>$cache_file
25137 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25143 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25144 # Let make expand exec_prefix.
25145 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25147 DEFS
=-DHAVE_CONFIG_H
25151 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25152 # 1. Remove the extension, and $U if already installed.
25153 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25154 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25156 # will be set to the directory where LIBOBJS objects are built.
25157 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25158 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25160 LIBOBJS
=$ac_libobjs
25162 LTLIBOBJS
=$ac_ltlibobjs
25166 : ${CONFIG_STATUS=./config.status}
25167 ac_clean_files_save
=$ac_clean_files
25168 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25171 cat >$CONFIG_STATUS <<_ACEOF
25173 # Generated by $as_me.
25174 # Run this file to recreate the current configuration.
25175 # Compiler output produced by configure, useful for debugging
25176 # configure, is in config.log if it exists.
25179 ac_cs_recheck=false
25181 SHELL=\${CONFIG_SHELL-$SHELL}
25184 cat >>$CONFIG_STATUS <<\_ACEOF
25185 ## --------------------- ##
25186 ## M4sh Initialization. ##
25187 ## --------------------- ##
25189 # Be more Bourne compatible
25190 DUALCASE
=1; export DUALCASE
# for MKS sh
25191 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25195 # is contrary to our usage. Disable this feature.
25196 alias -g '${1+"$@"}'='"$@"'
25197 setopt NO_GLOB_SUBST
25199 case `(set -o) 2>/dev/null` in
25200 *posix
*) set -o posix
;;
25209 # Avoid depending upon Character Ranges.
25210 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25211 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25212 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25213 as_cr_digits
='0123456789'
25214 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25216 # The user is always right.
25217 if test "${PATH_SEPARATOR+set}" != set; then
25218 echo "#! /bin/sh" >conf$$.sh
25219 echo "exit 0" >>conf$$.sh
25221 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25229 # Support unset when possible.
25230 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25238 # We need space, tab and new line, in precisely that order. Quoting is
25239 # there to prevent editors from complaining about space-tab.
25240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25241 # splitting by setting IFS to empty value.)
25246 # Find who we are. Look in the path if we contain no directory separator.
25248 *[\\/]* ) as_myself
=$0 ;;
25249 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25250 for as_dir
in $PATH
25253 test -z "$as_dir" && as_dir
=.
25254 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25260 # We did not find ourselves, most probably we were run as `sh COMMAND'
25261 # in which case we are not to be found in the path.
25262 if test "x$as_myself" = x
; then
25265 if test ! -f "$as_myself"; then
25266 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25267 { (exit 1); exit 1; }
25270 # Work around bugs in pre-3.0 UWIN ksh.
25271 for as_var
in ENV MAIL MAILPATH
25272 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25282 LC_TELEPHONE LC_TIME
25284 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25285 eval $as_var=C
; export $as_var
25287 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25291 # Required to use basename.
25292 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25293 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25299 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25300 as_basename
=basename
25306 # Name of the executable.
25307 as_me
=`$as_basename -- "$0" ||
25308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25309 X"$0" : 'X\(//\)$' \| \
25310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25312 sed '/^.*\/\([^/][^/]*\)\/*$/{
25331 as_lineno_1
=$LINENO
25332 as_lineno_2
=$LINENO
25333 test "x$as_lineno_1" != "x$as_lineno_2" &&
25334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25337 # uniformly replaced by the line number. The first 'sed' inserts a
25338 # line-number line after each line using $LINENO; the second 'sed'
25339 # does the real work. The second script uses 'N' to pair each
25340 # line-number line with the line containing $LINENO, and appends
25341 # trailing '-' during substitution so that $LINENO is not a special
25342 # case at line end.
25343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25344 # scripts with optimization help from Paolo Bonzini. Blame Lee
25345 # E. McMahon (1931-1989) for sed's syntax. :-)
25357 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25360 ' >$as_me.lineno
&&
25361 chmod +x
"$as_me.lineno" ||
25362 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25363 { (exit 1); exit 1; }; }
25365 # Don't try to exec as it changes $[0], causing all sort of problems
25366 # (the dirname of $[0] is not the place where we might find the
25367 # original and so on. Autoconf is especially sensitive to this).
25368 .
"./$as_me.lineno"
25369 # Exit status is that of the last command.
25374 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25380 ECHO_C
= ECHO_N
= ECHO_T
=
25381 case `echo -n x` in
25383 case `echo 'x\c'` in
25384 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25391 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25392 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25398 rm -f conf$$ conf$$.exe conf$$.
file
25399 if test -d conf$$.dir
; then
25400 rm -f conf$$.dir
/conf$$.
file
25406 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25408 # ... but there are two gotchas:
25409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25411 # In both cases, we have to default to `cp -p'.
25412 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25414 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25419 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25420 rmdir conf$$.dir
2>/dev
/null
25422 if mkdir
-p .
2>/dev
/null
; then
25425 test -d .
/-p && rmdir .
/-p
25429 if test -x / >/dev
/null
2>&1; then
25430 as_test_x
='test -x'
25432 if ls -dL / >/dev
/null
2>&1; then
25439 if test -d "$1"; then
25445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25446 ???[sx]*):;;*)false;;esac;fi
25450 as_executable_p
=$as_test_x
25452 # Sed expression to map a string onto a valid CPP name.
25453 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25455 # Sed expression to map a string onto a valid variable name.
25456 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25461 # Save the log message, to keep $[0] and so on meaningful, and to
25462 # report actual input values of CONFIG_FILES etc. instead of their
25463 # values after options handling.
25465 This file was extended by python $as_me 3.1, which was
25466 generated by GNU Autoconf 2.61. Invocation command line was
25468 CONFIG_FILES = $CONFIG_FILES
25469 CONFIG_HEADERS = $CONFIG_HEADERS
25470 CONFIG_LINKS = $CONFIG_LINKS
25471 CONFIG_COMMANDS = $CONFIG_COMMANDS
25474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25479 cat >>$CONFIG_STATUS <<_ACEOF
25480 # Files that config.status was made for.
25481 config_files="$ac_config_files"
25482 config_headers="$ac_config_headers"
25486 cat >>$CONFIG_STATUS <<\_ACEOF
25488 \`$as_me' instantiates files from templates according to the
25489 current configuration.
25491 Usage: $0 [OPTIONS] [FILE]...
25493 -h, --help print this help, then exit
25494 -V, --version print version number and configuration settings, then exit
25495 -q, --quiet do not print progress messages
25496 -d, --debug don't remove temporary files
25497 --recheck update $as_me by reconfiguring in the same conditions
25498 --file=FILE[:TEMPLATE]
25499 instantiate the configuration file FILE
25500 --header=FILE[:TEMPLATE]
25501 instantiate the configuration header FILE
25503 Configuration files:
25506 Configuration headers:
25509 Report bugs to <bug-autoconf@gnu.org>."
25512 cat >>$CONFIG_STATUS <<_ACEOF
25514 python config.status 3.1
25515 configured by $0, generated by GNU Autoconf 2.61,
25516 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25518 Copyright (C) 2006 Free Software Foundation, Inc.
25519 This config.status script is free software; the Free Software Foundation
25520 gives unlimited permission to copy, distribute and modify it."
25527 cat >>$CONFIG_STATUS <<\_ACEOF
25528 # If no file are specified by the user, then we need to provide default
25529 # value. By we need to know if files were specified by the user.
25535 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25536 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25547 # Handling of the options.
25548 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25550 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25551 echo "$ac_cs_version"; exit ;;
25552 --debug |
--debu |
--deb |
--de |
--d |
-d )
25554 --file |
--fil |
--fi |
--f )
25556 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25557 ac_need_defaults
=false
;;
25558 --header |
--heade |
--head |
--hea )
25560 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25561 ac_need_defaults
=false
;;
25563 # Conflict between --help and --header
25564 { echo "$as_me: error: ambiguous option: $1
25565 Try \`$0 --help' for more information." >&2
25566 { (exit 1); exit 1; }; };;
25567 --help |
--hel |
-h )
25568 echo "$ac_cs_usage"; exit ;;
25569 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25570 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25573 # This is an error.
25574 -*) { echo "$as_me: error: unrecognized option: $1
25575 Try \`$0 --help' for more information." >&2
25576 { (exit 1); exit 1; }; } ;;
25578 *) ac_config_targets
="$ac_config_targets $1"
25579 ac_need_defaults
=false
;;
25585 ac_configure_extra_args
=
25587 if $ac_cs_silent; then
25589 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25593 cat >>$CONFIG_STATUS <<_ACEOF
25594 if \$ac_cs_recheck; then
25595 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25596 CONFIG_SHELL=$SHELL
25597 export CONFIG_SHELL
25598 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25602 cat >>$CONFIG_STATUS <<\_ACEOF
25606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25607 ## Running $as_me. ##
25613 cat >>$CONFIG_STATUS <<_ACEOF
25616 cat >>$CONFIG_STATUS <<\_ACEOF
25618 # Handling of arguments.
25619 for ac_config_target
in $ac_config_targets
25621 case $ac_config_target in
25622 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25623 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25624 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25625 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25626 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25627 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25628 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25630 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25631 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25632 { (exit 1); exit 1; }; };;
25637 # If the user did not use the arguments to specify the items to instantiate,
25638 # then the envvar interface is used. Set only those that are not.
25639 # We use the long form for the default assignment because of an extremely
25640 # bizarre bug on SunOS 4.1.3.
25641 if $ac_need_defaults; then
25642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25646 # Have a temporary directory for convenience. Make it in the build tree
25647 # simply because there is no reason against having it here, and in addition,
25648 # creating and moving files from /tmp can sometimes cause problems.
25649 # Hook for its removal unless debugging.
25650 # Note that there is a small window in which the directory will not be cleaned:
25651 # after its creation but before its name has been assigned to `$tmp'.
25655 trap 'exit_status=$?
25656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25658 trap '{ (exit 1); exit 1; }' 1 2 13 15
25660 # Create a (secure) tmp directory for tmp files.
25663 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25664 test -n "$tmp" && test -d "$tmp"
25667 tmp
=.
/conf$$
-$RANDOM
25668 (umask 077 && mkdir
"$tmp")
25671 echo "$me: cannot create a temporary directory in ." >&2
25672 { (exit 1); exit 1; }
25676 # Set up the sed scripts for CONFIG_FILES section.
25679 # No need to generate the scripts if there are no CONFIG_FILES.
25680 # This happens for instance when ./config.status config.h
25681 if test -n "$CONFIG_FILES"; then
25688 for ac_last_try
in false false false false false
:; do
25689 cat >conf$
$subs.
sed <<_ACEOF
25690 SHELL!$SHELL$ac_delim
25691 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25692 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25693 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25694 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25695 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25696 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25697 exec_prefix!$exec_prefix$ac_delim
25698 prefix!$prefix$ac_delim
25699 program_transform_name!$program_transform_name$ac_delim
25700 bindir!$bindir$ac_delim
25701 sbindir!$sbindir$ac_delim
25702 libexecdir!$libexecdir$ac_delim
25703 datarootdir!$datarootdir$ac_delim
25704 datadir!$datadir$ac_delim
25705 sysconfdir!$sysconfdir$ac_delim
25706 sharedstatedir!$sharedstatedir$ac_delim
25707 localstatedir!$localstatedir$ac_delim
25708 includedir!$includedir$ac_delim
25709 oldincludedir!$oldincludedir$ac_delim
25710 docdir!$docdir$ac_delim
25711 infodir!$infodir$ac_delim
25712 htmldir!$htmldir$ac_delim
25713 dvidir!$dvidir$ac_delim
25714 pdfdir!$pdfdir$ac_delim
25715 psdir!$psdir$ac_delim
25716 libdir!$libdir$ac_delim
25717 localedir!$localedir$ac_delim
25718 mandir!$mandir$ac_delim
25719 DEFS!$DEFS$ac_delim
25720 ECHO_C!$ECHO_C$ac_delim
25721 ECHO_N!$ECHO_N$ac_delim
25722 ECHO_T!$ECHO_T$ac_delim
25723 LIBS!$LIBS$ac_delim
25724 build_alias!$build_alias$ac_delim
25725 host_alias!$host_alias$ac_delim
25726 target_alias!$target_alias$ac_delim
25727 VERSION!$VERSION$ac_delim
25728 SOVERSION!$SOVERSION$ac_delim
25729 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25730 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25731 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25732 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25733 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25734 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25735 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25736 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25737 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25738 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25739 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25740 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25741 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25742 MACHDEP!$MACHDEP$ac_delim
25743 SGI_ABI!$SGI_ABI$ac_delim
25744 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25745 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25747 CFLAGS!$CFLAGS$ac_delim
25748 LDFLAGS!$LDFLAGS$ac_delim
25749 CPPFLAGS!$CPPFLAGS$ac_delim
25750 ac_ct_CC!$ac_ct_CC$ac_delim
25751 EXEEXT!$EXEEXT$ac_delim
25752 OBJEXT!$OBJEXT$ac_delim
25754 MAINCC!$MAINCC$ac_delim
25756 GREP!$GREP$ac_delim
25757 EGREP!$EGREP$ac_delim
25758 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25759 LIBRARY!$LIBRARY$ac_delim
25760 LDLIBRARY!$LDLIBRARY$ac_delim
25761 DLLLIBRARY!$DLLLIBRARY$ac_delim
25762 BLDLIBRARY!$BLDLIBRARY$ac_delim
25763 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25764 INSTSONAME!$INSTSONAME$ac_delim
25765 RUNSHARED!$RUNSHARED$ac_delim
25766 LINKCC!$LINKCC$ac_delim
25767 RANLIB!$RANLIB$ac_delim
25769 SVNVERSION!$SVNVERSION$ac_delim
25770 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25771 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25772 INSTALL_DATA!$INSTALL_DATA$ac_delim
25775 BASECFLAGS!$BASECFLAGS$ac_delim
25776 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25777 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25778 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25780 LDSHARED!$LDSHARED$ac_delim
25781 BLDSHARED!$BLDSHARED$ac_delim
25782 CCSHARED!$CCSHARED$ac_delim
25783 LINKFORSHARED!$LINKFORSHARED$ac_delim
25784 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25785 SHLIBS!$SHLIBS$ac_delim
25786 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25791 elif $ac_last_try; then
25792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25794 { (exit 1); exit 1; }; }
25796 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25800 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25801 if test -n "$ac_eof"; then
25802 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25803 ac_eof
=`expr $ac_eof + 1`
25806 cat >>$CONFIG_STATUS <<_ACEOF
25807 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25812 s/^/s,@/; s/!/@,|#_!!_#|/
25815 s/'"$ac_delim"'$/,g/; t
25817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25818 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25819 rm -f conf$
$subs.
sed
25820 cat >>$CONFIG_STATUS <<_ACEOF
25826 for ac_last_try
in false false false false false
:; do
25827 cat >conf$
$subs.
sed <<_ACEOF
25828 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25829 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25830 LDLAST!$LDLAST$ac_delim
25831 THREADOBJ!$THREADOBJ$ac_delim
25832 DLINCLDIR!$DLINCLDIR$ac_delim
25833 DYNLOADFILE!$DYNLOADFILE$ac_delim
25834 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25835 TRUE!$TRUE$ac_delim
25836 LIBOBJS!$LIBOBJS$ac_delim
25837 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25838 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25839 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25840 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25841 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25842 LIBM!$LIBM$ac_delim
25843 LIBC!$LIBC$ac_delim
25844 THREADHEADERS!$THREADHEADERS$ac_delim
25845 SRCDIRS!$SRCDIRS$ac_delim
25846 LTLIBOBJS!$LTLIBOBJS$ac_delim
25849 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
25851 elif $ac_last_try; then
25852 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25853 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25854 { (exit 1); exit 1; }; }
25856 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25860 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25861 if test -n "$ac_eof"; then
25862 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25863 ac_eof
=`expr $ac_eof + 1`
25866 cat >>$CONFIG_STATUS <<_ACEOF
25867 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25871 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25872 s/^/s,@/; s/!/@,|#_!!_#|/
25875 s/'"$ac_delim"'$/,g/; t
25877 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25878 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25879 rm -f conf$
$subs.
sed
25880 cat >>$CONFIG_STATUS <<_ACEOF
25887 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25888 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25889 # trailing colons and then remove the whole line if VPATH becomes empty
25890 # (actually we leave an empty line to preserve line numbers).
25891 if test "x$srcdir" = x.
; then
25892 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25893 s/:*\$(srcdir):*/:/
25894 s/:*\${srcdir}:*/:/
25896 s/^\([^=]*=[ ]*\):*/\1/
25902 cat >>$CONFIG_STATUS <<\_ACEOF
25903 fi # test -n "$CONFIG_FILES"
25906 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
25909 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25911 case $ac_mode$ac_tag in
25913 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25914 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25915 { (exit 1); exit 1; }; };;
25916 :[FH
]-) ac_tag
=-:-;;
25917 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25934 -) ac_f
="$tmp/stdin";;
25935 *) # Look for the file first in the build tree, then in the source tree
25936 # (if the path is not absolute). The absolute path cannot be DOS-style,
25937 # because $ac_f cannot contain `:'.
25941 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25943 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25944 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25945 { (exit 1); exit 1; }; };;
25947 ac_file_inputs
="$ac_file_inputs $ac_f"
25950 # Let's still pretend it is `configure' which instantiates (i.e., don't
25951 # use $as_me), people would be surprised to read:
25952 # /* config.h. Generated by config.status. */
25953 configure_input
="Generated from "`IFS=:
25954 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25955 if test x
"$ac_file" != x-
; then
25956 configure_input
="$ac_file. $configure_input"
25957 { echo "$as_me:$LINENO: creating $ac_file" >&5
25958 echo "$as_me: creating $ac_file" >&6;}
25962 *:-:* |
*:-) cat >"$tmp/stdin";;
25967 ac_dir
=`$as_dirname -- "$ac_file" ||
25968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25969 X"$ac_file" : 'X\(//\)[^/]' \| \
25970 X"$ac_file" : 'X\(//\)$' \| \
25971 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25977 /^X\(\/\/\)[^/].*/{
25992 -*) as_dir
=.
/$as_dir;;
25994 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25998 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25999 *) as_qdir
=$as_dir;;
26001 as_dirs
="'$as_qdir' $as_dirs"
26002 as_dir
=`$as_dirname -- "$as_dir" ||
26003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26004 X"$as_dir" : 'X\(//\)[^/]' \| \
26005 X"$as_dir" : 'X\(//\)$' \| \
26006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26012 /^X\(\/\/\)[^/].*/{
26025 test -d "$as_dir" && break
26027 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26028 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26029 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26030 { (exit 1); exit 1; }; }; }
26034 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26036 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26037 # A ".." for each directory in $ac_dir_suffix.
26038 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26039 case $ac_top_builddir_sub in
26040 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26041 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26044 ac_abs_top_builddir
=$ac_pwd
26045 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26046 # for backward compatibility:
26047 ac_top_builddir
=$ac_top_build_prefix
26050 .
) # We are building in place.
26052 ac_top_srcdir
=$ac_top_builddir_sub
26053 ac_abs_top_srcdir
=$ac_pwd ;;
26054 [\\/]* | ?
:[\\/]* ) # Absolute name.
26055 ac_srcdir
=$srcdir$ac_dir_suffix;
26056 ac_top_srcdir
=$srcdir
26057 ac_abs_top_srcdir
=$srcdir ;;
26058 *) # Relative name.
26059 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26060 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26061 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26063 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26073 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26074 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26078 cat >>$CONFIG_STATUS <<\_ACEOF
26079 # If the template does not know about datarootdir, expand it.
26080 # FIXME: This hack should be removed a few years after 2.60.
26081 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26083 case `sed -n '/datarootdir/ {
26092 ' $ac_file_inputs` in
26093 *datarootdir
*) ac_datarootdir_seen
=yes;;
26094 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26095 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26096 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26098 cat >>$CONFIG_STATUS <<_ACEOF
26099 ac_datarootdir_hack='
26100 s&@datadir@&$datadir&g
26101 s&@docdir@&$docdir&g
26102 s&@infodir@&$infodir&g
26103 s&@localedir@&$localedir&g
26104 s&@mandir@&$mandir&g
26105 s&\\\${datarootdir}&$datarootdir&g' ;;
26109 # Neutralize VPATH when `$srcdir' = `.'.
26110 # Shell code in configure.ac might set extrasub.
26111 # FIXME: do we really want to maintain this feature?
26112 cat >>$CONFIG_STATUS <<_ACEOF
26116 cat >>$CONFIG_STATUS <<\_ACEOF
26118 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26119 s
&@configure_input@
&$configure_input&;t t
26120 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26121 s
&@srcdir@
&$ac_srcdir&;t t
26122 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26123 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26124 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26125 s
&@builddir@
&$ac_builddir&;t t
26126 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26127 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26128 s
&@INSTALL@
&$ac_INSTALL&;t t
26129 $ac_datarootdir_hack
26130 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26132 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26133 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26135 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26136 which seems to be undefined. Please make sure it is defined." >&5
26137 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26138 which seems to be undefined. Please make sure it is defined." >&2;}
26142 -) cat "$tmp/out"; rm -f "$tmp/out";;
26143 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26152 # Transform confdefs.h into a sed script `conftest.defines', that
26153 # substitutes the proper values into config.h.in to produce config.h.
26154 rm -f conftest.defines conftest.
tail
26155 # First, append a space to every undef/define line, to ease matching.
26156 echo 's/$/ /' >conftest.defines
26157 # Then, protect against being on the right side of a sed subst, or in
26158 # an unquoted here document, in config.status. If some macros were
26159 # called several times there might be several #defines for the same
26160 # symbol, which is useless. But do not sort them, since the last
26161 # AC_DEFINE must be honored.
26162 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26163 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26164 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26165 # PARAMS is the parameter list in the macro definition--in most cases, it's
26166 # just an empty string.
26167 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26168 ac_dB
='\\)[ (].*,\\1define\\2'
26176 s/^[ ]*#[ ]*define[ ][ ]*//
26181 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26182 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26183 ' >>conftest.defines
26185 # Remove the space that was appended to ease matching.
26186 # Then replace #undef with comments. This is necessary, for
26187 # example, in the case of _POSIX_SOURCE, which is predefined and required
26188 # on some systems where configure will not decide to define it.
26189 # (The regexp can be short, since the line contains either #define or #undef.)
26191 s,^[ #]*u.*,/* & */,' >>conftest.defines
26193 # Break up conftest.defines:
26194 ac_max_sed_lines
=50
26196 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26197 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26198 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26200 ac_in
='$ac_file_inputs'
26201 ac_out
='"$tmp/out1"'
26202 ac_nxt
='"$tmp/out2"'
26206 # Write a here document:
26207 cat >>$CONFIG_STATUS <<_ACEOF
26208 # First, check the format of the line:
26209 cat >"\$tmp/defines.sed" <<\\CEOF
26210 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26211 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26215 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26217 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26218 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26219 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26220 grep . conftest.
tail >/dev
/null ||
break
26221 rm -f conftest.defines
26222 mv conftest.
tail conftest.defines
26224 rm -f conftest.defines conftest.
tail
26226 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26227 cat >>$CONFIG_STATUS <<\_ACEOF
26228 if test x
"$ac_file" != x-
; then
26229 echo "/* $configure_input */" >"$tmp/config.h"
26230 cat "$ac_result" >>"$tmp/config.h"
26231 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26232 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26233 echo "$as_me: $ac_file is unchanged" >&6;}
26236 mv "$tmp/config.h" $ac_file
26239 echo "/* $configure_input */"
26251 { (exit 0); exit 0; }
26253 chmod +x
$CONFIG_STATUS
26254 ac_clean_files
=$ac_clean_files_save
26257 # configure is writing to config.log, and then calls config.status.
26258 # config.status does its own redirection, appending to config.log.
26259 # Unfortunately, on DOS this fails, as config.log is still kept open
26260 # by configure, so config.status won't be able to write to it; its
26261 # output is simply discarded. So we exec the FD to /dev/null,
26262 # effectively closing config.log, so it can be properly (re)opened and
26263 # appended to by config.status. When coming back to configure, we
26264 # need to make the FD available again.
26265 if test "$no_create" != yes; then
26267 ac_config_status_args
=
26268 test "$silent" = yes &&
26269 ac_config_status_args
="$ac_config_status_args --quiet"
26271 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26274 # would make configure fail if this is the last instruction.
26275 $ac_cs_success ||
{ (exit 1); exit 1; }
26279 echo "creating Modules/Setup"
26280 if test ! -f Modules
/Setup
26282 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26285 echo "creating Modules/Setup.local"
26286 if test ! -f Modules
/Setup.
local
26288 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26291 echo "creating Makefile"
26292 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26293 -s Modules Modules
/Setup.config \
26294 Modules
/Setup.
local Modules
/Setup
26295 mv config.c Modules