2 # From configure.in Revision: 62620 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.0.
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.0'
579 PACKAGE_STRING
='python 3.0'
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
661 PYTHONFRAMEWORKIDENTIFIER
663 PYTHONFRAMEWORKPREFIX
664 PYTHONFRAMEWORKINSTALLDIR
665 FRAMEWORKINSTALLFIRST
667 FRAMEWORKALTINSTALLFIRST
668 FRAMEWORKALTINSTALLLAST
669 FRAMEWORKUNIXTOOLSPREFIX
674 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
675 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.0 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.0:";;
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-toolbox-glue disable
/enable MacOSX glue code
for extensions
1322 --enable-ipv6 Enable ipv6
(with ipv4
) support
1323 --disable-ipv6 Disable ipv6 support
1326 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1327 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1328 --with-framework-name=FRAMEWORK
1329 specify an alternate name of the framework built
1330 with
--enable-framework
1331 --without-gcc never use gcc
1332 --with-cxx-main=<compiler
>
1333 compile main
() and link python executable with C
++
1335 --with-suffix=.exe
set executable suffix
1336 --with-pydebug build with Py_DEBUG defined
1337 --with-libs='lib1 ...' link against additional libs
1338 --with-system-ffi build _ctypes module using an installed ffi library
1339 --with-signal-module disable
/enable signal module
1340 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1341 --with(out
)-threads[=DIRECTORY
]
1342 disable
/enable thread support
1343 --with(out
)-thread[=DIRECTORY
]
1344 deprecated
; use
--with(out
)-threads
1345 --with-pth use GNU pth threading libraries
1346 --with(out
)-doc-strings disable
/enable documentation
strings
1347 --with(out
)-tsc enable
/disable timestamp counter profile
1348 --with(out
)-pymalloc disable
/enable specialized mallocs
1349 --with-wctype-functions use wctype.h functions
1350 --with-fpectl enable SIGFPE catching
1351 --with-libm=STRING math library
1352 --with-libc=STRING C library
1353 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1355 Some influential environment variables
:
1356 CC C compiler
command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1359 nonstandard directory
<lib dir
>
1360 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1361 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1362 you have headers
in a nonstandard directory
<include dir
>
1365 Use these variables to override the choices made by
`configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1368 Report bugs to <http://www.python.org/python-bugs>.
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" || continue
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1396 .) # We are building in place.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1420 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1429 python configure 3.0
1430 generated by GNU Autoconf 2.61
1432 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1433 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1434 This configure script is free software; the Free Software Foundation
1435 gives unlimited permission to copy, distribute and modify it.
1439 cat >config.log <<_ACEOF
1440 This file contains any messages produced by compilers while
1441 running configure, to aid debugging if configure makes a mistake.
1443 It was created by python $as_me 3.0, which was
1444 generated by GNU Autoconf 2.61. Invocation command line was
1456 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1457 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1458 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1459 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1460 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1463 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1465 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1467 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1469 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1470 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1471 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 test -z "$as_dir" && as_dir=.
1480 echo "PATH: $as_dir"
1496 # Keep a trace of the command line.
1497 # Strip out --no-create and --no-recursion so they do not pile up.
1498 # Strip out --silent because we don't want to record it for future runs.
1499 # Also quote any args containing shell meta-characters.
1500 # Make two passes to allow for proper duplicate-argument suppression.
1504 ac_must_keep_next=false
1510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1515 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1518 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1520 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1521 if test $ac_must_keep_next = true; then
1522 ac_must_keep_next=false # Got value, back to normal.
1525 *=* | --config-cache | -C | -disable-* | --disable-* \
1526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1528 | -with-* | --with-* | -without-* | --without-* | --x)
1529 case "$ac_configure_args0 " in
1530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1533 -* ) ac_must_keep_next=true ;;
1536 ac_configure_args="$ac_configure_args '$ac_arg'"
1541 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1542 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1544 # When interrupted or exit'd, cleanup temporary files, and complete
1545 # config.log. We remove comments because anyway the quotes in there
1546 # would cause problems or look ugly.
1547 # WARNING: Use '\'' to represent an apostrophe within the trap.
1548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1549 trap 'exit_status=$?
1550 # Save into config.log some information that might help in debugging.
1555 ## ---------------- ##
1556 ## Cache variables. ##
1557 ## ---------------- ##
1560 # The following way of writing the cache mishandles newlines in values,
1562 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1563 eval ac_val=\$$ac_var
1567 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1568 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1571 _ | IFS | as_nl) ;; #(
1572 *) $as_unset $ac_var ;;
1577 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1578 *${as_nl}ac_space=\ *)
1580 "s/'\''/'\''\\\\'\'''\''/g;
1581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592 ## ----------------- ##
1593 ## Output variables. ##
1594 ## ----------------- ##
1597 for ac_var in $ac_subst_vars
1599 eval ac_val=\$$ac_var
1601 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1603 echo "$ac_var='\''$ac_val'\''"
1607 if test -n "$ac_subst_files"; then
1609 ## ------------------- ##
1610 ## File substitutions. ##
1611 ## ------------------- ##
1614 for ac_var in $ac_subst_files
1616 eval ac_val=\$$ac_var
1618 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 echo "$ac_var='\''$ac_val'\''"
1625 if test -s confdefs.h; then
1635 test "$ac_signal" != 0 &&
1636 echo "$as_me: caught signal $ac_signal"
1637 echo "$as_me: exit $exit_status"
1639 rm -f core *.core core.conftest.* &&
1640 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643 for ac_signal in 1 2 13 15; do
1644 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1649 rm -f -r conftest* confdefs.h
1651 # Predefined preprocessor variables.
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_NAME "$PACKAGE_NAME"
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_STRING "$PACKAGE_STRING"
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1678 # Let the site file select an alternate cache file if it wants to.
1679 # Prefer explicitly selected file to automatically selected ones.
1680 if test -n "$CONFIG_SITE"; then
1681 set x "$CONFIG_SITE"
1682 elif test "x$prefix" != xNONE; then
1683 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1685 set x "$ac_default_prefix/share/config.site" \
1686 "$ac_default_prefix/etc/config.site"
1691 if test -r "$ac_site_file"; then
1692 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1693 echo "$as_me: loading site script $ac_site_file" >&6;}
1694 sed 's/^/| /' "$ac_site_file" >&5
1699 if test -r "$cache_file"; then
1700 # Some versions of bash will fail to source /dev/null (special
1701 # files actually), so we avoid doing that.
1702 if test -f "$cache_file"; then
1703 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1704 echo "$as_me: loading cache $cache_file" >&6;}
1706 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1707 *) . "./$cache_file";;
1711 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1712 echo "$as_me: creating cache $cache_file" >&6;}
1716 # Check that the precious variables saved in the cache have kept the same
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1727 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1731 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1738 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1739 echo "$as_me: former value
: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1741 echo "$as_me: current value
: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1759 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1760 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_config_headers="$ac_config_headers pyconfig.h"
1805 # We don't use PACKAGE_ variables, and they cause conflicts
1806 # with other autoconf-based packages that include Python.h
1807 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1809 mv confdefs.h.new confdefs.h
1817 # The later defininition of _XOPEN_SOURCE disables certain features
1818 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1820 cat >>confdefs.h <<\_ACEOF
1821 #define _GNU_SOURCE 1
1825 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1826 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1829 cat >>confdefs.h <<\_ACEOF
1830 #define _NETBSD_SOURCE 1
1834 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1835 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1838 cat >>confdefs.h <<\_ACEOF
1839 #define __BSD_VISIBLE 1
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _BSD_TYPES 1
1851 define_xopen_source=yes
1853 # Arguments passed to configure.
1855 CONFIG_ARGS="$ac_configure_args"
1857 # Check whether --enable-universalsdk was given.
1858 if test "${enable_universalsdk+set}" = set; then
1859 enableval=$enable_universalsdk;
1862 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1868 enable_universalsdk=
1871 UNIVERSALSDK=$enableval
1878 enable_universalsdk=
1885 # Check whether --with-framework-name was given.
1886 if test "${with_framework_name+set}" = set; then
1887 withval=$with_framework_name;
1888 PYTHONFRAMEWORK=${withval}
1889 PYTHONFRAMEWORKDIR=${withval}.framework
1890 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1894 PYTHONFRAMEWORK=Python
1895 PYTHONFRAMEWORKDIR=Python.framework
1896 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1900 # Check whether --enable-framework was given.
1901 if test "${enable_framework+set}" = set; then
1902 enableval=$enable_framework;
1905 enableval=/Library/Frameworks
1910 PYTHONFRAMEWORKDIR=no-framework
1911 PYTHONFRAMEWORKPREFIX=
1912 PYTHONFRAMEWORKINSTALLDIR=
1913 FRAMEWORKINSTALLFIRST=
1914 FRAMEWORKINSTALLLAST=
1915 FRAMEWORKALTINSTALLFIRST=
1916 FRAMEWORKALTINSTALLLAST=
1917 if test "x${prefix}" = "xNONE"; then
1918 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1920 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1925 PYTHONFRAMEWORKPREFIX=$enableval
1926 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1927 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1928 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1929 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1930 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1931 if test "x${prefix}" = "xNONE" ; then
1932 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1934 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1936 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1938 # Add files for Mac specific code to the list of output
1940 ac_config_files="$ac_config_files Mac/Makefile"
1942 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1944 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1946 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1948 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
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}"
1983 ## AC_HELP_STRING(--with-dyld,
1984 ## Use (OpenStep|Rhapsody) dynamic linker))
1986 # Set name for machine-dependent library files
1988 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1989 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1990 if test -z "$MACHDEP"
1992 ac_sys_system=`uname
-s`
1993 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1994 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1995 ac_sys_release=`uname
-v`
1997 ac_sys_release=`uname
-r`
1999 ac_md_system=`echo $ac_sys_system |
2000 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2001 ac_md_release=`echo $ac_sys_release |
2002 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2003 MACHDEP="$ac_md_system$ac_md_release"
2006 cygwin*) MACHDEP="cygwin";;
2007 darwin*) MACHDEP="darwin";;
2008 atheos*) MACHDEP="atheos";;
2009 irix646) MACHDEP="irix6";;
2010 '') MACHDEP="unknown";;
2014 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2015 # disable features if it is defined, without any means to access these
2016 # features as extensions. For these systems, we skip the definition of
2017 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2018 # some feature, make sure there is no alternative way to access this
2019 # feature. Also, when using wildcards, make sure you have verified the
2020 # need for not defining _XOPEN_SOURCE on all systems matching the
2021 # wildcard, and that the wildcard does not include future systems
2022 # (which may remove their limitations).
2023 case $ac_sys_system/$ac_sys_release in
2024 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2025 # even though select is a POSIX function. Reported by J. Ribbens.
2026 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2027 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2028 define_xopen_source=no
2029 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2030 # also defined. This can be overridden by defining _BSD_SOURCE
2031 # As this has a different meaning on Linux, only define it on OpenBSD
2033 cat >>confdefs.h <<\_ACEOF
2034 #define _BSD_SOURCE 1
2038 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2039 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2041 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2042 define_xopen_source=no;;
2043 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2044 # of union __?sigval. Reported by Stuart Bishop.
2046 define_xopen_source=no;;
2047 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2048 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2049 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2050 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2051 define_xopen_source=no;;
2052 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2053 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2055 define_xopen_source=no;;
2056 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2057 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2058 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2059 # This should hopefully be fixed in FreeBSD 4.9
2060 FreeBSD/4.8* | Darwin/6* )
2061 define_xopen_source=no;;
2062 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2063 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2064 # or has another value. By not (re)defining it, the defaults come in place.
2066 define_xopen_source=no;;
2068 if test `uname
-r` -eq 1; then
2069 define_xopen_source=no
2072 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2073 # disables platform specific features beyond repair.
2074 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2075 # has no effect, don't bother defining them
2077 define_xopen_source=no
2082 if test $define_xopen_source = yes
2084 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2085 # defined precisely as g++ defines it
2086 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2088 case $ac_sys_system/$ac_sys_release in
2089 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2091 cat >>confdefs.h <<\_ACEOF
2092 #define _XOPEN_SOURCE 500
2098 cat >>confdefs.h <<\_ACEOF
2099 #define _XOPEN_SOURCE 600
2105 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2106 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2107 # several APIs are not declared. Since this is also needed in some
2108 # cases for HP-UX, we define it globally.
2109 # except for Solaris 10, where it must not be defined,
2110 # as it implies XPG4.2
2111 case $ac_sys_system/$ac_sys_release in
2116 cat >>confdefs.h <<\_ACEOF
2117 #define _XOPEN_SOURCE_EXTENDED 1
2124 cat >>confdefs.h <<\_ACEOF
2125 #define _POSIX_C_SOURCE 200112L
2132 # SGI compilers allow the specification of the both the ABI and the
2133 # ISA on the command line. Depending on the values of these switches,
2134 # different and often incompatable code will be generated.
2136 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2137 # thus supply support for various ABI/ISA combinations. The MACHDEP
2138 # variable is also adjusted.
2141 if test ! -z "$SGI_ABI"
2144 LDFLAGS="$SGI_ABI $LDFLAGS"
2145 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2147 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2148 echo "${ECHO_T}$MACHDEP" >&6; }
2150 # And add extra plat-mac for darwin
2153 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2154 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2155 if test -z "$EXTRAPLATDIR"
2159 EXTRAPLATDIR="\$(PLATMACDIRS)"
2160 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2168 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2169 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2171 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2172 # it may influence the way we can build extensions, so distutils
2176 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2177 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2179 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2180 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2181 ac_sys_machine=`uname
-m`
2182 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2183 echo "${ECHO_T}$ac_sys_machine" >&6; }
2185 # checks for alternative programs
2187 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2188 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2189 # just to get things to compile and link. Users are free to override OPT
2190 # when running configure or make. The build should not break if they do.
2191 # BASECFLAGS should generally not be messed with, however.
2193 # XXX shouldn't some/most/all of this code be merged with the stuff later
2194 # on that fiddles with OPT and BASECFLAGS?
2195 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2196 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2198 # Check whether --with-gcc was given.
2199 if test "${with_gcc+set}" = set; then
2207 without_gcc=$withval;;
2211 case $ac_sys_system in
2221 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2222 echo "${ECHO_T}$without_gcc" >&6; }
2224 # If the user switches compilers, we can't believe the cache
2225 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2227 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2228 (it is also a good idea to do 'make clean' before compiling)" >&5
2229 echo "$as_me: error: cached CC is different -- throw away $cache_file
2230 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2231 { (exit 1); exit 1; }; }
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239 if test -n "$ac_tool_prefix"; then
2240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 if test -n "$CC"; then
2269 { echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6; }
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2278 if test -z "$ac_cv_prog_CC"; then
2280 # Extract the first word of "gcc", so it can be a program name with args.
2281 set dummy 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_ac_ct_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 if test -n "$ac_ct_CC"; then
2288 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2308 if test -n "$ac_ct_CC"; then
2309 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2310 echo "${ECHO_T}$ac_ct_CC" >&6; }
2312 { echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6; }
2316 if test "x$ac_ct_CC" = x; then
2319 case $cross_compiling:$ac_tool_warned in
2321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&5
2324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2327 ac_tool_warned=yes ;;
2335 if test -z "$CC"; then
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}cc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="${ac_tool_prefix}cc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2376 if test -z "$CC"; then
2377 # Extract the first word of "cc", so it can be a program name with args.
2378 set dummy 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.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2396 ac_prog_rejected=yes
2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 if test $ac_prog_rejected = yes; then
2408 # We found a bogon in the path, so make sure we never use it.
2409 set dummy $ac_cv_prog_CC
2411 if test $# != 0; then
2412 # We chose a different compiler from the bogus one.
2413 # However, it has the same basename, so the bogon will be chosen
2414 # first if we set CC to just the basename; use the full file name.
2416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2422 if test -n "$CC"; then
2423 { echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6; }
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 for ac_prog in cl.exe
2436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2473 test -n "$CC" && break
2476 if test -z "$CC"; then
2478 for ac_prog in cl.exe
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481 set dummy $ac_prog; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_ac_ct_CC="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2517 test -n "$ac_ct_CC" && break
2520 if test "x$ac_ct_CC" = x; then
2523 case $cross_compiling:$ac_tool_warned in
2525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet. If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&5
2528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet. If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531 ac_tool_warned=yes ;;
2540 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2541 See \`config.log
' for more details." >&5
2542 echo "$as_me: error: no acceptable C compiler found in \$PATH
2543 See \`config.log' for more details.
" >&2;}
2544 { (exit 1); exit 1; }; }
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2548 ac_compiler=`set X $ac_compile; echo $2`
2549 { (ac_try="$ac_compiler --version >&5"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compiler --version >&5") 2>&5
2557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2558 (exit $ac_status); }
2559 { (ac_try="$ac_compiler -v >&5"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compiler -v >&5") 2>&5
2567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2568 (exit $ac_status); }
2569 { (ac_try="$ac_compiler -V >&5"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compiler -V >&5") 2>&5
2577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2578 (exit $ac_status); }
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2595 ac_clean_files_save=$ac_clean_files
2596 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2597 # Try to create an executable without -o first, disregard a.out.
2598 # It will help us diagnose broken compilers, and finding out an intuition
2600 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2601 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2602 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2604 # List of possible output files, starting from the most likely.
2605 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2606 # only as a last resort. b.out is created by i960 compilers.
2607 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2609 # The IRIX 6 linker writes into existing files which may not be
2610 # executable, retaining their permissions. Remove them first so a
2611 # subsequent execution test works.
2613 for ac_file in $ac_files
2616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2617 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2622 if { (ac_try="$ac_link_default"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_link_default") 2>&5
2630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2631 (exit $ac_status); }; then
2632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2634 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2635 # so that the user can short-circuit this test for compilers unknown to
2637 for ac_file in $ac_files ''
2639 test -f "$ac_file" || continue
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2644 # We found the default executable, but exeext='' is most
2648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 # We set ac_cv_exeext here because the later test for it is not
2653 # safe: cross compilers may not add the suffix if given an `-o'
2654 # argument, so we may need to know it at that point already.
2655 # Even if this section looks crufty: it has the advantage of
2662 test "$ac_cv_exeext" = no && ac_cv_exeext=
2668 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2669 echo "${ECHO_T}$ac_file" >&6; }
2670 if test -z "$ac_file"; then
2671 echo "$as_me: failed program was
:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2675 See \
`config.log' for more details." >&5
2676 echo "$as_me: error: C compiler cannot create executables
2677 See \`config.log
' for more details." >&2;}
2678 { (exit 77); exit 77; }; }
2681 ac_exeext=$ac_cv_exeext
2683 # Check that the compiler produces executables we can run. If not, either
2684 # the compiler is broken, or we cross compile.
2685 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2686 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2687 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2688 # If not cross compiling, check that we can run a simple program.
2689 if test "$cross_compiling" != yes; then
2690 if { ac_try='.
/$ac_file'
2691 { (case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_try") 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2702 if test "$cross_compiling" = maybe; then
2705 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2706 If you meant to cross compile, use \`--host'.
2707 See \
`config.log' for more details." >&5
2708 echo "$as_me: error: cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details.
" >&2;}
2711 { (exit 1); exit 1; }; }
2715 { echo "$as_me:$LINENO: result
: yes" >&5
2716 echo "${ECHO_T}yes" >&6; }
2718 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2719 ac_clean_files=$ac_clean_files_save
2720 # Check that the compiler produces executables we can run. If not, either
2721 # the compiler is broken, or we cross compile.
2722 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2723 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2724 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2725 echo "${ECHO_T}$cross_compiling" >&6; }
2727 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2728 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2729 if { (ac_try="$ac_link"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_link") 2>&5
2737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2738 (exit $ac_status); }; then
2739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2740 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2741 # work properly (i.e., refer to `conftest.exe'), while it won't with
2743 for ac_file in conftest.exe conftest conftest.*; do
2744 test -f "$ac_file" || continue
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2754 See \
`config.log' for more details." >&5
2755 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2756 See \`config.log
' for more details." >&2;}
2757 { (exit 1); exit 1; }; }
2760 rm -f conftest$ac_cv_exeext
2761 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2762 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2764 rm -f conftest.$ac_ext
2765 EXEEXT=$ac_cv_exeext
2767 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2768 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2769 if test "${ac_cv_objext+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 cat >conftest.$ac_ext <<_ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 rm -f conftest.o conftest.obj
2788 if { (ac_try="$ac_compile"
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_compile") 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; then
2798 for ac_file in conftest.o conftest.obj conftest.*; do
2799 test -f "$ac_file" || continue;
2801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2802 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2807 echo "$as_me: failed program was:" >&5
2808 sed 's
/^
/|
/' conftest.$ac_ext >&5
2810 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2811 See \`config.log' for more details.
" >&5
2812 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2813 See \
`config.log' for more details." >&2;}
2814 { (exit 1); exit 1; }; }
2817 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2819 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2820 echo "${ECHO_T}$ac_cv_objext" >&6; }
2821 OBJEXT=$ac_cv_objext
2823 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2824 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2825 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2846 rm -f conftest.$ac_objext
2847 if { (ac_try="$ac_compile"
2849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2850 *) ac_try_echo
=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_compile") 2>conftest.er1
2855 grep -v '^ *+' conftest.er1
>conftest.err
2857 cat conftest.err
>&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } && {
2860 test -z "$ac_c_werror_flag" ||
2861 test ! -s conftest.err
2862 } && test -s conftest.
$ac_objext; then
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.
$ac_ext >&5
2871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2872 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2875 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2876 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2877 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2878 ac_test_CFLAGS
=${CFLAGS+set}
2879 ac_save_CFLAGS
=$CFLAGS
2880 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2881 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_cc_g+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 ac_save_c_werror_flag
=$ac_c_werror_flag
2886 ac_c_werror_flag
=yes
2889 cat >conftest.
$ac_ext <<_ACEOF
2892 cat confdefs.h
>>conftest.
$ac_ext
2893 cat >>conftest.
$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.
$ac_objext
2905 if { (ac_try
="$ac_compile"
2907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2946 *) ac_try_echo
=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2951 grep -v '^ *+' conftest.er1
>conftest.err
2953 cat conftest.err
>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.
$ac_objext; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.
$ac_ext >&5
2964 ac_c_werror_flag
=$ac_save_c_werror_flag
2966 cat >conftest.
$ac_ext <<_ACEOF
2969 cat confdefs.h
>>conftest.
$ac_ext
2970 cat >>conftest.
$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2981 rm -f conftest.
$ac_objext
2982 if { (ac_try
="$ac_compile"
2984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } && {
2995 test -z "$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 } && test -s conftest.$ac_objext; then
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_c_werror_flag=$ac_save_c_werror_flag
3015 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3017 if test "$ac_test_CFLAGS" = set; then
3018 CFLAGS=$ac_save_CFLAGS
3019 elif test $ac_cv_prog_cc_g = yes; then
3020 if test "$GCC" = yes; then
3026 if test "$GCC" = yes; then
3032 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3033 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_cc_c89+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 ac_cv_prog_cc_c89=no
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3047 #include <sys/types.h>
3048 #include <sys/stat.h>
3049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3050 struct buf { int x; };
3051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3052 static char *e (p, i)
3058 static char *f (char * (*g) (char **, int), char **p, ...)
3063 s = g (p, va_arg (v,int));
3068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3069 function prototypes and stuff, but not '\xHH' hex character constants.
3070 These don't provoke an error unfortunately, instead are silently treated
3071 as 'x'. The following induces an error, until -std is added to get
3072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3073 array size at least. It's necessary to write '\x00'==0 to get something
3074 that's true only with -std. */
3075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3078 inside strings and character constants. */
3080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3082 int test (int i, double x);
3083 struct s1 {int (*f) (int a);};
3084 struct s2 {int (*f) (double a);};
3085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3099 CC="$ac_save_CC $ac_arg"
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3104 *) ac_try_echo
=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1
>conftest.err
3111 cat conftest.err
>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.
$ac_objext; then
3117 ac_cv_prog_cc_c89
=$ac_arg
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.
$ac_ext >&5
3125 rm -f core conftest.err conftest.
$ac_objext
3126 test "x$ac_cv_prog_cc_c89" != "xno" && break
3128 rm -f conftest.
$ac_ext
3133 case "x$ac_cv_prog_cc_c89" in
3135 { echo "$as_me:$LINENO: result: none needed" >&5
3136 echo "${ECHO_T}none needed" >&6; } ;;
3138 { echo "$as_me:$LINENO: result: unsupported" >&5
3139 echo "${ECHO_T}unsupported" >&6; } ;;
3141 CC
="$CC $ac_cv_prog_cc_c89"
3142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3143 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3148 ac_cpp
='$CPP $CPPFLAGS'
3149 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3156 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3157 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3159 # Check whether --with-cxx_main was given.
3160 if test "${with_cxx_main+set}" = set; then
3161 withval
=$with_cxx_main;
3164 no
) with_cxx_main
=no
3166 yes) with_cxx_main
=yes
3168 *) with_cxx_main
=yes
3182 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3183 echo "${ECHO_T}$with_cxx_main" >&6; }
3189 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3190 set dummy g
++; ac_word
=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_path_CXX+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3202 for as_dir
in notfound
3205 test -z "$as_dir" && as_dir
=.
3206 for ac_exec_ext
in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3221 if test -n "$CXX"; then
3222 { echo "$as_me:$LINENO: result: $CXX" >&5
3223 echo "${ECHO_T}$CXX" >&6; }
3225 { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3230 cc
) # Extract the first word of "c++", so it can be a program name with args.
3231 set dummy c
++; ac_word
=$2
3232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3234 if test "${ac_cv_path_CXX+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3243 for as_dir
in notfound
3246 test -z "$as_dir" && as_dir
=.
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3262 if test -n "$CXX"; then
3263 { echo "$as_me:$LINENO: result: $CXX" >&5
3264 echo "${ECHO_T}$CXX" >&6; }
3266 { echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6; }
3272 if test "$CXX" = "notfound"
3279 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy
$ac_prog; ac_word
=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$CXX"; then
3289 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir
=.
3296 for ac_exec_ext
in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CXX
="$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CXX"; then
3310 { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3318 test -n "$CXX" && break
3320 test -n "$CXX" || CXX
="notfound"
3322 if test "$CXX" = "notfound"
3327 if test "$preset_cxx" != "$CXX"
3329 { echo "$as_me:$LINENO: WARNING:
3331 By default, distutils will build C++ extension modules with \"$CXX\".
3332 If this is not intended, then set CXX on the configure command line.
3334 echo "$as_me: WARNING:
3336 By default, distutils will build C++ extension modules with \"$CXX\".
3337 If this is not intended, then set CXX on the configure command line.
3342 # checks for UNIX variants that set C preprocessor variables
3345 ac_cpp
='$CPP $CPPFLAGS'
3346 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3349 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 # Double quotes because CPP needs to be expanded
3360 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363 for ac_c_preproc_warn_flag
in '' yes
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.
$ac_ext <<_ACEOF
3374 cat confdefs.h
>>conftest.
$ac_ext
3375 cat >>conftest.
$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3378 # include <limits.h>
3380 # include <assert.h>
3384 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 # Broken: fails on valid input.
3409 rm -f conftest.err conftest.$ac_ext
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <ac_nonexistent.h>
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3424 *) ac_try_echo
=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1
>conftest.err
3431 cat conftest.err
>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev
/null
&& {
3434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3437 # Broken: success on invalid input.
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.
$ac_ext >&5
3443 # Passes both tests.
3448 rm -f conftest.err conftest.
$ac_ext
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.
$ac_ext
3453 if $ac_preproc_ok; then
3465 { echo "$as_me:$LINENO: result: $CPP" >&5
3466 echo "${ECHO_T}$CPP" >&6; }
3468 for ac_c_preproc_warn_flag
in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.
$ac_ext <<_ACEOF
3479 cat confdefs.h
>>conftest.
$ac_ext
3480 cat >>conftest.
$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3483 # include <limits.h>
3485 # include <assert.h>
3489 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3529 *) ac_try_echo
=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1
>conftest.err
3536 cat conftest.err
>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev
/null
&& {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3542 # Broken: success on invalid input.
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.
$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.
$ac_ext
3558 if $ac_preproc_ok; then
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3575 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3576 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3577 if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 # Extract the first word of "grep ggrep" to use in msg output
3581 if test -z "$GREP"; then
3582 set dummy
grep ggrep
; ac_prog_name
=$2
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 ac_path_GREP_found
=false
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3592 test -z "$as_dir" && as_dir
=.
3593 for ac_prog
in grep ggrep
; do
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599 case `"$ac_path_GREP" --version 2>&1` in
3601 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3612 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3613 ac_count
=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP
="$ac_path_GREP"
3617 ac_path_GREP_max
=$ac_count
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3622 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3626 $ac_path_GREP_found && break 3
3636 GREP
="$ac_cv_path_GREP"
3637 if test -z "$GREP"; then
3638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3639 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3640 { (exit 1); exit 1; }; }
3644 ac_cv_path_GREP
=$GREP
3649 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3651 GREP
="$ac_cv_path_GREP"
3654 { echo "$as_me:$LINENO: checking for egrep" >&5
3655 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_EGREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3660 then ac_cv_path_EGREP
="$GREP -E"
3662 # Extract the first word of "egrep" to use in msg output
3663 if test -z "$EGREP"; then
3664 set dummy
egrep; ac_prog_name
=$2
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_path_EGREP_found
=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3671 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3674 test -z "$as_dir" && as_dir
=.
3675 for ac_prog
in egrep; do
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681 case `"$ac_path_EGREP" --version 2>&1` in
3683 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3694 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3695 ac_count
=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP
="$ac_path_EGREP"
3699 ac_path_EGREP_max
=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3704 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3708 $ac_path_EGREP_found && break 3
3718 EGREP
="$ac_cv_path_EGREP"
3719 if test -z "$EGREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3726 ac_cv_path_EGREP
=$EGREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3734 EGREP
="$ac_cv_path_EGREP"
3738 { echo "$as_me:$LINENO: checking for AIX" >&5
3739 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3740 cat >conftest.
$ac_ext <<_ACEOF
3743 cat confdefs.h
>>conftest.
$ac_ext
3744 cat >>conftest.
$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3752 $EGREP "yes" >/dev
/null
2>&1; then
3753 { echo "$as_me:$LINENO: result: yes" >&5
3754 echo "${ECHO_T}yes" >&6; }
3755 cat >>confdefs.h
<<\_ACEOF
3756 #define _ALL_SOURCE 1
3760 { echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6; }
3767 # Check for unsupported systems
3768 case $ac_sys_system/$ac_sys_release in
3770 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3771 echo See README
for details.
3776 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3777 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3779 # Check whether --with-suffix was given.
3780 if test "${with_suffix+set}" = set; then
3781 withval
=$with_suffix;
3785 *) EXEEXT
=$withval;;
3789 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3790 echo "${ECHO_T}$EXEEXT" >&6; }
3792 # Test whether we're running on a non-case-sensitive system, in which
3793 # case we give a warning if no ext is given
3795 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3796 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3797 if test ! -d CaseSensitiveTestDir
; then
3798 mkdir CaseSensitiveTestDir
3801 if test -d casesensitivetestdir
3803 { echo "$as_me:$LINENO: result: yes" >&5
3804 echo "${ECHO_T}yes" >&6; }
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3811 rmdir CaseSensitiveTestDir
3816 gcc
) CC
="$CC -D_HAVE_BSDI";;
3820 case $ac_sys_system in
3823 cc|
*/cc
) CC
="$CC -Ae";;
3827 cc
) CC
="$CC -Wl,-Bexport";;
3830 # Some functions have a prototype only with that define, e.g. confstr
3832 cat >>confdefs.h
<<\_ACEOF
3833 #define __EXTENSIONS__ 1
3841 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3842 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3843 if test -z "$LIBRARY"
3845 LIBRARY
='libpython$(VERSION).a'
3847 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3848 echo "${ECHO_T}$LIBRARY" >&6; }
3850 # LDLIBRARY is the name of the library to link against (as opposed to the
3851 # name of the library into which to insert object files). BLDLIBRARY is also
3852 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3853 # is blank as the main program is not linked directly against LDLIBRARY.
3854 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3855 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3856 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3857 # DLLLIBRARY is the shared (i.e., DLL) library.
3859 # RUNSHARED is used to run shared python without installed libraries
3861 # INSTSONAME is the name of the shared library that will be use to install
3862 # on the system - some systems like version suffix, others don't
3869 LDLIBRARY
="$LIBRARY"
3870 BLDLIBRARY
='$(LDLIBRARY)'
3871 INSTSONAME
='$(LDLIBRARY)'
3876 # LINKCC is the command that links the python executable -- default is $(CC).
3877 # If CXX is set, and if it is needed to link a main function that was
3878 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3879 # python might then depend on the C++ runtime
3880 # This is altered for AIX in order to build the export list before
3883 { echo "$as_me:$LINENO: checking LINKCC" >&5
3884 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3885 if test -z "$LINKCC"
3887 LINKCC
='$(PURIFY) $(MAINCC)'
3888 case $ac_sys_system in
3891 if test $ac_sys_release -ge 5 -o \
3892 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3895 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3897 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3900 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3901 echo "${ECHO_T}$LINKCC" >&6; }
3903 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3904 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3905 # Check whether --enable-shared was given.
3906 if test "${enable_shared+set}" = set; then
3907 enableval
=$enable_shared;
3911 if test -z "$enable_shared"
3913 case $ac_sys_system in
3915 enable_shared
="yes";;
3917 enable_shared
="no";;
3920 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3921 echo "${ECHO_T}$enable_shared" >&6; }
3923 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3924 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3925 # Check whether --enable-profiling was given.
3926 if test "${enable_profiling+set}" = set; then
3927 enableval
=$enable_profiling; ac_save_cc
="$CC"
3929 if test "$cross_compiling" = yes; then
3930 ac_enable_profiling
="no"
3932 cat >conftest.
$ac_ext <<_ACEOF
3935 cat confdefs.h
>>conftest.
$ac_ext
3936 cat >>conftest.
$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 int main() { return 0; }
3940 rm -f conftest
$ac_exeext
3941 if { (ac_try
="$ac_link"
3943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_link") 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3951 { (case "(($ac_try" in
3952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3953 *) ac_try_echo
=$ac_try;;
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_try") 2>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_enable_profiling
="yes"
3962 echo "$as_me: program exited with status $ac_status" >&5
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.
$ac_ext >&5
3967 ac_enable_profiling
="no"
3969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3976 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3977 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3979 case "$ac_enable_profiling" in
3981 BASECFLAGS
="-pg $BASECFLAGS"
3982 LDFLAGS
="-pg $LDFLAGS"
3986 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3987 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3989 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3990 # library that we build, but we do not want to link against it (we
3991 # will find it with a -framework option). For this reason there is an
3992 # extra variable BLDLIBRARY against which Python and the extension
3993 # modules are linked, BLDLIBRARY. This is normally the same as
3994 # LDLIBRARY, but empty for MacOSX framework builds.
3995 if test "$enable_framework"
3997 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3998 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4001 BLDLIBRARY
='$(LDLIBRARY)'
4004 # Other platforms follow
4005 if test $enable_shared = "yes"; then
4007 cat >>confdefs.h
<<\_ACEOF
4008 #define Py_ENABLE_SHARED 1
4011 case $ac_sys_system in
4013 LDLIBRARY
='libpython$(VERSION).dll.a'
4014 DLLLIBRARY
='libpython$(VERSION).dll'
4017 LDLIBRARY
='libpython$(VERSION).so'
4018 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4019 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4020 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4022 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4023 LDLIBRARY
='libpython$(VERSION).so'
4024 BLDLIBRARY
='-L. -lpython$(VERSION)'
4025 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4026 case $ac_sys_system in
4028 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4031 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4036 LDLIBRARY
='libpython$(VERSION).so'
4039 LDLIBRARY
='libpython$(VERSION).sl'
4042 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4043 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4046 LDLIBRARY
='libpython$(VERSION).so'
4047 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4048 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4051 LDLIBRARY
='libpython$(VERSION).so'
4052 BLDLIBRARY
='-L. -lpython$(VERSION)'
4053 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4056 else # shared is disabled
4057 case $ac_sys_system in
4059 BLDLIBRARY
='$(LIBRARY)'
4060 LDLIBRARY
='libpython$(VERSION).dll.a'
4065 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4066 echo "${ECHO_T}$LDLIBRARY" >&6; }
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4070 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4073 if test "${ac_cv_prog_RANLIB+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$RANLIB"; then
4077 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir
=.
4084 for ac_exec_ext
in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 RANLIB
=$ac_cv_prog_RANLIB
4097 if test -n "$RANLIB"; then
4098 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4099 echo "${ECHO_T}$RANLIB" >&6; }
4101 { echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6; }
4107 if test -z "$ac_cv_prog_RANLIB"; then
4108 ac_ct_RANLIB
=$RANLIB
4109 # Extract the first word of "ranlib", so it can be a program name with args.
4110 set dummy ranlib
; ac_word
=$2
4111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4113 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 if test -n "$ac_ct_RANLIB"; then
4117 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir
=.
4124 for ac_exec_ext
in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4137 if test -n "$ac_ct_RANLIB"; then
4138 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4139 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4141 { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4145 if test "x$ac_ct_RANLIB" = x
; then
4148 case $cross_compiling:$ac_tool_warned in
4150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4151 whose name does not start with the host triplet. If you think this
4152 configuration is useful to you, please write to autoconf@gnu.org." >&5
4153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4154 whose name does not start with the host triplet. If you think this
4155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4156 ac_tool_warned
=yes ;;
4158 RANLIB
=$ac_ct_RANLIB
4161 RANLIB
="$ac_cv_prog_RANLIB"
4165 for ac_prog
in ar aal
4167 # Extract the first word of "$ac_prog", so it can be a program name with args.
4168 set dummy
$ac_prog; ac_word
=$2
4169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4171 if test "${ac_cv_prog_AR+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 if test -n "$AR"; then
4175 ac_cv_prog_AR
="$AR" # Let the user override the test.
4177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir
=.
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_AR
="$ac_prog"
4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 if test -n "$AR"; then
4196 { echo "$as_me:$LINENO: result: $AR" >&5
4197 echo "${ECHO_T}$AR" >&6; }
4199 { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4204 test -n "$AR" && break
4206 test -n "$AR" || AR
="ar"
4210 # Extract the first word of "svnversion", so it can be a program name with args.
4211 set dummy svnversion
; ac_word
=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test -n "$SVNVERSION"; then
4218 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_exec_ext
in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_SVNVERSION
="found"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4238 SVNVERSION
=$ac_cv_prog_SVNVERSION
4239 if test -n "$SVNVERSION"; then
4240 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4241 echo "${ECHO_T}$SVNVERSION" >&6; }
4243 { echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6; }
4248 if test $SVNVERSION = found
4250 SVNVERSION
="svnversion \$(srcdir)"
4252 SVNVERSION
="echo exported"
4257 # install -d does not work on BSDI or HP-UX
4258 if test -z "$INSTALL"
4260 INSTALL
="${srcdir}/install-sh -c"
4264 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4265 if test -f "$ac_dir/install-sh"; then
4267 ac_install_sh
="$ac_aux_dir/install-sh -c"
4269 elif test -f "$ac_dir/install.sh"; then
4271 ac_install_sh
="$ac_aux_dir/install.sh -c"
4273 elif test -f "$ac_dir/shtool"; then
4275 ac_install_sh
="$ac_aux_dir/shtool install -c"
4279 if test -z "$ac_aux_dir"; then
4280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4281 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4282 { (exit 1); exit 1; }; }
4285 # These three variables are undocumented and unsupported,
4286 # and are intended to be withdrawn in a future Autoconf release.
4287 # They can cause serious problems if a builder's source tree is in a directory
4288 # whose full name contains unusual characters.
4289 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4290 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4291 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4294 # Find a good install program. We prefer a C program (faster),
4295 # so one script is as good as another. But avoid the broken or
4296 # incompatible versions:
4297 # SysV /etc/install, /usr/sbin/install
4298 # SunOS /usr/etc/install
4299 # IRIX /sbin/install
4301 # AmigaOS /C/install, which installs bootblocks on floppy discs
4302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4305 # OS/2's system install, which has a completely different semantic
4306 # ./install, which can be erroneously created by make from ./install.sh.
4307 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4308 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4309 if test -z "$INSTALL"; then
4310 if test "${ac_cv_path_install+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir
=.
4318 # Account for people who put trailing slashes in PATH elements.
4320 .
/ | .
// |
/cC
/* | \
4321 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4322 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4325 # OSF1 and SCO ODT 3.0 have their own names for install.
4326 # Don't use installbsd from OSF since it installs stuff as root
4328 for ac_prog
in ginstall scoinst
install; do
4329 for ac_exec_ext
in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4331 if test $ac_prog = install &&
4332 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4333 # AIX install. It has an incompatible calling convention.
4335 elif test $ac_prog = install &&
4336 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4337 # program-specific install script used by HP pwplus--don't use.
4340 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4353 if test "${ac_cv_path_install+set}" = set; then
4354 INSTALL
=$ac_cv_path_install
4356 # As a last resort, use the slow shell script. Don't cache a
4357 # value for INSTALL within a source directory, because that will
4358 # break other packages using the cache if that directory is
4359 # removed, or if the value is a relative name.
4360 INSTALL
=$ac_install_sh
4363 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4364 echo "${ECHO_T}$INSTALL" >&6; }
4366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4367 # It thinks the first close brace ends the variable substitution.
4368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4372 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4375 # Not every filesystem supports hard links
4377 if test -z "$LN" ; then
4378 case $ac_sys_system in
4379 CYGWIN
*) LN
="ln -s";;
4380 atheos
*) LN
="ln -s";;
4385 # Check for --with-pydebug
4386 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4387 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4389 # Check whether --with-pydebug was given.
4390 if test "${with_pydebug+set}" = set; then
4391 withval
=$with_pydebug;
4392 if test "$withval" != no
4395 cat >>confdefs.h
<<\_ACEOF
4399 { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; };
4402 else { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4411 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4412 # merged with this chunk of code?
4414 # Optimizer/debugger flags
4415 # ------------------------
4416 # (The following bit of code is complicated enough - please keep things
4417 # indented properly. Just pretend you're editing Python code. ;-)
4419 # There are two parallel sets of case statements below, one that checks to
4420 # see if OPT was set and one that does BASECFLAGS setting based upon
4421 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4424 # tweak OPT based on compiler and platform, only if the user didn't set
4425 # it on the command line
4431 if test "$CC" != 'g++' ; then
4432 STRICT_PROTO
="-Wstrict-prototypes"
4434 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4435 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4438 case $ac_cv_prog_cc_g in
4440 if test "$Py_DEBUG" = 'true' ; then
4441 # Optimization messes up debuggers, so turn it off for
4443 OPT
="-g -Wall $STRICT_PROTO"
4445 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4449 OPT
="-O3 -Wall $STRICT_PROTO"
4452 case $ac_sys_system in
4453 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4463 # The current (beta) Monterey compiler dies with optimizations
4464 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4465 case $ac_sys_system in
4474 # tweak BASECFLAGS based on compiler and platform
4477 # Python violates C99 rules, by casting between incompatible
4478 # pointer types. GCC may generate bad code as a result of that,
4479 # so use -fno-strict-aliasing if supported.
4480 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4481 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4483 CC
="$CC -fno-strict-aliasing"
4484 if test "$cross_compiling" = yes; then
4485 ac_cv_no_strict_aliasing_ok
=no
4487 cat >conftest.
$ac_ext <<_ACEOF
4490 cat confdefs.h
>>conftest.
$ac_ext
4491 cat >>conftest.
$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 int main() { return 0; }
4495 rm -f conftest
$ac_exeext
4496 if { (ac_try
="$ac_link"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4508 *) ac_try_echo
=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_no_strict_aliasing_ok
=yes
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.
$ac_ext >&5
4522 ac_cv_no_strict_aliasing_ok
=no
4524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4530 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4531 if test $ac_cv_no_strict_aliasing_ok = yes
4533 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4536 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4537 # support. Without this, treatment of subnormals doesn't follow
4539 case $ac_sys_machine in
4541 BASECFLAGS
="$BASECFLAGS -mieee"
4545 case $ac_sys_system in
4547 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4549 # is there any other compiler on Darwin besides gcc?
4551 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4552 # used to be here, but non-Apple gcc doesn't accept them.
4553 if test "${enable_universalsdk}"; then
4554 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4559 BASECFLAGS
="$BASECFLAGS -mieee"
4565 case $ac_sys_system in
4566 OpenUNIX
*|UnixWare
*)
4567 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4570 BASECFLAGS
="$BASECFLAGS -ieee -std"
4573 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4579 if test "$Py_DEBUG" = 'true'; then
4585 if test "$ac_arch_flags"
4587 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4590 # disable check for icc since it seems to pass, but generates a warning
4593 ac_cv_opt_olimit_ok
=no
4596 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4597 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4598 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 CC
="$CC -OPT:Olimit=0"
4603 if test "$cross_compiling" = yes; then
4604 ac_cv_opt_olimit_ok
=no
4606 cat >conftest.
$ac_ext <<_ACEOF
4609 cat confdefs.h
>>conftest.
$ac_ext
4610 cat >>conftest.
$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 int main() { return 0; }
4614 rm -f conftest
$ac_exeext
4615 if { (ac_try
="$ac_link"
4617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_link") 2>&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4625 { (case "(($ac_try" in
4626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4627 *) ac_try_echo
=$ac_try;;
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_try") 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_cv_opt_olimit_ok
=yes
4636 echo "$as_me: program exited with status $ac_status" >&5
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.
$ac_ext >&5
4641 ac_cv_opt_olimit_ok
=no
4643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4650 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4651 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4652 if test $ac_cv_opt_olimit_ok = yes; then
4653 case $ac_sys_system in
4654 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4655 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4660 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4664 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4665 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4666 if test "${ac_cv_olimit_ok+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 CC
="$CC -Olimit 1500"
4671 if test "$cross_compiling" = yes; then
4674 cat >conftest.
$ac_ext <<_ACEOF
4677 cat confdefs.h
>>conftest.
$ac_ext
4678 cat >>conftest.
$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4680 int main() { return 0; }
4682 rm -f conftest
$ac_exeext
4683 if { (ac_try
="$ac_link"
4685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_link") 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4695 *) ac_try_echo
=$ac_try;;
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4704 echo "$as_me: program exited with status $ac_status" >&5
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.
$ac_ext >&5
4711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4718 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4719 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4720 if test $ac_cv_olimit_ok = yes; then
4721 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4725 # Check whether GCC supports PyArg_ParseTuple format
4726 if test "$GCC" = "yes"
4728 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4729 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4731 CFLAGS
="$CFLAGS -Werror"
4732 cat >conftest.
$ac_ext <<_ACEOF
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4749 rm -f conftest.
$ac_objext
4750 if { (ac_try
="$ac_compile"
4752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756 (eval "$ac_compile") 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && {
4763 test -z "$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 } && test -s conftest.$ac_objext; then
4767 cat >>confdefs.h <<\_ACEOF
4768 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4771 { echo "$as_me:$LINENO: result: yes" >&5
4772 echo "${ECHO_T}yes" >&6; }
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 # On some compilers, pthreads are available without further options
4787 # (e.g. MacOS X). On some of these systems, the compiler will not
4788 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4789 # So we have to see first whether pthreads are available without
4790 # options before we can check whether -Kpthread improves anything.
4791 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4792 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4793 if test "${ac_cv_pthread_is_default+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test "$cross_compiling" = yes; then
4797 ac_cv_pthread_is_default=no
4799 cat >conftest.$ac_ext <<_ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4806 #include <pthread.h>
4808 void* routine(void* p){return NULL;}
4812 if(pthread_create(&p,NULL,routine,NULL)!=0)
4814 (void)pthread_detach(p);
4819 rm -f conftest$ac_exeext
4820 if { (ac_try="$ac_link"
4822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4823 *) ac_try_echo
=$ac_try;;
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_link") 2>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4830 { (case "(($ac_try" in
4831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_try") 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4840 ac_cv_pthread_is_default=yes
4845 echo "$as_me: program exited with status $ac_status" >&5
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_cv_pthread_is_default=no
4852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4859 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4860 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4863 if test $ac_cv_pthread_is_default = yes
4867 # -Kpthread, if available, provides the right #defines
4868 # and linker options to make pthread_create available
4869 # Some compilers won't report that they do not support -Kpthread,
4870 # so we need to run a program to see whether it really made the
4871 # function available.
4872 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4873 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4874 if test "${ac_cv_kpthread+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 if test "$cross_compiling" = yes; then
4882 cat >conftest.$ac_ext <<_ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4889 #include <pthread.h>
4891 void* routine(void* p){return NULL;}
4895 if(pthread_create(&p,NULL,routine,NULL)!=0)
4897 (void)pthread_detach(p);
4902 rm -f conftest$ac_exeext
4903 if { (ac_try="$ac_link"
4905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4906 *) ac_try_echo
=$ac_try;;
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_link") 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4913 { (case "(($ac_try" in
4914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_try") 2>&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4924 echo "$as_me: program exited with status $ac_status" >&5
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4938 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4939 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4942 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4944 # -Kthread, if available, provides the right #defines
4945 # and linker options to make pthread_create available
4946 # Some compilers won't report that they do not support -Kthread,
4947 # so we need to run a program to see whether it really made the
4948 # function available.
4949 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4950 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4951 if test "${ac_cv_kthread+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 if test "$cross_compiling" = yes; then
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4966 #include <pthread.h>
4968 void* routine(void* p){return NULL;}
4972 if(pthread_create(&p,NULL,routine,NULL)!=0)
4974 (void)pthread_detach(p);
4979 rm -f conftest$ac_exeext
4980 if { (ac_try="$ac_link"
4982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4983 *) ac_try_echo
=$ac_try;;
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_link") 2>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4990 { (case "(($ac_try" in
4991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_try") 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
5001 echo "$as_me: program exited with status $ac_status" >&5
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5015 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5016 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5019 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5021 # -pthread, if available, provides the right #defines
5022 # and linker options to make pthread_create available
5023 # Some compilers won't report that they do not support -pthread,
5024 # so we need to run a program to see whether it really made the
5025 # function available.
5026 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5027 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5028 if test "${ac_cv_thread+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 if test "$cross_compiling" = yes; then
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5043 #include <pthread.h>
5045 void* routine(void* p){return NULL;}
5049 if(pthread_create(&p,NULL,routine,NULL)!=0)
5051 (void)pthread_detach(p);
5056 rm -f conftest$ac_exeext
5057 if { (ac_try="$ac_link"
5059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5060 *) ac_try_echo
=$ac_try;;
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_link") 2>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5067 { (case "(($ac_try" in
5068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_try") 2>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5078 echo "$as_me: program exited with status $ac_status" >&5
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5092 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5093 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5096 # If we have set a CC compiler flag for thread support then
5097 # check if it works for CXX, too.
5101 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5102 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5105 if test "$ac_cv_kpthread" = "yes"
5107 CXX="$CXX -Kpthread"
5108 ac_cv_cxx_thread=yes
5109 elif test "$ac_cv_kthread" = "yes"
5112 ac_cv_cxx_thread=yes
5113 elif test "$ac_cv_pthread" = "yes"
5116 ac_cv_cxx_thread=yes
5119 if test $ac_cv_cxx_thread = yes
5121 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5122 $CXX -c conftest.$ac_ext 2>&5
5123 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5124 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5126 ac_cv_cxx_thread=yes
5132 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5133 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5138 # checks for header files
5139 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5140 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5141 if test "${ac_cv_header_stdc+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 cat >conftest.$ac_ext <<_ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5163 rm -f conftest.$ac_objext
5164 if { (ac_try="$ac_compile"
5166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5167 *) ac_try_echo
=$ac_try;;
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_compile") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1
>conftest.err
5174 cat conftest.err
>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 } && test -s conftest.
$ac_objext; then
5180 ac_cv_header_stdc
=yes
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.
$ac_ext >&5
5185 ac_cv_header_stdc
=no
5188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5190 if test $ac_cv_header_stdc = yes; then
5191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5192 cat >conftest.
$ac_ext <<_ACEOF
5195 cat confdefs.h
>>conftest.
$ac_ext
5196 cat >>conftest.
$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202 $EGREP "memchr" >/dev
/null
2>&1; then
5205 ac_cv_header_stdc
=no
5211 if test $ac_cv_header_stdc = yes; then
5212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213 cat >conftest.
$ac_ext <<_ACEOF
5216 cat confdefs.h
>>conftest.
$ac_ext
5217 cat >>conftest.
$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223 $EGREP "free" >/dev
/null
2>&1; then
5226 ac_cv_header_stdc
=no
5232 if test $ac_cv_header_stdc = yes; then
5233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5234 if test "$cross_compiling" = yes; then
5237 cat >conftest.
$ac_ext <<_ACEOF
5240 cat confdefs.h
>>conftest.
$ac_ext
5241 cat >>conftest.
$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5245 #if ((' ' & 0x0FF) == 0x020)
5246 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5247 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5249 # define ISLOWER(c) \
5250 (('a' <= (c) && (c) <= 'i') \
5251 || ('j' <= (c) && (c) <= 'r') \
5252 || ('s' <= (c) && (c) <= 'z'))
5253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5261 for (i = 0; i < 256; i++)
5262 if (XOR (islower (i), ISLOWER (i))
5263 || toupper (i) != TOUPPER (i))
5268 rm -f conftest
$ac_exeext
5269 if { (ac_try
="$ac_link"
5271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_link") 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5279 { (case "(($ac_try" in
5280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5281 *) ac_try_echo
=$ac_try;;
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_try") 2>&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5290 echo "$as_me: program exited with status $ac_status" >&5
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.
$ac_ext >&5
5295 ac_cv_header_stdc
=no
5297 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5303 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5304 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5305 if test $ac_cv_header_stdc = yes; then
5307 cat >>confdefs.h
<<\_ACEOF
5308 #define STDC_HEADERS 1
5313 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5323 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5324 inttypes.h stdint.h unistd.h
5326 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5329 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat >conftest.
$ac_ext <<_ACEOF
5335 cat confdefs.h
>>conftest.
$ac_ext
5336 cat >>conftest.
$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 $ac_includes_default
5340 #include <$ac_header>
5342 rm -f conftest.
$ac_objext
5343 if { (ac_try
="$ac_compile"
5345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 eval "$as_ac_Header=yes"
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 eval "$as_ac_Header=no"
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 ac_res=`eval echo '${'$as_ac_Header'}'`
5370 { echo "$as_me:$LINENO: result: $ac_res" >&5
5371 echo "${ECHO_T}$ac_res" >&6; }
5372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5373 cat >>confdefs.h <<_ACEOF
5374 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5435 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5437 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5438 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5440 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5441 sys/lock.h sys/mkdev.h sys/modem.h \
5442 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5444 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5445 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5446 bluetooth/bluetooth.h linux/tipc.h
5448 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 ac_res=`eval echo '${'$as_ac_Header'}'`
5456 { echo "$as_me:$LINENO: result: $ac_res" >&5
5457 echo "${ECHO_T}$ac_res" >&6; }
5459 # Is the header compilable?
5460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 $ac_includes_default
5469 #include <$ac_header>
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5475 *) ac_try_echo
=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1
>conftest.err
5482 cat conftest.err
>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.
$ac_objext; then
5488 ac_header_compiler
=yes
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.
$ac_ext >&5
5493 ac_header_compiler
=no
5496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5498 echo "${ECHO_T}$ac_header_compiler" >&6; }
5500 # Is the header present?
5501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5503 cat >conftest.
$ac_ext <<_ACEOF
5506 cat confdefs.h
>>conftest.
$ac_ext
5507 cat >>conftest.
$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <$ac_header>
5511 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null && {
5524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5527 ac_header_preproc=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_header_preproc=no
5535 rm -f conftest.err conftest.$ac_ext
5536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5537 echo "${ECHO_T}$ac_header_preproc" >&6; }
5539 # So? What about this header?
5540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5546 ac_header_preproc=yes
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5562 ## ------------------------------------------------ ##
5563 ## Report this to http://www.python.org/python-bugs ##
5564 ## ------------------------------------------------ ##
5566 ) | sed "s/^/$as_me: WARNING: /" >&2
5569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 eval "$as_ac_Header=\$ac_header_preproc"
5576 ac_res=`eval echo '${'$as_ac_Header'}'`
5577 { echo "$as_me:$LINENO: result: $ac_res" >&5
5578 echo "${ECHO_T}$ac_res" >&6; }
5581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5582 cat >>confdefs.h <<_ACEOF
5583 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5597 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5598 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5599 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 cat >conftest.$ac_ext <<_ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include <sys/types.h>
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5625 *) ac_try_echo
=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5630 grep -v '^ *+' conftest.er1
>conftest.err
5632 cat conftest.err
>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.
$ac_objext; then
5638 eval "$as_ac_Header=yes"
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.
$ac_ext >&5
5643 eval "$as_ac_Header=no"
5646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5648 ac_res
=`eval echo '${'$as_ac_Header'}'`
5649 { echo "$as_me:$LINENO: result: $ac_res" >&5
5650 echo "${ECHO_T}$ac_res" >&6; }
5651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5652 cat >>confdefs.h
<<_ACEOF
5653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5656 ac_header_dirent
=$ac_hdr; break
5660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5661 if test $ac_header_dirent = dirent.h
; then
5662 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5664 if test "${ac_cv_search_opendir+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 ac_func_search_save_LIBS
=$LIBS
5668 cat >conftest.
$ac_ext <<_ACEOF
5671 cat confdefs.h
>>conftest.
$ac_ext
5672 cat >>conftest.
$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5675 /* Override any GCC internal prototype to avoid an error.
5676 Use char because int might match the return type of a GCC
5677 builtin and then its argument prototype would still apply. */
5690 for ac_lib
in '' dir
; do
5691 if test -z "$ac_lib"; then
5692 ac_res
="none required"
5695 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5697 rm -f conftest.
$ac_objext conftest
$ac_exeext
5698 if { (ac_try
="$ac_link"
5700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_link") 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest$ac_exeext &&
5714 $as_test_x conftest$ac_exeext; then
5715 ac_cv_search_opendir=$ac_res
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5725 if test "${ac_cv_search_opendir+set}" = set; then
5729 if test "${ac_cv_search_opendir+set}" = set; then
5732 ac_cv_search_opendir=no
5735 LIBS=$ac_func_search_save_LIBS
5737 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5738 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5739 ac_res=$ac_cv_search_opendir
5740 if test "$ac_res" != no; then
5741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5746 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5748 if test "${ac_cv_search_opendir+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 ac_func_search_save_LIBS=$LIBS
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5759 /* Override any GCC internal prototype to avoid an error.
5760 Use char because int might match the return type of a GCC
5761 builtin and then its argument prototype would still apply. */
5774 for ac_lib in '' x; do
5775 if test -z "$ac_lib"; then
5776 ac_res="none required"
5779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (ac_try="$ac_link"
5784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5785 *) ac_try_echo
=$ac_try;;
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_link") 2>conftest.er1
5790 grep -v '^ *+' conftest.er1
>conftest.err
5792 cat conftest.err
>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } && {
5795 test -z "$ac_c_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest
$ac_exeext &&
5798 $as_test_x conftest
$ac_exeext; then
5799 ac_cv_search_opendir
=$ac_res
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5807 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5809 if test "${ac_cv_search_opendir+set}" = set; then
5813 if test "${ac_cv_search_opendir+set}" = set; then
5816 ac_cv_search_opendir
=no
5819 LIBS
=$ac_func_search_save_LIBS
5821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5823 ac_res
=$ac_cv_search_opendir
5824 if test "$ac_res" != no
; then
5825 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5831 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5832 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5833 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 cat >conftest.
$ac_ext <<_ACEOF
5839 cat confdefs.h
>>conftest.
$ac_ext
5840 cat >>conftest.
$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #include <sys/types.h>
5846 return makedev(0, 0);
5851 rm -f conftest.
$ac_objext conftest
$ac_exeext
5852 if { (ac_try
="$ac_link"
5854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_link") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest$ac_exeext &&
5868 $as_test_x conftest$ac_exeext; then
5869 ac_cv_header_sys_types_h_makedev=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_cv_header_sys_types_h_makedev=no
5877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5878 conftest$ac_exeext conftest.$ac_ext
5881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5882 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5884 if test $ac_cv_header_sys_types_h_makedev = no; then
5885 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5886 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5887 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5888 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5892 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5894 # Is the header compilable?
5895 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5896 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5897 cat >conftest.$ac_ext <<_ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 $ac_includes_default
5904 #include <sys/mkdev.h>
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5910 *) ac_try_echo
=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1
>conftest.err
5917 cat conftest.err
>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.
$ac_objext; then
5923 ac_header_compiler
=yes
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.
$ac_ext >&5
5928 ac_header_compiler
=no
5931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5933 echo "${ECHO_T}$ac_header_compiler" >&6; }
5935 # Is the header present?
5936 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5937 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <sys/mkdev.h>
5946 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } >/dev/null && {
5959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5962 ac_header_preproc=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_header_preproc=no
5970 rm -f conftest.err conftest.$ac_ext
5971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5972 echo "${ECHO_T}$ac_header_preproc" >&6; }
5974 # So? What about this header?
5975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5978 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5980 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5981 ac_header_preproc=yes
5984 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5985 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5987 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5989 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5991 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5992 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5993 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5995 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5997 ## ------------------------------------------------ ##
5998 ## Report this to http://www.python.org/python-bugs ##
5999 ## ------------------------------------------------ ##
6001 ) | sed "s/^/$as_me: WARNING: /" >&2
6004 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6005 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6006 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6012 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6015 if test $ac_cv_header_sys_mkdev_h = yes; then
6017 cat >>confdefs.h <<\_ACEOF
6018 #define MAJOR_IN_MKDEV 1
6025 if test $ac_cv_header_sys_mkdev_h = no; then
6026 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6027 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6028 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6029 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6033 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6035 # Is the header compilable?
6036 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6037 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 $ac_includes_default
6045 #include <sys/sysmacros.h>
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6051 *) ac_try_echo
=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compile") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1
>conftest.err
6058 cat conftest.err
>&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_c_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest.
$ac_objext; then
6064 ac_header_compiler
=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.
$ac_ext >&5
6069 ac_header_compiler
=no
6072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6074 echo "${ECHO_T}$ac_header_compiler" >&6; }
6076 # Is the header present?
6077 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6078 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6079 cat >conftest.
$ac_ext <<_ACEOF
6082 cat confdefs.h
>>conftest.
$ac_ext
6083 cat >>conftest.
$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/sysmacros.h>
6087 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } >/dev/null && {
6100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6103 ac_header_preproc=yes
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_header_preproc=no
6111 rm -f conftest.err conftest.$ac_ext
6112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6113 echo "${ECHO_T}$ac_header_preproc" >&6; }
6115 # So? What about this header?
6116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6118 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6119 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6121 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6122 ac_header_preproc=yes
6125 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6126 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6128 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6130 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6132 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6134 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6136 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6138 ## ------------------------------------------------ ##
6139 ## Report this to http://www.python.org/python-bugs ##
6140 ## ------------------------------------------------ ##
6142 ) | sed "s/^/$as_me: WARNING: /" >&2
6145 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6146 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6147 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6152 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6153 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6156 if test $ac_cv_header_sys_sysmacros_h = yes; then
6158 cat >>confdefs.h <<\_ACEOF
6159 #define MAJOR_IN_SYSMACROS 1
6169 # On Solaris, term.h requires curses.h
6171 for ac_header in term.h
6173 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 #ifdef HAVE_CURSES_H
6191 #include <$ac_header>
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6197 *) ac_try_echo
=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6202 grep -v '^ *+' conftest.er1
>conftest.err
6204 cat conftest.err
>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.
$ac_objext; then
6210 eval "$as_ac_Header=yes"
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.
$ac_ext >&5
6215 eval "$as_ac_Header=no"
6218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6220 ac_res
=`eval echo '${'$as_ac_Header'}'`
6221 { echo "$as_me:$LINENO: result: $ac_res" >&5
6222 echo "${ECHO_T}$ac_res" >&6; }
6223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224 cat >>confdefs.h
<<_ACEOF
6225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6233 # On Linux, netlink.h requires asm/types.h
6235 for ac_header
in linux
/netlink.h
6237 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6240 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 cat >conftest.
$ac_ext <<_ACEOF
6246 cat confdefs.h
>>conftest.
$ac_ext
6247 cat >>conftest.
$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6250 #ifdef HAVE_ASM_TYPES_H
6251 #include <asm/types.h>
6253 #ifdef HAVE_SYS_SOCKET_H
6254 #include <sys/socket.h>
6258 #include <$ac_header>
6260 rm -f conftest.
$ac_objext
6261 if { (ac_try
="$ac_compile"
6263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compile") 2>conftest.er1
6269 grep -v '^ *+' conftest.er1 >conftest.err
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_objext; then
6277 eval "$as_ac_Header=yes"
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 eval "$as_ac_Header=no"
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 ac_res=`eval echo '${'$as_ac_Header'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6300 # checks for typedefs
6302 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6303 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6304 cat >conftest.$ac_ext <<_ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6314 $EGREP "clock_t" >/dev/null 2>&1; then
6319 cat >>confdefs.h <<\_ACEOF
6320 #define clock_t long
6327 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6328 echo "${ECHO_T}$was_it_defined" >&6; }
6330 # Check whether using makedev requires defining _OSF_SOURCE
6331 { echo "$as_me:$LINENO: checking for makedev" >&5
6332 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <sys/types.h>
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (ac_try="$ac_link"
6351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6352 *) ac_try_echo
=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_link") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1
>conftest.err
6359 cat conftest.err
>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest
$ac_exeext &&
6365 $as_test_x conftest
$ac_exeext; then
6366 ac_cv_has_makedev
=yes
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.
$ac_ext >&5
6371 ac_cv_has_makedev
=no
6374 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6375 conftest
$ac_exeext conftest.
$ac_ext
6376 if test "$ac_cv_has_makedev" = "no"; then
6377 # we didn't link, try if _OSF_SOURCE will allow us to link
6378 cat >conftest.
$ac_ext <<_ACEOF
6381 cat confdefs.h
>>conftest.
$ac_ext
6382 cat >>conftest.
$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6385 #define _OSF_SOURCE 1
6386 #include <sys/types.h>
6396 rm -f conftest.
$ac_objext conftest
$ac_exeext
6397 if { (ac_try
="$ac_link"
6399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_link") 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest$ac_exeext &&
6413 $as_test_x conftest$ac_exeext; then
6414 ac_cv_has_makedev=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_cv_has_makedev=no
6422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6423 conftest$ac_exeext conftest.$ac_ext
6424 if test "$ac_cv_has_makedev" = "yes"; then
6426 cat >>confdefs.h <<\_ACEOF
6427 #define _OSF_SOURCE 1
6432 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6433 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6434 if test "$ac_cv_has_makedev" = "yes"; then
6436 cat >>confdefs.h <<\_ACEOF
6437 #define HAVE_MAKEDEV 1
6442 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6443 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6444 # defined, but the compiler does not support pragma redefine_extname,
6445 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6446 # structures (such as rlimit64) without declaring them. As a
6447 # work-around, disable LFS on such configurations
6450 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6451 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 #define _LARGEFILE_SOURCE 1
6460 #define _FILE_OFFSET_BITS 64
6461 #include <sys/resource.h>
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6475 *) ac_try_echo
=$ac_try;;
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6480 grep -v '^ *+' conftest.er1
>conftest.err
6482 cat conftest.err
>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.
$ac_objext; then
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.
$ac_ext >&5
6496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6497 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6498 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6499 if test "$sol_lfs_bug" = "yes"; then
6503 if test "$use_lfs" = "yes"; then
6504 # Two defines needed to enable largefile support on various platforms
6505 # These may affect some typedefs
6507 cat >>confdefs.h
<<\_ACEOF
6508 #define _LARGEFILE_SOURCE 1
6512 cat >>confdefs.h
<<\_ACEOF
6513 #define _FILE_OFFSET_BITS 64
6518 # Add some code to confdefs.h so that the test for off_t works on SCO
6519 cat >> confdefs.h
<<\EOF
6525 # Type availability checks
6526 { echo "$as_me:$LINENO: checking for mode_t" >&5
6527 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6528 if test "${ac_cv_type_mode_t+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 cat >conftest.
$ac_ext <<_ACEOF
6534 cat confdefs.h
>>conftest.
$ac_ext
6535 cat >>conftest.
$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 typedef mode_t ac__type_new_;
6542 if ((ac__type_new_ *) 0)
6544 if (sizeof (ac__type_new_))
6550 rm -f conftest.
$ac_objext
6551 if { (ac_try
="$ac_compile"
6553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_compile") 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest.$ac_objext; then
6567 ac_cv_type_mode_t=yes
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6572 ac_cv_type_mode_t=no
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6578 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6579 if test $ac_cv_type_mode_t = yes; then
6583 cat >>confdefs.h <<_ACEOF
6589 { echo "$as_me:$LINENO: checking for off_t" >&5
6590 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6591 if test "${ac_cv_type_off_t+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6601 typedef off_t ac__type_new_;
6605 if ((ac__type_new_ *) 0)
6607 if (sizeof (ac__type_new_))
6613 rm -f conftest.$ac_objext
6614 if { (ac_try="$ac_compile"
6616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6617 *) ac_try_echo
=$ac_try;;
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_compile") 2>conftest.er1
6622 grep -v '^ *+' conftest.er1
>conftest.err
6624 cat conftest.err
>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && {
6627 test -z "$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 } && test -s conftest.
$ac_objext; then
6630 ac_cv_type_off_t
=yes
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.
$ac_ext >&5
6638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6641 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6642 if test $ac_cv_type_off_t = yes; then
6646 cat >>confdefs.h
<<_ACEOF
6647 #define off_t long int
6652 { echo "$as_me:$LINENO: checking for pid_t" >&5
6653 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6654 if test "${ac_cv_type_pid_t+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.
$ac_ext <<_ACEOF
6660 cat confdefs.h
>>conftest.
$ac_ext
6661 cat >>conftest.
$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 $ac_includes_default
6664 typedef pid_t ac__type_new_;
6668 if ((ac__type_new_ *) 0)
6670 if (sizeof (ac__type_new_))
6676 rm -f conftest.
$ac_objext
6677 if { (ac_try
="$ac_compile"
6679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_compile") 2>conftest.er1
6685 grep -v '^ *+' conftest.er1 >conftest.err
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest.$ac_objext; then
6693 ac_cv_type_pid_t=yes
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6705 if test $ac_cv_type_pid_t = yes; then
6709 cat >>confdefs.h <<_ACEOF
6715 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6716 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6717 if test "${ac_cv_type_signal+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 #include <sys/types.h>
6732 return *(signal (0, 0)) (0) == 1;
6737 rm -f conftest.$ac_objext
6738 if { (ac_try="$ac_compile"
6740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6741 *) ac_try_echo
=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_compile") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1
>conftest.err
6748 cat conftest.err
>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && {
6751 test -z "$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 } && test -s conftest.
$ac_objext; then
6754 ac_cv_type_signal
=int
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.
$ac_ext >&5
6759 ac_cv_type_signal
=void
6762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6764 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6765 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6767 cat >>confdefs.h
<<_ACEOF
6768 #define RETSIGTYPE $ac_cv_type_signal
6772 { echo "$as_me:$LINENO: checking for size_t" >&5
6773 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6774 if test "${ac_cv_type_size_t+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 cat >conftest.
$ac_ext <<_ACEOF
6780 cat confdefs.h
>>conftest.
$ac_ext
6781 cat >>conftest.
$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 $ac_includes_default
6784 typedef size_t ac__type_new_;
6788 if ((ac__type_new_ *) 0)
6790 if (sizeof (ac__type_new_))
6796 rm -f conftest.
$ac_objext
6797 if { (ac_try
="$ac_compile"
6799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_compile") 2>conftest.er1
6805 grep -v '^ *+' conftest.er1 >conftest.err
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } && {
6810 test -z "$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6812 } && test -s conftest.$ac_objext; then
6813 ac_cv_type_size_t=yes
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 ac_cv_type_size_t=no
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6824 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6825 if test $ac_cv_type_size_t = yes; then
6829 cat >>confdefs.h <<_ACEOF
6830 #define size_t unsigned int
6835 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6836 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6837 if test "${ac_cv_type_uid_t+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 #include <sys/types.h>
6849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850 $EGREP "uid_t" >/dev/null 2>&1; then
6851 ac_cv_type_uid_t=yes
6858 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6859 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6860 if test $ac_cv_type_uid_t = no; then
6862 cat >>confdefs.h <<\_ACEOF
6867 cat >>confdefs.h <<\_ACEOF
6873 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6874 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6875 if test "${ac_cv_type_ssize_t+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 typedef ssize_t ac__type_new_;
6889 if ((ac__type_new_ *) 0)
6891 if (sizeof (ac__type_new_))
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6901 *) ac_try_echo
=$ac_try;;
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1
>conftest.err
6908 cat conftest.err
>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.
$ac_objext; then
6914 ac_cv_type_ssize_t
=yes
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.
$ac_ext >&5
6919 ac_cv_type_ssize_t
=no
6922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6924 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6925 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6926 if test $ac_cv_type_ssize_t = yes; then
6928 cat >>confdefs.h
<<\_ACEOF
6929 #define HAVE_SSIZE_T 1
6935 # Sizes of various common basic types
6936 # ANSI C requires sizeof(char) == 1, so no need to check it
6937 { echo "$as_me:$LINENO: checking for int" >&5
6938 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6939 if test "${ac_cv_type_int+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6949 typedef int ac__type_new_;
6953 if ((ac__type_new_ *) 0)
6955 if (sizeof (ac__type_new_))
6961 rm -f conftest.
$ac_objext
6962 if { (ac_try
="$ac_compile"
6964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6989 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6991 # The cast to long int works around a bug in the HP C Compiler
6992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6993 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6994 # This bug is HP SR number 8606223364.
6995 { echo "$as_me:$LINENO: checking size of int" >&5
6996 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6997 if test "${ac_cv_sizeof_int+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 if test "$cross_compiling" = yes; then
7001 # Depending upon the size, compute the lo and hi bounds.
7002 cat >conftest.$ac_ext <<_ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 $ac_includes_default
7009 typedef int ac__type_sizeof_;
7013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7020 rm -f conftest.$ac_objext
7021 if { (ac_try="$ac_compile"
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_compile") 2>conftest.er1
7029 grep -v '^
*+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest.$ac_objext; then
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7046 typedef int ac__type_sizeof_;
7050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7066 grep -v '^
*+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_hi=$ac_mid; break
7076 echo "$as_me: failed program was:" >&5
7077 sed 's
/^
/|
/' conftest.$ac_ext >&5
7079 ac_lo=`expr $ac_mid + 1`
7080 if test $ac_lo -le $ac_mid; then
7084 ac_mid=`expr 2 '*' $ac_mid + 1`
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 echo "$as_me: failed program was:" >&5
7091 sed 's
/^
/|
/' conftest.$ac_ext >&5
7093 cat >conftest.$ac_ext <<_ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7100 typedef int ac__type_sizeof_;
7104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^
*+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 $ac_includes_default
7137 typedef int ac__type_sizeof_;
7141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7148 rm -f conftest.$ac_objext
7149 if { (ac_try="$ac_compile"
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_compile") 2>conftest.er1
7157 grep -v '^
*+' conftest.er1 >conftest.err
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } && {
7162 test -z "$ac_c_werror_flag" ||
7163 test ! -s conftest.err
7164 } && test -s conftest.$ac_objext; then
7165 ac_lo=$ac_mid; break
7167 echo "$as_me: failed program was:" >&5
7168 sed 's
/^
/|
/' conftest.$ac_ext >&5
7170 ac_hi=`expr '(' $ac_mid ')' - 1`
7171 if test $ac_mid -le $ac_hi; then
7175 ac_mid=`expr 2 '*' $ac_mid`
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 echo "$as_me: failed program was:" >&5
7182 sed 's
/^
/|
/' conftest.$ac_ext >&5
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 # Binary search between lo and hi bounds.
7192 while test "x$ac_lo" != "x$ac_hi"; do
7193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7201 typedef int ac__type_sizeof_;
7205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7221 grep -v '^
*+' conftest.er1 >conftest.err
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7231 echo "$as_me: failed program was:" >&5
7232 sed 's
/^
/|
/' conftest.$ac_ext >&5
7234 ac_lo=`expr '(' $ac_mid ')' + 1`
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 ?*) ac_cv_sizeof_int=$ac_lo;;
7241 '') if test "$ac_cv_type_int" = yes; then
7242 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7243 See \`config.log' for more details.
" >&5
7244 echo "$as_me: error
: cannot compute sizeof
(int
)
7245 See \
`config.log' for more details." >&2;}
7246 { (exit 77); exit 77; }; }
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
7259 typedef int ac__type_sizeof_;
7260 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7261 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7268 FILE *f = fopen ("conftest.val", "w");
7271 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7273 long int i = longval ();
7274 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7276 fprintf (f, "%ld\n", i);
7280 unsigned long int i = ulongval ();
7281 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7283 fprintf (f, "%lu\n", i);
7285 return ferror (f) || fclose (f) != 0;
7291 rm -f conftest$ac_exeext
7292 if { (ac_try="$ac_link"
7294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7295 *) ac_try_echo
=$ac_try;;
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_link") 2>&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7302 { (case "(($ac_try" in
7303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_try") 2>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_sizeof_int=`cat conftest.val
`
7313 echo "$as_me: program exited with status $ac_status" >&5
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7318 if test "$ac_cv_type_int" = yes; then
7319 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7320 See \`config.log
' for more details." >&5
7321 echo "$as_me: error: cannot compute sizeof (int)
7322 See \`config.log' for more details.
" >&2;}
7323 { (exit 77); exit 77; }; }
7328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7332 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7333 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7337 cat >>confdefs.h <<_ACEOF
7338 #define SIZEOF_INT $ac_cv_sizeof_int
7342 { echo "$as_me:$LINENO: checking
for long
" >&5
7343 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7344 if test "${ac_cv_type_long+set}" = set; then
7345 echo $ECHO_N "(cached
) $ECHO_C" >&6
7347 cat >conftest.$ac_ext <<_ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 $ac_includes_default
7354 typedef long ac__type_new_;
7358 if ((ac__type_new_ *) 0)
7360 if (sizeof (ac__type_new_))
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7385 echo "$as_me: failed program was
:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7394 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7396 # The cast to long int works around a bug in the HP C Compiler
7397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7399 # This bug is HP SR number 8606223364.
7400 { echo "$as_me:$LINENO: checking size of long
" >&5
7401 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7402 if test "${ac_cv_sizeof_long+set}" = set; then
7403 echo $ECHO_N "(cached
) $ECHO_C" >&6
7405 if test "$cross_compiling" = yes; then
7406 # Depending upon the size, compute the lo and hi bounds.
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 $ac_includes_default
7414 typedef long ac__type_sizeof_;
7418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_compile") 2>conftest.er1
7434 grep -v '^ *+' conftest.er1 >conftest.err
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7438 (exit $ac_status); } && {
7439 test -z "$ac_c_werror_flag" ||
7440 test ! -s conftest.err
7441 } && test -s conftest.$ac_objext; then
7444 cat >conftest.$ac_ext <<_ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 $ac_includes_default
7451 typedef long ac__type_sizeof_;
7455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7471 grep -v '^ *+' conftest.er1 >conftest.err
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 ac_hi=$ac_mid; break
7481 echo "$as_me: failed program was
:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_lo=`expr $ac_mid + 1`
7485 if test $ac_lo -le $ac_mid; then
7489 ac_mid=`expr 2 '*' $ac_mid + 1`
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me: failed program was
:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 cat >conftest.$ac_ext <<_ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504 $ac_includes_default
7505 typedef long ac__type_sizeof_;
7509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7516 rm -f conftest.$ac_objext
7517 if { (ac_try="$ac_compile"
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7535 cat >conftest.$ac_ext <<_ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 $ac_includes_default
7542 typedef long ac__type_sizeof_;
7546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7562 grep -v '^ *+' conftest.er1 >conftest.err
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 ac_lo=$ac_mid; break
7572 echo "$as_me: failed program was
:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_hi=`expr '(' $ac_mid ')' - 1`
7576 if test $ac_mid -le $ac_hi; then
7580 ac_mid=`expr 2 '*' $ac_mid`
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me: failed program was
:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 # Binary search between lo and hi bounds.
7597 while test "x
$ac_lo" != "x
$ac_hi"; do
7598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 $ac_includes_default
7606 typedef long ac__type_sizeof_;
7610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7636 echo "$as_me: failed program was
:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 ac_lo=`expr '(' $ac_mid ')' + 1`
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 ?*) ac_cv_sizeof_long=$ac_lo;;
7646 '') if test "$ac_cv_type_long" = yes; then
7647 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7648 See \
`config.log' for more details." >&5
7649 echo "$as_me: error: cannot compute sizeof (long)
7650 See \`config.log
' for more details." >&2;}
7651 { (exit 77); exit 77; }; }
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 $ac_includes_default
7664 typedef long ac__type_sizeof_;
7665 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7666 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7673 FILE *f = fopen ("conftest.val", "w");
7676 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7678 long int i = longval ();
7679 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7681 fprintf (f, "%ld\n", i);
7685 unsigned long int i = ulongval ();
7686 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7688 fprintf (f, "%lu\n", i);
7690 return ferror (f) || fclose (f) != 0;
7696 rm -f conftest$ac_exeext
7697 if { (ac_try="$ac_link"
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_link") 2>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7707 { (case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_try") 2>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_sizeof_long=`cat conftest.val`
7718 echo "$as_me: program exited with status $ac_status" >&5
7719 echo "$as_me: failed program was:" >&5
7720 sed 's
/^
/|
/' conftest.$ac_ext >&5
7723 if test "$ac_cv_type_long" = yes; then
7724 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7725 See \`config.log' for more details.
" >&5
7726 echo "$as_me: error
: cannot compute sizeof
(long
)
7727 See \
`config.log' for more details." >&2;}
7728 { (exit 77); exit 77; }; }
7733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7737 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7738 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7742 cat >>confdefs.h <<_ACEOF
7743 #define SIZEOF_LONG $ac_cv_sizeof_long
7747 { echo "$as_me:$LINENO: checking for void *" >&5
7748 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7749 if test "${ac_cv_type_void_p+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 cat >conftest.$ac_ext <<_ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759 typedef void * ac__type_new_;
7763 if ((ac__type_new_ *) 0)
7765 if (sizeof (ac__type_new_))
7771 rm -f conftest.$ac_objext
7772 if { (ac_try="$ac_compile"
7774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7775 *) ac_try_echo
=$ac_try;;
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_compile") 2>conftest.er1
7780 grep -v '^ *+' conftest.er1
>conftest.err
7782 cat conftest.err
>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } && {
7785 test -z "$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7787 } && test -s conftest.
$ac_objext; then
7788 ac_cv_type_void_p
=yes
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.
$ac_ext >&5
7793 ac_cv_type_void_p
=no
7796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7798 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7799 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7801 # The cast to long int works around a bug in the HP C Compiler
7802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7804 # This bug is HP SR number 8606223364.
7805 { echo "$as_me:$LINENO: checking size of void *" >&5
7806 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7807 if test "${ac_cv_sizeof_void_p+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 if test "$cross_compiling" = yes; then
7811 # Depending upon the size, compute the lo and hi bounds.
7812 cat >conftest.
$ac_ext <<_ACEOF
7815 cat confdefs.h
>>conftest.
$ac_ext
7816 cat >>conftest.
$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 $ac_includes_default
7819 typedef void * ac__type_sizeof_;
7823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7830 rm -f conftest.
$ac_objext
7831 if { (ac_try
="$ac_compile"
7833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7849 cat >conftest.$ac_ext <<_ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 $ac_includes_default
7856 typedef void * ac__type_sizeof_;
7860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7867 rm -f conftest.$ac_objext
7868 if { (ac_try="$ac_compile"
7870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7871 *) ac_try_echo
=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_compile") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1
>conftest.err
7878 cat conftest.err
>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest.
$ac_objext; then
7884 ac_hi
=$ac_mid; break
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.
$ac_ext >&5
7889 ac_lo
=`expr $ac_mid + 1`
7890 if test $ac_lo -le $ac_mid; then
7894 ac_mid
=`expr 2 '*' $ac_mid + 1`
7897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.
$ac_ext >&5
7903 cat >conftest.
$ac_ext <<_ACEOF
7906 cat confdefs.h
>>conftest.
$ac_ext
7907 cat >>conftest.
$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7910 typedef void * ac__type_sizeof_;
7914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7921 rm -f conftest.
$ac_objext
7922 if { (ac_try
="$ac_compile"
7924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7947 typedef void * ac__type_sizeof_;
7951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7958 rm -f conftest.$ac_objext
7959 if { (ac_try="$ac_compile"
7961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7962 *) ac_try_echo
=$ac_try;;
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_compile") 2>conftest.er1
7967 grep -v '^ *+' conftest.er1
>conftest.err
7969 cat conftest.err
>&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.
$ac_objext; then
7975 ac_lo
=$ac_mid; break
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.
$ac_ext >&5
7980 ac_hi
=`expr '(' $ac_mid ')' - 1`
7981 if test $ac_mid -le $ac_hi; then
7985 ac_mid
=`expr 2 '*' $ac_mid`
7988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.
$ac_ext >&5
7997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8001 # Binary search between lo and hi bounds.
8002 while test "x$ac_lo" != "x$ac_hi"; do
8003 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8004 cat >conftest.
$ac_ext <<_ACEOF
8007 cat confdefs.h
>>conftest.
$ac_ext
8008 cat >>conftest.
$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 typedef void * ac__type_sizeof_;
8015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8022 rm -f conftest.
$ac_objext
8023 if { (ac_try
="$ac_compile"
8025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_lo=`expr '(' $ac_mid ')' + 1`
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8051 '') if test "$ac_cv_type_void_p" = yes; then
8052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8053 See \`config.log
' for more details." >&5
8054 echo "$as_me: error: cannot compute sizeof (void *)
8055 See \`config.log' for more details.
" >&2;}
8056 { (exit 77); exit 77; }; }
8058 ac_cv_sizeof_void_p=0
8062 cat >conftest.$ac_ext <<_ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 $ac_includes_default
8069 typedef void * ac__type_sizeof_;
8070 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8071 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8078 FILE *f = fopen ("conftest.val
", "w
");
8081 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8083 long int i = longval ();
8084 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8086 fprintf (f, "%ld
\n", i);
8090 unsigned long int i = ulongval ();
8091 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8093 fprintf (f, "%lu
\n", i);
8095 return ferror (f) || fclose (f) != 0;
8101 rm -f conftest$ac_exeext
8102 if { (ac_try="$ac_link"
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_link") 2>&5
8110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_sizeof_void_p=`cat conftest.val`
8123 echo "$as_me: program exited with status
$ac_status" >&5
8124 echo "$as_me: failed program was
:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8128 if test "$ac_cv_type_void_p" = yes; then
8129 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8130 See \
`config.log' for more details." >&5
8131 echo "$as_me: error: cannot compute sizeof (void *)
8132 See \`config.log
' for more details." >&2;}
8133 { (exit 77); exit 77; }; }
8135 ac_cv_sizeof_void_p=0
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8143 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8147 cat >>confdefs.h <<_ACEOF
8148 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8152 { echo "$as_me:$LINENO: checking for short" >&5
8153 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8154 if test "${ac_cv_type_short+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8164 typedef short ac__type_new_;
8168 if ((ac__type_new_ *) 0)
8170 if (sizeof (ac__type_new_))
8176 rm -f conftest.$ac_objext
8177 if { (ac_try="$ac_compile"
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8185 grep -v '^
*+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8193 ac_cv_type_short=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's
/^
/|
/' conftest.$ac_ext >&5
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8204 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8206 # The cast to long int works around a bug in the HP C Compiler
8207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8209 # This bug is HP SR number 8606223364.
8210 { echo "$as_me:$LINENO: checking size of short" >&5
8211 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8212 if test "${ac_cv_sizeof_short+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 if test "$cross_compiling" = yes; then
8216 # Depending upon the size, compute the lo and hi bounds.
8217 cat >conftest.
$ac_ext <<_ACEOF
8220 cat confdefs.h
>>conftest.
$ac_ext
8221 cat >>conftest.
$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 $ac_includes_default
8224 typedef short ac__type_sizeof_;
8228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8235 rm -f conftest.
$ac_objext
8236 if { (ac_try
="$ac_compile"
8238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_compile") 2>conftest.er1
8244 grep -v '^ *+' conftest.er1 >conftest.err
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } && {
8249 test -z "$ac_c_werror_flag" ||
8250 test ! -s conftest.err
8251 } && test -s conftest.$ac_objext; then
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8261 typedef short ac__type_sizeof_;
8265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8272 rm -f conftest.$ac_objext
8273 if { (ac_try="$ac_compile"
8275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8276 *) ac_try_echo
=$ac_try;;
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8281 grep -v '^ *+' conftest.er1
>conftest.err
8283 cat conftest.err
>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.
$ac_objext; then
8289 ac_hi
=$ac_mid; break
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.
$ac_ext >&5
8294 ac_lo
=`expr $ac_mid + 1`
8295 if test $ac_lo -le $ac_mid; then
8299 ac_mid
=`expr 2 '*' $ac_mid + 1`
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.
$ac_ext >&5
8308 cat >conftest.
$ac_ext <<_ACEOF
8311 cat confdefs.h
>>conftest.
$ac_ext
8312 cat >>conftest.
$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 typedef short ac__type_sizeof_;
8319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8326 rm -f conftest.
$ac_objext
8327 if { (ac_try
="$ac_compile"
8329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $ac_includes_default
8352 typedef short ac__type_sizeof_;
8356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8367 *) ac_try_echo
=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8372 grep -v '^ *+' conftest.er1
>conftest.err
8374 cat conftest.err
>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.
$ac_objext; then
8380 ac_lo
=$ac_mid; break
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.
$ac_ext >&5
8385 ac_hi
=`expr '(' $ac_mid ')' - 1`
8386 if test $ac_mid -le $ac_hi; then
8390 ac_mid
=`expr 2 '*' $ac_mid`
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.
$ac_ext >&5
8402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 # Binary search between lo and hi bounds.
8407 while test "x$ac_lo" != "x$ac_hi"; do
8408 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8409 cat >conftest.
$ac_ext <<_ACEOF
8412 cat confdefs.h
>>conftest.
$ac_ext
8413 cat >>conftest.
$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 $ac_includes_default
8416 typedef short ac__type_sizeof_;
8420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8427 rm -f conftest.
$ac_objext
8428 if { (ac_try
="$ac_compile"
8430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_lo=`expr '(' $ac_mid ')' + 1`
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 ?*) ac_cv_sizeof_short=$ac_lo;;
8456 '') if test "$ac_cv_type_short" = yes; then
8457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8458 See \`config.log
' for more details." >&5
8459 echo "$as_me: error: cannot compute sizeof (short)
8460 See \`config.log' for more details.
" >&2;}
8461 { (exit 77); exit 77; }; }
8463 ac_cv_sizeof_short=0
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 typedef short ac__type_sizeof_;
8475 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8476 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8483 FILE *f = fopen ("conftest.val
", "w
");
8486 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8488 long int i = longval ();
8489 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8491 fprintf (f, "%ld
\n", i);
8495 unsigned long int i = ulongval ();
8496 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8498 fprintf (f, "%lu
\n", i);
8500 return ferror (f) || fclose (f) != 0;
8506 rm -f conftest$ac_exeext
8507 if { (ac_try="$ac_link"
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_link") 2>&5
8515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8517 { (case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_try") 2>&5
8524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_sizeof_short=`cat conftest.val`
8528 echo "$as_me: program exited with status
$ac_status" >&5
8529 echo "$as_me: failed program was
:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8533 if test "$ac_cv_type_short" = yes; then
8534 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8535 See \
`config.log' for more details." >&5
8536 echo "$as_me: error: cannot compute sizeof (short)
8537 See \`config.log
' for more details." >&2;}
8538 { (exit 77); exit 77; }; }
8540 ac_cv_sizeof_short=0
8543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8548 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8552 cat >>confdefs.h <<_ACEOF
8553 #define SIZEOF_SHORT $ac_cv_sizeof_short
8557 { echo "$as_me:$LINENO: checking for float" >&5
8558 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8559 if test "${ac_cv_type_float+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 $ac_includes_default
8569 typedef float ac__type_new_;
8573 if ((ac__type_new_ *) 0)
8575 if (sizeof (ac__type_new_))
8581 rm -f conftest.$ac_objext
8582 if { (ac_try="$ac_compile"
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_compile") 2>conftest.er1
8590 grep -v '^
*+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.$ac_objext; then
8598 ac_cv_type_float=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's
/^
/|
/' conftest.$ac_ext >&5
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8609 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8611 # The cast to long int works around a bug in the HP C Compiler
8612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8614 # This bug is HP SR number 8606223364.
8615 { echo "$as_me:$LINENO: checking size of float" >&5
8616 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8617 if test "${ac_cv_sizeof_float+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 if test "$cross_compiling" = yes; then
8621 # Depending upon the size, compute the lo and hi bounds.
8622 cat >conftest.
$ac_ext <<_ACEOF
8625 cat confdefs.h
>>conftest.
$ac_ext
8626 cat >>conftest.
$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 typedef float ac__type_sizeof_;
8633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8640 rm -f conftest.
$ac_objext
8641 if { (ac_try
="$ac_compile"
8643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_compile") 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_c_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest.$ac_objext; then
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 typedef float ac__type_sizeof_;
8670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8681 *) ac_try_echo
=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1
>conftest.err
8688 cat conftest.err
>&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest.
$ac_objext; then
8694 ac_hi
=$ac_mid; break
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.
$ac_ext >&5
8699 ac_lo
=`expr $ac_mid + 1`
8700 if test $ac_lo -le $ac_mid; then
8704 ac_mid
=`expr 2 '*' $ac_mid + 1`
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.
$ac_ext >&5
8713 cat >conftest.
$ac_ext <<_ACEOF
8716 cat confdefs.h
>>conftest.
$ac_ext
8717 cat >>conftest.
$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 $ac_includes_default
8720 typedef float ac__type_sizeof_;
8724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8731 rm -f conftest.
$ac_objext
8732 if { (ac_try
="$ac_compile"
8734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8740 grep -v '^ *+' conftest.er1 >conftest.err
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8750 cat >conftest.$ac_ext <<_ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 typedef float ac__type_sizeof_;
8761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8768 rm -f conftest.$ac_objext
8769 if { (ac_try="$ac_compile"
8771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8772 *) ac_try_echo
=$ac_try;;
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8777 grep -v '^ *+' conftest.er1
>conftest.err
8779 cat conftest.err
>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_c_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.
$ac_objext; then
8785 ac_lo
=$ac_mid; break
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.
$ac_ext >&5
8790 ac_hi
=`expr '(' $ac_mid ')' - 1`
8791 if test $ac_mid -le $ac_hi; then
8795 ac_mid
=`expr 2 '*' $ac_mid`
8798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.
$ac_ext >&5
8807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8811 # Binary search between lo and hi bounds.
8812 while test "x$ac_lo" != "x$ac_hi"; do
8813 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8814 cat >conftest.
$ac_ext <<_ACEOF
8817 cat confdefs.h
>>conftest.
$ac_ext
8818 cat >>conftest.
$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 typedef float ac__type_sizeof_;
8825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8832 rm -f conftest.
$ac_objext
8833 if { (ac_try
="$ac_compile"
8835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8841 grep -v '^ *+' conftest.er1 >conftest.err
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } && {
8846 test -z "$ac_c_werror_flag" ||
8847 test ! -s conftest.err
8848 } && test -s conftest.$ac_objext; then
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_lo=`expr '(' $ac_mid ')' + 1`
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 ?*) ac_cv_sizeof_float=$ac_lo;;
8861 '') if test "$ac_cv_type_float" = yes; then
8862 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8863 See \`config.log
' for more details." >&5
8864 echo "$as_me: error: cannot compute sizeof (float)
8865 See \`config.log' for more details.
" >&2;}
8866 { (exit 77); exit 77; }; }
8868 ac_cv_sizeof_float=0
8872 cat >conftest.$ac_ext <<_ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 $ac_includes_default
8879 typedef float ac__type_sizeof_;
8880 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8881 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8888 FILE *f = fopen ("conftest.val
", "w
");
8891 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8893 long int i = longval ();
8894 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8896 fprintf (f, "%ld
\n", i);
8900 unsigned long int i = ulongval ();
8901 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8903 fprintf (f, "%lu
\n", i);
8905 return ferror (f) || fclose (f) != 0;
8911 rm -f conftest$ac_exeext
8912 if { (ac_try="$ac_link"
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_link") 2>&5
8920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_sizeof_float=`cat conftest.val`
8933 echo "$as_me: program exited with status
$ac_status" >&5
8934 echo "$as_me: failed program was
:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8938 if test "$ac_cv_type_float" = yes; then
8939 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8940 See \
`config.log' for more details." >&5
8941 echo "$as_me: error: cannot compute sizeof (float)
8942 See \`config.log
' for more details." >&2;}
8943 { (exit 77); exit 77; }; }
8945 ac_cv_sizeof_float=0
8948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8952 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8953 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8957 cat >>confdefs.h <<_ACEOF
8958 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8962 { echo "$as_me:$LINENO: checking for double" >&5
8963 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8964 if test "${ac_cv_type_double+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 $ac_includes_default
8974 typedef double ac__type_new_;
8978 if ((ac__type_new_ *) 0)
8980 if (sizeof (ac__type_new_))
8986 rm -f conftest.$ac_objext
8987 if { (ac_try="$ac_compile"
8989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993 (eval "$ac_compile") 2>conftest.er1
8995 grep -v '^
*+' conftest.er1 >conftest.err
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } && {
9000 test -z "$ac_c_werror_flag" ||
9001 test ! -s conftest.err
9002 } && test -s conftest.$ac_objext; then
9003 ac_cv_type_double=yes
9005 echo "$as_me: failed program was:" >&5
9006 sed 's
/^
/|
/' conftest.$ac_ext >&5
9008 ac_cv_type_double=no
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9014 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9016 # The cast to long int works around a bug in the HP C Compiler
9017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9019 # This bug is HP SR number 8606223364.
9020 { echo "$as_me:$LINENO: checking size of double" >&5
9021 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9022 if test "${ac_cv_sizeof_double+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 if test "$cross_compiling" = yes; then
9026 # Depending upon the size, compute the lo and hi bounds.
9027 cat >conftest.
$ac_ext <<_ACEOF
9030 cat confdefs.h
>>conftest.
$ac_ext
9031 cat >>conftest.
$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $ac_includes_default
9034 typedef double ac__type_sizeof_;
9038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9045 rm -f conftest.
$ac_objext
9046 if { (ac_try
="$ac_compile"
9048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_compile") 2>conftest.er1
9054 grep -v '^ *+' conftest.er1 >conftest.err
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_c_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.$ac_objext; then
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9071 typedef double ac__type_sizeof_;
9075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9082 rm -f conftest.$ac_objext
9083 if { (ac_try="$ac_compile"
9085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9086 *) ac_try_echo
=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_compile") 2>conftest.er1
9091 grep -v '^ *+' conftest.er1
>conftest.err
9093 cat conftest.err
>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && {
9096 test -z "$ac_c_werror_flag" ||
9097 test ! -s conftest.err
9098 } && test -s conftest.
$ac_objext; then
9099 ac_hi
=$ac_mid; break
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.
$ac_ext >&5
9104 ac_lo
=`expr $ac_mid + 1`
9105 if test $ac_lo -le $ac_mid; then
9109 ac_mid
=`expr 2 '*' $ac_mid + 1`
9112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.
$ac_ext >&5
9118 cat >conftest.
$ac_ext <<_ACEOF
9121 cat confdefs.h
>>conftest.
$ac_ext
9122 cat >>conftest.
$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9125 typedef double ac__type_sizeof_;
9129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9136 rm -f conftest.
$ac_objext
9137 if { (ac_try
="$ac_compile"
9139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9155 cat >conftest.$ac_ext <<_ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 $ac_includes_default
9162 typedef double ac__type_sizeof_;
9166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9177 *) ac_try_echo
=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9182 grep -v '^ *+' conftest.er1
>conftest.err
9184 cat conftest.err
>&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.
$ac_objext; then
9190 ac_lo
=$ac_mid; break
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.
$ac_ext >&5
9195 ac_hi
=`expr '(' $ac_mid ')' - 1`
9196 if test $ac_mid -le $ac_hi; then
9200 ac_mid
=`expr 2 '*' $ac_mid`
9203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.
$ac_ext >&5
9212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9216 # Binary search between lo and hi bounds.
9217 while test "x$ac_lo" != "x$ac_hi"; do
9218 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9219 cat >conftest.
$ac_ext <<_ACEOF
9222 cat confdefs.h
>>conftest.
$ac_ext
9223 cat >>conftest.
$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 $ac_includes_default
9226 typedef double ac__type_sizeof_;
9230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9237 rm -f conftest.
$ac_objext
9238 if { (ac_try
="$ac_compile"
9240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9246 grep -v '^ *+' conftest.er1 >conftest.err
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_lo=`expr '(' $ac_mid ')' + 1`
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 ?*) ac_cv_sizeof_double=$ac_lo;;
9266 '') if test "$ac_cv_type_double" = yes; then
9267 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9268 See \`config.log
' for more details." >&5
9269 echo "$as_me: error: cannot compute sizeof (double)
9270 See \`config.log' for more details.
" >&2;}
9271 { (exit 77); exit 77; }; }
9273 ac_cv_sizeof_double=0
9277 cat >conftest.$ac_ext <<_ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 $ac_includes_default
9284 typedef double ac__type_sizeof_;
9285 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9286 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9293 FILE *f = fopen ("conftest.val
", "w
");
9296 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9298 long int i = longval ();
9299 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9301 fprintf (f, "%ld
\n", i);
9305 unsigned long int i = ulongval ();
9306 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9308 fprintf (f, "%lu
\n", i);
9310 return ferror (f) || fclose (f) != 0;
9316 rm -f conftest$ac_exeext
9317 if { (ac_try="$ac_link"
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_link") 2>&5
9325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9327 { (case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_try") 2>&5
9334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_cv_sizeof_double=`cat conftest.val`
9338 echo "$as_me: program exited with status
$ac_status" >&5
9339 echo "$as_me: failed program was
:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9343 if test "$ac_cv_type_double" = yes; then
9344 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9345 See \
`config.log' for more details." >&5
9346 echo "$as_me: error: cannot compute sizeof (double)
9347 See \`config.log
' for more details." >&2;}
9348 { (exit 77); exit 77; }; }
9350 ac_cv_sizeof_double=0
9353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9358 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9362 cat >>confdefs.h <<_ACEOF
9363 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9367 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9368 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9369 if test "${ac_cv_type_fpos_t+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 $ac_includes_default
9379 typedef fpos_t ac__type_new_;
9383 if ((ac__type_new_ *) 0)
9385 if (sizeof (ac__type_new_))
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_compile") 2>conftest.er1
9400 grep -v '^
*+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
9408 ac_cv_type_fpos_t=yes
9410 echo "$as_me: failed program was:" >&5
9411 sed 's
/^
/|
/' conftest.$ac_ext >&5
9413 ac_cv_type_fpos_t=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9419 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9421 # The cast to long int works around a bug in the HP C Compiler
9422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9424 # This bug is HP SR number 8606223364.
9425 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9426 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9427 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 if test "$cross_compiling" = yes; then
9431 # Depending upon the size, compute the lo and hi bounds.
9432 cat >conftest.
$ac_ext <<_ACEOF
9435 cat confdefs.h
>>conftest.
$ac_ext
9436 cat >>conftest.
$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9439 typedef fpos_t ac__type_sizeof_;
9443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9450 rm -f conftest.
$ac_objext
9451 if { (ac_try
="$ac_compile"
9453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_compile") 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest.$ac_objext; then
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 $ac_includes_default
9476 typedef fpos_t ac__type_sizeof_;
9480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9487 rm -f conftest.$ac_objext
9488 if { (ac_try="$ac_compile"
9490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9491 *) ac_try_echo
=$ac_try;;
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_compile") 2>conftest.er1
9496 grep -v '^ *+' conftest.er1
>conftest.err
9498 cat conftest.err
>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest.
$ac_objext; then
9504 ac_hi
=$ac_mid; break
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.
$ac_ext >&5
9509 ac_lo
=`expr $ac_mid + 1`
9510 if test $ac_lo -le $ac_mid; then
9514 ac_mid
=`expr 2 '*' $ac_mid + 1`
9517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.
$ac_ext >&5
9523 cat >conftest.
$ac_ext <<_ACEOF
9526 cat confdefs.h
>>conftest.
$ac_ext
9527 cat >>conftest.
$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 $ac_includes_default
9530 typedef fpos_t ac__type_sizeof_;
9534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9541 rm -f conftest.
$ac_objext
9542 if { (ac_try
="$ac_compile"
9544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_compile") 2>conftest.er1
9550 grep -v '^ *+' conftest.er1 >conftest.err
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 $ac_includes_default
9567 typedef fpos_t ac__type_sizeof_;
9571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9578 rm -f conftest.$ac_objext
9579 if { (ac_try="$ac_compile"
9581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9582 *) ac_try_echo
=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1
>conftest.err
9589 cat conftest.err
>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.
$ac_objext; then
9595 ac_lo
=$ac_mid; break
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.
$ac_ext >&5
9600 ac_hi
=`expr '(' $ac_mid ')' - 1`
9601 if test $ac_mid -le $ac_hi; then
9605 ac_mid
=`expr 2 '*' $ac_mid`
9608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.
$ac_ext >&5
9617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9621 # Binary search between lo and hi bounds.
9622 while test "x$ac_lo" != "x$ac_hi"; do
9623 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9624 cat >conftest.
$ac_ext <<_ACEOF
9627 cat confdefs.h
>>conftest.
$ac_ext
9628 cat >>conftest.
$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 $ac_includes_default
9631 typedef fpos_t ac__type_sizeof_;
9635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9642 rm -f conftest.
$ac_objext
9643 if { (ac_try
="$ac_compile"
9645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_compile") 2>conftest.er1
9651 grep -v '^ *+' conftest.er1 >conftest.err
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && {
9656 test -z "$ac_c_werror_flag" ||
9657 test ! -s conftest.err
9658 } && test -s conftest.$ac_objext; then
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_lo=`expr '(' $ac_mid ')' + 1`
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9671 '') if test "$ac_cv_type_fpos_t" = yes; then
9672 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9673 See \`config.log
' for more details." >&5
9674 echo "$as_me: error: cannot compute sizeof (fpos_t)
9675 See \`config.log' for more details.
" >&2;}
9676 { (exit 77); exit 77; }; }
9678 ac_cv_sizeof_fpos_t=0
9682 cat >conftest.$ac_ext <<_ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 $ac_includes_default
9689 typedef fpos_t ac__type_sizeof_;
9690 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9691 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9698 FILE *f = fopen ("conftest.val
", "w
");
9701 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9703 long int i = longval ();
9704 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9706 fprintf (f, "%ld
\n", i);
9710 unsigned long int i = ulongval ();
9711 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9713 fprintf (f, "%lu
\n", i);
9715 return ferror (f) || fclose (f) != 0;
9721 rm -f conftest$ac_exeext
9722 if { (ac_try="$ac_link"
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_link") 2>&5
9730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9732 { (case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_try") 2>&5
9739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_sizeof_fpos_t=`cat conftest.val`
9743 echo "$as_me: program exited with status
$ac_status" >&5
9744 echo "$as_me: failed program was
:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9748 if test "$ac_cv_type_fpos_t" = yes; then
9749 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9750 See \
`config.log' for more details." >&5
9751 echo "$as_me: error: cannot compute sizeof (fpos_t)
9752 See \`config.log
' for more details." >&2;}
9753 { (exit 77); exit 77; }; }
9755 ac_cv_sizeof_fpos_t=0
9758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9762 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9763 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9767 cat >>confdefs.h <<_ACEOF
9768 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9772 { echo "$as_me:$LINENO: checking for size_t" >&5
9773 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9774 if test "${ac_cv_type_size_t+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 cat >conftest.$ac_ext <<_ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9784 typedef size_t ac__type_new_;
9788 if ((ac__type_new_ *) 0)
9790 if (sizeof (ac__type_new_))
9796 rm -f conftest.$ac_objext
9797 if { (ac_try="$ac_compile"
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_compile") 2>conftest.er1
9805 grep -v '^
*+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest.$ac_objext; then
9813 ac_cv_type_size_t=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's
/^
/|
/' conftest.$ac_ext >&5
9818 ac_cv_type_size_t=no
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9824 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9826 # The cast to long int works around a bug in the HP C Compiler
9827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9829 # This bug is HP SR number 8606223364.
9830 { echo "$as_me:$LINENO: checking size of size_t" >&5
9831 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9832 if test "${ac_cv_sizeof_size_t+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 if test "$cross_compiling" = yes; then
9836 # Depending upon the size, compute the lo and hi bounds.
9837 cat >conftest.
$ac_ext <<_ACEOF
9840 cat confdefs.h
>>conftest.
$ac_ext
9841 cat >>conftest.
$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 typedef size_t ac__type_sizeof_;
9848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9855 rm -f conftest.
$ac_objext
9856 if { (ac_try
="$ac_compile"
9858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_compile") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest.$ac_objext; then
9874 cat >conftest.$ac_ext <<_ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9881 typedef size_t ac__type_sizeof_;
9885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9892 rm -f conftest.$ac_objext
9893 if { (ac_try="$ac_compile"
9895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9896 *) ac_try_echo
=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_compile") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1
>conftest.err
9903 cat conftest.err
>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest.
$ac_objext; then
9909 ac_hi
=$ac_mid; break
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 ac_lo
=`expr $ac_mid + 1`
9915 if test $ac_lo -le $ac_mid; then
9919 ac_mid
=`expr 2 '*' $ac_mid + 1`
9922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.
$ac_ext >&5
9928 cat >conftest.
$ac_ext <<_ACEOF
9931 cat confdefs.h
>>conftest.
$ac_ext
9932 cat >>conftest.
$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 $ac_includes_default
9935 typedef size_t ac__type_sizeof_;
9939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9946 rm -f conftest.
$ac_objext
9947 if { (ac_try
="$ac_compile"
9949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_compile") 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } && {
9960 test -z "$ac_c_werror_flag" ||
9961 test ! -s conftest.err
9962 } && test -s conftest.$ac_objext; then
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 $ac_includes_default
9972 typedef size_t ac__type_sizeof_;
9976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9987 *) ac_try_echo
=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_compile") 2>conftest.er1
9992 grep -v '^ *+' conftest.er1
>conftest.err
9994 cat conftest.err
>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest.
$ac_objext; then
10000 ac_lo
=$ac_mid; break
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.
$ac_ext >&5
10005 ac_hi
=`expr '(' $ac_mid ')' - 1`
10006 if test $ac_mid -le $ac_hi; then
10010 ac_mid
=`expr 2 '*' $ac_mid`
10013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.
$ac_ext >&5
10022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10026 # Binary search between lo and hi bounds.
10027 while test "x$ac_lo" != "x$ac_hi"; do
10028 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10029 cat >conftest.
$ac_ext <<_ACEOF
10032 cat confdefs.h
>>conftest.
$ac_ext
10033 cat >>conftest.
$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 $ac_includes_default
10036 typedef size_t ac__type_sizeof_;
10040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10047 rm -f conftest.
$ac_objext
10048 if { (ac_try
="$ac_compile"
10049 case "(($ac_try" in
10050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_lo=`expr '(' $ac_mid ')' + 1`
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10076 '') if test "$ac_cv_type_size_t" = yes; then
10077 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10078 See \`config.log
' for more details." >&5
10079 echo "$as_me: error: cannot compute sizeof (size_t)
10080 See \`config.log' for more details.
" >&2;}
10081 { (exit 77); exit 77; }; }
10083 ac_cv_sizeof_size_t=0
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 typedef size_t ac__type_sizeof_;
10095 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10096 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10098 #include <stdlib.h>
10103 FILE *f = fopen ("conftest.val
", "w
");
10106 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10108 long int i = longval ();
10109 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10111 fprintf (f, "%ld
\n", i);
10115 unsigned long int i = ulongval ();
10116 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10118 fprintf (f, "%lu
\n", i);
10120 return ferror (f) || fclose (f) != 0;
10126 rm -f conftest$ac_exeext
10127 if { (ac_try="$ac_link"
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_link") 2>&5
10135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10137 { (case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_try") 2>&5
10144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_sizeof_size_t=`cat conftest.val`
10148 echo "$as_me: program exited with status
$ac_status" >&5
10149 echo "$as_me: failed program was
:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ( exit $ac_status )
10153 if test "$ac_cv_type_size_t" = yes; then
10154 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10155 See \
`config.log' for more details." >&5
10156 echo "$as_me: error: cannot compute sizeof (size_t)
10157 See \`config.log
' for more details." >&2;}
10158 { (exit 77); exit 77; }; }
10160 ac_cv_sizeof_size_t=0
10163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10168 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10172 cat >>confdefs.h <<_ACEOF
10173 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10177 { echo "$as_me:$LINENO: checking for pid_t" >&5
10178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10179 if test "${ac_cv_type_pid_t+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 $ac_includes_default
10189 typedef pid_t ac__type_new_;
10193 if ((ac__type_new_ *) 0)
10195 if (sizeof (ac__type_new_))
10201 rm -f conftest.$ac_objext
10202 if { (ac_try="$ac_compile"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_compile") 2>conftest.er1
10210 grep -v '^
*+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && {
10215 test -z "$ac_c_werror_flag" ||
10216 test ! -s conftest.err
10217 } && test -s conftest.$ac_objext; then
10218 ac_cv_type_pid_t=yes
10220 echo "$as_me: failed program was:" >&5
10221 sed 's
/^
/|
/' conftest.$ac_ext >&5
10223 ac_cv_type_pid_t=no
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10231 # The cast to long int works around a bug in the HP C Compiler
10232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10234 # This bug is HP SR number 8606223364.
10235 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10236 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10237 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 if test "$cross_compiling" = yes; then
10241 # Depending upon the size, compute the lo and hi bounds.
10242 cat >conftest.
$ac_ext <<_ACEOF
10245 cat confdefs.h
>>conftest.
$ac_ext
10246 cat >>conftest.
$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 typedef pid_t ac__type_sizeof_;
10253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10260 rm -f conftest.
$ac_objext
10261 if { (ac_try
="$ac_compile"
10262 case "(($ac_try" in
10263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_compile") 2>conftest.er1
10269 grep -v '^ *+' conftest.er1 >conftest.err
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest.$ac_objext; then
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 $ac_includes_default
10286 typedef pid_t ac__type_sizeof_;
10290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10297 rm -f conftest.$ac_objext
10298 if { (ac_try="$ac_compile"
10299 case "(($ac_try" in
10300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10301 *) ac_try_echo
=$ac_try;;
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_compile") 2>conftest.er1
10306 grep -v '^ *+' conftest.er1
>conftest.err
10308 cat conftest.err
>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest.
$ac_objext; then
10314 ac_hi
=$ac_mid; break
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.
$ac_ext >&5
10319 ac_lo
=`expr $ac_mid + 1`
10320 if test $ac_lo -le $ac_mid; then
10324 ac_mid
=`expr 2 '*' $ac_mid + 1`
10327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.
$ac_ext >&5
10333 cat >conftest.
$ac_ext <<_ACEOF
10336 cat confdefs.h
>>conftest.
$ac_ext
10337 cat >>conftest.
$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10339 $ac_includes_default
10340 typedef pid_t ac__type_sizeof_;
10344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10351 rm -f conftest.
$ac_objext
10352 if { (ac_try
="$ac_compile"
10353 case "(($ac_try" in
10354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_compile") 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && {
10365 test -z "$ac_c_werror_flag" ||
10366 test ! -s conftest.err
10367 } && test -s conftest.$ac_objext; then
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 $ac_includes_default
10377 typedef pid_t ac__type_sizeof_;
10381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10388 rm -f conftest.$ac_objext
10389 if { (ac_try="$ac_compile"
10390 case "(($ac_try" in
10391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10392 *) ac_try_echo
=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_compile") 2>conftest.er1
10397 grep -v '^ *+' conftest.er1
>conftest.err
10399 cat conftest.err
>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest.
$ac_objext; then
10405 ac_lo
=$ac_mid; break
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.
$ac_ext >&5
10410 ac_hi
=`expr '(' $ac_mid ')' - 1`
10411 if test $ac_mid -le $ac_hi; then
10415 ac_mid
=`expr 2 '*' $ac_mid`
10418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.
$ac_ext >&5
10427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10431 # Binary search between lo and hi bounds.
10432 while test "x$ac_lo" != "x$ac_hi"; do
10433 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10434 cat >conftest.
$ac_ext <<_ACEOF
10437 cat confdefs.h
>>conftest.
$ac_ext
10438 cat >>conftest.
$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 $ac_includes_default
10441 typedef pid_t ac__type_sizeof_;
10445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10452 rm -f conftest.
$ac_objext
10453 if { (ac_try
="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_lo=`expr '(' $ac_mid ')' + 1`
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10480 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10481 '') if test "$ac_cv_type_pid_t" = yes; then
10482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10483 See \`config.log
' for more details." >&5
10484 echo "$as_me: error: cannot compute sizeof (pid_t)
10485 See \`config.log' for more details.
" >&2;}
10486 { (exit 77); exit 77; }; }
10488 ac_cv_sizeof_pid_t=0
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 $ac_includes_default
10499 typedef pid_t ac__type_sizeof_;
10500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10503 #include <stdlib.h>
10508 FILE *f = fopen ("conftest.val
", "w
");
10511 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10513 long int i = longval ();
10514 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10516 fprintf (f, "%ld
\n", i);
10520 unsigned long int i = ulongval ();
10521 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10523 fprintf (f, "%lu
\n", i);
10525 return ferror (f) || fclose (f) != 0;
10531 rm -f conftest$ac_exeext
10532 if { (ac_try="$ac_link"
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_link") 2>&5
10540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_sizeof_pid_t=`cat conftest.val`
10553 echo "$as_me: program exited with status
$ac_status" >&5
10554 echo "$as_me: failed program was
:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ( exit $ac_status )
10558 if test "$ac_cv_type_pid_t" = yes; then
10559 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10560 See \
`config.log' for more details." >&5
10561 echo "$as_me: error: cannot compute sizeof (pid_t)
10562 See \`config.log
' for more details." >&2;}
10563 { (exit 77); exit 77; }; }
10565 ac_cv_sizeof_pid_t=0
10568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10573 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10577 cat >>confdefs.h <<_ACEOF
10578 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10583 { echo "$as_me:$LINENO: checking for long long support" >&5
10584 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10596 long long x; x = (long long)0;
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10610 grep -v '^
*+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest.$ac_objext; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_LONG_LONG 1
10627 echo "$as_me: failed program was:" >&5
10628 sed 's
/^
/|
/' conftest.$ac_ext >&5
10633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10635 echo "${ECHO_T}$have_long_long" >&6; }
10636 if test "$have_long_long" = yes ; then
10637 { echo "$as_me:$LINENO: checking for long long" >&5
10638 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10639 if test "${ac_cv_type_long_long+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 cat >conftest.$ac_ext <<_ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 $ac_includes_default
10649 typedef long long ac__type_new_;
10653 if ((ac__type_new_ *) 0)
10655 if (sizeof (ac__type_new_))
10661 rm -f conftest.$ac_objext
10662 if { (ac_try="$ac_compile"
10663 case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_compile") 2>conftest.er1
10670 grep -v '^
*+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } && {
10675 test -z "$ac_c_werror_flag" ||
10676 test ! -s conftest.err
10677 } && test -s conftest.$ac_objext; then
10678 ac_cv_type_long_long=yes
10680 echo "$as_me: failed program was:" >&5
10681 sed 's
/^
/|
/' conftest.$ac_ext >&5
10683 ac_cv_type_long_long=no
10686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10689 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10691 # The cast to long int works around a bug in the HP C Compiler
10692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10694 # This bug is HP SR number 8606223364.
10695 { echo "$as_me:$LINENO: checking size of long long" >&5
10696 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10697 if test "${ac_cv_sizeof_long_long+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 if test "$cross_compiling" = yes; then
10701 # Depending upon the size, compute the lo and hi bounds.
10702 cat >conftest.
$ac_ext <<_ACEOF
10705 cat confdefs.h
>>conftest.
$ac_ext
10706 cat >>conftest.
$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 $ac_includes_default
10709 typedef long long ac__type_sizeof_;
10713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10720 rm -f conftest.
$ac_objext
10721 if { (ac_try
="$ac_compile"
10722 case "(($ac_try" in
10723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_compile") 2>conftest.er1
10729 grep -v '^ *+' conftest.er1 >conftest.err
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } && {
10734 test -z "$ac_c_werror_flag" ||
10735 test ! -s conftest.err
10736 } && test -s conftest.$ac_objext; then
10739 cat >conftest.$ac_ext <<_ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745 $ac_includes_default
10746 typedef long long ac__type_sizeof_;
10750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10757 rm -f conftest.$ac_objext
10758 if { (ac_try="$ac_compile"
10759 case "(($ac_try" in
10760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10761 *) ac_try_echo
=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_compile") 2>conftest.er1
10766 grep -v '^ *+' conftest.er1
>conftest.err
10768 cat conftest.err
>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest.
$ac_objext; then
10774 ac_hi
=$ac_mid; break
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.
$ac_ext >&5
10779 ac_lo
=`expr $ac_mid + 1`
10780 if test $ac_lo -le $ac_mid; then
10784 ac_mid
=`expr 2 '*' $ac_mid + 1`
10787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.
$ac_ext >&5
10793 cat >conftest.
$ac_ext <<_ACEOF
10796 cat confdefs.h
>>conftest.
$ac_ext
10797 cat >>conftest.
$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 $ac_includes_default
10800 typedef long long ac__type_sizeof_;
10804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10811 rm -f conftest.
$ac_objext
10812 if { (ac_try
="$ac_compile"
10813 case "(($ac_try" in
10814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_compile") 2>conftest.er1
10820 grep -v '^ *+' conftest.er1 >conftest.err
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && {
10825 test -z "$ac_c_werror_flag" ||
10826 test ! -s conftest.err
10827 } && test -s conftest.$ac_objext; then
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 $ac_includes_default
10837 typedef long long ac__type_sizeof_;
10841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10848 rm -f conftest.$ac_objext
10849 if { (ac_try="$ac_compile"
10850 case "(($ac_try" in
10851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10852 *) ac_try_echo
=$ac_try;;
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_compile") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1
>conftest.err
10859 cat conftest.err
>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest.
$ac_objext; then
10865 ac_lo
=$ac_mid; break
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.
$ac_ext >&5
10870 ac_hi
=`expr '(' $ac_mid ')' - 1`
10871 if test $ac_mid -le $ac_hi; then
10875 ac_mid
=`expr 2 '*' $ac_mid`
10878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.
$ac_ext >&5
10887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10891 # Binary search between lo and hi bounds.
10892 while test "x$ac_lo" != "x$ac_hi"; do
10893 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10894 cat >conftest.
$ac_ext <<_ACEOF
10897 cat confdefs.h
>>conftest.
$ac_ext
10898 cat >>conftest.
$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 $ac_includes_default
10901 typedef long long ac__type_sizeof_;
10905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10912 rm -f conftest.
$ac_objext
10913 if { (ac_try
="$ac_compile"
10914 case "(($ac_try" in
10915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_compile") 2>conftest.er1
10921 grep -v '^ *+' conftest.er1 >conftest.err
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && {
10926 test -z "$ac_c_werror_flag" ||
10927 test ! -s conftest.err
10928 } && test -s conftest.$ac_objext; then
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_lo=`expr '(' $ac_mid ')' + 1`
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10941 '') if test "$ac_cv_type_long_long" = yes; then
10942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10943 See \`config.log
' for more details." >&5
10944 echo "$as_me: error: cannot compute sizeof (long long)
10945 See \`config.log' for more details.
" >&2;}
10946 { (exit 77); exit 77; }; }
10948 ac_cv_sizeof_long_long=0
10952 cat >conftest.$ac_ext <<_ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 $ac_includes_default
10959 typedef long long ac__type_sizeof_;
10960 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10961 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10963 #include <stdlib.h>
10968 FILE *f = fopen ("conftest.val
", "w
");
10971 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10973 long int i = longval ();
10974 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10976 fprintf (f, "%ld
\n", i);
10980 unsigned long int i = ulongval ();
10981 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10983 fprintf (f, "%lu
\n", i);
10985 return ferror (f) || fclose (f) != 0;
10991 rm -f conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>&5
11000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11002 { (case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_try") 2>&5
11009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_sizeof_long_long=`cat conftest.val`
11013 echo "$as_me: program exited with status
$ac_status" >&5
11014 echo "$as_me: failed program was
:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ( exit $ac_status )
11018 if test "$ac_cv_type_long_long" = yes; then
11019 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11020 See \
`config.log' for more details." >&5
11021 echo "$as_me: error: cannot compute sizeof (long long)
11022 See \`config.log
' for more details." >&2;}
11023 { (exit 77); exit 77; }; }
11025 ac_cv_sizeof_long_long=0
11028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11032 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11033 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11037 cat >>confdefs.h <<_ACEOF
11038 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11044 { echo "$as_me:$LINENO: checking for long double support" >&5
11045 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11046 have_long_double=no
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11057 long double x; x = (long double)0;
11062 rm -f conftest.$ac_objext
11063 if { (ac_try="$ac_compile"
11064 case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_compile") 2>conftest.er1
11071 grep -v '^
*+' conftest.er1 >conftest.err
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && {
11076 test -z "$ac_c_werror_flag" ||
11077 test ! -s conftest.err
11078 } && test -s conftest.$ac_objext; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_LONG_DOUBLE 1
11085 have_long_double=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's
/^
/|
/' conftest.$ac_ext >&5
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11096 echo "${ECHO_T}$have_long_double" >&6; }
11097 if test "$have_long_double" = yes ; then
11098 { echo "$as_me:$LINENO: checking for long double" >&5
11099 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11100 if test "${ac_cv_type_long_double+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 $ac_includes_default
11110 typedef long double ac__type_new_;
11114 if ((ac__type_new_ *) 0)
11116 if (sizeof (ac__type_new_))
11122 rm -f conftest.$ac_objext
11123 if { (ac_try="$ac_compile"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_compile") 2>conftest.er1
11131 grep -v '^
*+' conftest.er1 >conftest.err
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } && {
11136 test -z "$ac_c_werror_flag" ||
11137 test ! -s conftest.err
11138 } && test -s conftest.$ac_objext; then
11139 ac_cv_type_long_double=yes
11141 echo "$as_me: failed program was:" >&5
11142 sed 's
/^
/|
/' conftest.$ac_ext >&5
11144 ac_cv_type_long_double=no
11147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11150 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11152 # The cast to long int works around a bug in the HP C Compiler
11153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11155 # This bug is HP SR number 8606223364.
11156 { echo "$as_me:$LINENO: checking size of long double" >&5
11157 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11158 if test "${ac_cv_sizeof_long_double+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 if test "$cross_compiling" = yes; then
11162 # Depending upon the size, compute the lo and hi bounds.
11163 cat >conftest.
$ac_ext <<_ACEOF
11166 cat confdefs.h
>>conftest.
$ac_ext
11167 cat >>conftest.
$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 typedef long double ac__type_sizeof_;
11174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11181 rm -f conftest.
$ac_objext
11182 if { (ac_try
="$ac_compile"
11183 case "(($ac_try" in
11184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_compile") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest.$ac_objext; then
11200 cat >conftest.$ac_ext <<_ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 $ac_includes_default
11207 typedef long double ac__type_sizeof_;
11211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11218 rm -f conftest.$ac_objext
11219 if { (ac_try="$ac_compile"
11220 case "(($ac_try" in
11221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11222 *) ac_try_echo
=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_compile") 2>conftest.er1
11227 grep -v '^ *+' conftest.er1
>conftest.err
11229 cat conftest.err
>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest.
$ac_objext; then
11235 ac_hi
=$ac_mid; break
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.
$ac_ext >&5
11240 ac_lo
=`expr $ac_mid + 1`
11241 if test $ac_lo -le $ac_mid; then
11245 ac_mid
=`expr 2 '*' $ac_mid + 1`
11248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.
$ac_ext >&5
11254 cat >conftest.
$ac_ext <<_ACEOF
11257 cat confdefs.h
>>conftest.
$ac_ext
11258 cat >>conftest.
$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 $ac_includes_default
11261 typedef long double ac__type_sizeof_;
11265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11272 rm -f conftest.
$ac_objext
11273 if { (ac_try
="$ac_compile"
11274 case "(($ac_try" in
11275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_compile") 2>conftest.er1
11281 grep -v '^ *+' conftest.er1 >conftest.err
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest.$ac_objext; then
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 $ac_includes_default
11298 typedef long double ac__type_sizeof_;
11302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11309 rm -f conftest.$ac_objext
11310 if { (ac_try="$ac_compile"
11311 case "(($ac_try" in
11312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11313 *) ac_try_echo
=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1
>conftest.err
11320 cat conftest.err
>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest.
$ac_objext; then
11326 ac_lo
=$ac_mid; break
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.
$ac_ext >&5
11331 ac_hi
=`expr '(' $ac_mid ')' - 1`
11332 if test $ac_mid -le $ac_hi; then
11336 ac_mid
=`expr 2 '*' $ac_mid`
11339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.
$ac_ext >&5
11348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11352 # Binary search between lo and hi bounds.
11353 while test "x$ac_lo" != "x$ac_hi"; do
11354 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11355 cat >conftest.
$ac_ext <<_ACEOF
11358 cat confdefs.h
>>conftest.
$ac_ext
11359 cat >>conftest.
$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 $ac_includes_default
11362 typedef long double ac__type_sizeof_;
11366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11373 rm -f conftest.
$ac_objext
11374 if { (ac_try
="$ac_compile"
11375 case "(($ac_try" in
11376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_compile") 2>conftest.er1
11382 grep -v '^ *+' conftest.er1 >conftest.err
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && {
11387 test -z "$ac_c_werror_flag" ||
11388 test ! -s conftest.err
11389 } && test -s conftest.$ac_objext; then
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 ac_lo=`expr '(' $ac_mid ')' + 1`
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11401 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11402 '') if test "$ac_cv_type_long_double" = yes; then
11403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11404 See \`config.log
' for more details." >&5
11405 echo "$as_me: error: cannot compute sizeof (long double)
11406 See \`config.log' for more details.
" >&2;}
11407 { (exit 77); exit 77; }; }
11409 ac_cv_sizeof_long_double=0
11413 cat >conftest.$ac_ext <<_ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 $ac_includes_default
11420 typedef long double ac__type_sizeof_;
11421 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11422 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11424 #include <stdlib.h>
11429 FILE *f = fopen ("conftest.val
", "w
");
11432 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11434 long int i = longval ();
11435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11437 fprintf (f, "%ld
\n", i);
11441 unsigned long int i = ulongval ();
11442 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11444 fprintf (f, "%lu
\n", i);
11446 return ferror (f) || fclose (f) != 0;
11452 rm -f conftest$ac_exeext
11453 if { (ac_try="$ac_link"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_link") 2>&5
11461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11463 { (case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_try") 2>&5
11470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_cv_sizeof_long_double=`cat conftest.val`
11474 echo "$as_me: program exited with status
$ac_status" >&5
11475 echo "$as_me: failed program was
:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ( exit $ac_status )
11479 if test "$ac_cv_type_long_double" = yes; then
11480 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
11481 See \
`config.log' for more details." >&5
11482 echo "$as_me: error: cannot compute sizeof (long double)
11483 See \`config.log
' for more details." >&2;}
11484 { (exit 77); exit 77; }; }
11486 ac_cv_sizeof_long_double=0
11489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11493 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11494 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11498 cat >>confdefs.h <<_ACEOF
11499 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11506 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11507 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11519 _Bool x; x = (_Bool)0;
11524 rm -f conftest.$ac_objext
11525 if { (ac_try="$ac_compile"
11526 case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_compile") 2>conftest.er1
11533 grep -v '^
*+' conftest.er1 >conftest.err
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest.$ac_objext; then
11543 cat >>confdefs.h <<\_ACEOF
11544 #define HAVE_C99_BOOL 1
11550 echo "$as_me: failed program was:" >&5
11551 sed 's
/^
/|
/' conftest.$ac_ext >&5
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11558 echo "${ECHO_T}$have_c99_bool" >&6; }
11559 if test "$have_c99_bool" = yes ; then
11560 { echo "$as_me:$LINENO: checking for _Bool" >&5
11561 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11562 if test "${ac_cv_type__Bool+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 $ac_includes_default
11572 typedef _Bool ac__type_new_;
11576 if ((ac__type_new_ *) 0)
11578 if (sizeof (ac__type_new_))
11584 rm -f conftest.$ac_objext
11585 if { (ac_try="$ac_compile"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_compile") 2>conftest.er1
11593 grep -v '^
*+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } && {
11598 test -z "$ac_c_werror_flag" ||
11599 test ! -s conftest.err
11600 } && test -s conftest.$ac_objext; then
11601 ac_cv_type__Bool=yes
11603 echo "$as_me: failed program was:" >&5
11604 sed 's
/^
/|
/' conftest.$ac_ext >&5
11606 ac_cv_type__Bool=no
11609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11611 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11612 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11614 # The cast to long int works around a bug in the HP C Compiler
11615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11617 # This bug is HP SR number 8606223364.
11618 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11619 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11620 if test "${ac_cv_sizeof__Bool+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 if test "$cross_compiling" = yes; then
11624 # Depending upon the size, compute the lo and hi bounds.
11625 cat >conftest.
$ac_ext <<_ACEOF
11628 cat confdefs.h
>>conftest.
$ac_ext
11629 cat >>conftest.
$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 $ac_includes_default
11632 typedef _Bool ac__type_sizeof_;
11636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11643 rm -f conftest.
$ac_objext
11644 if { (ac_try
="$ac_compile"
11645 case "(($ac_try" in
11646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_compile") 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && {
11657 test -z "$ac_c_werror_flag" ||
11658 test ! -s conftest.err
11659 } && test -s conftest.$ac_objext; then
11662 cat >conftest.$ac_ext <<_ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 $ac_includes_default
11669 typedef _Bool ac__type_sizeof_;
11673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11680 rm -f conftest.$ac_objext
11681 if { (ac_try="$ac_compile"
11682 case "(($ac_try" in
11683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11684 *) ac_try_echo
=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_compile") 2>conftest.er1
11689 grep -v '^ *+' conftest.er1
>conftest.err
11691 cat conftest.err
>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest.
$ac_objext; then
11697 ac_hi
=$ac_mid; break
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.
$ac_ext >&5
11702 ac_lo
=`expr $ac_mid + 1`
11703 if test $ac_lo -le $ac_mid; then
11707 ac_mid
=`expr 2 '*' $ac_mid + 1`
11710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.
$ac_ext >&5
11716 cat >conftest.
$ac_ext <<_ACEOF
11719 cat confdefs.h
>>conftest.
$ac_ext
11720 cat >>conftest.
$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 $ac_includes_default
11723 typedef _Bool ac__type_sizeof_;
11727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11734 rm -f conftest.
$ac_objext
11735 if { (ac_try
="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_compile") 2>conftest.er1
11743 grep -v '^ *+' conftest.er1 >conftest.err
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest.$ac_objext; then
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 $ac_includes_default
11760 typedef _Bool ac__type_sizeof_;
11764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11771 rm -f conftest.$ac_objext
11772 if { (ac_try="$ac_compile"
11773 case "(($ac_try" in
11774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11775 *) ac_try_echo
=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_compile") 2>conftest.er1
11780 grep -v '^ *+' conftest.er1
>conftest.err
11782 cat conftest.err
>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && {
11785 test -z "$ac_c_werror_flag" ||
11786 test ! -s conftest.err
11787 } && test -s conftest.
$ac_objext; then
11788 ac_lo
=$ac_mid; break
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.
$ac_ext >&5
11793 ac_hi
=`expr '(' $ac_mid ')' - 1`
11794 if test $ac_mid -le $ac_hi; then
11798 ac_mid
=`expr 2 '*' $ac_mid`
11801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.
$ac_ext >&5
11810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11814 # Binary search between lo and hi bounds.
11815 while test "x$ac_lo" != "x$ac_hi"; do
11816 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11817 cat >conftest.
$ac_ext <<_ACEOF
11820 cat confdefs.h
>>conftest.
$ac_ext
11821 cat >>conftest.
$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 $ac_includes_default
11824 typedef _Bool ac__type_sizeof_;
11828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11835 rm -f conftest.
$ac_objext
11836 if { (ac_try
="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest.$ac_objext; then
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_lo=`expr '(' $ac_mid ')' + 1`
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11864 '') if test "$ac_cv_type__Bool" = yes; then
11865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11866 See \`config.log
' for more details." >&5
11867 echo "$as_me: error: cannot compute sizeof (_Bool)
11868 See \`config.log' for more details.
" >&2;}
11869 { (exit 77); exit 77; }; }
11871 ac_cv_sizeof__Bool=0
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 $ac_includes_default
11882 typedef _Bool ac__type_sizeof_;
11883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11886 #include <stdlib.h>
11891 FILE *f = fopen ("conftest.val
", "w
");
11894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11896 long int i = longval ();
11897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11899 fprintf (f, "%ld
\n", i);
11903 unsigned long int i = ulongval ();
11904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11906 fprintf (f, "%lu
\n", i);
11908 return ferror (f) || fclose (f) != 0;
11914 rm -f conftest$ac_exeext
11915 if { (ac_try="$ac_link"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_link") 2>&5
11923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_sizeof__Bool=`cat conftest.val`
11936 echo "$as_me: program exited with status
$ac_status" >&5
11937 echo "$as_me: failed program was
:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ( exit $ac_status )
11941 if test "$ac_cv_type__Bool" = yes; then
11942 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11943 See \
`config.log' for more details." >&5
11944 echo "$as_me: error: cannot compute sizeof (_Bool)
11945 See \`config.log
' for more details." >&2;}
11946 { (exit 77); exit 77; }; }
11948 ac_cv_sizeof__Bool=0
11951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11956 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11960 cat >>confdefs.h <<_ACEOF
11961 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11967 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11968 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11969 if test "${ac_cv_type_uintptr_t+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 cat >conftest.$ac_ext <<_ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978 #ifdef HAVE_STDINT_H
11979 #include <stdint.h>
11982 typedef uintptr_t ac__type_new_;
11986 if ((ac__type_new_ *) 0)
11988 if (sizeof (ac__type_new_))
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12003 grep -v '^
*+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest.$ac_objext; then
12011 ac_cv_type_uintptr_t=yes
12013 echo "$as_me: failed program was:" >&5
12014 sed 's
/^
/|
/' conftest.$ac_ext >&5
12016 ac_cv_type_uintptr_t=no
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12022 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12023 if test $ac_cv_type_uintptr_t = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define HAVE_UINTPTR_T 1
12029 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12030 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12031 if test "${ac_cv_type_uintptr_t+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12041 typedef uintptr_t ac__type_new_;
12045 if ((ac__type_new_ *) 0)
12047 if (sizeof (ac__type_new_))
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12062 grep -v '^
*+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest.$ac_objext; then
12070 ac_cv_type_uintptr_t=yes
12072 echo "$as_me: failed program was:" >&5
12073 sed 's
/^
/|
/' conftest.$ac_ext >&5
12075 ac_cv_type_uintptr_t=no
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12081 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12083 # The cast to long int works around a bug in the HP C Compiler
12084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12086 # This bug is HP SR number 8606223364.
12087 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12088 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12089 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 if test "$cross_compiling" = yes; then
12093 # Depending upon the size, compute the lo and hi bounds.
12094 cat >conftest.
$ac_ext <<_ACEOF
12097 cat confdefs.h
>>conftest.
$ac_ext
12098 cat >>conftest.
$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12101 typedef uintptr_t ac__type_sizeof_;
12105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12112 rm -f conftest.
$ac_objext
12113 if { (ac_try
="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest.$ac_objext; then
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 $ac_includes_default
12138 typedef uintptr_t ac__type_sizeof_;
12142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12153 *) ac_try_echo
=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1
>conftest.err
12160 cat conftest.err
>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.
$ac_objext; then
12166 ac_hi
=$ac_mid; break
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.
$ac_ext >&5
12171 ac_lo
=`expr $ac_mid + 1`
12172 if test $ac_lo -le $ac_mid; then
12176 ac_mid
=`expr 2 '*' $ac_mid + 1`
12179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.
$ac_ext >&5
12185 cat >conftest.
$ac_ext <<_ACEOF
12188 cat confdefs.h
>>conftest.
$ac_ext
12189 cat >>conftest.
$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 $ac_includes_default
12192 typedef uintptr_t ac__type_sizeof_;
12196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12203 rm -f conftest.
$ac_objext
12204 if { (ac_try
="$ac_compile"
12205 case "(($ac_try" in
12206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_compile") 2>conftest.er1
12212 grep -v '^ *+' conftest.er1 >conftest.err
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest.$ac_objext; then
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 typedef uintptr_t ac__type_sizeof_;
12233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12244 *) ac_try_echo
=$ac_try;;
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12249 grep -v '^ *+' conftest.er1
>conftest.err
12251 cat conftest.err
>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.
$ac_objext; then
12257 ac_lo
=$ac_mid; break
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.
$ac_ext >&5
12262 ac_hi
=`expr '(' $ac_mid ')' - 1`
12263 if test $ac_mid -le $ac_hi; then
12267 ac_mid
=`expr 2 '*' $ac_mid`
12270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.
$ac_ext >&5
12279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12283 # Binary search between lo and hi bounds.
12284 while test "x$ac_lo" != "x$ac_hi"; do
12285 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12286 cat >conftest.
$ac_ext <<_ACEOF
12289 cat confdefs.h
>>conftest.
$ac_ext
12290 cat >>conftest.
$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 typedef uintptr_t ac__type_sizeof_;
12297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12304 rm -f conftest.
$ac_objext
12305 if { (ac_try
="$ac_compile"
12306 case "(($ac_try" in
12307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_compile") 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_lo=`expr '(' $ac_mid ')' + 1`
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12333 '') if test "$ac_cv_type_uintptr_t" = yes; then
12334 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12335 See \`config.log
' for more details." >&5
12336 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12337 See \`config.log' for more details.
" >&2;}
12338 { (exit 77); exit 77; }; }
12340 ac_cv_sizeof_uintptr_t=0
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12351 typedef uintptr_t ac__type_sizeof_;
12352 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12353 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12355 #include <stdlib.h>
12360 FILE *f = fopen ("conftest.val
", "w
");
12363 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12365 long int i = longval ();
12366 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12368 fprintf (f, "%ld
\n", i);
12372 unsigned long int i = ulongval ();
12373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12375 fprintf (f, "%lu
\n", i);
12377 return ferror (f) || fclose (f) != 0;
12383 rm -f conftest$ac_exeext
12384 if { (ac_try="$ac_link"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_link") 2>&5
12392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12405 echo "$as_me: program exited with status
$ac_status" >&5
12406 echo "$as_me: failed program was
:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ( exit $ac_status )
12410 if test "$ac_cv_type_uintptr_t" = yes; then
12411 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12412 See \
`config.log' for more details." >&5
12413 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12414 See \`config.log
' for more details." >&2;}
12415 { (exit 77); exit 77; }; }
12417 ac_cv_sizeof_uintptr_t=0
12420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12424 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12425 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12429 cat >>confdefs.h <<_ACEOF
12430 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12438 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12439 { echo "$as_me:$LINENO: checking size of off_t" >&5
12440 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12441 if test "${ac_cv_sizeof_off_t+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 if test "$cross_compiling" = yes; then
12445 ac_cv_sizeof_off_t
=4
12447 cat >conftest.
$ac_ext <<_ACEOF
12450 cat confdefs.h
>>conftest.
$ac_ext
12451 cat >>conftest.
$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12454 #include <sys/types.h>
12457 FILE *f=fopen("conftestval", "w");
12459 fprintf(f, "%d\n", sizeof(off_t));
12463 rm -f conftest
$ac_exeext
12464 if { (ac_try
="$ac_link"
12465 case "(($ac_try" in
12466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_link") 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12476 *) ac_try_echo
=$ac_try;;
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_sizeof_off_t
=`cat conftestval`
12485 echo "$as_me: program exited with status $ac_status" >&5
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.
$ac_ext >&5
12489 ( exit $ac_status )
12490 ac_cv_sizeof_off_t
=0
12492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12499 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12500 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12502 cat >>confdefs.h
<<_ACEOF
12503 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12507 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12508 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12509 if test "$have_long_long" = yes -a \
12510 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12511 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12513 cat >>confdefs.h
<<\_ACEOF
12514 #define HAVE_LARGEFILE_SUPPORT 1
12517 { echo "$as_me:$LINENO: result: yes" >&5
12518 echo "${ECHO_T}yes" >&6; }
12520 { echo "$as_me:$LINENO: result: no" >&5
12521 echo "${ECHO_T}no" >&6; }
12524 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12525 { echo "$as_me:$LINENO: checking size of time_t" >&5
12526 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12527 if test "${ac_cv_sizeof_time_t+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 if test "$cross_compiling" = yes; then
12531 ac_cv_sizeof_time_t
=4
12533 cat >conftest.
$ac_ext <<_ACEOF
12536 cat confdefs.h
>>conftest.
$ac_ext
12537 cat >>conftest.
$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12543 FILE *f=fopen("conftestval", "w");
12545 fprintf(f, "%d\n", sizeof(time_t));
12549 rm -f conftest
$ac_exeext
12550 if { (ac_try
="$ac_link"
12551 case "(($ac_try" in
12552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12562 *) ac_try_echo
=$ac_try;;
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_sizeof_time_t
=`cat conftestval`
12571 echo "$as_me: program exited with status $ac_status" >&5
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.
$ac_ext >&5
12575 ( exit $ac_status )
12576 ac_cv_sizeof_time_t
=0
12578 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12585 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12586 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12588 cat >>confdefs.h
<<_ACEOF
12589 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12594 # if have pthread_t then define SIZEOF_PTHREAD_T
12596 if test "$ac_cv_kpthread" = "yes"
12597 then CC
="$CC -Kpthread"
12598 elif test "$ac_cv_kthread" = "yes"
12599 then CC
="$CC -Kthread"
12600 elif test "$ac_cv_pthread" = "yes"
12601 then CC
="$CC -pthread"
12603 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12604 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12606 cat >conftest.
$ac_ext <<_ACEOF
12609 cat confdefs.h
>>conftest.
$ac_ext
12610 cat >>conftest.
$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <pthread.h>
12616 pthread_t x; x = *(pthread_t*)0;
12621 rm -f conftest.
$ac_objext
12622 if { (ac_try
="$ac_compile"
12623 case "(($ac_try" in
12624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_compile") 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest.$ac_objext; then
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12648 echo "${ECHO_T}$have_pthread_t" >&6; }
12649 if test "$have_pthread_t" = yes ; then
12650 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12651 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12652 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12653 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 if test "$cross_compiling" = yes; then
12657 ac_cv_sizeof_pthread_t=4
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12666 #include <pthread.h>
12669 FILE *f=fopen("conftestval", "w");
12671 fprintf(f, "%d\n", sizeof(pthread_t));
12675 rm -f conftest$ac_exeext
12676 if { (ac_try="$ac_link"
12677 case "(($ac_try" in
12678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12679 *) ac_try_echo
=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_sizeof_pthread_t=`cat conftestval
`
12697 echo "$as_me: program exited with status $ac_status" >&5
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 ( exit $ac_status )
12702 ac_cv_sizeof_pthread_t=0
12704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12711 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12712 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12714 cat >>confdefs.h <<_ACEOF
12715 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12721 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12722 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12723 # Check whether --enable-toolbox-glue was given.
12724 if test "${enable_toolbox_glue+set}" = set; then
12725 enableval=$enable_toolbox_glue;
12729 if test -z "$enable_toolbox_glue"
12731 case $ac_sys_system/$ac_sys_release in
12733 enable_toolbox_glue="yes";;
12735 enable_toolbox_glue="no";;
12738 case "$enable_toolbox_glue" in
12740 extra_machdep_objs="Python/mactoolboxglue.o"
12741 extra_undefs="-u _PyMac_Error"
12743 cat >>confdefs.h <<\_ACEOF
12744 #define USE_TOOLBOX_OBJECT_GLUE 1
12749 extra_machdep_objs=""
12753 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12754 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12757 case $ac_sys_system/$ac_sys_release in
12758 Darwin/[01567]\..*)
12759 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12762 OTHER_LIBTOOL_OPT=""
12767 case $ac_sys_system/$ac_sys_release in
12768 Darwin/[01567]\..*)
12769 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12770 if test "${enable_universalsdk}"; then
12773 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12775 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12776 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12778 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12779 if test ${gcc_version} '<' 4.0
12781 LIBTOOL_CRUFT="-lcc_dynamic"
12785 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12786 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12787 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12790 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12791 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12792 if test "$enable_framework"
12794 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12795 # -F. is needed to allow linking to the framework while
12796 # in the build location.
12798 cat >>confdefs.h <<\_ACEOF
12799 #define WITH_NEXT_FRAMEWORK 1
12802 { echo "$as_me:$LINENO: result: yes" >&5
12803 echo "${ECHO_T}yes" >&6; }
12805 { echo "$as_me:$LINENO: result: no" >&5
12806 echo "${ECHO_T}no" >&6; }
12809 { echo "$as_me:$LINENO: checking for dyld" >&5
12810 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12811 case $ac_sys_system/$ac_sys_release in
12814 cat >>confdefs.h <<\_ACEOF
12815 #define WITH_DYLD 1
12818 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12819 echo "${ECHO_T}always on for Darwin" >&6; }
12822 { echo "$as_me:$LINENO: result: no" >&5
12823 echo "${ECHO_T}no" >&6; }
12827 # Set info about shared libraries.
12833 # SO is the extension of shared libraries `(including the dot
!)
12834 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12835 { echo "$as_me:$LINENO: checking SO" >&5
12836 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12839 case $ac_sys_system in
12850 # this might also be a termcap variable, see #610332
12852 echo '====================================================================='
12854 echo '+ WARNING: You have set SO in your environment. +'
12855 echo '+ Do you really mean to change the extension for shared libraries? +'
12856 echo '+ Continuing in 10 seconds to let you to ponder. +'
12858 echo '====================================================================='
12861 { echo "$as_me:$LINENO: result: $SO" >&5
12862 echo "${ECHO_T}$SO" >&6; }
12864 cat >>confdefs.h
<<_ACEOF
12865 #define SHLIB_EXT "$SO"
12868 # LDSHARED is the ld *command* used to create shared library
12869 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12870 # (Shared libraries in this instance are shared modules to be loaded into
12871 # Python, as opposed to building Python itself as a shared library.)
12872 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12873 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12874 if test -z "$LDSHARED"
12876 case $ac_sys_system/$ac_sys_release in
12878 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12879 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12881 IRIX
/5*) LDSHARED
="ld -shared";;
12882 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12884 if test "$GCC" = "yes"
12885 then LDSHARED
='$(CC) -shared'
12886 else LDSHARED
='$(CC) -G';
12889 if test "$GCC" = "yes"
12890 then LDSHARED
='$(CC) -shared'
12891 else LDSHARED
='ld -b';
12893 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
12895 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12896 if test "$enable_framework" ; then
12897 # Link against the framework. All externals should be defined.
12898 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12899 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12901 # No framework. Ignore undefined symbols, assuming they come from Python
12902 LDSHARED
="$LDSHARED -undefined suppress"
12904 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12905 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12906 if test "$enable_framework" ; then
12907 # Link against the framework. All externals should be defined.
12908 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12909 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12911 # No framework, use the Python app as bundle-loader
12912 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12913 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12916 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12917 # This allows an extension to be used in any Python
12918 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12919 if test ${cur_target} '>' 10.2; then
12922 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12924 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12925 # environment with a value that is the same as what we'll use
12926 # in the Makefile to ensure that we'll get the same compiler
12927 # environment during configure and build time.
12928 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12929 export MACOSX_DEPLOYMENT_TARGET
12931 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12932 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12934 if test "${enable_universalsdk}"; then
12935 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12937 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12938 BLDSHARED
="$LDSHARED"
12940 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12941 if test "$enable_framework" ; then
12942 # Link against the framework. All externals should be defined.
12943 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12944 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12946 # No framework, use the Python app as bundle-loader
12947 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12948 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12952 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
12953 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12955 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12957 LDSHARED
="$CC -shared ${LDFLAGS}"
12959 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12962 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12964 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12967 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12968 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12971 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12975 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12976 OpenUNIX
*|UnixWare
*)
12977 if test "$GCC" = "yes"
12978 then LDSHARED
='$(CC) -shared'
12979 else LDSHARED
='$(CC) -G'
12981 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12982 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12983 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12984 atheos
*) LDSHARED
="gcc -shared";;
12988 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12989 echo "${ECHO_T}$LDSHARED" >&6; }
12990 BLDSHARED
=${BLDSHARED-$LDSHARED}
12991 # CCSHARED are the C *flags* used to create objects to go into a shared
12992 # library (module) -- this is only needed for a few systems
12993 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12994 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12995 if test -z "$CCSHARED"
12997 case $ac_sys_system/$ac_sys_release in
12998 SunOS
*) if test "$GCC" = yes;
12999 then CCSHARED
="-fPIC";
13000 elif test `uname -p` = sparc
;
13001 then CCSHARED
="-xcode=pic32";
13002 else CCSHARED
="-Kpic";
13004 hp
*|HP
*) if test "$GCC" = yes;
13005 then CCSHARED
="-fPIC";
13006 else CCSHARED
="+z";
13008 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13009 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13010 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13011 OpenUNIX
*|UnixWare
*)
13012 if test "$GCC" = "yes"
13013 then CCSHARED
="-fPIC"
13014 else CCSHARED
="-KPIC"
13017 if test "$GCC" = "yes"
13018 then CCSHARED
="-fPIC"
13019 else CCSHARED
="-Kpic -belf"
13021 Monterey
*) CCSHARED
="-G";;
13022 IRIX
*/6*) case $CC in
13023 *gcc
*) CCSHARED
="-shared";;
13026 atheos
*) CCSHARED
="-fPIC";;
13029 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13030 echo "${ECHO_T}$CCSHARED" >&6; }
13031 # LINKFORSHARED are the flags passed to the $(CC) command that links
13032 # the python executable -- this is only needed for a few systems
13033 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13034 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13035 if test -z "$LINKFORSHARED"
13037 case $ac_sys_system/$ac_sys_release in
13038 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13040 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13041 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13042 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13043 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13044 # -u libsys_s pulls in all symbols in libsys
13046 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13048 # not used by the core itself but which needs to be in the core so
13049 # that dynamically loaded extension modules have access to it.
13050 # -prebind is no longer used, because it actually seems to give a
13051 # slowdown in stead of a speedup, maybe due to the large number of
13052 # dynamic loads Python does.
13054 LINKFORSHARED
="$extra_undefs"
13055 if test "$enable_framework"
13057 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13059 LINKFORSHARED
="$LINKFORSHARED";;
13060 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13061 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13062 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13063 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13064 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13066 LINKFORSHARED
="-Wl,--export-dynamic"
13068 SunOS
/5*) case $CC in
13070 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13072 LINKFORSHARED
="-Xlinker --export-dynamic"
13076 if test $enable_shared = "no"
13078 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13082 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13083 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13086 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13087 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13088 if test ! "$LIBRARY" = "$LDLIBRARY"
13090 case $ac_sys_system in
13092 # Cygwin needs CCSHARED when building extension DLLs
13093 # but not when building the interpreter DLL.
13094 CFLAGSFORSHARED
='';;
13096 CFLAGSFORSHARED
='$(CCSHARED)'
13099 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13100 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13102 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13103 # library (with --enable-shared).
13104 # For platforms on which shared libraries are not allowed to have unresolved
13105 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13106 # if it is not required, since it creates a dependency of the shared library
13107 # to LIBS. This, in turn, means that applications linking the shared libpython
13108 # don't need to link LIBS explicitly. The default should be only changed
13109 # on systems where this approach causes problems.
13111 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13112 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13113 case "$ac_sys_system" in
13117 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13118 echo "${ECHO_T}$SHLIBS" >&6; }
13121 # checks for libraries
13123 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13124 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13125 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 ac_check_lib_save_LIBS
=$LIBS
13130 cat >conftest.
$ac_ext <<_ACEOF
13133 cat confdefs.h
>>conftest.
$ac_ext
13134 cat >>conftest.
$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13152 rm -f conftest.
$ac_objext conftest
$ac_exeext
13153 if { (ac_try
="$ac_link"
13154 case "(($ac_try" in
13155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>conftest.er1
13161 grep -v '^ *+' conftest.er1 >conftest.err
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest$ac_exeext &&
13169 $as_test_x conftest$ac_exeext; then
13170 ac_cv_lib_dl_dlopen=yes
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13175 ac_cv_lib_dl_dlopen=no
13178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13183 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13184 if test $ac_cv_lib_dl_dlopen = yes; then
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_LIBDL 1
13192 # Dynamic linking for SunOS/Solaris and SYSV
13194 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13195 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13196 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 ac_check_lib_save_LIBS=$LIBS
13201 cat >conftest.$ac_ext <<_ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13218 return shl_load ();
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13227 *) ac_try_echo
=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1
>conftest.err
13234 cat conftest.err
>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } && {
13237 test -z "$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest
$ac_exeext &&
13240 $as_test_x conftest
$ac_exeext; then
13241 ac_cv_lib_dld_shl_load
=yes
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.
$ac_ext >&5
13246 ac_cv_lib_dld_shl_load
=no
13249 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13250 conftest
$ac_exeext conftest.
$ac_ext
13251 LIBS
=$ac_check_lib_save_LIBS
13253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13254 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13255 if test $ac_cv_lib_dld_shl_load = yes; then
13256 cat >>confdefs.h
<<_ACEOF
13257 #define HAVE_LIBDLD 1
13263 # Dynamic linking for HP-UX
13265 # only check for sem_ini if thread support is requested
13266 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13267 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13268 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13269 if test "${ac_cv_search_sem_init+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 ac_func_search_save_LIBS
=$LIBS
13273 cat >conftest.
$ac_ext <<_ACEOF
13276 cat confdefs.h
>>conftest.
$ac_ext
13277 cat >>conftest.
$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13290 return sem_init ();
13295 for ac_lib
in '' pthread rt posix4
; do
13296 if test -z "$ac_lib"; then
13297 ac_res
="none required"
13300 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13302 rm -f conftest.
$ac_objext conftest
$ac_exeext
13303 if { (ac_try
="$ac_link"
13304 case "(($ac_try" in
13305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_link") 2>conftest.er1
13311 grep -v '^ *+' conftest.er1 >conftest.err
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && {
13316 test -z "$ac_c_werror_flag" ||
13317 test ! -s conftest.err
13318 } && test -s conftest$ac_exeext &&
13319 $as_test_x conftest$ac_exeext; then
13320 ac_cv_search_sem_init=$ac_res
13322 echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13330 if test "${ac_cv_search_sem_init+set}" = set; then
13334 if test "${ac_cv_search_sem_init+set}" = set; then
13337 ac_cv_search_sem_init=no
13339 rm conftest.$ac_ext
13340 LIBS=$ac_func_search_save_LIBS
13342 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13343 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13344 ac_res=$ac_cv_search_sem_init
13345 if test "$ac_res" != no; then
13346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13349 # 'Real Time' functions on Solaris
13350 # posix4 on Solaris 2.6
13351 # pthread (first!) on Linux
13354 # check if we need libintl for locale functions
13355 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13356 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13357 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 ac_check_lib_save_LIBS=$LIBS
13361 LIBS="-lintl $LIBS"
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13375 char textdomain ();
13379 return textdomain ();
13384 rm -f conftest.$ac_objext conftest$ac_exeext
13385 if { (ac_try="$ac_link"
13386 case "(($ac_try" in
13387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13388 *) ac_try_echo
=$ac_try;;
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_link") 2>conftest.er1
13393 grep -v '^ *+' conftest.er1
>conftest.err
13395 cat conftest.err
>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && {
13398 test -z "$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13400 } && test -s conftest
$ac_exeext &&
13401 $as_test_x conftest
$ac_exeext; then
13402 ac_cv_lib_intl_textdomain
=yes
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.
$ac_ext >&5
13407 ac_cv_lib_intl_textdomain
=no
13410 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13411 conftest
$ac_exeext conftest.
$ac_ext
13412 LIBS
=$ac_check_lib_save_LIBS
13414 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13415 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13416 if test $ac_cv_lib_intl_textdomain = yes; then
13418 cat >>confdefs.h
<<\_ACEOF
13419 #define WITH_LIBINTL 1
13425 # checks for system dependent C++ extensions support
13426 case "$ac_sys_system" in
13427 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13428 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13429 cat >conftest.
$ac_ext <<_ACEOF
13432 cat confdefs.h
>>conftest.
$ac_ext
13433 cat >>conftest.
$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 #include "/usr/lpp/xlC/include/load.h"
13439 loadAndInit("", 0, "")
13444 rm -f conftest.
$ac_objext conftest
$ac_exeext
13445 if { (ac_try
="$ac_link"
13446 case "(($ac_try" in
13447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_link") 2>conftest.er1
13453 grep -v '^ *+' conftest.er1 >conftest.err
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest$ac_exeext &&
13461 $as_test_x conftest$ac_exeext; then
13463 cat >>confdefs.h <<\_ACEOF
13464 #define AIX_GENUINE_CPLUSPLUS 1
13467 { echo "$as_me:$LINENO: result: yes" >&5
13468 echo "${ECHO_T}yes" >&6; }
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 { echo "$as_me:$LINENO: result: no" >&5
13474 echo "${ECHO_T}no" >&6; }
13477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13478 conftest$ac_exeext conftest.$ac_ext;;
13482 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13483 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13484 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 ac_check_lib_save_LIBS=$LIBS
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13516 *) ac_try_echo
=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_link") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1
>conftest.err
13523 cat conftest.err
>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_c_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest
$ac_exeext &&
13529 $as_test_x conftest
$ac_exeext; then
13530 ac_cv_lib_nsl_t_open
=yes
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.
$ac_ext >&5
13535 ac_cv_lib_nsl_t_open
=no
13538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13539 conftest
$ac_exeext conftest.
$ac_ext
13540 LIBS
=$ac_check_lib_save_LIBS
13542 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13543 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13544 if test $ac_cv_lib_nsl_t_open = yes; then
13548 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13549 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13550 if test "${ac_cv_lib_socket_socket+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 ac_check_lib_save_LIBS
=$LIBS
13554 LIBS
="-lsocket $LIBS $LIBS"
13555 cat >conftest.
$ac_ext <<_ACEOF
13558 cat confdefs.h
>>conftest.
$ac_ext
13559 cat >>conftest.
$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13562 /* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
13577 rm -f conftest.
$ac_objext conftest
$ac_exeext
13578 if { (ac_try
="$ac_link"
13579 case "(($ac_try" in
13580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_link") 2>conftest.er1
13586 grep -v '^ *+' conftest.er1 >conftest.err
13588 cat conftest.err >&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && {
13591 test -z "$ac_c_werror_flag" ||
13592 test ! -s conftest.err
13593 } && test -s conftest$ac_exeext &&
13594 $as_test_x conftest$ac_exeext; then
13595 ac_cv_lib_socket_socket=yes
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_cv_lib_socket_socket=no
13603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13604 conftest$ac_exeext conftest.$ac_ext
13605 LIBS=$ac_check_lib_save_LIBS
13607 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13608 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13609 if test $ac_cv_lib_socket_socket = yes; then
13610 LIBS="-lsocket $LIBS"
13614 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13615 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13617 # Check whether --with-libs was given.
13618 if test "${with_libs+set}" = set; then
13619 withval=$with_libs;
13620 { echo "$as_me:$LINENO: result: $withval" >&5
13621 echo "${ECHO_T}$withval" >&6; }
13622 LIBS="$withval $LIBS"
13625 { echo "$as_me:$LINENO: result: no" >&5
13626 echo "${ECHO_T}no" >&6; }
13630 # Check for use of the system libffi library
13631 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13632 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13634 # Check whether --with-system_ffi was given.
13635 if test "${with_system_ffi+set}" = set; then
13636 withval=$with_system_ffi;
13640 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13641 echo "${ECHO_T}$with_system_ffi" >&6; }
13643 # Determine if signalmodule should be used.
13646 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13647 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13649 # Check whether --with-signal-module was given.
13650 if test "${with_signal_module+set}" = set; then
13651 withval=$with_signal_module;
13655 if test -z "$with_signal_module"
13656 then with_signal_module="yes"
13658 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13659 echo "${ECHO_T}$with_signal_module" >&6; }
13661 if test "${with_signal_module}" = "yes"; then
13662 USE_SIGNAL_MODULE=""
13665 USE_SIGNAL_MODULE="#"
13666 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
13669 # This is used to generate Setup.config
13671 USE_THREAD_MODULE=""
13673 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13674 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13677 # Check whether --with-dec-threads was given.
13678 if test "${with_dec_threads+set}" = set; then
13679 withval=$with_dec_threads;
13680 { echo "$as_me:$LINENO: result: $withval" >&5
13681 echo "${ECHO_T}$withval" >&6; }
13683 if test "${with_thread+set}" != set; then
13684 with_thread="$withval";
13687 { echo "$as_me:$LINENO: result: no" >&5
13688 echo "${ECHO_T}no" >&6; }
13692 # Templates for things AC_DEFINEd more than once.
13693 # For a single AC_DEFINE, no template is needed.
13701 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13702 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13704 # Check whether --with-threads was given.
13705 if test "${with_threads+set}" = set; then
13706 withval=$with_threads;
13710 # --with-thread is deprecated, but check for it anyway
13712 # Check whether --with-thread was given.
13713 if test "${with_thread+set}" = set; then
13714 withval=$with_thread; with_threads=$with_thread
13718 if test -z "$with_threads"
13719 then with_threads="yes"
13721 { echo "$as_me:$LINENO: result: $with_threads" >&5
13722 echo "${ECHO_T}$with_threads" >&6; }
13725 if test "$with_threads" = "no"
13727 USE_THREAD_MODULE="#"
13728 elif test "$ac_cv_pthread_is_default" = yes
13730 cat >>confdefs.h <<\_ACEOF
13731 #define WITH_THREAD 1
13734 # Defining _REENTRANT on system with POSIX threads should not hurt.
13735 cat >>confdefs.h <<\_ACEOF
13736 #define _REENTRANT 1
13740 THREADOBJ="Python/thread.o"
13741 elif test "$ac_cv_kpthread" = "yes"
13744 if test "$ac_cv_cxx_thread" = "yes"; then
13745 CXX="$CXX -Kpthread"
13747 cat >>confdefs.h <<\_ACEOF
13748 #define WITH_THREAD 1
13752 THREADOBJ="Python/thread.o"
13753 elif test "$ac_cv_kthread" = "yes"
13756 if test "$ac_cv_cxx_thread" = "yes"; then
13757 CXX="$CXX -Kthread"
13759 cat >>confdefs.h <<\_ACEOF
13760 #define WITH_THREAD 1
13764 THREADOBJ="Python/thread.o"
13765 elif test "$ac_cv_pthread" = "yes"
13768 if test "$ac_cv_cxx_thread" = "yes"; then
13769 CXX="$CXX -pthread"
13771 cat >>confdefs.h <<\_ACEOF
13772 #define WITH_THREAD 1
13776 THREADOBJ="Python/thread.o"
13778 if test ! -z "$with_threads" -a -d "$with_threads"
13779 then LDFLAGS="$LDFLAGS -L$with_threads"
13781 if test ! -z "$withval" -a -d "$withval"
13782 then LDFLAGS="$LDFLAGS -L$withval"
13785 # According to the POSIX spec, a pthreads implementation must
13786 # define _POSIX_THREADS in unistd.h. Some apparently don't
13787 # (e.g. gnu pth with pthread emulation)
13788 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13789 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13797 #include <unistd.h>
13798 #ifdef _POSIX_THREADS
13803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13804 $EGREP "yes" >/dev/null 2>&1; then
13805 unistd_defines_pthreads=yes
13807 unistd_defines_pthreads=no
13811 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13812 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13814 cat >>confdefs.h <<\_ACEOF
13815 #define _REENTRANT 1
13818 if test "${ac_cv_header_cthreads_h+set}" = set; then
13819 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13820 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13821 if test "${ac_cv_header_cthreads_h+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13825 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13827 # Is the header compilable?
13828 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13829 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <cthreads.h>
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13843 *) ac_try_echo
=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1
>conftest.err
13850 cat conftest.err
>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.
$ac_objext; then
13856 ac_header_compiler
=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.
$ac_ext >&5
13861 ac_header_compiler
=no
13864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13866 echo "${ECHO_T}$ac_header_compiler" >&6; }
13868 # Is the header present?
13869 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13870 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13871 cat >conftest.
$ac_ext <<_ACEOF
13874 cat confdefs.h
>>conftest.
$ac_ext
13875 cat >>conftest.
$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include <cthreads.h>
13879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13880 case "(($ac_try" in
13881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } >/dev/null && {
13892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13895 ac_header_preproc=yes
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_header_preproc=no
13903 rm -f conftest.err conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6; }
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13910 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13913 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13914 ac_header_preproc=yes
13917 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13930 ## ------------------------------------------------ ##
13931 ## Report this to http://www.python.org/python-bugs ##
13932 ## ------------------------------------------------ ##
13934 ) | sed "s/^/$as_me: WARNING: /" >&2
13937 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13938 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13939 if test "${ac_cv_header_cthreads_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 ac_cv_header_cthreads_h=$ac_header_preproc
13944 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13945 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13948 if test $ac_cv_header_cthreads_h = yes; then
13949 cat >>confdefs.h <<\_ACEOF
13950 #define WITH_THREAD 1
13953 cat >>confdefs.h <<\_ACEOF
13954 #define C_THREADS 1
13958 cat >>confdefs.h <<\_ACEOF
13959 #define HURD_C_THREADS 1
13962 LIBS="$LIBS -lthreads"
13963 THREADOBJ="Python/thread.o"
13966 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13967 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13968 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13969 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13973 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13975 # Is the header compilable?
13976 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13977 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 $ac_includes_default
13985 #include <mach/cthreads.h>
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13991 *) ac_try_echo
=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_compile") 2>conftest.er1
13996 grep -v '^ *+' conftest.er1
>conftest.err
13998 cat conftest.err
>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && {
14001 test -z "$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 } && test -s conftest.
$ac_objext; then
14004 ac_header_compiler
=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.
$ac_ext >&5
14009 ac_header_compiler
=no
14012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 echo "${ECHO_T}$ac_header_compiler" >&6; }
14016 # Is the header present?
14017 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14018 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14019 cat >conftest.
$ac_ext <<_ACEOF
14022 cat confdefs.h
>>conftest.
$ac_ext
14023 cat >>conftest.
$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <mach/cthreads.h>
14027 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14028 case "(($ac_try" in
14029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14035 grep -v '^ *+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } >/dev/null && {
14040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14043 ac_header_preproc=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_header_preproc=no
14051 rm -f conftest.err conftest.$ac_ext
14052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14053 echo "${ECHO_T}$ac_header_preproc" >&6; }
14055 # So? What about this header?
14056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14058 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14059 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14061 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14062 ac_header_preproc=yes
14065 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14066 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14068 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14070 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14072 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14074 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14076 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14078 ## ------------------------------------------------ ##
14079 ## Report this to http://www.python.org/python-bugs ##
14080 ## ------------------------------------------------ ##
14082 ) | sed "s/^/$as_me: WARNING: /" >&2
14085 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14086 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14092 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14093 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14096 if test $ac_cv_header_mach_cthreads_h = yes; then
14097 cat >>confdefs.h <<\_ACEOF
14098 #define WITH_THREAD 1
14101 cat >>confdefs.h <<\_ACEOF
14102 #define C_THREADS 1
14106 cat >>confdefs.h <<\_ACEOF
14107 #define MACH_C_THREADS 1
14110 THREADOBJ="Python/thread.o"
14113 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14114 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14116 # Check whether --with-pth was given.
14117 if test "${with_pth+set}" = set; then
14118 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14119 echo "${ECHO_T}$withval" >&6; }
14120 cat >>confdefs.h <<\_ACEOF
14121 #define WITH_THREAD 1
14125 cat >>confdefs.h <<\_ACEOF
14130 THREADOBJ="Python/thread.o"
14132 { echo "$as_me:$LINENO: result: no" >&5
14133 echo "${ECHO_T}no" >&6; }
14135 # Just looking for pthread_create in libpthread is not enough:
14136 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14137 # So we really have to include pthread.h, and then link.
14139 LIBS="$LIBS -lpthread"
14140 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14141 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #include <pthread.h>
14150 void * start_routine (void *arg) { exit (0); }
14155 pthread_create (NULL, NULL, start_routine, NULL)
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (ac_try="$ac_link"
14162 case "(($ac_try" in
14163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14164 *) ac_try_echo
=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_link") 2>conftest.er1
14169 grep -v '^ *+' conftest.er1
>conftest.err
14171 cat conftest.err
>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && {
14174 test -z "$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 } && test -s conftest
$ac_exeext &&
14177 $as_test_x conftest
$ac_exeext; then
14179 { echo "$as_me:$LINENO: result: yes" >&5
14180 echo "${ECHO_T}yes" >&6; }
14181 cat >>confdefs.h
<<\_ACEOF
14182 #define WITH_THREAD 1
14186 THREADOBJ
="Python/thread.o"
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.
$ac_ext >&5
14193 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14194 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14195 if test "${ac_cv_func_pthread_detach+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 cat >conftest.
$ac_ext <<_ACEOF
14201 cat confdefs.h
>>conftest.
$ac_ext
14202 cat >>conftest.
$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14206 #define pthread_detach innocuous_pthread_detach
14208 /* System header to define __stub macros and hopefully few prototypes,
14209 which can conflict with char pthread_detach (); below.
14210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14211 <limits.h> exists even on freestanding compilers. */
14214 # include <limits.h>
14216 # include <assert.h>
14219 #undef pthread_detach
14221 /* Override any GCC internal prototype to avoid an error.
14222 Use char because int might match the return type of a GCC
14223 builtin and then its argument prototype would still apply. */
14227 char pthread_detach ();
14228 /* The GNU C library defines this for functions which it implements
14229 to always fail with ENOSYS. Some functions are actually named
14230 something starting with __ and the normal name is an alias. */
14231 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14238 return pthread_detach ();
14243 rm -f conftest.
$ac_objext conftest
$ac_exeext
14244 if { (ac_try
="$ac_link"
14245 case "(($ac_try" in
14246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_link") 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest$ac_exeext &&
14260 $as_test_x conftest$ac_exeext; then
14261 ac_cv_func_pthread_detach=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_cv_func_pthread_detach=no
14269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14270 conftest$ac_exeext conftest.$ac_ext
14272 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14273 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14274 if test $ac_cv_func_pthread_detach = yes; then
14275 cat >>confdefs.h <<\_ACEOF
14276 #define WITH_THREAD 1
14280 THREADOBJ="Python/thread.o"
14283 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14284 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14285 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14286 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14290 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14292 # Is the header compilable?
14293 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14294 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 $ac_includes_default
14302 #include <atheos/threads.h>
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14308 *) ac_try_echo
=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14313 grep -v '^ *+' conftest.er1
>conftest.err
14315 cat conftest.err
>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } && {
14318 test -z "$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 } && test -s conftest.
$ac_objext; then
14321 ac_header_compiler
=yes
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.
$ac_ext >&5
14326 ac_header_compiler
=no
14329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14331 echo "${ECHO_T}$ac_header_compiler" >&6; }
14333 # Is the header present?
14334 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14335 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14336 cat >conftest.
$ac_ext <<_ACEOF
14339 cat confdefs.h
>>conftest.
$ac_ext
14340 cat >>conftest.
$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 #include <atheos/threads.h>
14344 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14345 case "(($ac_try" in
14346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } >/dev/null && {
14357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14360 ac_header_preproc=yes
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_header_preproc=no
14368 rm -f conftest.err conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14370 echo "${ECHO_T}$ac_header_preproc" >&6; }
14372 # So? What about this header?
14373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14375 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14376 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14378 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14379 ac_header_preproc=yes
14382 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14383 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14385 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14387 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14389 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14391 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14392 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14393 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14395 ## ------------------------------------------------ ##
14396 ## Report this to http://www.python.org/python-bugs ##
14397 ## ------------------------------------------------ ##
14399 ) | sed "s/^/$as_me: WARNING: /" >&2
14402 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14403 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14404 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 ac_cv_header_atheos_threads_h=$ac_header_preproc
14409 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14410 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14413 if test $ac_cv_header_atheos_threads_h = yes; then
14414 cat >>confdefs.h <<\_ACEOF
14415 #define WITH_THREAD 1
14419 cat >>confdefs.h <<\_ACEOF
14420 #define ATHEOS_THREADS 1
14423 THREADOBJ="Python/thread.o"
14426 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14427 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14428 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 ac_check_lib_save_LIBS=$LIBS
14432 LIBS="-lpthreads $LIBS"
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
14446 char pthread_create ();
14450 return pthread_create ();
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (ac_try="$ac_link"
14457 case "(($ac_try" in
14458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14459 *) ac_try_echo
=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14464 grep -v '^ *+' conftest.er1
>conftest.err
14466 cat conftest.err
>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest
$ac_exeext &&
14472 $as_test_x conftest
$ac_exeext; then
14473 ac_cv_lib_pthreads_pthread_create
=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14478 ac_cv_lib_pthreads_pthread_create
=no
14481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14482 conftest
$ac_exeext conftest.
$ac_ext
14483 LIBS
=$ac_check_lib_save_LIBS
14485 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14486 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14487 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14488 cat >>confdefs.h
<<\_ACEOF
14489 #define WITH_THREAD 1
14493 LIBS
="$LIBS -lpthreads"
14494 THREADOBJ
="Python/thread.o"
14497 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14498 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14499 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 ac_check_lib_save_LIBS
=$LIBS
14504 cat >conftest.
$ac_ext <<_ACEOF
14507 cat confdefs.h
>>conftest.
$ac_ext
14508 cat >>conftest.
$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14517 char pthread_create ();
14521 return pthread_create ();
14526 rm -f conftest.
$ac_objext conftest
$ac_exeext
14527 if { (ac_try
="$ac_link"
14528 case "(($ac_try" in
14529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_link") 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } && {
14540 test -z "$ac_c_werror_flag" ||
14541 test ! -s conftest.err
14542 } && test -s conftest$ac_exeext &&
14543 $as_test_x conftest$ac_exeext; then
14544 ac_cv_lib_c_r_pthread_create=yes
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 ac_cv_lib_c_r_pthread_create=no
14552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14553 conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14556 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14557 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14558 if test $ac_cv_lib_c_r_pthread_create = yes; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define WITH_THREAD 1
14565 THREADOBJ="Python/thread.o"
14568 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14569 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14570 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-lpthread $LIBS"
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14588 char __pthread_create_system ();
14592 return __pthread_create_system ();
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14601 *) ac_try_echo
=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_link") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1
>conftest.err
14608 cat conftest.err
>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest
$ac_exeext &&
14614 $as_test_x conftest
$ac_exeext; then
14615 ac_cv_lib_pthread___pthread_create_system
=yes
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.
$ac_ext >&5
14620 ac_cv_lib_pthread___pthread_create_system
=no
14623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14624 conftest
$ac_exeext conftest.
$ac_ext
14625 LIBS
=$ac_check_lib_save_LIBS
14627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14628 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14629 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14630 cat >>confdefs.h
<<\_ACEOF
14631 #define WITH_THREAD 1
14635 LIBS
="$LIBS -lpthread"
14636 THREADOBJ
="Python/thread.o"
14639 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14640 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14641 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 ac_check_lib_save_LIBS
=$LIBS
14646 cat >conftest.
$ac_ext <<_ACEOF
14649 cat confdefs.h
>>conftest.
$ac_ext
14650 cat >>conftest.
$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14659 char pthread_create ();
14663 return pthread_create ();
14668 rm -f conftest.
$ac_objext conftest
$ac_exeext
14669 if { (ac_try
="$ac_link"
14670 case "(($ac_try" in
14671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_link") 2>conftest.er1
14677 grep -v '^ *+' conftest.er1 >conftest.err
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } && {
14682 test -z "$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 } && test -s conftest$ac_exeext &&
14685 $as_test_x conftest$ac_exeext; then
14686 ac_cv_lib_cma_pthread_create=yes
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_cv_lib_cma_pthread_create=no
14694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14695 conftest$ac_exeext conftest.$ac_ext
14696 LIBS=$ac_check_lib_save_LIBS
14698 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14699 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14700 if test $ac_cv_lib_cma_pthread_create = yes; then
14701 cat >>confdefs.h <<\_ACEOF
14702 #define WITH_THREAD 1
14707 THREADOBJ="Python/thread.o"
14710 USE_THREAD_MODULE="#"
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14738 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14739 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14740 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 ac_check_lib_save_LIBS=$LIBS
14745 cat >conftest.$ac_ext <<_ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14762 return usconfig ();
14767 rm -f conftest.$ac_objext conftest$ac_exeext
14768 if { (ac_try="$ac_link"
14769 case "(($ac_try" in
14770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14771 *) ac_try_echo
=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_link") 2>conftest.er1
14776 grep -v '^ *+' conftest.er1
>conftest.err
14778 cat conftest.err
>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest
$ac_exeext &&
14784 $as_test_x conftest
$ac_exeext; then
14785 ac_cv_lib_mpc_usconfig
=yes
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.
$ac_ext >&5
14790 ac_cv_lib_mpc_usconfig
=no
14793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14794 conftest
$ac_exeext conftest.
$ac_ext
14795 LIBS
=$ac_check_lib_save_LIBS
14797 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14798 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14799 if test $ac_cv_lib_mpc_usconfig = yes; then
14800 cat >>confdefs.h
<<\_ACEOF
14801 #define WITH_THREAD 1
14805 THREADOBJ
="Python/thread.o"
14806 USE_THREAD_MODULE
=""
14810 if test "$posix_threads" != "yes"; then
14811 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14812 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14813 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 ac_check_lib_save_LIBS
=$LIBS
14817 LIBS
="-lthread $LIBS"
14818 cat >conftest.
$ac_ext <<_ACEOF
14821 cat confdefs.h
>>conftest.
$ac_ext
14822 cat >>conftest.
$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14831 char thr_create ();
14835 return thr_create ();
14840 rm -f conftest.
$ac_objext conftest
$ac_exeext
14841 if { (ac_try
="$ac_link"
14842 case "(($ac_try" in
14843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_link") 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest$ac_exeext &&
14857 $as_test_x conftest$ac_exeext; then
14858 ac_cv_lib_thread_thr_create=yes
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_cv_lib_thread_thr_create=no
14866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14867 conftest$ac_exeext conftest.$ac_ext
14868 LIBS=$ac_check_lib_save_LIBS
14870 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14871 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14872 if test $ac_cv_lib_thread_thr_create = yes; then
14873 cat >>confdefs.h <<\_ACEOF
14874 #define WITH_THREAD 1
14877 LIBS="$LIBS -lthread"
14878 THREADOBJ="Python/thread.o"
14879 USE_THREAD_MODULE=""
14884 if test "$USE_THREAD_MODULE" != "#"
14886 # If the above checks didn't disable threads, (at least) OSF1
14887 # needs this '-threads' argument during linking.
14888 case $ac_sys_system in
14889 OSF1) LDLAST=-threads;;
14894 if test "$posix_threads" = "yes"; then
14895 if test "$unistd_defines_pthreads" = "no"; then
14897 cat >>confdefs.h <<\_ACEOF
14898 #define _POSIX_THREADS 1
14903 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14904 case $ac_sys_system/$ac_sys_release in
14906 cat >>confdefs.h <<\_ACEOF
14907 #define HAVE_PTHREAD_DESTRUCTOR 1
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14925 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14926 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14927 if test "${ac_cv_pthread_system_supported+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 if test "$cross_compiling" = yes; then
14931 ac_cv_pthread_system_supported=no
14933 cat >conftest.$ac_ext <<_ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 #include <pthread.h>
14940 void *foo(void *parm) {
14944 pthread_attr_t attr;
14946 if (pthread_attr_init(&attr)) exit(-1);
14947 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14948 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14952 rm -f conftest$ac_exeext
14953 if { (ac_try="$ac_link"
14954 case "(($ac_try" in
14955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14956 *) ac_try_echo
=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14963 { (case "(($ac_try" in
14964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_cv_pthread_system_supported=yes
14974 echo "$as_me: program exited with status $ac_status" >&5
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ( exit $ac_status )
14979 ac_cv_pthread_system_supported=no
14981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14988 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14989 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14990 if test "$ac_cv_pthread_system_supported" = "yes"; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14998 for ac_func in pthread_sigmask
15000 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15014 #define $ac_func innocuous_$ac_func
15016 /* System header to define __stub macros and hopefully few prototypes,
15017 which can conflict with char $ac_func (); below.
15018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15019 <limits.h> exists even on freestanding compilers. */
15022 # include <limits.h>
15024 # include <assert.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. */
15036 /* The GNU C library defines this for functions which it implements
15037 to always fail with ENOSYS. Some functions are actually named
15038 something starting with __ and the normal name is an alias. */
15039 #if defined __stub_$ac_func || defined __stub___$ac_func
15046 return $ac_func ();
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15055 *) ac_try_echo
=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1
>conftest.err
15062 cat conftest.err
>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest
$ac_exeext &&
15068 $as_test_x conftest
$ac_exeext; then
15069 eval "$as_ac_var=yes"
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.
$ac_ext >&5
15074 eval "$as_ac_var=no"
15077 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15078 conftest
$ac_exeext conftest.
$ac_ext
15080 ac_res
=`eval echo '${'$as_ac_var'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083 if test `eval echo '${'$as_ac_var'}'` = yes; then
15084 cat >>confdefs.h
<<_ACEOF
15085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15087 case $ac_sys_system in
15090 cat >>confdefs.h
<<\_ACEOF
15091 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15102 # Check for enable-ipv6
15105 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15106 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15107 # Check whether --enable-ipv6 was given.
15108 if test "${enable_ipv6+set}" = set; then
15109 enableval
=$enable_ipv6; case "$enableval" in
15111 { echo "$as_me:$LINENO: result: no" >&5
15112 echo "${ECHO_T}no" >&6; }
15115 *) { echo "$as_me:$LINENO: result: yes" >&5
15116 echo "${ECHO_T}yes" >&6; }
15117 cat >>confdefs.h
<<\_ACEOF
15118 #define ENABLE_IPV6 1
15126 if test "$cross_compiling" = yes; then
15127 { echo "$as_me:$LINENO: result: no" >&5
15128 echo "${ECHO_T}no" >&6; }
15132 cat >conftest.
$ac_ext <<_ACEOF
15135 cat confdefs.h
>>conftest.
$ac_ext
15136 cat >>conftest.
$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 /* AF_INET6 available check */
15139 #include <sys/types.h>
15140 #include <sys/socket.h>
15143 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15150 rm -f conftest
$ac_exeext
15151 if { (ac_try
="$ac_link"
15152 case "(($ac_try" in
15153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15161 { (case "(($ac_try" in
15162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15163 *) ac_try_echo
=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_try") 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 { echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6; }
15174 echo "$as_me: program exited with status $ac_status" >&5
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.
$ac_ext >&5
15178 ( exit $ac_status )
15179 { echo "$as_me:$LINENO: result: no" >&5
15180 echo "${ECHO_T}no" >&6; }
15183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15188 if test "$ipv6" = "yes"; then
15189 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15190 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15191 cat >conftest.
$ac_ext <<_ACEOF
15194 cat confdefs.h
>>conftest.
$ac_ext
15195 cat >>conftest.
$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 #include <sys/types.h>
15198 #include <netinet/in.h>
15202 struct sockaddr_in6 x;
15208 rm -f conftest.
$ac_objext
15209 if { (ac_try
="$ac_compile"
15210 case "(($ac_try" in
15211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_compile") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest.$ac_objext; then
15225 { echo "$as_me:$LINENO: result: yes" >&5
15226 echo "${ECHO_T}yes" >&6; }
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 { echo "$as_me:$LINENO: result: no" >&5
15233 echo "${ECHO_T}no" >&6; }
15237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 if test "$ipv6" = "yes"; then
15241 cat >>confdefs.h <<\_ACEOF
15242 #define ENABLE_IPV6 1
15254 if test "$ipv6" = "yes"; then
15255 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15256 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15257 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15261 cat >conftest.$ac_ext <<_ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15268 #include <netinet/in.h>
15269 #ifdef IPV6_INRIA_VERSION
15273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15274 $EGREP "yes" >/dev/null 2>&1; then
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15288 #include <netinet/in.h>
15293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15294 $EGREP "yes" >/dev/null 2>&1; then
15297 ipv6libdir=/usr/local/v6/lib
15304 cat >conftest.$ac_ext <<_ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15311 #include <features.h>
15312 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15317 $EGREP "yes" >/dev/null 2>&1; then
15325 if test -d /usr/inet6; then
15328 ipv6libdir=/usr/inet6/lib
15329 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15333 if test -f /etc/netconfig; then
15334 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 #include <sys/param.h>
15349 #ifdef _TOSHIBA_INET6
15353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15354 $EGREP "yes" >/dev/null 2>&1; then
15357 ipv6libdir=/usr/local/v6/lib
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15370 #include </usr/local/v6/include/sys/v6config.h>
15375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15376 $EGREP "yes" >/dev/null 2>&1; then
15379 ipv6libdir=/usr/local/v6/lib;
15380 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 #include <sys/param.h>
15394 #ifdef _ZETA_MINAMI_INET6
15398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15399 $EGREP "yes" >/dev/null 2>&1; then
15402 ipv6libdir=/usr/local/v6/lib
15408 if test "$ipv6type" != "unknown"; then
15412 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15413 echo "${ECHO_T}$ipv6type" >&6; }
15416 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15417 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15418 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15419 echo "using lib$ipv6lib"
15421 if test $ipv6trylibc = "yes"; then
15424 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15425 echo "You need to fetch lib$ipv6lib.a from appropriate"
15426 echo 'ipv6 kit and compile beforehand.'
15432 # Check for --with-doc-strings
15433 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15434 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15436 # Check whether --with-doc-strings was given.
15437 if test "${with_doc_strings+set}" = set; then
15438 withval=$with_doc_strings;
15442 if test -z "$with_doc_strings"
15443 then with_doc_strings="yes"
15445 if test "$with_doc_strings" != "no"
15448 cat >>confdefs.h <<\_ACEOF
15449 #define WITH_DOC_STRINGS 1
15453 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15454 echo "${ECHO_T}$with_doc_strings" >&6; }
15456 # Check for Python-specific malloc support
15457 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15458 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15460 # Check whether --with-tsc was given.
15461 if test "${with_tsc+set}" = set; then
15463 if test "$withval" != no
15466 cat >>confdefs.h <<\_ACEOF
15470 { echo "$as_me:$LINENO: result: yes" >&5
15471 echo "${ECHO_T}yes" >&6; }
15472 else { echo "$as_me:$LINENO: result: no" >&5
15473 echo "${ECHO_T}no" >&6; }
15476 { echo "$as_me:$LINENO: result: no" >&5
15477 echo "${ECHO_T}no" >&6; }
15481 # Check for Python-specific malloc support
15482 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15483 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15485 # Check whether --with-pymalloc was given.
15486 if test "${with_pymalloc+set}" = set; then
15487 withval=$with_pymalloc;
15491 if test -z "$with_pymalloc"
15492 then with_pymalloc="yes"
15494 if test "$with_pymalloc" != "no"
15497 cat >>confdefs.h <<\_ACEOF
15498 #define WITH_PYMALLOC 1
15502 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15503 echo "${ECHO_T}$with_pymalloc" >&6; }
15505 # Check for --with-wctype-functions
15506 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15507 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15509 # Check whether --with-wctype-functions was given.
15510 if test "${with_wctype_functions+set}" = set; then
15511 withval=$with_wctype_functions;
15512 if test "$withval" != no
15515 cat >>confdefs.h <<\_ACEOF
15516 #define WANT_WCTYPE_FUNCTIONS 1
15519 { echo "$as_me:$LINENO: result: yes" >&5
15520 echo "${ECHO_T}yes" >&6; }
15521 else { echo "$as_me:$LINENO: result: no" >&5
15522 echo "${ECHO_T}no" >&6; }
15525 { echo "$as_me:$LINENO: result: no" >&5
15526 echo "${ECHO_T}no" >&6; }
15530 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15534 # the dlopen() function means we might want to use dynload_shlib.o. some
15535 # platforms, such as AIX, have dlopen(), but don't want to use it.
15537 for ac_func in dlopen
15539 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15553 #define $ac_func innocuous_$ac_func
15555 /* System header to define __stub macros and hopefully few prototypes,
15556 which can conflict with char $ac_func (); below.
15557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558 <limits.h> exists even on freestanding compilers. */
15561 # include <limits.h>
15563 # include <assert.h>
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15575 /* The GNU C library defines this for functions which it implements
15576 to always fail with ENOSYS. Some functions are actually named
15577 something starting with __ and the normal name is an alias. */
15578 #if defined __stub_$ac_func || defined __stub___$ac_func
15585 return $ac_func ();
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (ac_try="$ac_link"
15592 case "(($ac_try" in
15593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15594 *) ac_try_echo
=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_link") 2>conftest.er1
15599 grep -v '^ *+' conftest.er1
>conftest.err
15601 cat conftest.err
>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && {
15604 test -z "$ac_c_werror_flag" ||
15605 test ! -s conftest.err
15606 } && test -s conftest
$ac_exeext &&
15607 $as_test_x conftest
$ac_exeext; then
15608 eval "$as_ac_var=yes"
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.
$ac_ext >&5
15613 eval "$as_ac_var=no"
15616 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15617 conftest
$ac_exeext conftest.
$ac_ext
15619 ac_res
=`eval echo '${'$as_ac_var'}'`
15620 { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623 cat >>confdefs.h
<<_ACEOF
15624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15631 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15632 # loading of modules.
15634 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15635 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15636 if test -z "$DYNLOADFILE"
15638 case $ac_sys_system/$ac_sys_release in
15639 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15640 if test "$ac_cv_func_dlopen" = yes
15641 then DYNLOADFILE
="dynload_shlib.o"
15642 else DYNLOADFILE
="dynload_aix.o"
15645 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
15646 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15647 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
15648 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
15650 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15651 # out any dynamic loading
15652 if test "$ac_cv_func_dlopen" = yes
15653 then DYNLOADFILE
="dynload_shlib.o"
15654 else DYNLOADFILE
="dynload_stub.o"
15659 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15660 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15661 if test "$DYNLOADFILE" != "dynload_stub.o"
15664 cat >>confdefs.h
<<\_ACEOF
15665 #define HAVE_DYNAMIC_LOADING 1
15670 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15673 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15674 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15675 if test -z "$MACHDEP_OBJS"
15677 MACHDEP_OBJS
=$extra_machdep_objs
15679 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
15681 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15682 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15684 # checks for library functions
15768 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
15769 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15770 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15771 getpriority getpwent getspnam getspent getsid getwd \
15772 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
15773 mremap nice pathconf pause plock poll pthread_init \
15774 putenv readlink realpath \
15775 select setegid seteuid setgid \
15776 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15777 sigaction siginterrupt sigrelse strftime strlcpy \
15778 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
15779 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty
15781 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15784 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 cat >conftest.
$ac_ext <<_ACEOF
15790 cat confdefs.h
>>conftest.
$ac_ext
15791 cat >>conftest.
$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15795 #define $ac_func innocuous_$ac_func
15797 /* System header to define __stub macros and hopefully few prototypes,
15798 which can conflict with char $ac_func (); below.
15799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15800 <limits.h> exists even on freestanding compilers. */
15803 # include <limits.h>
15805 # include <assert.h>
15810 /* Override any GCC internal prototype to avoid an error.
15811 Use char because int might match the return type of a GCC
15812 builtin and then its argument prototype would still apply. */
15817 /* The GNU C library defines this for functions which it implements
15818 to always fail with ENOSYS. Some functions are actually named
15819 something starting with __ and the normal name is an alias. */
15820 #if defined __stub_$ac_func || defined __stub___$ac_func
15827 return $ac_func ();
15832 rm -f conftest.
$ac_objext conftest
$ac_exeext
15833 if { (ac_try
="$ac_link"
15834 case "(($ac_try" in
15835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_link") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1 >conftest.err
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest$ac_exeext &&
15849 $as_test_x conftest$ac_exeext; then
15850 eval "$as_ac_var=yes"
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 eval "$as_ac_var=no"
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859 conftest$ac_exeext conftest.$ac_ext
15861 ac_res=`eval echo '${'$as_ac_var'}'`
15862 { echo "$as_me:$LINENO: result: $ac_res" >&5
15863 echo "${ECHO_T}$ac_res" >&6; }
15864 if test `eval echo '${'$as_ac_var'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15873 # For some functions, having a definition is not sufficient, since
15874 # we want to take their address.
15875 { echo "$as_me:$LINENO: checking for chroot" >&5
15876 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 #include <unistd.h>
15892 rm -f conftest.$ac_objext
15893 if { (ac_try="$ac_compile"
15894 case "(($ac_try" in
15895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15896 *) ac_try_echo
=$ac_try;;
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_compile") 2>conftest.er1
15901 grep -v '^ *+' conftest.er1
>conftest.err
15903 cat conftest.err
>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } && {
15906 test -z "$ac_c_werror_flag" ||
15907 test ! -s conftest.err
15908 } && test -s conftest.
$ac_objext; then
15910 cat >>confdefs.h
<<\_ACEOF
15911 #define HAVE_CHROOT 1
15914 { echo "$as_me:$LINENO: result: yes" >&5
15915 echo "${ECHO_T}yes" >&6; }
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.
$ac_ext >&5
15920 { echo "$as_me:$LINENO: result: no" >&5
15921 echo "${ECHO_T}no" >&6; }
15925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15926 { echo "$as_me:$LINENO: checking for link" >&5
15927 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15928 cat >conftest.
$ac_ext <<_ACEOF
15931 cat confdefs.h
>>conftest.
$ac_ext
15932 cat >>conftest.
$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <unistd.h>
15943 rm -f conftest.
$ac_objext
15944 if { (ac_try
="$ac_compile"
15945 case "(($ac_try" in
15946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_LINK 1
15965 { echo "$as_me:$LINENO: result: yes" >&5
15966 echo "${ECHO_T}yes" >&6; }
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 { echo "$as_me:$LINENO: result: no" >&5
15972 echo "${ECHO_T}no" >&6; }
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 { echo "$as_me:$LINENO: checking for symlink" >&5
15978 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <unistd.h>
15994 rm -f conftest.$ac_objext
15995 if { (ac_try="$ac_compile"
15996 case "(($ac_try" in
15997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15998 *) ac_try_echo
=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_compile") 2>conftest.er1
16003 grep -v '^ *+' conftest.er1
>conftest.err
16005 cat conftest.err
>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
16010 } && test -s conftest.
$ac_objext; then
16012 cat >>confdefs.h
<<\_ACEOF
16013 #define HAVE_SYMLINK 1
16016 { echo "$as_me:$LINENO: result: yes" >&5
16017 echo "${ECHO_T}yes" >&6; }
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.
$ac_ext >&5
16022 { echo "$as_me:$LINENO: result: no" >&5
16023 echo "${ECHO_T}no" >&6; }
16027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16028 { echo "$as_me:$LINENO: checking for fchdir" >&5
16029 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16030 cat >conftest.
$ac_ext <<_ACEOF
16033 cat confdefs.h
>>conftest.
$ac_ext
16034 cat >>conftest.
$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 #include <unistd.h>
16045 rm -f conftest.
$ac_objext
16046 if { (ac_try
="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } && {
16059 test -z "$ac_c_werror_flag" ||
16060 test ! -s conftest.err
16061 } && test -s conftest.$ac_objext; then
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_FCHDIR 1
16067 { echo "$as_me:$LINENO: result: yes" >&5
16068 echo "${ECHO_T}yes" >&6; }
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 { echo "$as_me:$LINENO: result: no" >&5
16074 echo "${ECHO_T}no" >&6; }
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 { echo "$as_me:$LINENO: checking for fsync" >&5
16080 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <unistd.h>
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16100 *) ac_try_echo
=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_compile") 2>conftest.er1
16105 grep -v '^ *+' conftest.er1
>conftest.err
16107 cat conftest.err
>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } && {
16110 test -z "$ac_c_werror_flag" ||
16111 test ! -s conftest.err
16112 } && test -s conftest.
$ac_objext; then
16114 cat >>confdefs.h
<<\_ACEOF
16115 #define HAVE_FSYNC 1
16118 { echo "$as_me:$LINENO: result: yes" >&5
16119 echo "${ECHO_T}yes" >&6; }
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.
$ac_ext >&5
16124 { echo "$as_me:$LINENO: result: no" >&5
16125 echo "${ECHO_T}no" >&6; }
16129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16130 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16131 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16132 cat >conftest.
$ac_ext <<_ACEOF
16135 cat confdefs.h
>>conftest.
$ac_ext
16136 cat >>conftest.
$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <unistd.h>
16147 rm -f conftest.
$ac_objext
16148 if { (ac_try
="$ac_compile"
16149 case "(($ac_try" in
16150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16156 grep -v '^ *+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && {
16161 test -z "$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 } && test -s conftest.$ac_objext; then
16165 cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_FDATASYNC 1
16169 { echo "$as_me:$LINENO: result: yes" >&5
16170 echo "${ECHO_T}yes" >&6; }
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 { echo "$as_me:$LINENO: result: no" >&5
16176 echo "${ECHO_T}no" >&6; }
16180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16181 { echo "$as_me:$LINENO: checking for epoll" >&5
16182 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <sys/epoll.h>
16193 void *x=epoll_create
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16202 *) ac_try_echo
=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1
>conftest.err
16209 cat conftest.err
>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.
$ac_objext; then
16216 cat >>confdefs.h
<<\_ACEOF
16217 #define HAVE_EPOLL 1
16220 { echo "$as_me:$LINENO: result: yes" >&5
16221 echo "${ECHO_T}yes" >&6; }
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.
$ac_ext >&5
16226 { echo "$as_me:$LINENO: result: no" >&5
16227 echo "${ECHO_T}no" >&6; }
16231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16232 { echo "$as_me:$LINENO: checking for kqueue" >&5
16233 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16234 cat >conftest.
$ac_ext <<_ACEOF
16237 cat confdefs.h
>>conftest.
$ac_ext
16238 cat >>conftest.
$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16241 #include <sys/types.h>
16242 #include <sys/event.h>
16252 rm -f conftest.
$ac_objext
16253 if { (ac_try
="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1 >conftest.err
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest.$ac_objext; then
16270 cat >>confdefs.h <<\_ACEOF
16271 #define HAVE_KQUEUE 1
16274 { echo "$as_me:$LINENO: result: yes" >&5
16275 echo "${ECHO_T}yes" >&6; }
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 { echo "$as_me:$LINENO: result: no" >&5
16281 echo "${ECHO_T}no" >&6; }
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 # On some systems (eg. FreeBSD 5), we would find a definition of the
16287 # functions ctermid_r, setgroups in the library, but no prototype
16288 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16289 # address to avoid compiler warnings and potential miscompilations
16290 # because of the missing prototypes.
16292 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16293 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16301 #include "confdefs.h"
16307 void* p = ctermid_r
16312 rm -f conftest.$ac_objext
16313 if { (ac_try="$ac_compile"
16314 case "(($ac_try" in
16315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16316 *) ac_try_echo
=$ac_try;;
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_compile") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1
>conftest.err
16323 cat conftest.err
>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest.
$ac_objext; then
16330 cat >>confdefs.h
<<\_ACEOF
16331 #define HAVE_CTERMID_R 1
16334 { echo "$as_me:$LINENO: result: yes" >&5
16335 echo "${ECHO_T}yes" >&6; }
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.
$ac_ext >&5
16340 { echo "$as_me:$LINENO: result: no" >&5
16341 echo "${ECHO_T}no" >&6; }
16345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16347 { echo "$as_me:$LINENO: checking for flock" >&5
16348 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16349 cat >conftest.
$ac_ext <<_ACEOF
16352 cat confdefs.h
>>conftest.
$ac_ext
16353 cat >>conftest.
$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16356 #include "confdefs.h"
16357 #include <sys/file.h>
16367 rm -f conftest.
$ac_objext
16368 if { (ac_try
="$ac_compile"
16369 case "(($ac_try" in
16370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_compile") 2>conftest.er1
16376 grep -v '^ *+' conftest.er1 >conftest.err
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest.$ac_objext; then
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE_FLOCK 1
16389 { echo "$as_me:$LINENO: result: yes" >&5
16390 echo "${ECHO_T}yes" >&6; }
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 { echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6; }
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16403 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16411 #include "confdefs.h"
16412 #include <unistd.h>
16417 void* p = getpagesize
16422 rm -f conftest.$ac_objext
16423 if { (ac_try="$ac_compile"
16424 case "(($ac_try" in
16425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16426 *) ac_try_echo
=$ac_try;;
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_compile") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1
>conftest.err
16433 cat conftest.err
>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest.
$ac_objext; then
16440 cat >>confdefs.h
<<\_ACEOF
16441 #define HAVE_GETPAGESIZE 1
16444 { echo "$as_me:$LINENO: result: yes" >&5
16445 echo "${ECHO_T}yes" >&6; }
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.
$ac_ext >&5
16450 { echo "$as_me:$LINENO: result: no" >&5
16451 echo "${ECHO_T}no" >&6; }
16455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16457 for ac_prog
in true
16459 # Extract the first word of "$ac_prog", so it can be a program name with args.
16460 set dummy
$ac_prog; ac_word
=$2
16461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16463 if test "${ac_cv_prog_TRUE+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 if test -n "$TRUE"; then
16467 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
16469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16470 for as_dir
in $PATH
16473 test -z "$as_dir" && as_dir
=.
16474 for ac_exec_ext
in '' $ac_executable_extensions; do
16475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16476 ac_cv_prog_TRUE
="$ac_prog"
16477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16486 TRUE
=$ac_cv_prog_TRUE
16487 if test -n "$TRUE"; then
16488 { echo "$as_me:$LINENO: result: $TRUE" >&5
16489 echo "${ECHO_T}$TRUE" >&6; }
16491 { echo "$as_me:$LINENO: result: no" >&5
16492 echo "${ECHO_T}no" >&6; }
16496 test -n "$TRUE" && break
16498 test -n "$TRUE" || TRUE
="/bin/true"
16501 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16502 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16503 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 ac_check_lib_save_LIBS
=$LIBS
16508 cat >conftest.
$ac_ext <<_ACEOF
16511 cat confdefs.h
>>conftest.
$ac_ext
16512 cat >>conftest.
$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16515 /* Override any GCC internal prototype to avoid an error.
16516 Use char because int might match the return type of a GCC
16517 builtin and then its argument prototype would still apply. */
16525 return inet_aton ();
16530 rm -f conftest.
$ac_objext conftest
$ac_exeext
16531 if { (ac_try
="$ac_link"
16532 case "(($ac_try" in
16533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_link") 2>conftest.er1
16539 grep -v '^ *+' conftest.er1 >conftest.err
16541 cat conftest.err >&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && {
16544 test -z "$ac_c_werror_flag" ||
16545 test ! -s conftest.err
16546 } && test -s conftest$ac_exeext &&
16547 $as_test_x conftest$ac_exeext; then
16548 ac_cv_lib_c_inet_aton=yes
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_cv_lib_c_inet_aton=no
16556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16557 conftest$ac_exeext conftest.$ac_ext
16558 LIBS=$ac_check_lib_save_LIBS
16560 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16561 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16562 if test $ac_cv_lib_c_inet_aton = yes; then
16566 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16567 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16568 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 ac_check_lib_save_LIBS=$LIBS
16572 LIBS="-lresolv $LIBS"
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16580 /* Override any GCC internal prototype to avoid an error.
16581 Use char because int might match the return type of a GCC
16582 builtin and then its argument prototype would still apply. */
16590 return inet_aton ();
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (ac_try="$ac_link"
16597 case "(($ac_try" in
16598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16599 *) ac_try_echo
=$ac_try;;
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_link") 2>conftest.er1
16604 grep -v '^ *+' conftest.er1
>conftest.err
16606 cat conftest.err
>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } && {
16609 test -z "$ac_c_werror_flag" ||
16610 test ! -s conftest.err
16611 } && test -s conftest
$ac_exeext &&
16612 $as_test_x conftest
$ac_exeext; then
16613 ac_cv_lib_resolv_inet_aton
=yes
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.
$ac_ext >&5
16618 ac_cv_lib_resolv_inet_aton
=no
16621 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16622 conftest
$ac_exeext conftest.
$ac_ext
16623 LIBS
=$ac_check_lib_save_LIBS
16625 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16626 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16627 if test $ac_cv_lib_resolv_inet_aton = yes; then
16628 cat >>confdefs.h
<<_ACEOF
16629 #define HAVE_LIBRESOLV 1
16632 LIBS
="-lresolv $LIBS"
16640 # On Tru64, chflags seems to be present, but calling it will
16642 { echo "$as_me:$LINENO: checking for chflags" >&5
16643 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16644 if test "$cross_compiling" = yes; then
16645 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16646 See \`config.log' for more details." >&5
16647 echo "$as_me: error: cannot run test program while cross compiling
16648 See \`config.log' for more details." >&2;}
16649 { (exit 1); exit 1; }; }
16651 cat >conftest.
$ac_ext <<_ACEOF
16654 cat confdefs.h
>>conftest.
$ac_ext
16655 cat >>conftest.
$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16658 #include <sys/stat.h>
16659 #include <unistd.h>
16660 int main(int argc, char*argv[])
16662 if(chflags(argv[0], 0) != 0)
16668 rm -f conftest
$ac_exeext
16669 if { (ac_try
="$ac_link"
16670 case "(($ac_try" in
16671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_link") 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16679 { (case "(($ac_try" in
16680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16681 *) ac_try_echo
=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_try") 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16689 cat >>confdefs.h
<<\_ACEOF
16690 #define HAVE_CHFLAGS 1
16693 { echo "$as_me:$LINENO: result: yes" >&5
16694 echo "${ECHO_T}yes" >&6; }
16696 echo "$as_me: program exited with status $ac_status" >&5
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.
$ac_ext >&5
16700 ( exit $ac_status )
16701 { echo "$as_me:$LINENO: result: no" >&5
16702 echo "${ECHO_T}no" >&6; }
16705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16710 { echo "$as_me:$LINENO: checking for lchflags" >&5
16711 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
16712 if test "$cross_compiling" = yes; then
16713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16714 See \`config.log' for more details." >&5
16715 echo "$as_me: error: cannot run test program while cross compiling
16716 See \`config.log' for more details." >&2;}
16717 { (exit 1); exit 1; }; }
16719 cat >conftest.
$ac_ext <<_ACEOF
16722 cat confdefs.h
>>conftest.
$ac_ext
16723 cat >>conftest.
$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16726 #include <sys/stat.h>
16727 #include <unistd.h>
16728 int main(int argc, char*argv[])
16730 if(lchflags(argv[0], 0) != 0)
16736 rm -f conftest
$ac_exeext
16737 if { (ac_try
="$ac_link"
16738 case "(($ac_try" in
16739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16749 *) ac_try_echo
=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16757 cat >>confdefs.h
<<\_ACEOF
16758 #define HAVE_LCHFLAGS 1
16761 { echo "$as_me:$LINENO: result: yes" >&5
16762 echo "${ECHO_T}yes" >&6; }
16764 echo "$as_me: program exited with status $ac_status" >&5
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.
$ac_ext >&5
16768 ( exit $ac_status )
16769 { echo "$as_me:$LINENO: result: no" >&5
16770 echo "${ECHO_T}no" >&6; }
16773 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16778 case $ac_sys_system/$ac_sys_release in
16780 _CUR_CFLAGS
="${CFLAGS}"
16781 _CUR_LDFLAGS
="${LDFLAGS}"
16782 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
16783 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16787 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16788 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16789 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 ac_check_lib_save_LIBS
=$LIBS
16794 cat >conftest.
$ac_ext <<_ACEOF
16797 cat confdefs.h
>>conftest.
$ac_ext
16798 cat >>conftest.
$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16801 /* Override any GCC internal prototype to avoid an error.
16802 Use char because int might match the return type of a GCC
16803 builtin and then its argument prototype would still apply. */
16807 char inflateCopy ();
16811 return inflateCopy ();
16816 rm -f conftest.
$ac_objext conftest
$ac_exeext
16817 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
16833 $as_test_x conftest$ac_exeext; then
16834 ac_cv_lib_z_inflateCopy=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_lib_z_inflateCopy=no
16842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LIBS=$ac_check_lib_save_LIBS
16846 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16847 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16848 if test $ac_cv_lib_z_inflateCopy = yes; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define HAVE_ZLIB_COPY 1
16857 case $ac_sys_system/$ac_sys_release in
16859 CFLAGS="${_CUR_CFLAGS}"
16860 LDFLAGS="${_CUR_LDFLAGS}"
16864 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16865 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16873 #include "confdefs.h"
16879 void* p = hstrerror; hstrerror(0)
16884 rm -f conftest.$ac_objext conftest$ac_exeext
16885 if { (ac_try="$ac_link"
16886 case "(($ac_try" in
16887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16888 *) ac_try_echo
=$ac_try;;
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_link") 2>conftest.er1
16893 grep -v '^ *+' conftest.er1
>conftest.err
16895 cat conftest.err
>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } && {
16898 test -z "$ac_c_werror_flag" ||
16899 test ! -s conftest.err
16900 } && test -s conftest
$ac_exeext &&
16901 $as_test_x conftest
$ac_exeext; then
16903 cat >>confdefs.h
<<\_ACEOF
16904 #define HAVE_HSTRERROR 1
16907 { echo "$as_me:$LINENO: result: yes" >&5
16908 echo "${ECHO_T}yes" >&6; }
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.
$ac_ext >&5
16913 { echo "$as_me:$LINENO: result: no" >&5
16914 echo "${ECHO_T}no" >&6; }
16918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16919 conftest
$ac_exeext conftest.
$ac_ext
16921 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16922 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16923 cat >conftest.
$ac_ext <<_ACEOF
16926 cat confdefs.h
>>conftest.
$ac_ext
16927 cat >>conftest.
$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16930 #include "confdefs.h"
16931 #include <sys/types.h>
16932 #include <sys/socket.h>
16933 #include <netinet/in.h>
16934 #include <arpa/inet.h>
16939 void* p = inet_aton;inet_aton(0,0)
16944 rm -f conftest.
$ac_objext conftest
$ac_exeext
16945 if { (ac_try
="$ac_link"
16946 case "(($ac_try" in
16947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_link") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest$ac_exeext &&
16961 $as_test_x conftest$ac_exeext; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_INET_ATON 1
16967 { echo "$as_me:$LINENO: result: yes" >&5
16968 echo "${ECHO_T}yes" >&6; }
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 { echo "$as_me:$LINENO: result: no" >&5
16974 echo "${ECHO_T}no" >&6; }
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16981 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16982 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16990 #include "confdefs.h"
16991 #include <sys/types.h>
16992 #include <sys/socket.h>
16993 #include <netinet/in.h>
16994 #include <arpa/inet.h>
16999 void* p = inet_pton
17004 rm -f conftest.$ac_objext
17005 if { (ac_try="$ac_compile"
17006 case "(($ac_try" in
17007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17008 *) ac_try_echo
=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1
>conftest.err
17015 cat conftest.err
>&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.
$ac_objext; then
17022 cat >>confdefs.h
<<\_ACEOF
17023 #define HAVE_INET_PTON 1
17026 { echo "$as_me:$LINENO: result: yes" >&5
17027 echo "${ECHO_T}yes" >&6; }
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.
$ac_ext >&5
17032 { echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6; }
17037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17039 # On some systems, setgroups is in unistd.h, on others, in grp.h
17040 { echo "$as_me:$LINENO: checking for setgroups" >&5
17041 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17042 cat >conftest.
$ac_ext <<_ACEOF
17045 cat confdefs.h
>>conftest.
$ac_ext
17046 cat >>conftest.
$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17049 #include "confdefs.h"
17050 #include <unistd.h>
17058 void* p = setgroups
17063 rm -f conftest.
$ac_objext
17064 if { (ac_try
="$ac_compile"
17065 case "(($ac_try" in
17066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_compile") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest.$ac_objext; then
17081 cat >>confdefs.h <<\_ACEOF
17082 #define HAVE_SETGROUPS 1
17085 { echo "$as_me:$LINENO: result: yes" >&5
17086 echo "${ECHO_T}yes" >&6; }
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 { echo "$as_me:$LINENO: result: no" >&5
17092 echo "${ECHO_T}no" >&6; }
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098 # check for openpty and forkpty
17101 for ac_func in openpty
17103 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 cat >conftest.$ac_ext <<_ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17117 #define $ac_func innocuous_$ac_func
17119 /* System header to define __stub macros and hopefully few prototypes,
17120 which can conflict with char $ac_func (); below.
17121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17122 <limits.h> exists even on freestanding compilers. */
17125 # include <limits.h>
17127 # include <assert.h>
17132 /* Override any GCC internal prototype to avoid an error.
17133 Use char because int might match the return type of a GCC
17134 builtin and then its argument prototype would still apply. */
17139 /* The GNU C library defines this for functions which it implements
17140 to always fail with ENOSYS. Some functions are actually named
17141 something starting with __ and the normal name is an alias. */
17142 #if defined __stub_$ac_func || defined __stub___$ac_func
17149 return $ac_func ();
17154 rm -f conftest.$ac_objext conftest$ac_exeext
17155 if { (ac_try="$ac_link"
17156 case "(($ac_try" in
17157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17158 *) ac_try_echo
=$ac_try;;
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_link") 2>conftest.er1
17163 grep -v '^ *+' conftest.er1
>conftest.err
17165 cat conftest.err
>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } && {
17168 test -z "$ac_c_werror_flag" ||
17169 test ! -s conftest.err
17170 } && test -s conftest
$ac_exeext &&
17171 $as_test_x conftest
$ac_exeext; then
17172 eval "$as_ac_var=yes"
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.
$ac_ext >&5
17177 eval "$as_ac_var=no"
17180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17181 conftest
$ac_exeext conftest.
$ac_ext
17183 ac_res
=`eval echo '${'$as_ac_var'}'`
17184 { echo "$as_me:$LINENO: result: $ac_res" >&5
17185 echo "${ECHO_T}$ac_res" >&6; }
17186 if test `eval echo '${'$as_ac_var'}'` = yes; then
17187 cat >>confdefs.h
<<_ACEOF
17188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17192 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17193 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17194 if test "${ac_cv_lib_util_openpty+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 ac_check_lib_save_LIBS
=$LIBS
17198 LIBS
="-lutil $LIBS"
17199 cat >conftest.
$ac_ext <<_ACEOF
17202 cat confdefs.h
>>conftest.
$ac_ext
17203 cat >>conftest.
$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17221 rm -f conftest.
$ac_objext conftest
$ac_exeext
17222 if { (ac_try
="$ac_link"
17223 case "(($ac_try" in
17224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17230 grep -v '^ *+' conftest.er1 >conftest.err
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && {
17235 test -z "$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17237 } && test -s conftest$ac_exeext &&
17238 $as_test_x conftest$ac_exeext; then
17239 ac_cv_lib_util_openpty=yes
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 ac_cv_lib_util_openpty=no
17247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17248 conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17251 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17252 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17253 if test $ac_cv_lib_util_openpty = yes; then
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_OPENPTY 1
17257 LIBS="$LIBS -lutil"
17259 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17260 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17261 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 ac_check_lib_save_LIBS=$LIBS
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17273 /* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17292 *) ac_try_echo
=$ac_try;;
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_link") 2>conftest.er1
17297 grep -v '^ *+' conftest.er1
>conftest.err
17299 cat conftest.err
>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest
$ac_exeext &&
17305 $as_test_x conftest
$ac_exeext; then
17306 ac_cv_lib_bsd_openpty
=yes
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.
$ac_ext >&5
17311 ac_cv_lib_bsd_openpty
=no
17314 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17315 conftest
$ac_exeext conftest.
$ac_ext
17316 LIBS
=$ac_check_lib_save_LIBS
17318 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17319 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17320 if test $ac_cv_lib_bsd_openpty = yes; then
17321 cat >>confdefs.h
<<\_ACEOF
17322 #define HAVE_OPENPTY 1
17335 for ac_func
in forkpty
17337 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17340 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 cat >conftest.
$ac_ext <<_ACEOF
17346 cat confdefs.h
>>conftest.
$ac_ext
17347 cat >>conftest.
$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17351 #define $ac_func innocuous_$ac_func
17353 /* System header to define __stub macros and hopefully few prototypes,
17354 which can conflict with char $ac_func (); below.
17355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356 <limits.h> exists even on freestanding compilers. */
17359 # include <limits.h>
17361 # include <assert.h>
17366 /* Override any GCC internal prototype to avoid an error.
17367 Use char because int might match the return type of a GCC
17368 builtin and then its argument prototype would still apply. */
17373 /* The GNU C library defines this for functions which it implements
17374 to always fail with ENOSYS. Some functions are actually named
17375 something starting with __ and the normal name is an alias. */
17376 #if defined __stub_$ac_func || defined __stub___$ac_func
17383 return $ac_func ();
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
17406 eval "$as_ac_var=yes"
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 eval "$as_ac_var=no"
17414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17415 conftest$ac_exeext conftest.$ac_ext
17417 ac_res=`eval echo '${'$as_ac_var'}'`
17418 { echo "$as_me:$LINENO: result: $ac_res" >&5
17419 echo "${ECHO_T}$ac_res" >&6; }
17420 if test `eval echo '${'$as_ac_var'}'` = yes; then
17421 cat >>confdefs.h <<_ACEOF
17422 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17426 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17427 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17428 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 ac_check_lib_save_LIBS=$LIBS
17432 LIBS="-lutil $LIBS"
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17440 /* Override any GCC internal prototype to avoid an error.
17441 Use char because int might match the return type of a GCC
17442 builtin and then its argument prototype would still apply. */
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (ac_try="$ac_link"
17457 case "(($ac_try" in
17458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17459 *) ac_try_echo
=$ac_try;;
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_link") 2>conftest.er1
17464 grep -v '^ *+' conftest.er1
>conftest.err
17466 cat conftest.err
>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } && {
17469 test -z "$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17471 } && test -s conftest
$ac_exeext &&
17472 $as_test_x conftest
$ac_exeext; then
17473 ac_cv_lib_util_forkpty
=yes
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.
$ac_ext >&5
17478 ac_cv_lib_util_forkpty
=no
17481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17482 conftest
$ac_exeext conftest.
$ac_ext
17483 LIBS
=$ac_check_lib_save_LIBS
17485 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17486 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17487 if test $ac_cv_lib_util_forkpty = yes; then
17488 cat >>confdefs.h
<<\_ACEOF
17489 #define HAVE_FORKPTY 1
17491 LIBS
="$LIBS -lutil"
17493 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17494 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17495 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 ac_check_lib_save_LIBS
=$LIBS
17500 cat >conftest.
$ac_ext <<_ACEOF
17503 cat confdefs.h
>>conftest.
$ac_ext
17504 cat >>conftest.
$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17507 /* Override any GCC internal prototype to avoid an error.
17508 Use char because int might match the return type of a GCC
17509 builtin and then its argument prototype would still apply. */
17522 rm -f conftest.
$ac_objext conftest
$ac_exeext
17523 if { (ac_try
="$ac_link"
17524 case "(($ac_try" in
17525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && {
17536 test -z "$ac_c_werror_flag" ||
17537 test ! -s conftest.err
17538 } && test -s conftest$ac_exeext &&
17539 $as_test_x conftest$ac_exeext; then
17540 ac_cv_lib_bsd_forkpty=yes
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_cv_lib_bsd_forkpty=no
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549 conftest$ac_exeext conftest.$ac_ext
17550 LIBS=$ac_check_lib_save_LIBS
17552 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17553 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17554 if test $ac_cv_lib_bsd_forkpty = yes; then
17555 cat >>confdefs.h <<\_ACEOF
17556 #define HAVE_FORKPTY 1
17571 for ac_func in memmove
17573 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 cat >conftest.$ac_ext <<_ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17587 #define $ac_func innocuous_$ac_func
17589 /* System header to define __stub macros and hopefully few prototypes,
17590 which can conflict with char $ac_func (); below.
17591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17592 <limits.h> exists even on freestanding compilers. */
17595 # include <limits.h>
17597 # include <assert.h>
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17609 /* The GNU C library defines this for functions which it implements
17610 to always fail with ENOSYS. Some functions are actually named
17611 something starting with __ and the normal name is an alias. */
17612 #if defined __stub_$ac_func || defined __stub___$ac_func
17619 return $ac_func ();
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17628 *) ac_try_echo
=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>conftest.er1
17633 grep -v '^ *+' conftest.er1
>conftest.err
17635 cat conftest.err
>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } && {
17638 test -z "$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 } && test -s conftest
$ac_exeext &&
17641 $as_test_x conftest
$ac_exeext; then
17642 eval "$as_ac_var=yes"
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.
$ac_ext >&5
17647 eval "$as_ac_var=no"
17650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17651 conftest
$ac_exeext conftest.
$ac_ext
17653 ac_res
=`eval echo '${'$as_ac_var'}'`
17654 { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17656 if test `eval echo '${'$as_ac_var'}'` = yes; then
17657 cat >>confdefs.h
<<_ACEOF
17658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17665 # check for long file support functions
17672 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17674 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17677 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 cat >conftest.
$ac_ext <<_ACEOF
17683 cat confdefs.h
>>conftest.
$ac_ext
17684 cat >>conftest.
$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17688 #define $ac_func innocuous_$ac_func
17690 /* System header to define __stub macros and hopefully few prototypes,
17691 which can conflict with char $ac_func (); below.
17692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17693 <limits.h> exists even on freestanding compilers. */
17696 # include <limits.h>
17698 # include <assert.h>
17703 /* Override any GCC internal prototype to avoid an error.
17704 Use char because int might match the return type of a GCC
17705 builtin and then its argument prototype would still apply. */
17710 /* The GNU C library defines this for functions which it implements
17711 to always fail with ENOSYS. Some functions are actually named
17712 something starting with __ and the normal name is an alias. */
17713 #if defined __stub_$ac_func || defined __stub___$ac_func
17720 return $ac_func ();
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 eval "$as_ac_var=yes"
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 eval "$as_ac_var=no"
17751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17752 conftest$ac_exeext conftest.$ac_ext
17754 ac_res=`eval echo '${'$as_ac_var'}'`
17755 { echo "$as_me:$LINENO: result: $ac_res" >&5
17756 echo "${ECHO_T}$ac_res" >&6; }
17757 if test `eval echo '${'$as_ac_var'}'` = yes; then
17758 cat >>confdefs.h <<_ACEOF
17759 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17769 for ac_func in dup2 getcwd strdup
17771 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785 #define $ac_func innocuous_$ac_func
17787 /* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char $ac_func (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17793 # include <limits.h>
17795 # include <assert.h>
17800 /* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17807 /* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810 #if defined __stub_$ac_func || defined __stub___$ac_func
17817 return $ac_func ();
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (ac_try="$ac_link"
17824 case "(($ac_try" in
17825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17826 *) ac_try_echo
=$ac_try;;
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_link") 2>conftest.er1
17831 grep -v '^ *+' conftest.er1
>conftest.err
17833 cat conftest.err
>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } && {
17836 test -z "$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 } && test -s conftest
$ac_exeext &&
17839 $as_test_x conftest
$ac_exeext; then
17840 eval "$as_ac_var=yes"
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.
$ac_ext >&5
17845 eval "$as_ac_var=no"
17848 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17849 conftest
$ac_exeext conftest.
$ac_ext
17851 ac_res
=`eval echo '${'$as_ac_var'}'`
17852 { echo "$as_me:$LINENO: result: $ac_res" >&5
17853 echo "${ECHO_T}$ac_res" >&6; }
17854 if test `eval echo '${'$as_ac_var'}'` = yes; then
17855 cat >>confdefs.h
<<_ACEOF
17856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17860 case " $LIBOBJS " in
17861 *" $ac_func.$ac_objext "* ) ;;
17862 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17871 for ac_func
in getpgrp
17873 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17876 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 cat >conftest.
$ac_ext <<_ACEOF
17882 cat confdefs.h
>>conftest.
$ac_ext
17883 cat >>conftest.
$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17887 #define $ac_func innocuous_$ac_func
17889 /* System header to define __stub macros and hopefully few prototypes,
17890 which can conflict with char $ac_func (); below.
17891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17892 <limits.h> exists even on freestanding compilers. */
17895 # include <limits.h>
17897 # include <assert.h>
17902 /* Override any GCC internal prototype to avoid an error.
17903 Use char because int might match the return type of a GCC
17904 builtin and then its argument prototype would still apply. */
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined __stub_$ac_func || defined __stub___$ac_func
17919 return $ac_func ();
17924 rm -f conftest.
$ac_objext conftest
$ac_exeext
17925 if { (ac_try
="$ac_link"
17926 case "(($ac_try" in
17927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_link") 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } && {
17938 test -z "$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17940 } && test -s conftest$ac_exeext &&
17941 $as_test_x conftest$ac_exeext; then
17942 eval "$as_ac_var=yes"
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 eval "$as_ac_var=no"
17950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17951 conftest$ac_exeext conftest.$ac_ext
17953 ac_res=`eval echo '${'$as_ac_var'}'`
17954 { echo "$as_me:$LINENO: result: $ac_res" >&5
17955 echo "${ECHO_T}$ac_res" >&6; }
17956 if test `eval echo '${'$as_ac_var'}'` = yes; then
17957 cat >>confdefs.h <<_ACEOF
17958 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17960 cat >conftest.$ac_ext <<_ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17966 #include <unistd.h>
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17979 *) ac_try_echo
=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_compile") 2>conftest.er1
17984 grep -v '^ *+' conftest.er1
>conftest.err
17986 cat conftest.err
>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && {
17989 test -z "$ac_c_werror_flag" ||
17990 test ! -s conftest.err
17991 } && test -s conftest.
$ac_objext; then
17993 cat >>confdefs.h
<<\_ACEOF
17994 #define GETPGRP_HAVE_ARG 1
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.
$ac_ext >&5
18005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18011 for ac_func
in setpgrp
18013 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18016 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 cat >conftest.
$ac_ext <<_ACEOF
18022 cat confdefs.h
>>conftest.
$ac_ext
18023 cat >>conftest.
$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18027 #define $ac_func innocuous_$ac_func
18029 /* System header to define __stub macros and hopefully few prototypes,
18030 which can conflict with char $ac_func (); below.
18031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18032 <limits.h> exists even on freestanding compilers. */
18035 # include <limits.h>
18037 # include <assert.h>
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18049 /* The GNU C library defines this for functions which it implements
18050 to always fail with ENOSYS. Some functions are actually named
18051 something starting with __ and the normal name is an alias. */
18052 #if defined __stub_$ac_func || defined __stub___$ac_func
18059 return $ac_func ();
18064 rm -f conftest.
$ac_objext conftest
$ac_exeext
18065 if { (ac_try
="$ac_link"
18066 case "(($ac_try" in
18067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18082 eval "$as_ac_var=yes"
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 eval "$as_ac_var=no"
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091 conftest$ac_exeext conftest.$ac_ext
18093 ac_res=`eval echo '${'$as_ac_var'}'`
18094 { echo "$as_me:$LINENO: result: $ac_res" >&5
18095 echo "${ECHO_T}$ac_res" >&6; }
18096 if test `eval echo '${'$as_ac_var'}'` = yes; then
18097 cat >>confdefs.h <<_ACEOF
18098 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 #include <unistd.h>
18115 rm -f conftest.$ac_objext
18116 if { (ac_try="$ac_compile"
18117 case "(($ac_try" in
18118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18119 *) ac_try_echo
=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_compile") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1
>conftest.err
18126 cat conftest.err
>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && {
18129 test -z "$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18131 } && test -s conftest.
$ac_objext; then
18133 cat >>confdefs.h
<<\_ACEOF
18134 #define SETPGRP_HAVE_ARG 1
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.
$ac_ext >&5
18145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18151 for ac_func
in gettimeofday
18153 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18156 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 cat >conftest.
$ac_ext <<_ACEOF
18162 cat confdefs.h
>>conftest.
$ac_ext
18163 cat >>conftest.
$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18167 #define $ac_func innocuous_$ac_func
18169 /* System header to define __stub macros and hopefully few prototypes,
18170 which can conflict with char $ac_func (); below.
18171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18172 <limits.h> exists even on freestanding compilers. */
18175 # include <limits.h>
18177 # include <assert.h>
18182 /* Override any GCC internal prototype to avoid an error.
18183 Use char because int might match the return type of a GCC
18184 builtin and then its argument prototype would still apply. */
18189 /* The GNU C library defines this for functions which it implements
18190 to always fail with ENOSYS. Some functions are actually named
18191 something starting with __ and the normal name is an alias. */
18192 #if defined __stub_$ac_func || defined __stub___$ac_func
18199 return $ac_func ();
18204 rm -f conftest.
$ac_objext conftest
$ac_exeext
18205 if { (ac_try
="$ac_link"
18206 case "(($ac_try" in
18207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_link") 2>conftest.er1
18213 grep -v '^ *+' conftest.er1 >conftest.err
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } && {
18218 test -z "$ac_c_werror_flag" ||
18219 test ! -s conftest.err
18220 } && test -s conftest$ac_exeext &&
18221 $as_test_x conftest$ac_exeext; then
18222 eval "$as_ac_var=yes"
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 eval "$as_ac_var=no"
18230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18231 conftest$ac_exeext conftest.$ac_ext
18233 ac_res=`eval echo '${'$as_ac_var'}'`
18234 { echo "$as_me:$LINENO: result: $ac_res" >&5
18235 echo "${ECHO_T}$ac_res" >&6; }
18236 if test `eval echo '${'$as_ac_var'}'` = yes; then
18237 cat >>confdefs.h <<_ACEOF
18238 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 #include <sys/time.h>
18250 gettimeofday((struct timeval*)0,(struct timezone*)0);
18255 rm -f conftest.$ac_objext
18256 if { (ac_try="$ac_compile"
18257 case "(($ac_try" in
18258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18259 *) ac_try_echo
=$ac_try;;
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_compile") 2>conftest.er1
18264 grep -v '^ *+' conftest.er1
>conftest.err
18266 cat conftest.err
>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest.
$ac_objext; then
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.
$ac_ext >&5
18278 cat >>confdefs.h
<<\_ACEOF
18279 #define GETTIMEOFDAY_NO_TZ 1
18285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18291 { echo "$as_me:$LINENO: checking for major" >&5
18292 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18293 cat >conftest.
$ac_ext <<_ACEOF
18296 cat confdefs.h
>>conftest.
$ac_ext
18297 cat >>conftest.
$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18300 #if defined(MAJOR_IN_MKDEV)
18301 #include <sys/mkdev.h>
18302 #elif defined(MAJOR_IN_SYSMACROS)
18303 #include <sys/sysmacros.h>
18305 #include <sys/types.h>
18312 makedev(major(0),minor(0));
18318 rm -f conftest.
$ac_objext conftest
$ac_exeext
18319 if { (ac_try
="$ac_link"
18320 case "(($ac_try" in
18321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest$ac_exeext &&
18335 $as_test_x conftest$ac_exeext; then
18338 cat >>confdefs.h <<\_ACEOF
18339 #define HAVE_DEVICE_MACROS 1
18342 { echo "$as_me:$LINENO: result: yes" >&5
18343 echo "${ECHO_T}yes" >&6; }
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18350 { echo "$as_me:$LINENO: result: no" >&5
18351 echo "${ECHO_T}no" >&6; }
18355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18356 conftest$ac_exeext conftest.$ac_ext
18358 # On OSF/1 V5.1, getaddrinfo is available, but a define
18359 # for [no]getaddrinfo in netdb.h.
18360 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18361 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18362 cat >conftest.$ac_ext <<_ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18369 #include <sys/types.h>
18370 #include <sys/socket.h>
18378 getaddrinfo(NULL, NULL, NULL, NULL);
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18388 *) ac_try_echo
=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1
>conftest.err
18395 cat conftest.err
>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest
$ac_exeext &&
18401 $as_test_x conftest
$ac_exeext; then
18403 { echo "$as_me:$LINENO: result: yes" >&5
18404 echo "${ECHO_T}yes" >&6; }
18405 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18406 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18407 if test "$cross_compiling" = yes; then
18408 { echo "$as_me:$LINENO: result: buggy" >&5
18409 echo "${ECHO_T}buggy" >&6; }
18410 buggygetaddrinfo
=yes
18412 cat >conftest.
$ac_ext <<_ACEOF
18415 cat confdefs.h
>>conftest.
$ac_ext
18416 cat >>conftest.
$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18419 #include <sys/types.h>
18421 #include <string.h>
18422 #include <sys/socket.h>
18423 #include <netinet/in.h>
18427 int passive, gaierr, inet4 = 0, inet6 = 0;
18428 struct addrinfo hints, *ai, *aitop;
18429 char straddr[INET6_ADDRSTRLEN], strport[16];
18431 for (passive = 0; passive <= 1; passive++) {
18432 memset(&hints, 0, sizeof(hints));
18433 hints.ai_family = AF_UNSPEC;
18434 hints.ai_flags = passive ? AI_PASSIVE : 0;
18435 hints.ai_socktype = SOCK_STREAM;
18436 hints.ai_protocol = IPPROTO_TCP;
18437 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18438 (void)gai_strerror(gaierr);
18441 for (ai = aitop; ai; ai = ai->ai_next) {
18442 if (ai->ai_addr == NULL ||
18443 ai->ai_addrlen == 0 ||
18444 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18445 straddr, sizeof(straddr), strport, sizeof(strport),
18446 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18449 switch (ai->ai_family) {
18451 if (strcmp(strport, "54321") != 0) {
18455 if (strcmp(straddr, "0.0.0.0") != 0) {
18459 if (strcmp(straddr, "127.0.0.1") != 0) {
18466 if (strcmp(strport, "54321") != 0) {
18470 if (strcmp(straddr, "::") != 0) {
18474 if (strcmp(straddr, "::1") != 0) {
18484 /* another family support? */
18490 if (!(inet4 == 0 || inet4 == 2))
18492 if (!(inet6 == 0 || inet6 == 2))
18496 freeaddrinfo(aitop);
18501 freeaddrinfo(aitop);
18506 rm -f conftest
$ac_exeext
18507 if { (ac_try
="$ac_link"
18508 case "(($ac_try" in
18509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18517 { (case "(($ac_try" in
18518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18519 *) ac_try_echo
=$ac_try;;
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_try") 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18526 { echo "$as_me:$LINENO: result: good" >&5
18527 echo "${ECHO_T}good" >&6; }
18528 buggygetaddrinfo
=no
18530 echo "$as_me: program exited with status $ac_status" >&5
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.
$ac_ext >&5
18534 ( exit $ac_status )
18535 { echo "$as_me:$LINENO: result: buggy" >&5
18536 echo "${ECHO_T}buggy" >&6; }
18537 buggygetaddrinfo
=yes
18539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.
$ac_ext >&5
18548 { echo "$as_me:$LINENO: result: no" >&5
18549 echo "${ECHO_T}no" >&6; }
18550 buggygetaddrinfo
=yes
18554 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18555 conftest
$ac_exeext conftest.
$ac_ext
18557 if test "$buggygetaddrinfo" = "yes"; then
18558 if test "$ipv6" = "yes"; then
18559 echo 'Fatal: You must get working getaddrinfo() function.'
18560 echo ' or you can specify "--disable-ipv6"'.
18565 cat >>confdefs.h
<<\_ACEOF
18566 #define HAVE_GETADDRINFO 1
18571 for ac_func
in getnameinfo
18573 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18576 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 cat >conftest.
$ac_ext <<_ACEOF
18582 cat confdefs.h
>>conftest.
$ac_ext
18583 cat >>conftest.
$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18587 #define $ac_func innocuous_$ac_func
18589 /* System header to define __stub macros and hopefully few prototypes,
18590 which can conflict with char $ac_func (); below.
18591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18592 <limits.h> exists even on freestanding compilers. */
18595 # include <limits.h>
18597 # include <assert.h>
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18609 /* The GNU C library defines this for functions which it implements
18610 to always fail with ENOSYS. Some functions are actually named
18611 something starting with __ and the normal name is an alias. */
18612 #if defined __stub_$ac_func || defined __stub___$ac_func
18619 return $ac_func ();
18624 rm -f conftest.
$ac_objext conftest
$ac_exeext
18625 if { (ac_try
="$ac_link"
18626 case "(($ac_try" in
18627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_link") 2>conftest.er1
18633 grep -v '^ *+' conftest.er1 >conftest.err
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext &&
18641 $as_test_x conftest$ac_exeext; then
18642 eval "$as_ac_var=yes"
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 eval "$as_ac_var=no"
18650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18651 conftest$ac_exeext conftest.$ac_ext
18653 ac_res=`eval echo '${'$as_ac_var'}'`
18654 { echo "$as_me:$LINENO: result: $ac_res" >&5
18655 echo "${ECHO_T}$ac_res" >&6; }
18656 if test `eval echo '${'$as_ac_var'}'` = yes; then
18657 cat >>confdefs.h <<_ACEOF
18658 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18665 # checks for structures
18666 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18667 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18668 if test "${ac_cv_header_time+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 #include <sys/types.h>
18678 #include <sys/time.h>
18684 if ((struct tm *) 0)
18690 rm -f conftest.$ac_objext
18691 if { (ac_try="$ac_compile"
18692 case "(($ac_try" in
18693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18694 *) ac_try_echo
=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_compile") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1
>conftest.err
18701 cat conftest.err
>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest.
$ac_objext; then
18707 ac_cv_header_time
=yes
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.
$ac_ext >&5
18712 ac_cv_header_time
=no
18715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18717 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18718 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18719 if test $ac_cv_header_time = yes; then
18721 cat >>confdefs.h
<<\_ACEOF
18722 #define TIME_WITH_SYS_TIME 1
18727 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18728 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18729 if test "${ac_cv_struct_tm+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 cat >conftest.
$ac_ext <<_ACEOF
18735 cat confdefs.h
>>conftest.
$ac_ext
18736 cat >>conftest.
$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 #include <sys/types.h>
18745 int *p = &tm.tm_sec;
18751 rm -f conftest.
$ac_objext
18752 if { (ac_try
="$ac_compile"
18753 case "(($ac_try" in
18754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_compile") 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest.$ac_objext; then
18768 ac_cv_struct_tm=time.h
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ac_cv_struct_tm=sys/time.h
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18779 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18780 if test $ac_cv_struct_tm = sys/time.h; then
18782 cat >>confdefs.h <<\_ACEOF
18783 #define TM_IN_SYS_TIME 1
18788 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18789 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18790 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 #include <sys/types.h>
18800 #include <$ac_cv_struct_tm>
18806 static struct tm ac_aggr;
18807 if (ac_aggr.tm_zone)
18813 rm -f conftest.$ac_objext
18814 if { (ac_try="$ac_compile"
18815 case "(($ac_try" in
18816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18817 *) ac_try_echo
=$ac_try;;
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_compile") 2>conftest.er1
18822 grep -v '^ *+' conftest.er1
>conftest.err
18824 cat conftest.err
>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && {
18827 test -z "$ac_c_werror_flag" ||
18828 test ! -s conftest.err
18829 } && test -s conftest.
$ac_objext; then
18830 ac_cv_member_struct_tm_tm_zone
=yes
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.
$ac_ext >&5
18835 cat >conftest.
$ac_ext <<_ACEOF
18838 cat confdefs.h
>>conftest.
$ac_ext
18839 cat >>conftest.
$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 #include <sys/types.h>
18842 #include <$ac_cv_struct_tm>
18848 static struct tm ac_aggr;
18849 if (sizeof ac_aggr.tm_zone)
18855 rm -f conftest.
$ac_objext
18856 if { (ac_try
="$ac_compile"
18857 case "(($ac_try" in
18858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_compile") 2>conftest.er1
18864 grep -v '^ *+' conftest.er1 >conftest.err
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } && {
18869 test -z "$ac_c_werror_flag" ||
18870 test ! -s conftest.err
18871 } && test -s conftest.$ac_objext; then
18872 ac_cv_member_struct_tm_tm_zone=yes
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_cv_member_struct_tm_tm_zone=no
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18889 cat >>confdefs.h <<_ACEOF
18890 #define HAVE_STRUCT_TM_TM_ZONE 1
18896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18898 cat >>confdefs.h <<\_ACEOF
18899 #define HAVE_TM_ZONE 1
18903 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18904 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18905 if test "${ac_cv_have_decl_tzname+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 cat >conftest.$ac_ext <<_ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18927 rm -f conftest.$ac_objext
18928 if { (ac_try="$ac_compile"
18929 case "(($ac_try" in
18930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18931 *) ac_try_echo
=$ac_try;;
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_compile") 2>conftest.er1
18936 grep -v '^ *+' conftest.er1
>conftest.err
18938 cat conftest.err
>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } && {
18941 test -z "$ac_c_werror_flag" ||
18942 test ! -s conftest.err
18943 } && test -s conftest.
$ac_objext; then
18944 ac_cv_have_decl_tzname
=yes
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.
$ac_ext >&5
18949 ac_cv_have_decl_tzname
=no
18952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18954 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18955 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18956 if test $ac_cv_have_decl_tzname = yes; then
18958 cat >>confdefs.h
<<_ACEOF
18959 #define HAVE_DECL_TZNAME 1
18964 cat >>confdefs.h
<<_ACEOF
18965 #define HAVE_DECL_TZNAME 0
18972 { echo "$as_me:$LINENO: checking for tzname" >&5
18973 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18974 if test "${ac_cv_var_tzname+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 cat >conftest.
$ac_ext <<_ACEOF
18980 cat confdefs.h
>>conftest.
$ac_ext
18981 cat >>conftest.
$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18984 #if !HAVE_DECL_TZNAME
18985 extern char *tzname[];
18991 return tzname[0][0];
18996 rm -f conftest.
$ac_objext conftest
$ac_exeext
18997 if { (ac_try
="$ac_link"
18998 case "(($ac_try" in
18999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19005 grep -v '^ *+' conftest.er1 >conftest.err
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest$ac_exeext &&
19013 $as_test_x conftest$ac_exeext; then
19014 ac_cv_var_tzname=yes
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_var_tzname=no
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19025 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19026 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19027 if test $ac_cv_var_tzname = yes; then
19029 cat >>confdefs.h <<\_ACEOF
19030 #define HAVE_TZNAME 1
19036 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19037 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19038 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 $ac_includes_default
19051 static struct stat ac_aggr;
19052 if (ac_aggr.st_rdev)
19058 rm -f conftest.$ac_objext
19059 if { (ac_try="$ac_compile"
19060 case "(($ac_try" in
19061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19062 *) ac_try_echo
=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_compile") 2>conftest.er1
19067 grep -v '^ *+' conftest.er1
>conftest.err
19069 cat conftest.err
>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest.
$ac_objext; then
19075 ac_cv_member_struct_stat_st_rdev
=yes
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.
$ac_ext >&5
19080 cat >conftest.
$ac_ext <<_ACEOF
19083 cat confdefs.h
>>conftest.
$ac_ext
19084 cat >>conftest.
$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 $ac_includes_default
19090 static struct stat ac_aggr;
19091 if (sizeof ac_aggr.st_rdev)
19097 rm -f conftest.
$ac_objext
19098 if { (ac_try
="$ac_compile"
19099 case "(($ac_try" in
19100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_compile") 2>conftest.er1
19106 grep -v '^ *+' conftest.er1 >conftest.err
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } && {
19111 test -z "$ac_c_werror_flag" ||
19112 test ! -s conftest.err
19113 } && test -s conftest.$ac_objext; then
19114 ac_cv_member_struct_stat_st_rdev=yes
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_member_struct_stat_st_rdev=no
19122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19128 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19129 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19131 cat >>confdefs.h <<_ACEOF
19132 #define HAVE_STRUCT_STAT_ST_RDEV 1
19138 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19139 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19140 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 cat >conftest.$ac_ext <<_ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 $ac_includes_default
19153 static struct stat ac_aggr;
19154 if (ac_aggr.st_blksize)
19160 rm -f conftest.$ac_objext
19161 if { (ac_try="$ac_compile"
19162 case "(($ac_try" in
19163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19164 *) ac_try_echo
=$ac_try;;
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_compile") 2>conftest.er1
19169 grep -v '^ *+' conftest.er1
>conftest.err
19171 cat conftest.err
>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && {
19174 test -z "$ac_c_werror_flag" ||
19175 test ! -s conftest.err
19176 } && test -s conftest.
$ac_objext; then
19177 ac_cv_member_struct_stat_st_blksize
=yes
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.
$ac_ext >&5
19182 cat >conftest.
$ac_ext <<_ACEOF
19185 cat confdefs.h
>>conftest.
$ac_ext
19186 cat >>conftest.
$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19192 static struct stat ac_aggr;
19193 if (sizeof ac_aggr.st_blksize)
19199 rm -f conftest.
$ac_objext
19200 if { (ac_try
="$ac_compile"
19201 case "(($ac_try" in
19202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_compile") 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && {
19213 test -z "$ac_c_werror_flag" ||
19214 test ! -s conftest.err
19215 } && test -s conftest.$ac_objext; then
19216 ac_cv_member_struct_stat_st_blksize=yes
19218 echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19221 ac_cv_member_struct_stat_st_blksize=no
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19230 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19231 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19233 cat >>confdefs.h <<_ACEOF
19234 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19240 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19241 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19242 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 $ac_includes_default
19255 static struct stat ac_aggr;
19256 if (ac_aggr.st_flags)
19262 rm -f conftest.$ac_objext
19263 if { (ac_try="$ac_compile"
19264 case "(($ac_try" in
19265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19266 *) ac_try_echo
=$ac_try;;
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_compile") 2>conftest.er1
19271 grep -v '^ *+' conftest.er1
>conftest.err
19273 cat conftest.err
>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } && {
19276 test -z "$ac_c_werror_flag" ||
19277 test ! -s conftest.err
19278 } && test -s conftest.
$ac_objext; then
19279 ac_cv_member_struct_stat_st_flags
=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.
$ac_ext >&5
19284 cat >conftest.
$ac_ext <<_ACEOF
19287 cat confdefs.h
>>conftest.
$ac_ext
19288 cat >>conftest.
$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 $ac_includes_default
19294 static struct stat ac_aggr;
19295 if (sizeof ac_aggr.st_flags)
19301 rm -f conftest.
$ac_objext
19302 if { (ac_try
="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_compile") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && {
19315 test -z "$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19317 } && test -s conftest.$ac_objext; then
19318 ac_cv_member_struct_stat_st_flags=yes
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_cv_member_struct_stat_st_flags=no
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19332 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19333 if test $ac_cv_member_struct_stat_st_flags = yes; then
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19342 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19343 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19344 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 $ac_includes_default
19357 static struct stat ac_aggr;
19358 if (ac_aggr.st_gen)
19364 rm -f conftest.$ac_objext
19365 if { (ac_try="$ac_compile"
19366 case "(($ac_try" in
19367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19368 *) ac_try_echo
=$ac_try;;
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_compile") 2>conftest.er1
19373 grep -v '^ *+' conftest.er1
>conftest.err
19375 cat conftest.err
>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } && {
19378 test -z "$ac_c_werror_flag" ||
19379 test ! -s conftest.err
19380 } && test -s conftest.
$ac_objext; then
19381 ac_cv_member_struct_stat_st_gen
=yes
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.
$ac_ext >&5
19386 cat >conftest.
$ac_ext <<_ACEOF
19389 cat confdefs.h
>>conftest.
$ac_ext
19390 cat >>conftest.
$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 $ac_includes_default
19396 static struct stat ac_aggr;
19397 if (sizeof ac_aggr.st_gen)
19403 rm -f conftest.
$ac_objext
19404 if { (ac_try
="$ac_compile"
19405 case "(($ac_try" in
19406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_cv_member_struct_stat_st_gen=yes
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_cv_member_struct_stat_st_gen=no
19428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19434 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19435 if test $ac_cv_member_struct_stat_st_gen = yes; then
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_STRUCT_STAT_ST_GEN 1
19444 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19445 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19446 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 cat >conftest.$ac_ext <<_ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19455 $ac_includes_default
19459 static struct stat ac_aggr;
19460 if (ac_aggr.st_birthtime)
19466 rm -f conftest.$ac_objext
19467 if { (ac_try="$ac_compile"
19468 case "(($ac_try" in
19469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19470 *) ac_try_echo
=$ac_try;;
19472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_compile") 2>conftest.er1
19475 grep -v '^ *+' conftest.er1
>conftest.err
19477 cat conftest.err
>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } && {
19480 test -z "$ac_c_werror_flag" ||
19481 test ! -s conftest.err
19482 } && test -s conftest.
$ac_objext; then
19483 ac_cv_member_struct_stat_st_birthtime
=yes
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.
$ac_ext >&5
19488 cat >conftest.
$ac_ext <<_ACEOF
19491 cat confdefs.h
>>conftest.
$ac_ext
19492 cat >>conftest.
$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 $ac_includes_default
19498 static struct stat ac_aggr;
19499 if (sizeof ac_aggr.st_birthtime)
19505 rm -f conftest.
$ac_objext
19506 if { (ac_try
="$ac_compile"
19507 case "(($ac_try" in
19508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_compile") 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } && {
19519 test -z "$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19521 } && test -s conftest.$ac_objext; then
19522 ac_cv_member_struct_stat_st_birthtime=yes
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 ac_cv_member_struct_stat_st_birthtime=no
19530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19536 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19537 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19539 cat >>confdefs.h <<_ACEOF
19540 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19546 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19547 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19548 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 cat >conftest.$ac_ext <<_ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 $ac_includes_default
19561 static struct stat ac_aggr;
19562 if (ac_aggr.st_blocks)
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19572 *) ac_try_echo
=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19577 grep -v '^ *+' conftest.er1
>conftest.err
19579 cat conftest.err
>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } && {
19582 test -z "$ac_c_werror_flag" ||
19583 test ! -s conftest.err
19584 } && test -s conftest.
$ac_objext; then
19585 ac_cv_member_struct_stat_st_blocks
=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.
$ac_ext >&5
19590 cat >conftest.
$ac_ext <<_ACEOF
19593 cat confdefs.h
>>conftest.
$ac_ext
19594 cat >>conftest.
$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 $ac_includes_default
19600 static struct stat ac_aggr;
19601 if (sizeof ac_aggr.st_blocks)
19607 rm -f conftest.
$ac_objext
19608 if { (ac_try
="$ac_compile"
19609 case "(($ac_try" in
19610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_compile") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest.$ac_objext; then
19624 ac_cv_member_struct_stat_st_blocks=yes
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_cv_member_struct_stat_st_blocks=no
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19638 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19639 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19641 cat >>confdefs.h <<_ACEOF
19642 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_ST_BLOCKS 1
19651 case " $LIBOBJS " in
19652 *" fileblocks.$ac_objext "* ) ;;
19653 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19661 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19662 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19663 if test "${ac_cv_header_time_altzone+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19685 *) ac_try_echo
=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_compile") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1
>conftest.err
19692 cat conftest.err
>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest.
$ac_objext; then
19698 ac_cv_header_time_altzone
=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.
$ac_ext >&5
19703 ac_cv_header_time_altzone
=no
19706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19709 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19710 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19711 if test $ac_cv_header_time_altzone = yes; then
19713 cat >>confdefs.h
<<\_ACEOF
19714 #define HAVE_ALTZONE 1
19720 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19721 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19722 cat >conftest.
$ac_ext <<_ACEOF
19725 cat confdefs.h
>>conftest.
$ac_ext
19726 cat >>conftest.
$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19729 #include <sys/types.h>
19730 #include <sys/select.h>
19731 #include <sys/time.h>
19741 rm -f conftest.
$ac_objext
19742 if { (ac_try
="$ac_compile"
19743 case "(($ac_try" in
19744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_compile") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest.$ac_objext; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define SYS_SELECT_WITH_SYS_TIME 1
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19775 echo "${ECHO_T}$was_it_defined" >&6; }
19777 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19778 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19779 if test "${ac_cv_struct_addrinfo+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19789 # include <netdb.h>
19798 rm -f conftest.$ac_objext
19799 if { (ac_try="$ac_compile"
19800 case "(($ac_try" in
19801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19802 *) ac_try_echo
=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1
>conftest.err
19809 cat conftest.err
>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest.
$ac_objext; then
19815 ac_cv_struct_addrinfo
=yes
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.
$ac_ext >&5
19820 ac_cv_struct_addrinfo
=no
19823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19826 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19827 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19828 if test $ac_cv_struct_addrinfo = yes; then
19830 cat >>confdefs.h
<<\_ACEOF
19831 #define HAVE_ADDRINFO 1
19836 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19837 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19838 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 cat >conftest.
$ac_ext <<_ACEOF
19844 cat confdefs.h
>>conftest.
$ac_ext
19845 cat >>conftest.
$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19848 # include <sys/types.h>
19849 # include <sys/socket.h>
19853 struct sockaddr_storage s
19858 rm -f conftest.
$ac_objext
19859 if { (ac_try
="$ac_compile"
19860 case "(($ac_try" in
19861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_compile") 2>conftest.er1
19867 grep -v '^ *+' conftest.er1 >conftest.err
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest.$ac_objext; then
19875 ac_cv_struct_sockaddr_storage=yes
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_cv_struct_sockaddr_storage=no
19883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19887 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19888 if test $ac_cv_struct_sockaddr_storage = yes; then
19890 cat >>confdefs.h <<\_ACEOF
19891 #define HAVE_SOCKADDR_STORAGE 1
19896 # checks for compiler characteristics
19899 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19900 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19901 if test "${ac_cv_c_char_unsigned+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 $ac_includes_default
19914 static int test_array [1 - 2 * !(((char) -1) < 0)];
19921 rm -f conftest.$ac_objext
19922 if { (ac_try="$ac_compile"
19923 case "(($ac_try" in
19924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19925 *) ac_try_echo
=$ac_try;;
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_compile") 2>conftest.er1
19930 grep -v '^ *+' conftest.er1
>conftest.err
19932 cat conftest.err
>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.
$ac_objext; then
19938 ac_cv_c_char_unsigned
=no
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.
$ac_ext >&5
19943 ac_cv_c_char_unsigned
=yes
19946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19948 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19949 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19950 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19951 cat >>confdefs.h
<<\_ACEOF
19952 #define __CHAR_UNSIGNED__ 1
19957 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19958 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19959 if test "${ac_cv_c_const+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 cat >conftest.
$ac_ext <<_ACEOF
19965 cat confdefs.h
>>conftest.
$ac_ext
19966 cat >>conftest.
$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19972 /* FIXME: Include the comments suggested by Paul. */
19973 #ifndef __cplusplus
19974 /* Ultrix mips cc rejects this. */
19975 typedef int charset[2];
19977 /* SunOS 4.1.1 cc rejects this. */
19978 char const *const *pcpcc;
19980 /* NEC SVR4.0.2 mips cc rejects this. */
19981 struct point {int x, y;};
19982 static struct point const zero = {0,0};
19983 /* AIX XL C 1.02.0.0 rejects this.
19984 It does not let you subtract one const X* pointer from another in
19985 an arm of an if-expression whose if-part is not a constant
19987 const char *g = "string";
19988 pcpcc = &g + (g ? g-g : 0);
19989 /* HPUX 7.0 cc rejects these. */
19991 ppc = (char**) pcpcc;
19992 pcpcc = (char const *const *) ppc;
19993 { /* SCO 3.2v4 cc rejects this. */
19995 char const *s = 0 ? (char *) 0 : (char const *) 0;
20000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20001 int x[] = {25, 17};
20002 const int *foo = &x[0];
20005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20006 typedef const int *iptr;
20010 { /* AIX XL C 1.02.0.0 rejects this saying
20011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20012 struct s { int j; const int *ap[3]; };
20013 struct s *b; b->j = 5;
20015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20016 const int foo = 10;
20017 if (!foo) return 0;
20019 return !cs[0] && !zero.x;
20026 rm -f conftest.
$ac_objext
20027 if { (ac_try
="$ac_compile"
20028 case "(($ac_try" in
20029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_compile") 2>conftest.er1
20035 grep -v '^ *+' conftest.er1 >conftest.err
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest.$ac_objext; then
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20054 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20055 if test $ac_cv_c_const = no; then
20057 cat >>confdefs.h <<\_ACEOF
20065 { echo "$as_me:$LINENO: checking for working volatile" >&5
20066 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20077 volatile int x; x = 0;
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20086 *) ac_try_echo
=$ac_try;;
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1
>conftest.err
20093 cat conftest.err
>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.
$ac_objext; then
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.
$ac_ext >&5
20105 cat >>confdefs.h
<<\_ACEOF
20112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20113 { echo "$as_me:$LINENO: result: $works" >&5
20114 echo "${ECHO_T}$works" >&6; }
20117 { echo "$as_me:$LINENO: checking for working signed char" >&5
20118 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20119 cat >conftest.
$ac_ext <<_ACEOF
20122 cat confdefs.h
>>conftest.
$ac_ext
20123 cat >>conftest.
$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20134 rm -f conftest.
$ac_objext
20135 if { (ac_try
="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20143 grep -v '^ *+' conftest.er1 >conftest.err
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.$ac_objext; then
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20157 cat >>confdefs.h <<\_ACEOF
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result: $works" >&5
20166 echo "${ECHO_T}$works" >&6; }
20169 { echo "$as_me:$LINENO: checking for prototypes" >&5
20170 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 int foo(int x) { return 0; }
20186 rm -f conftest.$ac_objext
20187 if { (ac_try="$ac_compile"
20188 case "(($ac_try" in
20189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20190 *) ac_try_echo
=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_compile") 2>conftest.er1
20195 grep -v '^ *+' conftest.er1
>conftest.err
20197 cat conftest.err
>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && {
20200 test -z "$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 } && test -s conftest.
$ac_objext; then
20205 cat >>confdefs.h
<<\_ACEOF
20206 #define HAVE_PROTOTYPES 1
20209 have_prototypes
=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.
$ac_ext >&5
20218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20219 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20220 echo "${ECHO_T}$have_prototypes" >&6; }
20223 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20224 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20225 cat >conftest.
$ac_ext <<_ACEOF
20228 cat confdefs.h
>>conftest.
$ac_ext
20229 cat >>conftest.
$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20232 #include <stdarg.h>
20233 int foo(int x, ...) {
20237 va_arg(va, char *);
20238 va_arg(va, double);
20245 return foo(10, "", 3.14);
20250 rm -f conftest.
$ac_objext
20251 if { (ac_try
="$ac_compile"
20252 case "(($ac_try" in
20253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20269 cat >>confdefs.h <<\_ACEOF
20270 #define HAVE_STDARG_PROTOTYPES 1
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $works" >&5
20284 echo "${ECHO_T}$works" >&6; }
20286 # check for socketpair
20287 { echo "$as_me:$LINENO: checking for socketpair" >&5
20288 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 #include <sys/types.h>
20297 #include <sys/socket.h>
20307 rm -f conftest.$ac_objext
20308 if { (ac_try="$ac_compile"
20309 case "(($ac_try" in
20310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20311 *) ac_try_echo
=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_compile") 2>conftest.er1
20316 grep -v '^ *+' conftest.er1
>conftest.err
20318 cat conftest.err
>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && {
20321 test -z "$ac_c_werror_flag" ||
20322 test ! -s conftest.err
20323 } && test -s conftest.
$ac_objext; then
20325 cat >>confdefs.h
<<\_ACEOF
20326 #define HAVE_SOCKETPAIR 1
20329 { echo "$as_me:$LINENO: result: yes" >&5
20330 echo "${ECHO_T}yes" >&6; }
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.
$ac_ext >&5
20335 { echo "$as_me:$LINENO: result: no" >&5
20336 echo "${ECHO_T}no" >&6; }
20340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20342 # check if sockaddr has sa_len member
20343 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20344 echo $ECHO_N "checking if sockaddr has sa_len member... $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. */
20351 #include <sys/types.h>
20352 #include <sys/socket.h>
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 { echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6; }
20382 cat >>confdefs.h <<\_ACEOF
20383 #define HAVE_SOCKADDR_SA_LEN 1
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 { echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6; }
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20396 va_list_is_array=no
20397 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20398 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20406 #ifdef HAVE_STDARG_PROTOTYPES
20407 #include <stdarg.h>
20409 #include <varargs.h>
20415 va_list list1, list2; list1 = list2;
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20424 *) ac_try_echo
=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_compile") 2>conftest.er1
20429 grep -v '^ *+' conftest.er1
>conftest.err
20431 cat conftest.err
>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && {
20434 test -z "$ac_c_werror_flag" ||
20435 test ! -s conftest.err
20436 } && test -s conftest.
$ac_objext; then
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.
$ac_ext >&5
20444 cat >>confdefs.h
<<\_ACEOF
20445 #define VA_LIST_IS_ARRAY 1
20448 va_list_is_array
=yes
20452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20453 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20454 echo "${ECHO_T}$va_list_is_array" >&6; }
20456 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20460 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20461 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20462 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 cat >conftest.
$ac_ext <<_ACEOF
20468 cat confdefs.h
>>conftest.
$ac_ext
20469 cat >>conftest.
$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20473 #define gethostbyname_r innocuous_gethostbyname_r
20475 /* System header to define __stub macros and hopefully few prototypes,
20476 which can conflict with char gethostbyname_r (); below.
20477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20478 <limits.h> exists even on freestanding compilers. */
20481 # include <limits.h>
20483 # include <assert.h>
20486 #undef gethostbyname_r
20488 /* Override any GCC internal prototype to avoid an error.
20489 Use char because int might match the return type of a GCC
20490 builtin and then its argument prototype would still apply. */
20494 char gethostbyname_r ();
20495 /* The GNU C library defines this for functions which it implements
20496 to always fail with ENOSYS. Some functions are actually named
20497 something starting with __ and the normal name is an alias. */
20498 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20505 return gethostbyname_r ();
20510 rm -f conftest.
$ac_objext conftest
$ac_exeext
20511 if { (ac_try
="$ac_link"
20512 case "(($ac_try" in
20513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_link") 2>conftest.er1
20519 grep -v '^ *+' conftest.er1 >conftest.err
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest$ac_exeext &&
20527 $as_test_x conftest$ac_exeext; then
20528 ac_cv_func_gethostbyname_r=yes
20530 echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20533 ac_cv_func_gethostbyname_r=no
20536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20537 conftest$ac_exeext conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20540 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20541 if test $ac_cv_func_gethostbyname_r = yes; then
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_GETHOSTBYNAME_R 1
20547 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20548 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20550 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20558 # include <netdb.h>
20565 struct hostent *he, *res;
20570 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20580 *) ac_try_echo
=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1
>conftest.err
20587 cat conftest.err
>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest.
$ac_objext; then
20594 cat >>confdefs.h
<<\_ACEOF
20595 #define HAVE_GETHOSTBYNAME_R 1
20599 cat >>confdefs.h
<<\_ACEOF
20600 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20603 { echo "$as_me:$LINENO: result: yes" >&5
20604 echo "${ECHO_T}yes" >&6; }
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.
$ac_ext >&5
20611 { echo "$as_me:$LINENO: result: no" >&5
20612 echo "${ECHO_T}no" >&6; }
20613 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20614 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20615 cat >conftest.
$ac_ext <<_ACEOF
20618 cat confdefs.h
>>conftest.
$ac_ext
20619 cat >>conftest.
$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 # include <netdb.h>
20629 struct hostent *he;
20634 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20640 rm -f conftest.
$ac_objext
20641 if { (ac_try
="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_compile") 2>conftest.er1
20649 grep -v '^ *+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && {
20654 test -z "$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20656 } && test -s conftest.$ac_objext; then
20658 cat >>confdefs.h <<\_ACEOF
20659 #define HAVE_GETHOSTBYNAME_R 1
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20667 { echo "$as_me:$LINENO: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6; }
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20675 { echo "$as_me:$LINENO: result: no" >&5
20676 echo "${ECHO_T}no" >&6; }
20677 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20678 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20679 cat >conftest.$ac_ext <<_ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 # include <netdb.h>
20693 struct hostent *he;
20694 struct hostent_data data;
20696 (void) gethostbyname_r(name, he, &data);
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20706 *) ac_try_echo
=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1
>conftest.err
20713 cat conftest.err
>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.
$ac_objext; then
20720 cat >>confdefs.h
<<\_ACEOF
20721 #define HAVE_GETHOSTBYNAME_R 1
20725 cat >>confdefs.h
<<\_ACEOF
20726 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20729 { echo "$as_me:$LINENO: result: yes" >&5
20730 echo "${ECHO_T}yes" >&6; }
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.
$ac_ext >&5
20737 { echo "$as_me:$LINENO: result: no" >&5
20738 echo "${ECHO_T}no" >&6; }
20742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20756 for ac_func
in gethostbyname
20758 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20761 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 cat >conftest.
$ac_ext <<_ACEOF
20767 cat confdefs.h
>>conftest.
$ac_ext
20768 cat >>conftest.
$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20772 #define $ac_func innocuous_$ac_func
20774 /* System header to define __stub macros and hopefully few prototypes,
20775 which can conflict with char $ac_func (); below.
20776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20777 <limits.h> exists even on freestanding compilers. */
20780 # include <limits.h>
20782 # include <assert.h>
20787 /* Override any GCC internal prototype to avoid an error.
20788 Use char because int might match the return type of a GCC
20789 builtin and then its argument prototype would still apply. */
20794 /* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797 #if defined __stub_$ac_func || defined __stub___$ac_func
20804 return $ac_func ();
20809 rm -f conftest.
$ac_objext conftest
$ac_exeext
20810 if { (ac_try
="$ac_link"
20811 case "(($ac_try" in
20812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_link") 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } && {
20823 test -z "$ac_c_werror_flag" ||
20824 test ! -s conftest.err
20825 } && test -s conftest$ac_exeext &&
20826 $as_test_x conftest$ac_exeext; then
20827 eval "$as_ac_var=yes"
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 eval "$as_ac_var=no"
20835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 conftest$ac_exeext conftest.$ac_ext
20838 ac_res=`eval echo '${'$as_ac_var'}'`
20839 { echo "$as_me:$LINENO: result: $ac_res" >&5
20840 echo "${ECHO_T}$ac_res" >&6; }
20841 if test `eval echo '${'$as_ac_var'}'` = yes; then
20842 cat >>confdefs.h <<_ACEOF
20843 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20858 # checks for system services
20861 # Linux requires this for correct f.p. operations
20862 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20863 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20864 if test "${ac_cv_func___fpu_control+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20875 #define __fpu_control innocuous___fpu_control
20877 /* System header to define __stub macros and hopefully few prototypes,
20878 which can conflict with char __fpu_control (); below.
20879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20880 <limits.h> exists even on freestanding compilers. */
20883 # include <limits.h>
20885 # include <assert.h>
20888 #undef __fpu_control
20890 /* Override any GCC internal prototype to avoid an error.
20891 Use char because int might match the return type of a GCC
20892 builtin and then its argument prototype would still apply. */
20896 char __fpu_control ();
20897 /* The GNU C library defines this for functions which it implements
20898 to always fail with ENOSYS. Some functions are actually named
20899 something starting with __ and the normal name is an alias. */
20900 #if defined __stub___fpu_control || defined __stub_____fpu_control
20907 return __fpu_control ();
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20916 *) ac_try_echo
=$ac_try;;
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_link") 2>conftest.er1
20921 grep -v '^ *+' conftest.er1
>conftest.err
20923 cat conftest.err
>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } && {
20926 test -z "$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20928 } && test -s conftest
$ac_exeext &&
20929 $as_test_x conftest
$ac_exeext; then
20930 ac_cv_func___fpu_control
=yes
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.
$ac_ext >&5
20935 ac_cv_func___fpu_control
=no
20938 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20939 conftest
$ac_exeext conftest.
$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20942 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20943 if test $ac_cv_func___fpu_control = yes; then
20947 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20948 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20949 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 ac_check_lib_save_LIBS
=$LIBS
20953 LIBS
="-lieee $LIBS"
20954 cat >conftest.
$ac_ext <<_ACEOF
20957 cat confdefs.h
>>conftest.
$ac_ext
20958 cat >>conftest.
$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20961 /* Override any GCC internal prototype to avoid an error.
20962 Use char because int might match the return type of a GCC
20963 builtin and then its argument prototype would still apply. */
20967 char __fpu_control ();
20971 return __fpu_control ();
20976 rm -f conftest.
$ac_objext conftest
$ac_exeext
20977 if { (ac_try
="$ac_link"
20978 case "(($ac_try" in
20979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_link") 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest$ac_exeext &&
20993 $as_test_x conftest$ac_exeext; then
20994 ac_cv_lib_ieee___fpu_control=yes
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_cv_lib_ieee___fpu_control=no
21002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21003 conftest$ac_exeext conftest.$ac_ext
21004 LIBS=$ac_check_lib_save_LIBS
21006 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21007 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21008 if test $ac_cv_lib_ieee___fpu_control = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_LIBIEEE 1
21013 LIBS="-lieee $LIBS"
21021 # Check for --with-fpectl
21022 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21023 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21025 # Check whether --with-fpectl was given.
21026 if test "${with_fpectl+set}" = set; then
21027 withval=$with_fpectl;
21028 if test "$withval" != no
21031 cat >>confdefs.h <<\_ACEOF
21032 #define WANT_SIGFPE_HANDLER 1
21035 { echo "$as_me:$LINENO: result: yes" >&5
21036 echo "${ECHO_T}yes" >&6; }
21037 else { echo "$as_me:$LINENO: result: no" >&5
21038 echo "${ECHO_T}no" >&6; }
21041 { echo "$as_me:$LINENO: result: no" >&5
21042 echo "${ECHO_T}no" >&6; }
21046 # check for --with-libm=...
21048 case $ac_sys_system in
21052 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21053 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21055 # Check whether --with-libm was given.
21056 if test "${with_libm+set}" = set; then
21057 withval=$with_libm;
21058 if test "$withval" = no
21060 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21061 echo "${ECHO_T}force LIBM empty" >&6; }
21062 elif test "$withval" != yes
21064 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21065 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21066 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21067 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21068 { (exit 1); exit 1; }; }
21071 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21072 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21076 # check for --with-libc=...
21078 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21079 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21081 # Check whether --with-libc was given.
21082 if test "${with_libc+set}" = set; then
21083 withval=$with_libc;
21084 if test "$withval" = no
21086 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21087 echo "${ECHO_T}force LIBC empty" >&6; }
21088 elif test "$withval" != yes
21090 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21091 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21092 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21093 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21094 { (exit 1); exit 1; }; }
21097 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21098 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21102 # ************************************
21103 # * Check for mathematical functions *
21104 # ************************************
21109 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21110 # -0. on some architectures.
21111 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21112 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21113 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 if test "$cross_compiling" = yes; then
21118 ac_cv_tanh_preserves_zero_sign=no
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21128 #include <stdlib.h>
21130 /* return 0 if either negative zeros don't exist
21131 on this platform or if negative zeros exist
21132 and tanh(-0.) == -0. */
21133 if (atan2(0., -1.) == atan2(-0., -1.) ||
21134 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21139 rm -f conftest$ac_exeext
21140 if { (ac_try="$ac_link"
21141 case "(($ac_try" in
21142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21143 *) ac_try_echo
=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_link") 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21150 { (case "(($ac_try" in
21151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_try") 2>&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_cv_tanh_preserves_zero_sign=yes
21161 echo "$as_me: program exited with status $ac_status" >&5
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ( exit $ac_status )
21166 ac_cv_tanh_preserves_zero_sign=no
21168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21175 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21176 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21179 cat >>confdefs.h <<\_ACEOF
21180 #define TANH_PRESERVES_ZERO_SIGN 1
21186 for ac_func in hypot
21188 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21202 #define $ac_func innocuous_$ac_func
21204 /* System header to define __stub macros and hopefully few prototypes,
21205 which can conflict with char $ac_func (); below.
21206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21207 <limits.h> exists even on freestanding compilers. */
21210 # include <limits.h>
21212 # include <assert.h>
21217 /* Override any GCC internal prototype to avoid an error.
21218 Use char because int might match the return type of a GCC
21219 builtin and then its argument prototype would still apply. */
21224 /* The GNU C library defines this for functions which it implements
21225 to always fail with ENOSYS. Some functions are actually named
21226 something starting with __ and the normal name is an alias. */
21227 #if defined __stub_$ac_func || defined __stub___$ac_func
21234 return $ac_func ();
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (ac_try="$ac_link"
21241 case "(($ac_try" in
21242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21243 *) ac_try_echo
=$ac_try;;
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_link") 2>conftest.er1
21248 grep -v '^ *+' conftest.er1
>conftest.err
21250 cat conftest.err
>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest
$ac_exeext &&
21256 $as_test_x conftest
$ac_exeext; then
21257 eval "$as_ac_var=yes"
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.
$ac_ext >&5
21262 eval "$as_ac_var=no"
21265 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21266 conftest
$ac_exeext conftest.
$ac_ext
21268 ac_res
=`eval echo '${'$as_ac_var'}'`
21269 { echo "$as_me:$LINENO: result: $ac_res" >&5
21270 echo "${ECHO_T}$ac_res" >&6; }
21271 if test `eval echo '${'$as_ac_var'}'` = yes; then
21272 cat >>confdefs.h
<<_ACEOF
21273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21277 case " $LIBOBJS " in
21278 *" $ac_func.$ac_objext "* ) ;;
21279 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
21297 for ac_func
in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21299 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21302 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 cat >conftest.
$ac_ext <<_ACEOF
21308 cat confdefs.h
>>conftest.
$ac_ext
21309 cat >>conftest.
$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21313 #define $ac_func innocuous_$ac_func
21315 /* System header to define __stub macros and hopefully few prototypes,
21316 which can conflict with char $ac_func (); below.
21317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21318 <limits.h> exists even on freestanding compilers. */
21321 # include <limits.h>
21323 # include <assert.h>
21328 /* Override any GCC internal prototype to avoid an error.
21329 Use char because int might match the return type of a GCC
21330 builtin and then its argument prototype would still apply. */
21335 /* The GNU C library defines this for functions which it implements
21336 to always fail with ENOSYS. Some functions are actually named
21337 something starting with __ and the normal name is an alias. */
21338 #if defined __stub_$ac_func || defined __stub___$ac_func
21345 return $ac_func ();
21350 rm -f conftest.
$ac_objext conftest
$ac_exeext
21351 if { (ac_try
="$ac_link"
21352 case "(($ac_try" in
21353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_link") 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest$ac_exeext &&
21367 $as_test_x conftest$ac_exeext; then
21368 eval "$as_ac_var=yes"
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 eval "$as_ac_var=no"
21376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21377 conftest$ac_exeext conftest.$ac_ext
21379 ac_res=`eval echo '${'$as_ac_var'}'`
21380 { echo "$as_me:$LINENO: result: $ac_res" >&5
21381 echo "${ECHO_T}$ac_res" >&6; }
21382 if test `eval echo '${'$as_ac_var'}'` = yes; then
21383 cat >>confdefs.h <<_ACEOF
21384 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21393 # check for wchar.h
21394 if test "${ac_cv_header_wchar_h+set}" = set; then
21395 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21396 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21397 if test "${ac_cv_header_wchar_h+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21400 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21401 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21403 # Is the header compilable?
21404 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21405 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 $ac_includes_default
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21419 *) ac_try_echo
=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1
>conftest.err
21426 cat conftest.err
>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.
$ac_objext; then
21432 ac_header_compiler
=yes
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.
$ac_ext >&5
21437 ac_header_compiler
=no
21440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21442 echo "${ECHO_T}$ac_header_compiler" >&6; }
21444 # Is the header present?
21445 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21446 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21447 cat >conftest.
$ac_ext <<_ACEOF
21450 cat confdefs.h
>>conftest.
$ac_ext
21451 cat >>conftest.
$ac_ext <<_ACEOF
21452 /* end confdefs.h. */
21455 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21456 case "(($ac_try" in
21457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21463 grep -v '^ *+' conftest.er1 >conftest.err
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } >/dev/null && {
21468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21471 ac_header_preproc=yes
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_preproc=no
21479 rm -f conftest.err conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481 echo "${ECHO_T}$ac_header_preproc" >&6; }
21483 # So? What about this header?
21484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21486 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21487 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21489 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21490 ac_header_preproc=yes
21493 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21494 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21496 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21498 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21500 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21502 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21504 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21506 ## ------------------------------------------------ ##
21507 ## Report this to http://www.python.org/python-bugs ##
21508 ## ------------------------------------------------ ##
21510 ) | sed "s/^/$as_me: WARNING: /" >&2
21513 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21514 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21515 if test "${ac_cv_header_wchar_h+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 ac_cv_header_wchar_h=$ac_header_preproc
21520 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21521 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21524 if test $ac_cv_header_wchar_h = yes; then
21527 cat >>confdefs.h <<\_ACEOF
21528 #define HAVE_WCHAR_H 1
21540 # determine wchar_t size
21541 if test "$wchar_h" = yes
21543 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21544 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21545 if test "${ac_cv_type_wchar_t+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21556 typedef wchar_t ac__type_new_;
21560 if ((ac__type_new_ *) 0)
21562 if (sizeof (ac__type_new_))
21568 rm -f conftest.$ac_objext
21569 if { (ac_try="$ac_compile"
21570 case "(($ac_try" in
21571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21572 *) ac_try_echo
=$ac_try;;
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_compile") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1
>conftest.err
21579 cat conftest.err
>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest.
$ac_objext; then
21585 ac_cv_type_wchar_t
=yes
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.
$ac_ext >&5
21590 ac_cv_type_wchar_t
=no
21593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21595 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21596 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21598 # The cast to long int works around a bug in the HP C Compiler
21599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21601 # This bug is HP SR number 8606223364.
21602 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21603 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21604 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21607 if test "$cross_compiling" = yes; then
21608 # Depending upon the size, compute the lo and hi bounds.
21609 cat >conftest.
$ac_ext <<_ACEOF
21612 cat confdefs.h
>>conftest.
$ac_ext
21613 cat >>conftest.
$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21617 typedef wchar_t ac__type_sizeof_;
21621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21628 rm -f conftest.
$ac_objext
21629 if { (ac_try
="$ac_compile"
21630 case "(($ac_try" in
21631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635 (eval "$ac_compile") 2>conftest.er1
21637 grep -v '^ *+' conftest.er1 >conftest.err
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } && {
21642 test -z "$ac_c_werror_flag" ||
21643 test ! -s conftest.err
21644 } && test -s conftest.$ac_objext; then
21647 cat >conftest.$ac_ext <<_ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21655 typedef wchar_t ac__type_sizeof_;
21659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21666 rm -f conftest.$ac_objext
21667 if { (ac_try="$ac_compile"
21668 case "(($ac_try" in
21669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21670 *) ac_try_echo
=$ac_try;;
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_compile") 2>conftest.er1
21675 grep -v '^ *+' conftest.er1
>conftest.err
21677 cat conftest.err
>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } && {
21680 test -z "$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 } && test -s conftest.
$ac_objext; then
21683 ac_hi
=$ac_mid; break
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.
$ac_ext >&5
21688 ac_lo
=`expr $ac_mid + 1`
21689 if test $ac_lo -le $ac_mid; then
21693 ac_mid
=`expr 2 '*' $ac_mid + 1`
21696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.
$ac_ext >&5
21702 cat >conftest.
$ac_ext <<_ACEOF
21705 cat confdefs.h
>>conftest.
$ac_ext
21706 cat >>conftest.
$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21710 typedef wchar_t ac__type_sizeof_;
21714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21721 rm -f conftest.
$ac_objext
21722 if { (ac_try
="$ac_compile"
21723 case "(($ac_try" in
21724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21730 grep -v '^ *+' conftest.er1 >conftest.err
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21748 typedef wchar_t ac__type_sizeof_;
21752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21763 *) ac_try_echo
=$ac_try;;
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21768 grep -v '^ *+' conftest.er1
>conftest.err
21770 cat conftest.err
>&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.
$ac_objext; then
21776 ac_lo
=$ac_mid; break
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.
$ac_ext >&5
21781 ac_hi
=`expr '(' $ac_mid ')' - 1`
21782 if test $ac_mid -le $ac_hi; then
21786 ac_mid
=`expr 2 '*' $ac_mid`
21789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.
$ac_ext >&5
21798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21802 # Binary search between lo and hi bounds.
21803 while test "x$ac_lo" != "x$ac_hi"; do
21804 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21805 cat >conftest.
$ac_ext <<_ACEOF
21808 cat confdefs.h
>>conftest.
$ac_ext
21809 cat >>conftest.
$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21813 typedef wchar_t ac__type_sizeof_;
21817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21824 rm -f conftest.
$ac_objext
21825 if { (ac_try
="$ac_compile"
21826 case "(($ac_try" in
21827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_compile") 2>conftest.er1
21833 grep -v '^ *+' conftest.er1 >conftest.err
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest.$ac_objext; then
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_lo=`expr '(' $ac_mid ')' + 1`
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21852 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21853 '') if test "$ac_cv_type_wchar_t" = yes; then
21854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21855 See \`config.log
' for more details." >&5
21856 echo "$as_me: error: cannot compute sizeof (wchar_t)
21857 See \`config.log' for more details.
" >&2;}
21858 { (exit 77); exit 77; }; }
21860 ac_cv_sizeof_wchar_t=0
21864 cat >conftest.$ac_ext <<_ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21872 typedef wchar_t ac__type_sizeof_;
21873 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21874 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21876 #include <stdlib.h>
21881 FILE *f = fopen ("conftest.val
", "w
");
21884 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21886 long int i = longval ();
21887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21889 fprintf (f, "%ld
\n", i);
21893 unsigned long int i = ulongval ();
21894 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21896 fprintf (f, "%lu
\n", i);
21898 return ferror (f) || fclose (f) != 0;
21904 rm -f conftest$ac_exeext
21905 if { (ac_try="$ac_link"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_link") 2>&5
21913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21915 { (case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_try") 2>&5
21922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21923 (exit $ac_status); }; }; then
21924 ac_cv_sizeof_wchar_t=`cat conftest.val`
21926 echo "$as_me: program exited with status
$ac_status" >&5
21927 echo "$as_me: failed program was
:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ( exit $ac_status )
21931 if test "$ac_cv_type_wchar_t" = yes; then
21932 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
21933 See \
`config.log' for more details." >&5
21934 echo "$as_me: error: cannot compute sizeof (wchar_t)
21935 See \`config.log
' for more details." >&2;}
21936 { (exit 77); exit 77; }; }
21938 ac_cv_sizeof_wchar_t=0
21941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21945 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21946 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21950 cat >>confdefs.h <<_ACEOF
21951 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21957 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21958 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21968 #if TCL_UTF_MAX != 6
21969 # error "NOT UCS4_TCL"
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_compile") 2>conftest.er1
21988 grep -v '^
*+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } && {
21993 test -z "$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 } && test -s conftest.$ac_objext; then
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_UCS4_TCL 1
22005 echo "$as_me: failed program was:" >&5
22006 sed 's
/^
/|
/' conftest.$ac_ext >&5
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22013 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22015 # check whether wchar_t is signed or not
22016 if test "$wchar_h" = yes
22018 # check whether wchar_t is signed or not
22019 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22020 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22021 if test "${ac_cv_wchar_t_signed+set}" = set; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 if test "$cross_compiling" = yes; then
22026 ac_cv_wchar_t_signed=yes
22028 cat >conftest.$ac_ext <<_ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22038 /* Success: exit code 0 */
22039 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22043 rm -f conftest$ac_exeext
22044 if { (ac_try="$ac_link"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_link") 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; }; then
22063 ac_cv_wchar_t_signed=yes
22065 echo "$as_me: program exited with status $ac_status" >&5
22066 echo "$as_me: failed program was:" >&5
22067 sed 's
/^
/|
/' conftest.$ac_ext >&5
22069 ( exit $ac_status )
22070 ac_cv_wchar_t_signed=no
22072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22078 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22079 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22082 { echo "$as_me:$LINENO: checking what type to use for str" >&5
22083 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
22085 # Check whether --with-wide-unicode was given.
22086 if test "${with_wide_unicode+set}" = set; then
22087 withval=$with_wide_unicode;
22088 if test "$withval" != no
22089 then unicode_size="4"
22090 else unicode_size="2"
22095 case "$have_ucs4_tcl" in
22096 yes) unicode_size="4" ;;
22097 *) unicode_size="2" ;;
22105 case "$unicode_size" in
22106 4) cat >>confdefs.h <<\_ACEOF
22107 #define Py_UNICODE_SIZE 4
22110 *) cat >>confdefs.h <<\_ACEOF
22111 #define Py_UNICODE_SIZE 2
22119 # wchar_t is only usable if it maps to an unsigned type
22120 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22121 -a "$ac_cv_wchar_t_signed" = "no"
22123 PY_UNICODE_TYPE="wchar_t"
22125 cat >>confdefs.h <<\_ACEOF
22126 #define HAVE_USABLE_WCHAR_T 1
22129 cat >>confdefs.h <<\_ACEOF
22130 #define PY_UNICODE_TYPE wchar_t
22133 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22135 PY_UNICODE_TYPE="unsigned short"
22136 cat >>confdefs.h <<\_ACEOF
22137 #define PY_UNICODE_TYPE unsigned short
22140 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22142 PY_UNICODE_TYPE="unsigned long"
22143 cat >>confdefs.h <<\_ACEOF
22144 #define PY_UNICODE_TYPE unsigned long
22148 PY_UNICODE_TYPE="no type found"
22150 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22151 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22153 # check for endianness
22154 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22155 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22156 if test "${ac_cv_c_bigendian+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22159 # See if sys/param.h defines the BYTE_ORDER macro.
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22166 #include <sys/types.h>
22167 #include <sys/param.h>
22172 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22173 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22174 bogus endian macros
22181 rm -f conftest.$ac_objext
22182 if { (ac_try="$ac_compile"
22183 case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188 (eval "$ac_compile") 2>conftest.er1
22190 grep -v '^
*+' conftest.er1 >conftest.err
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } && {
22195 test -z "$ac_c_werror_flag" ||
22196 test ! -s conftest.err
22197 } && test -s conftest.$ac_objext; then
22198 # It does; now see whether it defined to BIG_ENDIAN or not.
22199 cat >conftest.$ac_ext <<_ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 #include <sys/types.h>
22206 #include <sys/param.h>
22211 #if BYTE_ORDER != BIG_ENDIAN
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22228 grep -v '^
*+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.$ac_objext; then
22236 ac_cv_c_bigendian=yes
22238 echo "$as_me: failed program was:" >&5
22239 sed 's
/^
/|
/' conftest.$ac_ext >&5
22241 ac_cv_c_bigendian=no
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 echo "$as_me: failed program was:" >&5
22247 sed 's
/^
/|
/' conftest.$ac_ext >&5
22249 # It does not; compile a test program.
22250 if test "$cross_compiling" = yes; then
22251 # try to guess the endianness by grepping values into an object file
22252 ac_cv_c_bigendian=unknown
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22260 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22261 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22262 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22263 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22264 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22268 _ascii (); _ebcdic ();
22273 rm -f conftest.$ac_objext
22274 if { (ac_try="$ac_compile"
22275 case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_compile") 2>conftest.er1
22282 grep -v '^
*+' conftest.er1 >conftest.err
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest.$ac_objext; then
22290 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22291 ac_cv_c_bigendian=yes
22293 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22294 if test "$ac_cv_c_bigendian" = unknown; then
22295 ac_cv_c_bigendian=no
22297 # finding both strings is unlikely to happen, but who knows?
22298 ac_cv_c_bigendian=unknown
22302 echo "$as_me: failed program was:" >&5
22303 sed 's
/^
/|
/' conftest.$ac_ext >&5
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310 cat >conftest.$ac_ext <<_ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22316 $ac_includes_default
22321 /* Are we little or big endian? From Harbison&Steele. */
22325 char c[sizeof (long int)];
22328 return u.c[sizeof (long int) - 1] == 1;
22334 rm -f conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_link") 2>&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22345 { (case "(($ac_try" in
22346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_try") 2>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22354 ac_cv_c_bigendian=no
22356 echo "$as_me: program exited with status $ac_status" >&5
22357 echo "$as_me: failed program was:" >&5
22358 sed 's
/^
/|
/' conftest.$ac_ext >&5
22360 ( exit $ac_status )
22361 ac_cv_c_bigendian=yes
22363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22371 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22373 case $ac_cv_c_bigendian in
22376 cat >>confdefs.h <<\_ACEOF
22377 #define WORDS_BIGENDIAN 1
22383 { { echo "$as_me:$LINENO: error: unknown endianness
22384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22385 echo "$as_me: error: unknown endianness
22386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22387 { (exit 1); exit 1; }; } ;;
22393 # Check whether right shifting a negative integer extends the sign bit
22394 # or fills with zeros (like the Cray J90, according to Tim Peters).
22395 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22396 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22397 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 if test "$cross_compiling" = yes; then
22402 ac_cv_rshift_extends_sign=yes
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22413 exit(((-1)>>3 == -1) ? 0 : 1);
22417 rm -f conftest$ac_exeext
22418 if { (ac_try="$ac_link"
22419 case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_link") 2>&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22428 { (case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_try") 2>&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); }; }; then
22437 ac_cv_rshift_extends_sign=yes
22439 echo "$as_me: program exited with status $ac_status" >&5
22440 echo "$as_me: failed program was:" >&5
22441 sed 's
/^
/|
/' conftest.$ac_ext >&5
22443 ( exit $ac_status )
22444 ac_cv_rshift_extends_sign=no
22446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22453 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22454 if test "$ac_cv_rshift_extends_sign" = no
22457 cat >>confdefs.h <<\_ACEOF
22458 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22463 # check for getc_unlocked and related locking functions
22464 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22465 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22466 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 cat >conftest.$ac_ext <<_ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22481 FILE *f = fopen("/dev/null", "r");
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_link") 2>conftest.er1
22499 grep -v '^
*+' conftest.er1 >conftest.err
22501 cat conftest.err >&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); } && {
22504 test -z "$ac_c_werror_flag" ||
22505 test ! -s conftest.err
22506 } && test -s conftest$ac_exeext &&
22507 $as_test_x conftest$ac_exeext; then
22508 ac_cv_have_getc_unlocked=yes
22510 echo "$as_me: failed program was:" >&5
22511 sed 's
/^
/|
/' conftest.$ac_ext >&5
22513 ac_cv_have_getc_unlocked=no
22516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22517 conftest$ac_exeext conftest.$ac_ext
22520 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22521 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22522 if test "$ac_cv_have_getc_unlocked" = yes
22525 cat >>confdefs.h <<\_ACEOF
22526 #define HAVE_GETC_UNLOCKED 1
22531 # check where readline lives
22532 # save the value of LIBS so we don't actually link Python with readline
22533 LIBS_no_readline
=$LIBS
22535 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22536 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22537 if test "${ac_cv_lib_readline_readline+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22540 ac_check_lib_save_LIBS
=$LIBS
22541 LIBS
="-lreadline $LIBS"
22542 cat >conftest.
$ac_ext <<_ACEOF
22545 cat confdefs.h
>>conftest.
$ac_ext
22546 cat >>conftest.
$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22549 /* Override any GCC internal prototype to avoid an error.
22550 Use char because int might match the return type of a GCC
22551 builtin and then its argument prototype would still apply. */
22559 return readline ();
22564 rm -f conftest.
$ac_objext conftest
$ac_exeext
22565 if { (ac_try
="$ac_link"
22566 case "(($ac_try" in
22567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_link") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest$ac_exeext &&
22581 $as_test_x conftest$ac_exeext; then
22582 ac_cv_lib_readline_readline=yes
22584 echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22587 ac_cv_lib_readline_readline=no
22590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22591 conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22594 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22595 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22596 if test $ac_cv_lib_readline_readline = yes; then
22597 cat >>confdefs.h <<_ACEOF
22598 #define HAVE_LIBREADLINE 1
22601 LIBS="-lreadline $LIBS"
22605 if test "$ac_cv_have_readline_readline" = no
22608 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22609 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22610 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22613 ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-ltermcap $LIBS"
22615 cat >conftest.$ac_ext <<_ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h. */
22622 /* Override any GCC internal prototype to avoid an error.
22623 Use char because int might match the return type of a GCC
22624 builtin and then its argument prototype would still apply. */
22632 return readline ();
22637 rm -f conftest.$ac_objext conftest$ac_exeext
22638 if { (ac_try="$ac_link"
22639 case "(($ac_try" in
22640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22641 *) ac_try_echo
=$ac_try;;
22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_link") 2>conftest.er1
22646 grep -v '^ *+' conftest.er1
>conftest.err
22648 cat conftest.err
>&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest
$ac_exeext &&
22654 $as_test_x conftest
$ac_exeext; then
22655 ac_cv_lib_termcap_readline
=yes
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.
$ac_ext >&5
22660 ac_cv_lib_termcap_readline
=no
22663 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22664 conftest
$ac_exeext conftest.
$ac_ext
22665 LIBS
=$ac_check_lib_save_LIBS
22667 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22668 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22669 if test $ac_cv_lib_termcap_readline = yes; then
22670 cat >>confdefs.h
<<_ACEOF
22671 #define HAVE_LIBTERMCAP 1
22674 LIBS
="-ltermcap $LIBS"
22680 # check for readline 2.1
22681 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22682 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22683 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22684 echo $ECHO_N "(cached) $ECHO_C" >&6
22686 ac_check_lib_save_LIBS
=$LIBS
22687 LIBS
="-lreadline $LIBS"
22688 cat >conftest.
$ac_ext <<_ACEOF
22691 cat confdefs.h
>>conftest.
$ac_ext
22692 cat >>conftest.
$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22695 /* Override any GCC internal prototype to avoid an error.
22696 Use char because int might match the return type of a GCC
22697 builtin and then its argument prototype would still apply. */
22701 char rl_callback_handler_install ();
22705 return rl_callback_handler_install ();
22710 rm -f conftest.
$ac_objext conftest
$ac_exeext
22711 if { (ac_try
="$ac_link"
22712 case "(($ac_try" in
22713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_link") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest$ac_exeext &&
22727 $as_test_x conftest$ac_exeext; then
22728 ac_cv_lib_readline_rl_callback_handler_install=yes
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_cv_lib_readline_rl_callback_handler_install=no
22736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22737 conftest$ac_exeext conftest.$ac_ext
22738 LIBS=$ac_check_lib_save_LIBS
22740 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22741 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22742 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_RL_CALLBACK 1
22751 # check for readline 2.2
22752 cat >conftest.$ac_ext <<_ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h. */
22758 #include <readline/readline.h>
22760 if { (ac_try="$ac_cpp conftest.$ac_ext"
22761 case "(($ac_try" in
22762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22763 *) ac_try_echo
=$ac_try;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22768 grep -v '^ *+' conftest.er1
>conftest.err
22770 cat conftest.err
>&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } >/dev
/null
&& {
22773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.
$ac_ext >&5
22784 rm -f conftest.err conftest.
$ac_ext
22785 if test $have_readline = yes
22787 cat >conftest.
$ac_ext <<_ACEOF
22790 cat confdefs.h
>>conftest.
$ac_ext
22791 cat >>conftest.
$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 #include <readline/readline.h>
22796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22797 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
22799 cat >>confdefs.h
<<\_ACEOF
22800 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22808 # check for readline 4.0
22809 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22810 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22811 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22812 echo $ECHO_N "(cached) $ECHO_C" >&6
22814 ac_check_lib_save_LIBS
=$LIBS
22815 LIBS
="-lreadline $LIBS"
22816 cat >conftest.
$ac_ext <<_ACEOF
22819 cat confdefs.h
>>conftest.
$ac_ext
22820 cat >>conftest.
$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22823 /* Override any GCC internal prototype to avoid an error.
22824 Use char because int might match the return type of a GCC
22825 builtin and then its argument prototype would still apply. */
22829 char rl_pre_input_hook ();
22833 return rl_pre_input_hook ();
22838 rm -f conftest.
$ac_objext conftest
$ac_exeext
22839 if { (ac_try
="$ac_link"
22840 case "(($ac_try" in
22841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_link") 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest$ac_exeext &&
22855 $as_test_x conftest$ac_exeext; then
22856 ac_cv_lib_readline_rl_pre_input_hook=yes
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 ac_cv_lib_readline_rl_pre_input_hook=no
22864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22865 conftest$ac_exeext conftest.$ac_ext
22866 LIBS=$ac_check_lib_save_LIBS
22868 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22869 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22870 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22872 cat >>confdefs.h <<\_ACEOF
22873 #define HAVE_RL_PRE_INPUT_HOOK 1
22880 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22881 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22882 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 ac_check_lib_save_LIBS=$LIBS
22886 LIBS="-lreadline $LIBS"
22887 cat >conftest.$ac_ext <<_ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22894 /* Override any GCC internal prototype to avoid an error.
22895 Use char because int might match the return type of a GCC
22896 builtin and then its argument prototype would still apply. */
22900 char rl_completion_display_matches_hook ();
22904 return rl_completion_display_matches_hook ();
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22913 *) ac_try_echo
=$ac_try;;
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_link") 2>conftest.er1
22918 grep -v '^ *+' conftest.er1
>conftest.err
22920 cat conftest.err
>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } && {
22923 test -z "$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 } && test -s conftest
$ac_exeext &&
22926 $as_test_x conftest
$ac_exeext; then
22927 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.
$ac_ext >&5
22932 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
22935 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22936 conftest
$ac_exeext conftest.
$ac_ext
22937 LIBS
=$ac_check_lib_save_LIBS
22939 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22940 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22941 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22943 cat >>confdefs.h
<<\_ACEOF
22944 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22950 # check for readline 4.2
22951 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22952 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22953 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22956 ac_check_lib_save_LIBS
=$LIBS
22957 LIBS
="-lreadline $LIBS"
22958 cat >conftest.
$ac_ext <<_ACEOF
22961 cat confdefs.h
>>conftest.
$ac_ext
22962 cat >>conftest.
$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22965 /* Override any GCC internal prototype to avoid an error.
22966 Use char because int might match the return type of a GCC
22967 builtin and then its argument prototype would still apply. */
22971 char rl_completion_matches ();
22975 return rl_completion_matches ();
22980 rm -f conftest.
$ac_objext conftest
$ac_exeext
22981 if { (ac_try
="$ac_link"
22982 case "(($ac_try" in
22983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_link") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest$ac_exeext &&
22997 $as_test_x conftest$ac_exeext; then
22998 ac_cv_lib_readline_rl_completion_matches=yes
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_cv_lib_readline_rl_completion_matches=no
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007 conftest$ac_exeext conftest.$ac_ext
23008 LIBS=$ac_check_lib_save_LIBS
23010 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23011 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23012 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_RL_COMPLETION_MATCHES 1
23021 # also in readline 4.2
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 #include <readline/readline.h>
23030 if { (ac_try="$ac_cpp conftest.$ac_ext"
23031 case "(($ac_try" in
23032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23033 *) ac_try_echo
=$ac_try;;
23035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23038 grep -v '^ *+' conftest.er1
>conftest.err
23040 cat conftest.err
>&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } >/dev
/null
&& {
23043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23044 test ! -s conftest.err
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.
$ac_ext >&5
23054 rm -f conftest.err conftest.
$ac_ext
23055 if test $have_readline = yes
23057 cat >conftest.
$ac_ext <<_ACEOF
23060 cat confdefs.h
>>conftest.
$ac_ext
23061 cat >>conftest.
$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 #include <readline/readline.h>
23066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23067 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
23069 cat >>confdefs.h
<<\_ACEOF
23070 #define HAVE_RL_CATCH_SIGNAL 1
23078 # End of readline checks: restore LIBS
23079 LIBS
=$LIBS_no_readline
23081 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23082 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23083 if test "${ac_cv_broken_nice+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 if test "$cross_compiling" = yes; then
23088 ac_cv_broken_nice
=no
23090 cat >conftest.
$ac_ext <<_ACEOF
23093 cat confdefs.h
>>conftest.
$ac_ext
23094 cat >>conftest.
$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23099 int val1 = nice(1);
23100 if (val1 != -1 && val1 == nice(2))
23106 rm -f conftest
$ac_exeext
23107 if { (ac_try
="$ac_link"
23108 case "(($ac_try" in
23109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113 (eval "$ac_link") 2>&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23117 { (case "(($ac_try" in
23118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23119 *) ac_try_echo
=$ac_try;;
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_try") 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; }; then
23126 ac_cv_broken_nice
=yes
23128 echo "$as_me: program exited with status $ac_status" >&5
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.
$ac_ext >&5
23132 ( exit $ac_status )
23133 ac_cv_broken_nice
=no
23135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23142 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23143 if test "$ac_cv_broken_nice" = yes
23146 cat >>confdefs.h
<<\_ACEOF
23147 #define HAVE_BROKEN_NICE 1
23152 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23153 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23154 if test "$cross_compiling" = yes; then
23155 ac_cv_broken_poll
=no
23157 cat >conftest.
$ac_ext <<_ACEOF
23160 cat confdefs.h
>>conftest.
$ac_ext
23161 cat >>conftest.
$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23168 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23172 int poll_test = poll (&poll_struct, 1, 0);
23178 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23189 rm -f conftest
$ac_exeext
23190 if { (ac_try
="$ac_link"
23191 case "(($ac_try" in
23192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_link") 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23200 { (case "(($ac_try" in
23201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23202 *) ac_try_echo
=$ac_try;;
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_try") 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 ac_cv_broken_poll
=yes
23211 echo "$as_me: program exited with status $ac_status" >&5
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.
$ac_ext >&5
23215 ( exit $ac_status )
23216 ac_cv_broken_poll
=no
23218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23222 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23223 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23224 if test "$ac_cv_broken_poll" = yes
23227 cat >>confdefs.h
<<\_ACEOF
23228 #define HAVE_BROKEN_POLL 1
23233 # Before we can test tzset, we need to check if struct tm has a tm_zone
23234 # (which is not required by ISO C or UNIX spec) and/or if we support
23236 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23237 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23238 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 cat >conftest.
$ac_ext <<_ACEOF
23244 cat confdefs.h
>>conftest.
$ac_ext
23245 cat >>conftest.
$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include <sys/types.h>
23248 #include <$ac_cv_struct_tm>
23254 static struct tm ac_aggr;
23255 if (ac_aggr.tm_zone)
23261 rm -f conftest.
$ac_objext
23262 if { (ac_try
="$ac_compile"
23263 case "(($ac_try" in
23264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23270 grep -v '^ *+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest.$ac_objext; then
23278 ac_cv_member_struct_tm_tm_zone=yes
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 cat >conftest.$ac_ext <<_ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h. */
23289 #include <sys/types.h>
23290 #include <$ac_cv_struct_tm>
23296 static struct tm ac_aggr;
23297 if (sizeof ac_aggr.tm_zone)
23303 rm -f conftest.$ac_objext
23304 if { (ac_try="$ac_compile"
23305 case "(($ac_try" in
23306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23307 *) ac_try_echo
=$ac_try;;
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_compile") 2>conftest.er1
23312 grep -v '^ *+' conftest.er1
>conftest.err
23314 cat conftest.err
>&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && {
23317 test -z "$ac_c_werror_flag" ||
23318 test ! -s conftest.err
23319 } && test -s conftest.
$ac_objext; then
23320 ac_cv_member_struct_tm_tm_zone
=yes
23322 echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.
$ac_ext >&5
23325 ac_cv_member_struct_tm_tm_zone
=no
23328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23333 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23334 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23335 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23337 cat >>confdefs.h
<<_ACEOF
23338 #define HAVE_STRUCT_TM_TM_ZONE 1
23344 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23346 cat >>confdefs.h
<<\_ACEOF
23347 #define HAVE_TM_ZONE 1
23351 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23352 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23353 if test "${ac_cv_have_decl_tzname+set}" = set; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
23356 cat >conftest.
$ac_ext <<_ACEOF
23359 cat confdefs.h
>>conftest.
$ac_ext
23360 cat >>conftest.
$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23375 rm -f conftest.
$ac_objext
23376 if { (ac_try
="$ac_compile"
23377 case "(($ac_try" in
23378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23379 *) ac_try_echo=$ac_try;;
23381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23382 (eval "$ac_compile") 2>conftest.er1
23384 grep -v '^ *+' conftest.er1 >conftest.err
23386 cat conftest.err >&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } && {
23389 test -z "$ac_c_werror_flag" ||
23390 test ! -s conftest.err
23391 } && test -s conftest.$ac_objext; then
23392 ac_cv_have_decl_tzname=yes
23394 echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23397 ac_cv_have_decl_tzname=no
23400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23403 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23404 if test $ac_cv_have_decl_tzname = yes; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define HAVE_DECL_TZNAME 1
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_DECL_TZNAME 0
23420 { echo "$as_me:$LINENO: checking for tzname" >&5
23421 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23422 if test "${ac_cv_var_tzname+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23432 #if !HAVE_DECL_TZNAME
23433 extern char *tzname[];
23439 return tzname[0][0];
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23448 *) ac_try_echo
=$ac_try;;
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>conftest.er1
23453 grep -v '^ *+' conftest.er1
>conftest.err
23455 cat conftest.err
>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest
$ac_exeext &&
23461 $as_test_x conftest
$ac_exeext; then
23462 ac_cv_var_tzname
=yes
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.
$ac_ext >&5
23467 ac_cv_var_tzname
=no
23470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23471 conftest
$ac_exeext conftest.
$ac_ext
23473 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23474 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23475 if test $ac_cv_var_tzname = yes; then
23477 cat >>confdefs.h
<<\_ACEOF
23478 #define HAVE_TZNAME 1
23485 # check tzset(3) exists and works like we expect it to
23486 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23487 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23488 if test "${ac_cv_working_tzset+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 if test "$cross_compiling" = yes; then
23493 ac_cv_working_tzset
=no
23495 cat >conftest.
$ac_ext <<_ACEOF
23498 cat confdefs.h
>>conftest.
$ac_ext
23499 cat >>conftest.
$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23502 #include <stdlib.h>
23504 #include <string.h>
23507 extern char *tzname[];
23512 /* Note that we need to ensure that not only does tzset(3)
23513 do 'something' with localtime, but it works as documented
23514 in the library reference and as expected by the test suite.
23515 This includes making sure that tzname is set properly if
23516 tm->tm_zone does not exist since it is the alternative way
23517 of getting timezone info.
23519 Red Hat 6.2 doesn't understand the southern hemisphere
23520 after New Year's Day.
23523 time_t groundhogday = 1044144000; /* GMT-based */
23524 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23526 putenv("TZ=UTC+0");
23528 if (localtime(&groundhogday)->tm_hour != 0)
23531 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23532 if (strcmp(tzname[0], "UTC") ||
23533 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23537 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23539 if (localtime(&groundhogday)->tm_hour != 19)
23542 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23546 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23548 if (localtime(&groundhogday)->tm_hour != 11)
23551 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23555 #if HAVE_STRUCT_TM_TM_ZONE
23556 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23558 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23566 rm -f conftest
$ac_exeext
23567 if { (ac_try
="$ac_link"
23568 case "(($ac_try" in
23569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_link") 2>&5
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }; then
23586 ac_cv_working_tzset
=yes
23588 echo "$as_me: program exited with status $ac_status" >&5
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.
$ac_ext >&5
23592 ( exit $ac_status )
23593 ac_cv_working_tzset
=no
23595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23601 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23602 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23603 if test "$ac_cv_working_tzset" = yes
23606 cat >>confdefs.h
<<\_ACEOF
23607 #define HAVE_WORKING_TZSET 1
23612 # Look for subsecond timestamps in struct stat
23613 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23614 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23615 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23618 cat >conftest.
$ac_ext <<_ACEOF
23621 cat confdefs.h
>>conftest.
$ac_ext
23622 cat >>conftest.
$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 #include <sys/stat.h>
23630 st.st_mtim.tv_nsec = 1;
23636 rm -f conftest.
$ac_objext
23637 if { (ac_try
="$ac_compile"
23638 case "(($ac_try" in
23639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_compile") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest.$ac_objext; then
23653 ac_cv_stat_tv_nsec=yes
23655 echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23658 ac_cv_stat_tv_nsec=no
23661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23664 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23665 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23666 if test "$ac_cv_stat_tv_nsec" = yes
23669 cat >>confdefs.h <<\_ACEOF
23670 #define HAVE_STAT_TV_NSEC 1
23675 # Look for BSD style subsecond timestamps in struct stat
23676 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23677 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23678 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 cat >conftest.$ac_ext <<_ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 #include <sys/stat.h>
23693 st.st_mtimespec.tv_nsec = 1;
23699 rm -f conftest.$ac_objext
23700 if { (ac_try="$ac_compile"
23701 case "(($ac_try" in
23702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23703 *) ac_try_echo
=$ac_try;;
23705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23706 (eval "$ac_compile") 2>conftest.er1
23708 grep -v '^ *+' conftest.er1
>conftest.err
23710 cat conftest.err
>&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest.
$ac_objext; then
23716 ac_cv_stat_tv_nsec2
=yes
23718 echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.
$ac_ext >&5
23721 ac_cv_stat_tv_nsec2
=no
23724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23727 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23728 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23729 if test "$ac_cv_stat_tv_nsec2" = yes
23732 cat >>confdefs.h
<<\_ACEOF
23733 #define HAVE_STAT_TV_NSEC2 1
23738 # On HP/UX 11.0, mvwdelch is a block with a return statement
23739 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23740 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23741 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23742 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 cat >conftest.
$ac_ext <<_ACEOF
23747 cat confdefs.h
>>conftest.
$ac_ext
23748 cat >>conftest.
$ac_ext <<_ACEOF
23749 /* end confdefs.h. */
23750 #include <curses.h>
23756 rtn = mvwdelch(0,0,0);
23762 rm -f conftest.
$ac_objext
23763 if { (ac_try
="$ac_compile"
23764 case "(($ac_try" in
23765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23766 *) ac_try_echo=$ac_try;;
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769 (eval "$ac_compile") 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } && {
23776 test -z "$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23778 } && test -s conftest.$ac_objext; then
23779 ac_cv_mvwdelch_is_expression=yes
23781 echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_cv_mvwdelch_is_expression=no
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23791 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23793 if test "$ac_cv_mvwdelch_is_expression" = yes
23796 cat >>confdefs.h <<\_ACEOF
23797 #define MVWDELCH_IS_EXPRESSION 1
23802 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23803 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23804 if test "${ac_cv_window_has_flags+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 cat >conftest.$ac_ext <<_ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h. */
23813 #include <curses.h>
23825 rm -f conftest.$ac_objext
23826 if { (ac_try="$ac_compile"
23827 case "(($ac_try" in
23828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23829 *) ac_try_echo
=$ac_try;;
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832 (eval "$ac_compile") 2>conftest.er1
23834 grep -v '^ *+' conftest.er1
>conftest.err
23836 cat conftest.err
>&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } && {
23839 test -z "$ac_c_werror_flag" ||
23840 test ! -s conftest.err
23841 } && test -s conftest.
$ac_objext; then
23842 ac_cv_window_has_flags
=yes
23844 echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.
$ac_ext >&5
23847 ac_cv_window_has_flags
=no
23850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23853 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23854 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23857 if test "$ac_cv_window_has_flags" = yes
23860 cat >>confdefs.h
<<\_ACEOF
23861 #define WINDOW_HAS_FLAGS 1
23866 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23867 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23868 cat >conftest.
$ac_ext <<_ACEOF
23871 cat confdefs.h
>>conftest.
$ac_ext
23872 cat >>conftest.
$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 #include <curses.h>
23878 void *x=is_term_resized
23883 rm -f conftest.
$ac_objext
23884 if { (ac_try
="$ac_compile"
23885 case "(($ac_try" in
23886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23887 *) ac_try_echo=$ac_try;;
23889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890 (eval "$ac_compile") 2>conftest.er1
23892 grep -v '^ *+' conftest.er1 >conftest.err
23894 cat conftest.err >&5
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } && {
23897 test -z "$ac_c_werror_flag" ||
23898 test ! -s conftest.err
23899 } && test -s conftest.$ac_objext; then
23901 cat >>confdefs.h <<\_ACEOF
23902 #define HAVE_CURSES_IS_TERM_RESIZED 1
23905 { echo "$as_me:$LINENO: result: yes" >&5
23906 echo "${ECHO_T}yes" >&6; }
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911 { echo "$as_me:$LINENO: result: no" >&5
23912 echo "${ECHO_T}no" >&6; }
23916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23918 { echo "$as_me:$LINENO: checking for resize_term" >&5
23919 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23920 cat >conftest.$ac_ext <<_ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 #include <curses.h>
23930 void *x=resize_term
23935 rm -f conftest.$ac_objext
23936 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23944 grep -v '^ *+' conftest.er1
>conftest.err
23946 cat conftest.err
>&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } && {
23949 test -z "$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23951 } && test -s conftest.
$ac_objext; then
23953 cat >>confdefs.h
<<\_ACEOF
23954 #define HAVE_CURSES_RESIZE_TERM 1
23957 { echo "$as_me:$LINENO: result: yes" >&5
23958 echo "${ECHO_T}yes" >&6; }
23960 echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.
$ac_ext >&5
23963 { echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6; }
23968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23970 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23971 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23972 cat >conftest.
$ac_ext <<_ACEOF
23975 cat confdefs.h
>>conftest.
$ac_ext
23976 cat >>conftest.
$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23978 #include <curses.h>
23987 rm -f conftest.
$ac_objext
23988 if { (ac_try
="$ac_compile"
23989 case "(($ac_try" in
23990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23991 *) ac_try_echo=$ac_try;;
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23996 grep -v '^ *+' conftest.er1 >conftest.err
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } && {
24001 test -z "$ac_c_werror_flag" ||
24002 test ! -s conftest.err
24003 } && test -s conftest.$ac_objext; then
24005 cat >>confdefs.h <<\_ACEOF
24006 #define HAVE_CURSES_RESIZETERM 1
24009 { echo "$as_me:$LINENO: result: yes" >&5
24010 echo "${ECHO_T}yes" >&6; }
24012 echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 { echo "$as_me:$LINENO: result: no" >&5
24016 echo "${ECHO_T}no" >&6; }
24020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24022 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24023 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24025 if test -r /dev/ptmx
24027 { echo "$as_me:$LINENO: result: yes" >&5
24028 echo "${ECHO_T}yes" >&6; }
24030 cat >>confdefs.h <<\_ACEOF
24031 #define HAVE_DEV_PTMX 1
24035 { echo "$as_me:$LINENO: result: no" >&5
24036 echo "${ECHO_T}no" >&6; }
24039 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24040 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24042 if test -r /dev/ptc
24044 { echo "$as_me:$LINENO: result: yes" >&5
24045 echo "${ECHO_T}yes" >&6; }
24047 cat >>confdefs.h <<\_ACEOF
24048 #define HAVE_DEV_PTC 1
24052 { echo "$as_me:$LINENO: result: no" >&5
24053 echo "${ECHO_T}no" >&6; }
24056 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24057 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24058 if test "$cross_compiling" = yes; then
24059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24060 See \`config.log
' for more details." >&5
24061 echo "$as_me: error: cannot run test program while cross compiling
24062 See \`config.log' for more details.
" >&2;}
24063 { (exit 1); exit 1; }; }
24065 cat >conftest.$ac_ext <<_ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24072 #include <stddef.h>
24073 #include <string.h>
24075 #ifdef HAVE_SYS_TYPES_H
24076 #include <sys/types.h>
24079 #ifdef HAVE_SSIZE_T
24080 typedef ssize_t Py_ssize_t;
24081 #elif SIZEOF_VOID_P == SIZEOF_LONG
24082 typedef long Py_ssize_t;
24084 typedef int Py_ssize_t;
24091 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
24094 if (strcmp(buffer, "123"))
24097 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
24100 if (strcmp(buffer, "-123"))
24106 rm -f conftest$ac_exeext
24107 if { (ac_try="$ac_link"
24108 case "(($ac_try" in
24109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24110 *) ac_try_echo=$ac_try;;
24112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24113 (eval "$ac_link") 2>&5
24115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24117 { (case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24122 (eval "$ac_try") 2>&5
24124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24125 (exit $ac_status); }; }; then
24126 { echo "$as_me:$LINENO: result
: yes" >&5
24127 echo "${ECHO_T}yes" >&6; }
24129 cat >>confdefs.h <<\_ACEOF
24130 #define PY_FORMAT_SIZE_T "z
"
24134 echo "$as_me: program exited with status
$ac_status" >&5
24135 echo "$as_me: failed program was
:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24138 ( exit $ac_status )
24139 { echo "$as_me:$LINENO: result
: no
" >&5
24140 echo "${ECHO_T}no
" >&6; }
24142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24147 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
24148 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
24149 if test "${ac_cv_type_socklen_t+set}" = set; then
24150 echo $ECHO_N "(cached
) $ECHO_C" >&6
24152 cat >conftest.$ac_ext <<_ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24159 #ifdef HAVE_SYS_TYPES_H
24160 #include <sys/types.h>
24162 #ifdef HAVE_SYS_SOCKET_H
24163 #include <sys/socket.h>
24167 typedef socklen_t ac__type_new_;
24171 if ((ac__type_new_ *) 0)
24173 if (sizeof (ac__type_new_))
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24186 (eval "$ac_compile") 2>conftest.er1
24188 grep -v '^ *+' conftest.er1 >conftest.err
24190 cat conftest.err >&5
24191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24192 (exit $ac_status); } && {
24193 test -z "$ac_c_werror_flag" ||
24194 test ! -s conftest.err
24195 } && test -s conftest.$ac_objext; then
24196 ac_cv_type_socklen_t=yes
24198 echo "$as_me: failed program was
:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ac_cv_type_socklen_t=no
24204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
24207 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24208 if test $ac_cv_type_socklen_t = yes; then
24212 cat >>confdefs.h <<\_ACEOF
24213 #define socklen_t int
24221 for h in `(cd $srcdir;echo Python/thread_*.h)`
24223 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
24227 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
24228 { echo "$as_me:$LINENO: checking
for build directories
" >&5
24229 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
24230 for dir in $SRCDIRS; do
24231 if test ! -d $dir; then
24235 { echo "$as_me:$LINENO: result
: done" >&5
24236 echo "${ECHO_T}done" >&6; }
24238 # generate output files
24239 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config
"
24241 cat >confcache <<\_ACEOF
24242 # This file is a shell script that caches the results of configure
24243 # tests run on this system so they can be shared between configure
24244 # scripts and configure runs, see configure's option --config-cache.
24245 # It is not useful on other systems. If it contains results you don't
24246 # want to keep, you may remove or edit it.
24248 # config.status only pays attention to the cache file if you give it
24249 # the --recheck option to rerun configure.
24251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24253 # following values.
24257 # The following way of writing the cache mishandles newlines in values,
24258 # but we know of no workaround that is simple, portable, and efficient.
24259 # So, we kill variables containing newlines.
24260 # Ultrix sh set writes to stderr and can't be redirected directly,
24261 # and sets the high bit in the cache file unless we assign to the vars.
24263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24264 eval ac_val=\$$ac_var
24268 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24269 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24272 _ | IFS | as_nl) ;; #(
24273 *) $as_unset $ac_var ;;
24279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24280 *${as_nl}ac_space=\ *)
24281 # `set' does not quote correctly, so add quotes (double-quote
24282 # substitution turns \\\\ into \\, and sed turns \\ into \).
24285 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24288 # `set' quotes correctly as required by POSIX, so do not add quotes.
24289 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24303 if test -w "$cache_file"; then
24304 test "x
$cache_file" != "x
/dev
/null
" &&
24305 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24306 echo "$as_me: updating cache
$cache_file" >&6;}
24307 cat confcache >$cache_file
24309 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24310 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24315 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24316 # Let make expand exec_prefix.
24317 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24319 DEFS=-DHAVE_CONFIG_H
24323 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24324 # 1. Remove the extension, and $U if already installed.
24325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24326 ac_i=`echo "$ac_i" | sed "$ac_script"`
24327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24328 # will be set to the directory where LIBOBJS objects are built.
24329 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24330 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24332 LIBOBJS=$ac_libobjs
24334 LTLIBOBJS=$ac_ltlibobjs
24338 : ${CONFIG_STATUS=./config.status}
24339 ac_clean_files_save=$ac_clean_files
24340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24341 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24342 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24343 cat >$CONFIG_STATUS <<_ACEOF
24345 # Generated by $as_me.
24346 # Run this file to recreate the current configuration.
24347 # Compiler output produced by configure, useful for debugging
24348 # configure, is in config.log if it exists.
24351 ac_cs_recheck=false
24353 SHELL=\${CONFIG_SHELL-$SHELL}
24356 cat >>$CONFIG_STATUS <<\_ACEOF
24357 ## --------------------- ##
24358 ## M4sh Initialization. ##
24359 ## --------------------- ##
24361 # Be more Bourne compatible
24362 DUALCASE=1; export DUALCASE # for MKS sh
24363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24366 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24367 # is contrary to our usage. Disable this feature.
24368 alias -g '${1+"$@"}'='"$@
"'
24369 setopt NO_GLOB_SUBST
24371 case `(set -o) 2>/dev/null` in
24372 *posix*) set -o posix ;;
24381 # Avoid depending upon Character Ranges.
24382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24385 as_cr_digits='0123456789'
24386 as_cr_alnum=$as_cr_Letters$as_cr_digits
24388 # The user is always right.
24389 if test "${PATH_SEPARATOR+set}" != set; then
24390 echo "#! /bin/sh" >conf$$.sh
24391 echo "exit 0" >>conf$$.sh
24393 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24401 # Support unset when possible.
24402 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24410 # We need space, tab and new line, in precisely that order. Quoting is
24411 # there to prevent editors from complaining about space-tab.
24412 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24413 # splitting by setting IFS to empty value.)
24418 # Find who we are. Look in the path if we contain no directory separator.
24420 *[\\/]* ) as_myself
=$0 ;;
24421 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24422 for as_dir
in $PATH
24425 test -z "$as_dir" && as_dir
=.
24426 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24432 # We did not find ourselves, most probably we were run as `sh COMMAND'
24433 # in which case we are not to be found in the path.
24434 if test "x$as_myself" = x
; then
24437 if test ! -f "$as_myself"; then
24438 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24439 { (exit 1); exit 1; }
24442 # Work around bugs in pre-3.0 UWIN ksh.
24443 for as_var
in ENV MAIL MAILPATH
24444 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24454 LC_TELEPHONE LC_TIME
24456 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24457 eval $as_var=C
; export $as_var
24459 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24463 # Required to use basename.
24464 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24465 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24471 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24472 as_basename
=basename
24478 # Name of the executable.
24479 as_me
=`$as_basename -- "$0" ||
24480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24481 X"$0" : 'X\(//\)$' \| \
24482 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24484 sed '/^.*\/\([^/][^/]*\)\/*$/{
24503 as_lineno_1
=$LINENO
24504 as_lineno_2
=$LINENO
24505 test "x$as_lineno_1" != "x$as_lineno_2" &&
24506 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24508 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24509 # uniformly replaced by the line number. The first 'sed' inserts a
24510 # line-number line after each line using $LINENO; the second 'sed'
24511 # does the real work. The second script uses 'N' to pair each
24512 # line-number line with the line containing $LINENO, and appends
24513 # trailing '-' during substitution so that $LINENO is not a special
24514 # case at line end.
24515 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24516 # scripts with optimization help from Paolo Bonzini. Blame Lee
24517 # E. McMahon (1931-1989) for sed's syntax. :-)
24529 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24532 ' >$as_me.lineno
&&
24533 chmod +x
"$as_me.lineno" ||
24534 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24535 { (exit 1); exit 1; }; }
24537 # Don't try to exec as it changes $[0], causing all sort of problems
24538 # (the dirname of $[0] is not the place where we might find the
24539 # original and so on. Autoconf is especially sensitive to this).
24540 .
"./$as_me.lineno"
24541 # Exit status is that of the last command.
24546 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24552 ECHO_C
= ECHO_N
= ECHO_T
=
24553 case `echo -n x` in
24555 case `echo 'x\c'` in
24556 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24563 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24564 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24570 rm -f conf$$ conf$$.exe conf$$.
file
24571 if test -d conf$$.dir
; then
24572 rm -f conf$$.dir
/conf$$.
file
24578 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24580 # ... but there are two gotchas:
24581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24583 # In both cases, we have to default to `cp -p'.
24584 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24586 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24591 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24592 rmdir conf$$.dir
2>/dev
/null
24594 if mkdir
-p .
2>/dev
/null
; then
24597 test -d .
/-p && rmdir .
/-p
24601 if test -x / >/dev
/null
2>&1; then
24602 as_test_x
='test -x'
24604 if ls -dL / >/dev
/null
2>&1; then
24611 if test -d "$1"; then
24617 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24618 ???[sx]*):;;*)false;;esac;fi
24622 as_executable_p
=$as_test_x
24624 # Sed expression to map a string onto a valid CPP name.
24625 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24627 # Sed expression to map a string onto a valid variable name.
24628 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24633 # Save the log message, to keep $[0] and so on meaningful, and to
24634 # report actual input values of CONFIG_FILES etc. instead of their
24635 # values after options handling.
24637 This file was extended by python $as_me 3.0, which was
24638 generated by GNU Autoconf 2.61. Invocation command line was
24640 CONFIG_FILES = $CONFIG_FILES
24641 CONFIG_HEADERS = $CONFIG_HEADERS
24642 CONFIG_LINKS = $CONFIG_LINKS
24643 CONFIG_COMMANDS = $CONFIG_COMMANDS
24646 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24651 cat >>$CONFIG_STATUS <<_ACEOF
24652 # Files that config.status was made for.
24653 config_files="$ac_config_files"
24654 config_headers="$ac_config_headers"
24658 cat >>$CONFIG_STATUS <<\_ACEOF
24660 \`$as_me' instantiates files from templates according to the
24661 current configuration.
24663 Usage: $0 [OPTIONS] [FILE]...
24665 -h, --help print this help, then exit
24666 -V, --version print version number and configuration settings, then exit
24667 -q, --quiet do not print progress messages
24668 -d, --debug don't remove temporary files
24669 --recheck update $as_me by reconfiguring in the same conditions
24670 --file=FILE[:TEMPLATE]
24671 instantiate the configuration file FILE
24672 --header=FILE[:TEMPLATE]
24673 instantiate the configuration header FILE
24675 Configuration files:
24678 Configuration headers:
24681 Report bugs to <bug-autoconf@gnu.org>."
24684 cat >>$CONFIG_STATUS <<_ACEOF
24686 python config.status 3.0
24687 configured by $0, generated by GNU Autoconf 2.61,
24688 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24690 Copyright (C) 2006 Free Software Foundation, Inc.
24691 This config.status script is free software; the Free Software Foundation
24692 gives unlimited permission to copy, distribute and modify it."
24699 cat >>$CONFIG_STATUS <<\_ACEOF
24700 # If no file are specified by the user, then we need to provide default
24701 # value. By we need to know if files were specified by the user.
24707 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24708 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24719 # Handling of the options.
24720 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24722 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24723 echo "$ac_cs_version"; exit ;;
24724 --debug |
--debu |
--deb |
--de |
--d |
-d )
24726 --file |
--fil |
--fi |
--f )
24728 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24729 ac_need_defaults
=false
;;
24730 --header |
--heade |
--head |
--hea )
24732 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24733 ac_need_defaults
=false
;;
24735 # Conflict between --help and --header
24736 { echo "$as_me: error: ambiguous option: $1
24737 Try \`$0 --help' for more information." >&2
24738 { (exit 1); exit 1; }; };;
24739 --help |
--hel |
-h )
24740 echo "$ac_cs_usage"; exit ;;
24741 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24742 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24745 # This is an error.
24746 -*) { echo "$as_me: error: unrecognized option: $1
24747 Try \`$0 --help' for more information." >&2
24748 { (exit 1); exit 1; }; } ;;
24750 *) ac_config_targets
="$ac_config_targets $1"
24751 ac_need_defaults
=false
;;
24757 ac_configure_extra_args
=
24759 if $ac_cs_silent; then
24761 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24765 cat >>$CONFIG_STATUS <<_ACEOF
24766 if \$ac_cs_recheck; then
24767 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24768 CONFIG_SHELL=$SHELL
24769 export CONFIG_SHELL
24770 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24774 cat >>$CONFIG_STATUS <<\_ACEOF
24778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24779 ## Running $as_me. ##
24785 cat >>$CONFIG_STATUS <<_ACEOF
24788 cat >>$CONFIG_STATUS <<\_ACEOF
24790 # Handling of arguments.
24791 for ac_config_target
in $ac_config_targets
24793 case $ac_config_target in
24794 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
24795 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
24796 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24797 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24798 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24799 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24800 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
24801 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
24803 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24804 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24805 { (exit 1); exit 1; }; };;
24810 # If the user did not use the arguments to specify the items to instantiate,
24811 # then the envvar interface is used. Set only those that are not.
24812 # We use the long form for the default assignment because of an extremely
24813 # bizarre bug on SunOS 4.1.3.
24814 if $ac_need_defaults; then
24815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24819 # Have a temporary directory for convenience. Make it in the build tree
24820 # simply because there is no reason against having it here, and in addition,
24821 # creating and moving files from /tmp can sometimes cause problems.
24822 # Hook for its removal unless debugging.
24823 # Note that there is a small window in which the directory will not be cleaned:
24824 # after its creation but before its name has been assigned to `$tmp'.
24828 trap 'exit_status=$?
24829 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24831 trap '{ (exit 1); exit 1; }' 1 2 13 15
24833 # Create a (secure) tmp directory for tmp files.
24836 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24837 test -n "$tmp" && test -d "$tmp"
24840 tmp
=.
/conf$$
-$RANDOM
24841 (umask 077 && mkdir
"$tmp")
24844 echo "$me: cannot create a temporary directory in ." >&2
24845 { (exit 1); exit 1; }
24849 # Set up the sed scripts for CONFIG_FILES section.
24852 # No need to generate the scripts if there are no CONFIG_FILES.
24853 # This happens for instance when ./config.status config.h
24854 if test -n "$CONFIG_FILES"; then
24861 for ac_last_try
in false false false false false
:; do
24862 cat >conf$
$subs.
sed <<_ACEOF
24863 SHELL!$SHELL$ac_delim
24864 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24865 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24866 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24867 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24868 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24869 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24870 exec_prefix!$exec_prefix$ac_delim
24871 prefix!$prefix$ac_delim
24872 program_transform_name!$program_transform_name$ac_delim
24873 bindir!$bindir$ac_delim
24874 sbindir!$sbindir$ac_delim
24875 libexecdir!$libexecdir$ac_delim
24876 datarootdir!$datarootdir$ac_delim
24877 datadir!$datadir$ac_delim
24878 sysconfdir!$sysconfdir$ac_delim
24879 sharedstatedir!$sharedstatedir$ac_delim
24880 localstatedir!$localstatedir$ac_delim
24881 includedir!$includedir$ac_delim
24882 oldincludedir!$oldincludedir$ac_delim
24883 docdir!$docdir$ac_delim
24884 infodir!$infodir$ac_delim
24885 htmldir!$htmldir$ac_delim
24886 dvidir!$dvidir$ac_delim
24887 pdfdir!$pdfdir$ac_delim
24888 psdir!$psdir$ac_delim
24889 libdir!$libdir$ac_delim
24890 localedir!$localedir$ac_delim
24891 mandir!$mandir$ac_delim
24892 DEFS!$DEFS$ac_delim
24893 ECHO_C!$ECHO_C$ac_delim
24894 ECHO_N!$ECHO_N$ac_delim
24895 ECHO_T!$ECHO_T$ac_delim
24896 LIBS!$LIBS$ac_delim
24897 build_alias!$build_alias$ac_delim
24898 host_alias!$host_alias$ac_delim
24899 target_alias!$target_alias$ac_delim
24900 VERSION!$VERSION$ac_delim
24901 SOVERSION!$SOVERSION$ac_delim
24902 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24903 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24904 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24905 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24906 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24907 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24908 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24909 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24910 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24911 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24912 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24913 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24914 MACHDEP!$MACHDEP$ac_delim
24915 SGI_ABI!$SGI_ABI$ac_delim
24916 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24917 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24918 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24919 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24921 CFLAGS!$CFLAGS$ac_delim
24922 LDFLAGS!$LDFLAGS$ac_delim
24923 CPPFLAGS!$CPPFLAGS$ac_delim
24924 ac_ct_CC!$ac_ct_CC$ac_delim
24925 EXEEXT!$EXEEXT$ac_delim
24926 OBJEXT!$OBJEXT$ac_delim
24928 MAINCC!$MAINCC$ac_delim
24930 GREP!$GREP$ac_delim
24931 EGREP!$EGREP$ac_delim
24932 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24933 LIBRARY!$LIBRARY$ac_delim
24934 LDLIBRARY!$LDLIBRARY$ac_delim
24935 DLLLIBRARY!$DLLLIBRARY$ac_delim
24936 BLDLIBRARY!$BLDLIBRARY$ac_delim
24937 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24938 INSTSONAME!$INSTSONAME$ac_delim
24939 RUNSHARED!$RUNSHARED$ac_delim
24940 LINKCC!$LINKCC$ac_delim
24941 RANLIB!$RANLIB$ac_delim
24943 SVNVERSION!$SVNVERSION$ac_delim
24944 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24945 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24946 INSTALL_DATA!$INSTALL_DATA$ac_delim
24949 BASECFLAGS!$BASECFLAGS$ac_delim
24950 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24951 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24953 LDSHARED!$LDSHARED$ac_delim
24954 BLDSHARED!$BLDSHARED$ac_delim
24955 CCSHARED!$CCSHARED$ac_delim
24956 LINKFORSHARED!$LINKFORSHARED$ac_delim
24957 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24958 SHLIBS!$SHLIBS$ac_delim
24959 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24962 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24964 elif $ac_last_try; then
24965 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24966 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24967 { (exit 1); exit 1; }; }
24969 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24973 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24974 if test -n "$ac_eof"; then
24975 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24976 ac_eof
=`expr $ac_eof + 1`
24979 cat >>$CONFIG_STATUS <<_ACEOF
24980 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24984 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24985 s/^/s,@/; s/!/@,|#_!!_#|/
24988 s/'"$ac_delim"'$/,g/; t
24990 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24991 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24992 rm -f conf$
$subs.
sed
24993 cat >>$CONFIG_STATUS <<_ACEOF
24999 for ac_last_try
in false false false false false
:; do
25000 cat >conf$
$subs.
sed <<_ACEOF
25001 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25002 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25003 LDLAST!$LDLAST$ac_delim
25004 THREADOBJ!$THREADOBJ$ac_delim
25005 DLINCLDIR!$DLINCLDIR$ac_delim
25006 DYNLOADFILE!$DYNLOADFILE$ac_delim
25007 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25008 TRUE!$TRUE$ac_delim
25009 LIBOBJS!$LIBOBJS$ac_delim
25010 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25011 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25012 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25013 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25014 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25015 LIBM!$LIBM$ac_delim
25016 LIBC!$LIBC$ac_delim
25017 THREADHEADERS!$THREADHEADERS$ac_delim
25018 SRCDIRS!$SRCDIRS$ac_delim
25019 LTLIBOBJS!$LTLIBOBJS$ac_delim
25022 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
25024 elif $ac_last_try; then
25025 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25026 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25027 { (exit 1); exit 1; }; }
25029 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25033 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25034 if test -n "$ac_eof"; then
25035 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25036 ac_eof
=`expr $ac_eof + 1`
25039 cat >>$CONFIG_STATUS <<_ACEOF
25040 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25044 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25045 s/^/s,@/; s/!/@,|#_!!_#|/
25048 s/'"$ac_delim"'$/,g/; t
25050 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25051 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25052 rm -f conf$
$subs.
sed
25053 cat >>$CONFIG_STATUS <<_ACEOF
25060 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25061 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25062 # trailing colons and then remove the whole line if VPATH becomes empty
25063 # (actually we leave an empty line to preserve line numbers).
25064 if test "x$srcdir" = x.
; then
25065 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25066 s/:*\$(srcdir):*/:/
25067 s/:*\${srcdir}:*/:/
25069 s/^\([^=]*=[ ]*\):*/\1/
25075 cat >>$CONFIG_STATUS <<\_ACEOF
25076 fi # test -n "$CONFIG_FILES"
25079 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
25082 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25084 case $ac_mode$ac_tag in
25086 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25087 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25088 { (exit 1); exit 1; }; };;
25089 :[FH
]-) ac_tag
=-:-;;
25090 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25107 -) ac_f
="$tmp/stdin";;
25108 *) # Look for the file first in the build tree, then in the source tree
25109 # (if the path is not absolute). The absolute path cannot be DOS-style,
25110 # because $ac_f cannot contain `:'.
25114 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25116 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25117 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25118 { (exit 1); exit 1; }; };;
25120 ac_file_inputs
="$ac_file_inputs $ac_f"
25123 # Let's still pretend it is `configure' which instantiates (i.e., don't
25124 # use $as_me), people would be surprised to read:
25125 # /* config.h. Generated by config.status. */
25126 configure_input
="Generated from "`IFS=:
25127 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25128 if test x
"$ac_file" != x-
; then
25129 configure_input
="$ac_file. $configure_input"
25130 { echo "$as_me:$LINENO: creating $ac_file" >&5
25131 echo "$as_me: creating $ac_file" >&6;}
25135 *:-:* |
*:-) cat >"$tmp/stdin";;
25140 ac_dir
=`$as_dirname -- "$ac_file" ||
25141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25142 X"$ac_file" : 'X\(//\)[^/]' \| \
25143 X"$ac_file" : 'X\(//\)$' \| \
25144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25150 /^X\(\/\/\)[^/].*/{
25165 -*) as_dir
=.
/$as_dir;;
25167 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25171 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25172 *) as_qdir
=$as_dir;;
25174 as_dirs
="'$as_qdir' $as_dirs"
25175 as_dir
=`$as_dirname -- "$as_dir" ||
25176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25177 X"$as_dir" : 'X\(//\)[^/]' \| \
25178 X"$as_dir" : 'X\(//\)$' \| \
25179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25185 /^X\(\/\/\)[^/].*/{
25198 test -d "$as_dir" && break
25200 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25201 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25202 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25203 { (exit 1); exit 1; }; }; }
25207 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25209 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25210 # A ".." for each directory in $ac_dir_suffix.
25211 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25212 case $ac_top_builddir_sub in
25213 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25214 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25217 ac_abs_top_builddir
=$ac_pwd
25218 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25219 # for backward compatibility:
25220 ac_top_builddir
=$ac_top_build_prefix
25223 .
) # We are building in place.
25225 ac_top_srcdir
=$ac_top_builddir_sub
25226 ac_abs_top_srcdir
=$ac_pwd ;;
25227 [\\/]* | ?
:[\\/]* ) # Absolute name.
25228 ac_srcdir
=$srcdir$ac_dir_suffix;
25229 ac_top_srcdir
=$srcdir
25230 ac_abs_top_srcdir
=$srcdir ;;
25231 *) # Relative name.
25232 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25233 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25234 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25236 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25246 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25247 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25251 cat >>$CONFIG_STATUS <<\_ACEOF
25252 # If the template does not know about datarootdir, expand it.
25253 # FIXME: This hack should be removed a few years after 2.60.
25254 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25256 case `sed -n '/datarootdir/ {
25265 ' $ac_file_inputs` in
25266 *datarootdir
*) ac_datarootdir_seen
=yes;;
25267 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25268 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25269 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25271 cat >>$CONFIG_STATUS <<_ACEOF
25272 ac_datarootdir_hack='
25273 s&@datadir@&$datadir&g
25274 s&@docdir@&$docdir&g
25275 s&@infodir@&$infodir&g
25276 s&@localedir@&$localedir&g
25277 s&@mandir@&$mandir&g
25278 s&\\\${datarootdir}&$datarootdir&g' ;;
25282 # Neutralize VPATH when `$srcdir' = `.'.
25283 # Shell code in configure.ac might set extrasub.
25284 # FIXME: do we really want to maintain this feature?
25285 cat >>$CONFIG_STATUS <<_ACEOF
25289 cat >>$CONFIG_STATUS <<\_ACEOF
25291 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25292 s
&@configure_input@
&$configure_input&;t t
25293 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25294 s
&@srcdir@
&$ac_srcdir&;t t
25295 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25296 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25297 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25298 s
&@builddir@
&$ac_builddir&;t t
25299 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25300 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25301 s
&@INSTALL@
&$ac_INSTALL&;t t
25302 $ac_datarootdir_hack
25303 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25308 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25309 which seems to be undefined. Please make sure it is defined." >&5
25310 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25311 which seems to be undefined. Please make sure it is defined." >&2;}
25315 -) cat "$tmp/out"; rm -f "$tmp/out";;
25316 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25325 # Transform confdefs.h into a sed script `conftest.defines', that
25326 # substitutes the proper values into config.h.in to produce config.h.
25327 rm -f conftest.defines conftest.
tail
25328 # First, append a space to every undef/define line, to ease matching.
25329 echo 's/$/ /' >conftest.defines
25330 # Then, protect against being on the right side of a sed subst, or in
25331 # an unquoted here document, in config.status. If some macros were
25332 # called several times there might be several #defines for the same
25333 # symbol, which is useless. But do not sort them, since the last
25334 # AC_DEFINE must be honored.
25335 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25336 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25337 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25338 # PARAMS is the parameter list in the macro definition--in most cases, it's
25339 # just an empty string.
25340 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25341 ac_dB
='\\)[ (].*,\\1define\\2'
25349 s/^[ ]*#[ ]*define[ ][ ]*//
25354 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25355 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25356 ' >>conftest.defines
25358 # Remove the space that was appended to ease matching.
25359 # Then replace #undef with comments. This is necessary, for
25360 # example, in the case of _POSIX_SOURCE, which is predefined and required
25361 # on some systems where configure will not decide to define it.
25362 # (The regexp can be short, since the line contains either #define or #undef.)
25364 s,^[ #]*u.*,/* & */,' >>conftest.defines
25366 # Break up conftest.defines:
25367 ac_max_sed_lines
=50
25369 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25370 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25371 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25373 ac_in
='$ac_file_inputs'
25374 ac_out
='"$tmp/out1"'
25375 ac_nxt
='"$tmp/out2"'
25379 # Write a here document:
25380 cat >>$CONFIG_STATUS <<_ACEOF
25381 # First, check the format of the line:
25382 cat >"\$tmp/defines.sed" <<\\CEOF
25383 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25384 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25388 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25390 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25391 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25392 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25393 grep . conftest.
tail >/dev
/null ||
break
25394 rm -f conftest.defines
25395 mv conftest.
tail conftest.defines
25397 rm -f conftest.defines conftest.
tail
25399 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25400 cat >>$CONFIG_STATUS <<\_ACEOF
25401 if test x
"$ac_file" != x-
; then
25402 echo "/* $configure_input */" >"$tmp/config.h"
25403 cat "$ac_result" >>"$tmp/config.h"
25404 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25406 echo "$as_me: $ac_file is unchanged" >&6;}
25409 mv "$tmp/config.h" $ac_file
25412 echo "/* $configure_input */"
25424 { (exit 0); exit 0; }
25426 chmod +x
$CONFIG_STATUS
25427 ac_clean_files
=$ac_clean_files_save
25430 # configure is writing to config.log, and then calls config.status.
25431 # config.status does its own redirection, appending to config.log.
25432 # Unfortunately, on DOS this fails, as config.log is still kept open
25433 # by configure, so config.status won't be able to write to it; its
25434 # output is simply discarded. So we exec the FD to /dev/null,
25435 # effectively closing config.log, so it can be properly (re)opened and
25436 # appended to by config.status. When coming back to configure, we
25437 # need to make the FD available again.
25438 if test "$no_create" != yes; then
25440 ac_config_status_args
=
25441 test "$silent" = yes &&
25442 ac_config_status_args
="$ac_config_status_args --quiet"
25444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25447 # would make configure fail if this is the last instruction.
25448 $ac_cs_success ||
{ (exit 1); exit 1; }
25452 echo "creating Modules/Setup"
25453 if test ! -f Modules
/Setup
25455 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25458 echo "creating Modules/Setup.local"
25459 if test ! -f Modules
/Setup.
local
25461 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25464 echo "creating Makefile"
25465 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25466 -s Modules Modules
/Setup.config \
25467 Modules
/Setup.
local Modules
/Setup
25468 mv config.c Modules