2 # From configure.in Revision: 62499 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.6'
579 PACKAGE_STRING
='python 2.6'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
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
737 ac_precious_vars
='build_alias
748 # Initialize some variables set by options.
750 ac_init_version
=false
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name
=s
,x
,x
,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir
='${exec_prefix}/bin'
775 sbindir
='${exec_prefix}/sbin'
776 libexecdir
='${exec_prefix}/libexec'
777 datarootdir
='${prefix}/share'
778 datadir
='${datarootdir}'
779 sysconfdir
='${prefix}/etc'
780 sharedstatedir
='${prefix}/com'
781 localstatedir
='${prefix}/var'
782 includedir
='${prefix}/include'
783 oldincludedir
='/usr/include'
784 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir
='${datarootdir}/info'
790 libdir
='${exec_prefix}/lib'
791 localedir
='${datarootdir}/locale'
792 mandir
='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\
$ac_option
806 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
816 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
818 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
821 -build |
--build |
--buil |
--bui |
--bu)
822 ac_prev
=build_alias
;;
823 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
824 build_alias
=$ac_optarg ;;
826 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
827 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
828 ac_prev
=cache_file
;;
829 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
830 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
831 cache_file
=$ac_optarg ;;
834 cache_file
=config.cache
;;
836 -datadir |
--datadir |
--datadi |
--datad)
838 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
839 datadir
=$ac_optarg ;;
841 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
842 |
--dataroo |
--dataro |
--datar)
843 ac_prev
=datarootdir
;;
844 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
845 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
846 datarootdir
=$ac_optarg ;;
848 -disable-* |
--disable-*)
849 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_
$ac_feature=no
;;
857 -docdir |
--docdir |
--docdi |
--doc |
--do)
859 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
862 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
864 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
867 -enable-* |
--enable-*)
868 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 { (exit 1); exit 1; }; }
873 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
874 eval enable_
$ac_feature=\
$ac_optarg ;;
876 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
877 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
878 |
--exec |
--exe |
--ex)
879 ac_prev
=exec_prefix
;;
880 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
881 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
882 |
--exec=* |
--exe=* |
--ex=*)
883 exec_prefix
=$ac_optarg ;;
885 -gas |
--gas |
--ga |
--g)
886 # Obsolete; use --with-gas.
889 -help |
--help |
--hel |
--he |
-h)
891 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
892 ac_init_help
=recursive
;;
893 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
894 ac_init_help
=short
;;
896 -host |
--host |
--hos |
--ho)
897 ac_prev
=host_alias
;;
898 -host=* |
--host=* |
--hos=* |
--ho=*)
899 host_alias
=$ac_optarg ;;
901 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
903 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
905 htmldir
=$ac_optarg ;;
907 -includedir |
--includedir |
--includedi |
--included |
--include \
908 |
--includ |
--inclu |
--incl |
--inc)
909 ac_prev
=includedir
;;
910 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
911 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
912 includedir
=$ac_optarg ;;
914 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
916 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
917 infodir
=$ac_optarg ;;
919 -libdir |
--libdir |
--libdi |
--libd)
921 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
924 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
925 |
--libexe |
--libex |
--libe)
926 ac_prev
=libexecdir
;;
927 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
928 |
--libexe=* |
--libex=* |
--libe=*)
929 libexecdir
=$ac_optarg ;;
931 -localedir |
--localedir |
--localedi |
--localed |
--locale)
933 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
934 localedir
=$ac_optarg ;;
936 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
937 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
938 ac_prev
=localstatedir
;;
939 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
940 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
941 localstatedir
=$ac_optarg ;;
943 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
945 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
949 # Obsolete; use --without-fp.
952 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
953 |
--no-cr |
--no-c |
-n)
956 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
957 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
960 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
961 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
962 |
--oldin |
--oldi |
--old |
--ol |
--o)
963 ac_prev
=oldincludedir
;;
964 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
965 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
966 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
967 oldincludedir
=$ac_optarg ;;
969 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
971 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
974 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
975 |
--program-pre |
--program-pr |
--program-p)
976 ac_prev
=program_prefix
;;
977 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
978 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
979 program_prefix
=$ac_optarg ;;
981 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
982 |
--program-suf |
--program-su |
--program-s)
983 ac_prev
=program_suffix
;;
984 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
985 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
986 program_suffix
=$ac_optarg ;;
988 -program-transform-name |
--program-transform-name \
989 |
--program-transform-nam |
--program-transform-na \
990 |
--program-transform-n |
--program-transform- \
991 |
--program-transform |
--program-transfor \
992 |
--program-transfo |
--program-transf \
993 |
--program-trans |
--program-tran \
994 |
--progr-tra |
--program-tr |
--program-t)
995 ac_prev
=program_transform_name
;;
996 -program-transform-name=* |
--program-transform-name=* \
997 |
--program-transform-nam=* |
--program-transform-na=* \
998 |
--program-transform-n=* |
--program-transform-=* \
999 |
--program-transform=* |
--program-transfor=* \
1000 |
--program-transfo=* |
--program-transf=* \
1001 |
--program-trans=* |
--program-tran=* \
1002 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1003 program_transform_name
=$ac_optarg ;;
1005 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1007 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1008 pdfdir
=$ac_optarg ;;
1010 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1012 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1015 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1016 |
-silent |
--silent |
--silen |
--sile |
--sil)
1019 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1021 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1023 sbindir
=$ac_optarg ;;
1025 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1026 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1027 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1029 ac_prev
=sharedstatedir
;;
1030 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1031 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1032 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1034 sharedstatedir
=$ac_optarg ;;
1036 -site |
--site |
--sit)
1038 -site=* |
--site=* |
--sit=*)
1041 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1043 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1044 srcdir
=$ac_optarg ;;
1046 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1047 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1048 ac_prev
=sysconfdir
;;
1049 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1050 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1051 sysconfdir
=$ac_optarg ;;
1053 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1054 ac_prev
=target_alias
;;
1055 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1056 target_alias
=$ac_optarg ;;
1058 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1061 -version |
--version |
--versio |
--versi |
--vers |
-V)
1062 ac_init_version
=: ;;
1065 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_
$ac_package=\
$ac_optarg ;;
1073 -without-* |
--without-*)
1074 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_
$ac_package=no
;;
1083 # Obsolete; use --with-x.
1086 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1087 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1088 ac_prev
=x_includes
;;
1089 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1090 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1091 x_includes
=$ac_optarg ;;
1093 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1094 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1095 ac_prev
=x_libraries
;;
1096 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1097 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1098 x_libraries
=$ac_optarg ;;
1100 -*) { echo "$as_me: error: unrecognized option: $ac_option
1101 Try \`$0 --help' for more information." >&2
1102 { (exit 1); exit 1; }; }
1106 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110 { (exit 1); exit 1; }; }
1111 eval $ac_envvar=\
$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 if test -n "$ac_prev"; then
1126 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1127 { echo "$as_me: error: missing argument to $ac_option" >&2
1128 { (exit 1); exit 1; }; }
1131 # Be sure to have absolute directory names.
1132 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1137 eval ac_val
=\$
$ac_var
1139 [\\/$
]* | ?
:[\\/]* ) continue;;
1140 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143 { (exit 1); exit 1; }; }
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1151 target
=$target_alias
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x
; then
1155 if test "x$build_alias" = x
; then
1156 cross_compiling
=maybe
1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1158 If a cross compiler is detected then cross compile mode will be used." >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1165 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1167 test "$silent" = yes && exec 6>/dev
/null
1170 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di
=`ls -di .` &&
1172 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1173 { echo "$as_me: error: Working directory cannot be determined" >&2
1174 { (exit 1); exit 1; }; }
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 { echo "$as_me: error: pwd does not report name of working directory" >&2
1177 { (exit 1); exit 1; }; }
1180 # Find the source files, if location was not specified.
1181 if test -z "$srcdir"; then
1182 ac_srcdir_defaulted
=yes
1183 # Try the directory containing this script, then the parent directory.
1184 ac_confdir
=`$as_dirname -- "$0" ||
1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186 X"$0" : 'X\(//\)[^/]' \| \
1187 X"$0" : 'X\(//\)$' \| \
1188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1212 ac_srcdir_defaulted
=no
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217 { (exit 1); exit 1; }; }
1219 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222 { (exit 1); exit 1; }; }
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1232 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 for ac_var
in $ac_precious_vars; do
1235 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1237 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1242 # Report the --help message.
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1248 \`configure' configures python 2.6 to adapt to many kinds of systems.
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1255 Defaults for the options are specified in brackets.
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1279 For better control, use the options below.
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
1307 if test -n "$ac_init_help"; then
1308 case $ac_init_help in
1309 short | recursive
) echo "Configuration of python 2.6:";;
1314 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1315 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1316 --enable-universalsdk[=SDKDIR
]
1317 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1318 --enable-framework[=INSTALLDIR
]
1319 Build
(MacOSX|Darwin
) framework
1320 --enable-shared disable
/enable building shared python library
1321 --enable-profiling enable C-level code profiling
1322 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1323 --enable-ipv6 Enable ipv6
(with ipv4
) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-unicode[=ucs
[24]]
1326 Enable Unicode
strings (default is
yes)
1329 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1330 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1331 --with-framework-name=FRAMEWORK
1332 specify an alternate name of the framework built
1333 with
--enable-framework
1334 --without-gcc never use gcc
1335 --with-cxx-main=<compiler
>
1336 compile main
() and link python executable with C
++
1338 --with-suffix=.exe
set executable suffix
1339 --with-pydebug build with Py_DEBUG defined
1340 --with-libs='lib1 ...' link against additional libs
1341 --with-system-ffi build _ctypes module using an installed ffi library
1342 --with-signal-module disable
/enable signal module
1343 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1344 --with(out
)-threads[=DIRECTORY
]
1345 disable
/enable thread support
1346 --with(out
)-thread[=DIRECTORY
]
1347 deprecated
; use
--with(out
)-threads
1348 --with-pth use GNU pth threading libraries
1349 --with(out
)-doc-strings disable
/enable documentation
strings
1350 --with(out
)-tsc enable
/disable timestamp counter profile
1351 --with(out
)-pymalloc disable
/enable specialized mallocs
1352 --with-wctype-functions use wctype.h functions
1353 --with-fpectl enable SIGFPE catching
1354 --with-libm=STRING math library
1355 --with-libc=STRING C library
1357 Some influential environment variables
:
1358 CC C compiler
command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1361 nonstandard directory
<lib dir
>
1362 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1363 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1364 you have headers
in a nonstandard directory
<include dir
>
1367 Use these variables to override the choices made by
`configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1370 Report bugs to <http://www.python.org/python-bugs>.
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" || continue
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1398 .) # We are building in place.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1431 python configure 2.6
1432 generated by GNU Autoconf 2.61
1434 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1441 cat >config.log <<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1445 It was created by python $as_me 2.6, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1458 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1459 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1460 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1461 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1462 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1465 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1467 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1469 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1470 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1471 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1473 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir=.
1482 echo "PATH: $as_dir"
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1506 ac_must_keep_next=false
1512 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514 | -silent | --silent | --silen | --sile | --sil)
1517 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1520 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1522 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true; then
1524 ac_must_keep_next=false # Got value, back to normal.
1527 *=* | --config-cache | -C | -disable-* | --disable-* \
1528 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530 | -with-* | --with-* | -without-* | --without-* | --x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535 -* ) ac_must_keep_next=true ;;
1538 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1562 # The following way of writing the cache mishandles newlines in values,
1564 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1565 eval ac_val=\$$ac_var
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1579 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1599 for ac_var in $ac_subst_vars
1601 eval ac_val=\$$ac_var
1603 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 echo "$ac_var='\''$ac_val'\''"
1609 if test -n "$ac_subst_files"; then
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1616 for ac_var in $ac_subst_files
1618 eval ac_val=\$$ac_var
1620 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 echo "$ac_var='\''$ac_val'\''"
1627 if test -s confdefs.h; then
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645 for ac_signal in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest* confdefs.h
1653 # Predefined preprocessor variables.
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x "$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE; then
1685 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1687 set x "$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1709 *) . "./$cache_file";;
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1718 # Check that the precious variables saved in the cache have kept the same
1720 ac_cache_corrupted=false
1721 for ac_var in $ac_precious_vars; do
1722 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1723 eval ac_new_set=\$ac_env_${ac_var}_set
1724 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1725 eval ac_new_val=\$ac_env_${ac_var}_value
1726 case $ac_old_set,$ac_new_set in
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1729 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1733 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1737 if test "x$ac_old_val" != "x$ac_new_val"; then
1738 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1739 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1740 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1741 echo "$as_me: former value
: $ac_old_val" >&2;}
1742 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1743 echo "$as_me: current value
: $ac_new_val" >&2;}
1744 ac_cache_corrupted=:
1747 # Pass precious variables to config.status.
1748 if test "$ac_new_set" = set; then
1750 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1751 *) ac_arg=$ac_var=$ac_new_val ;;
1753 case " $ac_configure_args " in
1754 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1755 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1759 if $ac_cache_corrupted; then
1760 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1761 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1762 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1763 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1764 { (exit 1); exit 1; }; }
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 ac_config_headers="$ac_config_headers pyconfig.h"
1807 # We don't use PACKAGE_ variables, and they cause conflicts
1808 # with other autoconf-based packages that include Python.h
1809 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1811 mv confdefs.h.new confdefs.h
1819 # The later defininition of _XOPEN_SOURCE disables certain features
1820 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1822 cat >>confdefs.h <<\_ACEOF
1823 #define _GNU_SOURCE 1
1827 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1828 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1831 cat >>confdefs.h <<\_ACEOF
1832 #define _NETBSD_SOURCE 1
1836 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1837 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1840 cat >>confdefs.h <<\_ACEOF
1841 #define __BSD_VISIBLE 1
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1848 cat >>confdefs.h <<\_ACEOF
1849 #define _BSD_TYPES 1
1853 define_xopen_source=yes
1855 # Arguments passed to configure.
1857 CONFIG_ARGS="$ac_configure_args"
1859 # Check whether --enable-universalsdk was given.
1860 if test "${enable_universalsdk+set}" = set; then
1861 enableval=$enable_universalsdk;
1864 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1870 enable_universalsdk=
1873 UNIVERSALSDK=$enableval
1880 enable_universalsdk=
1887 # Check whether --with-framework-name was given.
1888 if test "${with_framework_name+set}" = set; then
1889 withval=$with_framework_name;
1890 PYTHONFRAMEWORK=${withval}
1891 PYTHONFRAMEWORKDIR=${withval}.framework
1892 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1896 PYTHONFRAMEWORK=Python
1897 PYTHONFRAMEWORKDIR=Python.framework
1898 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1902 # Check whether --enable-framework was given.
1903 if test "${enable_framework+set}" = set; then
1904 enableval=$enable_framework;
1907 enableval=/Library/Frameworks
1912 PYTHONFRAMEWORKDIR=no-framework
1913 PYTHONFRAMEWORKPREFIX=
1914 PYTHONFRAMEWORKINSTALLDIR=
1915 FRAMEWORKINSTALLFIRST=
1916 FRAMEWORKINSTALLLAST=
1917 FRAMEWORKALTINSTALLFIRST=
1918 FRAMEWORKALTINSTALLLAST=
1919 if test "x${prefix}" = "xNONE"; then
1920 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1922 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1927 PYTHONFRAMEWORKPREFIX=$enableval
1928 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1929 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1930 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1931 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1932 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1933 if test "x${prefix}" = "xNONE" ; then
1934 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1936 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1938 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1940 # Add files for Mac specific code to the list of output
1942 ac_config_files="$ac_config_files Mac/Makefile"
1944 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1946 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1948 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1950 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
1957 PYTHONFRAMEWORKDIR=no-framework
1958 PYTHONFRAMEWORKPREFIX=
1959 PYTHONFRAMEWORKINSTALLDIR=
1960 FRAMEWORKINSTALLFIRST=
1961 FRAMEWORKINSTALLLAST=
1962 FRAMEWORKALTINSTALLFIRST=
1963 FRAMEWORKALTINSTALLLAST=
1964 if test "x${prefix}" = "xNONE" ; then
1965 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1967 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1985 ## AC_HELP_STRING(--with-dyld,
1986 ## Use (OpenStep|Rhapsody) dynamic linker))
1988 # Set name for machine-dependent library files
1990 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1991 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1992 if test -z "$MACHDEP"
1994 ac_sys_system=`uname
-s`
1995 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1996 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1997 ac_sys_release=`uname
-v`
1999 ac_sys_release=`uname
-r`
2001 ac_md_system=`echo $ac_sys_system |
2002 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2003 ac_md_release=`echo $ac_sys_release |
2004 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2005 MACHDEP="$ac_md_system$ac_md_release"
2008 cygwin*) MACHDEP="cygwin";;
2009 darwin*) MACHDEP="darwin";;
2010 atheos*) MACHDEP="atheos";;
2011 irix646) MACHDEP="irix6";;
2012 '') MACHDEP="unknown";;
2016 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2017 # disable features if it is defined, without any means to access these
2018 # features as extensions. For these systems, we skip the definition of
2019 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2020 # some feature, make sure there is no alternative way to access this
2021 # feature. Also, when using wildcards, make sure you have verified the
2022 # need for not defining _XOPEN_SOURCE on all systems matching the
2023 # wildcard, and that the wildcard does not include future systems
2024 # (which may remove their limitations).
2025 case $ac_sys_system/$ac_sys_release in
2026 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2027 # even though select is a POSIX function. Reported by J. Ribbens.
2028 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2029 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2030 define_xopen_source=no
2031 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2032 # also defined. This can be overridden by defining _BSD_SOURCE
2033 # As this has a different meaning on Linux, only define it on OpenBSD
2035 cat >>confdefs.h <<\_ACEOF
2036 #define _BSD_SOURCE 1
2040 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2041 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2043 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2044 define_xopen_source=no;;
2045 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2046 # of union __?sigval. Reported by Stuart Bishop.
2048 define_xopen_source=no;;
2049 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2050 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2051 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2052 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2053 define_xopen_source=no;;
2054 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2055 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2057 define_xopen_source=no;;
2058 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2059 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2060 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2061 # This should hopefully be fixed in FreeBSD 4.9
2062 FreeBSD/4.8* | Darwin/6* )
2063 define_xopen_source=no;;
2064 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2065 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2066 # or has another value. By not (re)defining it, the defaults come in place.
2068 define_xopen_source=no;;
2070 if test `uname
-r` -eq 1; then
2071 define_xopen_source=no
2074 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2075 # disables platform specific features beyond repair.
2076 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2077 # has no effect, don't bother defining them
2079 define_xopen_source=no
2084 if test $define_xopen_source = yes
2086 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2087 # defined precisely as g++ defines it
2088 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2090 case $ac_sys_system/$ac_sys_release in
2091 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2093 cat >>confdefs.h <<\_ACEOF
2094 #define _XOPEN_SOURCE 500
2100 cat >>confdefs.h <<\_ACEOF
2101 #define _XOPEN_SOURCE 600
2107 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2108 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2109 # several APIs are not declared. Since this is also needed in some
2110 # cases for HP-UX, we define it globally.
2111 # except for Solaris 10, where it must not be defined,
2112 # as it implies XPG4.2
2113 case $ac_sys_system/$ac_sys_release in
2118 cat >>confdefs.h <<\_ACEOF
2119 #define _XOPEN_SOURCE_EXTENDED 1
2126 cat >>confdefs.h <<\_ACEOF
2127 #define _POSIX_C_SOURCE 200112L
2134 # SGI compilers allow the specification of the both the ABI and the
2135 # ISA on the command line. Depending on the values of these switches,
2136 # different and often incompatable code will be generated.
2138 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2139 # thus supply support for various ABI/ISA combinations. The MACHDEP
2140 # variable is also adjusted.
2143 if test ! -z "$SGI_ABI"
2146 LDFLAGS="$SGI_ABI $LDFLAGS"
2147 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2149 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2150 echo "${ECHO_T}$MACHDEP" >&6; }
2152 # And add extra plat-mac for darwin
2155 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2156 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2157 if test -z "$EXTRAPLATDIR"
2161 EXTRAPLATDIR="\$(PLATMACDIRS)"
2162 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2170 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2171 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2173 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2174 # it may influence the way we can build extensions, so distutils
2178 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2179 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2181 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2182 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2183 ac_sys_machine=`uname
-m`
2184 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2185 echo "${ECHO_T}$ac_sys_machine" >&6; }
2187 # checks for alternative programs
2189 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2190 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2191 # just to get things to compile and link. Users are free to override OPT
2192 # when running configure or make. The build should not break if they do.
2193 # BASECFLAGS should generally not be messed with, however.
2195 # XXX shouldn't some/most/all of this code be merged with the stuff later
2196 # on that fiddles with OPT and BASECFLAGS?
2197 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2198 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2200 # Check whether --with-gcc was given.
2201 if test "${with_gcc+set}" = set; then
2209 without_gcc=$withval;;
2213 case $ac_sys_system in
2217 case $BE_HOST_CPU in
2221 BASECFLAGS="$BASECFLAGS -export pragma"
2223 LDFLAGS="$LDFLAGS -nodup"
2231 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2232 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2233 { (exit 1); exit 1; }; }
2236 AR="\$(srcdir)/Modules/ar_beos"
2246 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2247 echo "${ECHO_T}$without_gcc" >&6; }
2249 # If the user switches compilers, we can't believe the cache
2250 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2252 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2253 (it is also a good idea to do 'make clean' before compiling)" >&5
2254 echo "$as_me: error: cached CC is different -- throw away $cache_file
2255 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2256 { (exit 1); exit 1; }; }
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2266 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 { echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6; }
2297 { echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6; }
2303 if test -z "$ac_cv_prog_CC"; then
2305 # Extract the first word of "gcc", so it can be a program name with args.
2306 set dummy gcc; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 if test -n "$ac_ct_CC"; then
2313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 test -z "$as_dir" && as_dir=.
2320 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322 ac_cv_prog_ac_ct_CC="gcc"
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2333 if test -n "$ac_ct_CC"; then
2334 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2335 echo "${ECHO_T}$ac_ct_CC" >&6; }
2337 { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2341 if test "x$ac_ct_CC" = x; then
2344 case $cross_compiling:$ac_tool_warned in
2346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2347 whose name does not start with the host triplet. If you think this
2348 configuration is useful to you, please write to autoconf@gnu.org." >&5
2349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2350 whose name does not start with the host triplet. If you think this
2351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2352 ac_tool_warned=yes ;;
2360 if test -z "$CC"; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}cc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_CC="${ac_tool_prefix}cc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test -n "$CC"; then
2391 { echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6; }
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2401 if test -z "$CC"; then
2402 # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2421 ac_prog_rejected=yes
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test $ac_prog_rejected = yes; then
2433 # We found a bogon in the path, so make sure we never use it.
2434 set dummy $ac_cv_prog_CC
2436 if test $# != 0; then
2437 # We chose a different compiler from the bogus one.
2438 # However, it has the same basename, so the bogon will be chosen
2439 # first if we set CC to just the basename; use the full file name.
2441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2447 if test -n "$CC"; then
2448 { echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6; }
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in cl.exe
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test -n "$CC"; then
2490 { echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6; }
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2498 test -n "$CC" && break
2501 if test -z "$CC"; then
2503 for ac_prog in cl.exe
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_ac_ct_CC="$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 echo "${ECHO_T}$ac_ct_CC" >&6; }
2537 { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2542 test -n "$ac_ct_CC" && break
2545 if test "x$ac_ct_CC" = x; then
2548 case $cross_compiling:$ac_tool_warned in
2550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2551 whose name does not start with the host triplet. If you think this
2552 configuration is useful to you, please write to autoconf@gnu.org." >&5
2553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet. If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2556 ac_tool_warned=yes ;;
2565 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2566 See \`config.log
' for more details." >&5
2567 echo "$as_me: error: no acceptable C compiler found in \$PATH
2568 See \`config.log' for more details.
" >&2;}
2569 { (exit 1); exit 1; }; }
2571 # Provide some information about the compiler.
2572 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2573 ac_compiler=`set X $ac_compile; echo $2`
2574 { (ac_try="$ac_compiler --version >&5"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compiler --version >&5") 2>&5
2582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2583 (exit $ac_status); }
2584 { (ac_try="$ac_compiler -v >&5"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compiler -v >&5") 2>&5
2592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2593 (exit $ac_status); }
2594 { (ac_try="$ac_compiler -V >&5"
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compiler -V >&5") 2>&5
2602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2603 (exit $ac_status); }
2605 cat >conftest.$ac_ext <<_ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2620 ac_clean_files_save=$ac_clean_files
2621 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2622 # Try to create an executable without -o first, disregard a.out.
2623 # It will help us diagnose broken compilers, and finding out an intuition
2625 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2626 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2627 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629 # List of possible output files, starting from the most likely.
2630 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2631 # only as a last resort. b.out is created by i960 compilers.
2632 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2634 # The IRIX 6 linker writes into existing files which may not be
2635 # executable, retaining their permissions. Remove them first so a
2636 # subsequent execution test works.
2638 for ac_file in $ac_files
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2647 if { (ac_try="$ac_link_default"
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_link_default") 2>&5
2655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2656 (exit $ac_status); }; then
2657 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2658 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2659 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2660 # so that the user can short-circuit this test for compilers unknown to
2662 for ac_file in $ac_files ''
2664 test -f "$ac_file" || continue
2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2669 # We found the default executable, but exeext='' is most
2673 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2675 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2677 # We set ac_cv_exeext here because the later test for it is not
2678 # safe: cross compilers may not add the suffix if given an `-o'
2679 # argument, so we may need to know it at that point already.
2680 # Even if this section looks crufty: it has the advantage of
2687 test "$ac_cv_exeext" = no && ac_cv_exeext=
2693 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2694 echo "${ECHO_T}$ac_file" >&6; }
2695 if test -z "$ac_file"; then
2696 echo "$as_me: failed program was
:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2700 See \
`config.log' for more details." >&5
2701 echo "$as_me: error: C compiler cannot create executables
2702 See \`config.log
' for more details." >&2;}
2703 { (exit 77); exit 77; }; }
2706 ac_exeext=$ac_cv_exeext
2708 # Check that the compiler produces executables we can run. If not, either
2709 # the compiler is broken, or we cross compile.
2710 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2711 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2713 # If not cross compiling, check that we can run a simple program.
2714 if test "$cross_compiling" != yes; then
2715 if { ac_try='.
/$ac_file'
2716 { (case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_try") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2727 if test "$cross_compiling" = maybe; then
2730 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2731 If you meant to cross compile, use \`--host'.
2732 See \
`config.log' for more details." >&5
2733 echo "$as_me: error: cannot run C compiled programs.
2734 If you meant to cross compile, use \`--host'.
2735 See \`config.log' for more details.
" >&2;}
2736 { (exit 1); exit 1; }; }
2740 { echo "$as_me:$LINENO: result
: yes" >&5
2741 echo "${ECHO_T}yes" >&6; }
2743 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2744 ac_clean_files=$ac_clean_files_save
2745 # Check that the compiler produces executables we can run. If not, either
2746 # the compiler is broken, or we cross compile.
2747 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2748 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2749 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2750 echo "${ECHO_T}$cross_compiling" >&6; }
2752 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2753 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2754 if { (ac_try="$ac_link"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_link") 2>&5
2762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2763 (exit $ac_status); }; then
2764 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2765 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2766 # work properly (i.e., refer to `conftest.exe'), while it won't with
2768 for ac_file in conftest.exe conftest conftest.*; do
2769 test -f "$ac_file" || continue
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2779 See \
`config.log' for more details." >&5
2780 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2781 See \`config.log
' for more details." >&2;}
2782 { (exit 1); exit 1; }; }
2785 rm -f conftest$ac_cv_exeext
2786 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2787 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2789 rm -f conftest.$ac_ext
2790 EXEEXT=$ac_cv_exeext
2792 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2793 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2794 if test "${ac_cv_objext+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2812 rm -f conftest.o conftest.obj
2813 if { (ac_try="$ac_compile"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_compile") 2>&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
2823 for ac_file in conftest.o conftest.obj conftest.*; do
2824 test -f "$ac_file" || continue;
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2827 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2832 echo "$as_me: failed program was:" >&5
2833 sed 's
/^
/|
/' conftest.$ac_ext >&5
2835 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2836 See \`config.log' for more details.
" >&5
2837 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2838 See \
`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2844 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2845 echo "${ECHO_T}$ac_cv_objext" >&6; }
2846 OBJEXT=$ac_cv_objext
2848 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2849 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2850 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 cat >conftest.$ac_ext <<_ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2871 rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2875 *) ac_try_echo
=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>conftest.er1
2880 grep -v '^ *+' conftest.er1
>conftest.err
2882 cat conftest.err
>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && {
2885 test -z "$ac_c_werror_flag" ||
2886 test ! -s conftest.err
2887 } && test -s conftest.
$ac_objext; then
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.
$ac_ext >&5
2896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2897 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2900 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2901 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2902 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2903 ac_test_CFLAGS
=${CFLAGS+set}
2904 ac_save_CFLAGS
=$CFLAGS
2905 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2906 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2907 if test "${ac_cv_prog_cc_g+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 ac_save_c_werror_flag
=$ac_c_werror_flag
2911 ac_c_werror_flag
=yes
2914 cat >conftest.
$ac_ext <<_ACEOF
2917 cat confdefs.h
>>conftest.
$ac_ext
2918 cat >>conftest.
$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2929 rm -f conftest.
$ac_objext
2930 if { (ac_try
="$ac_compile"
2932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.$ac_objext; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2971 *) ac_try_echo
=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2976 grep -v '^ *+' conftest.er1
>conftest.err
2978 cat conftest.err
>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } && {
2981 test -z "$ac_c_werror_flag" ||
2982 test ! -s conftest.err
2983 } && test -s conftest.
$ac_objext; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.
$ac_ext >&5
2989 ac_c_werror_flag
=$ac_save_c_werror_flag
2991 cat >conftest.
$ac_ext <<_ACEOF
2994 cat confdefs.h
>>conftest.
$ac_ext
2995 cat >>conftest.
$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
3006 rm -f conftest.
$ac_objext
3007 if { (ac_try
="$ac_compile"
3009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
3015 grep -v '^ *+' conftest.er1 >conftest.err
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } && {
3020 test -z "$ac_c_werror_flag" ||
3021 test ! -s conftest.err
3022 } && test -s conftest.$ac_objext; then
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_c_werror_flag=$ac_save_c_werror_flag
3040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3041 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3042 if test "$ac_test_CFLAGS" = set; then
3043 CFLAGS=$ac_save_CFLAGS
3044 elif test $ac_cv_prog_cc_g = yes; then
3045 if test "$GCC" = yes; then
3051 if test "$GCC" = yes; then
3057 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3058 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_cc_c89+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 ac_cv_prog_cc_c89=no
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3072 #include <sys/types.h>
3073 #include <sys/stat.h>
3074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3075 struct buf { int x; };
3076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3077 static char *e (p, i)
3083 static char *f (char * (*g) (char **, int), char **p, ...)
3088 s = g (p, va_arg (v,int));
3093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3094 function prototypes and stuff, but not '\xHH' hex character constants.
3095 These don't provoke an error unfortunately, instead are silently treated
3096 as 'x'. The following induces an error, until -std is added to get
3097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3098 array size at least. It's necessary to write '\x00'==0 to get something
3099 that's true only with -std. */
3100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3103 inside strings and character constants. */
3105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3107 int test (int i, double x);
3108 struct s1 {int (*f) (int a);};
3109 struct s2 {int (*f) (double a);};
3110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3124 CC="$ac_save_CC $ac_arg"
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3129 *) ac_try_echo
=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1
>conftest.err
3136 cat conftest.err
>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.
$ac_objext; then
3142 ac_cv_prog_cc_c89
=$ac_arg
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.
$ac_ext >&5
3150 rm -f core conftest.err conftest.
$ac_objext
3151 test "x$ac_cv_prog_cc_c89" != "xno" && break
3153 rm -f conftest.
$ac_ext
3158 case "x$ac_cv_prog_cc_c89" in
3160 { echo "$as_me:$LINENO: result: none needed" >&5
3161 echo "${ECHO_T}none needed" >&6; } ;;
3163 { echo "$as_me:$LINENO: result: unsupported" >&5
3164 echo "${ECHO_T}unsupported" >&6; } ;;
3166 CC
="$CC $ac_cv_prog_cc_c89"
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3173 ac_cpp
='$CPP $CPPFLAGS'
3174 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3181 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3182 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3184 # Check whether --with-cxx_main was given.
3185 if test "${with_cxx_main+set}" = set; then
3186 withval
=$with_cxx_main;
3189 no
) with_cxx_main
=no
3191 yes) with_cxx_main
=yes
3193 *) with_cxx_main
=yes
3207 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3208 echo "${ECHO_T}$with_cxx_main" >&6; }
3214 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3215 set dummy g
++; ac_word
=$2
3216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3218 if test "${ac_cv_path_CXX+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3227 for as_dir
in notfound
3230 test -z "$as_dir" && as_dir
=.
3231 for ac_exec_ext
in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3246 if test -n "$CXX"; then
3247 { echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6; }
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3255 cc
) # Extract the first word of "c++", so it can be a program name with args.
3256 set dummy c
++; ac_word
=$2
3257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259 if test "${ac_cv_path_CXX+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3268 for as_dir
in notfound
3271 test -z "$as_dir" && as_dir
=.
3272 for ac_exec_ext
in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3287 if test -n "$CXX"; then
3288 { echo "$as_me:$LINENO: result: $CXX" >&5
3289 echo "${ECHO_T}$CXX" >&6; }
3291 { echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6; }
3297 if test "$CXX" = "notfound"
3304 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy
$ac_prog; ac_word
=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_CXX+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$CXX"; then
3314 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir
=.
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_CXX
="$ac_prog"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$CXX"; then
3335 { echo "$as_me:$LINENO: result: $CXX" >&5
3336 echo "${ECHO_T}$CXX" >&6; }
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3343 test -n "$CXX" && break
3345 test -n "$CXX" || CXX
="notfound"
3347 if test "$CXX" = "notfound"
3352 if test "$preset_cxx" != "$CXX"
3354 { echo "$as_me:$LINENO: WARNING:
3356 By default, distutils will build C++ extension modules with \"$CXX\".
3357 If this is not intended, then set CXX on the configure command line.
3359 echo "$as_me: WARNING:
3361 By default, distutils will build C++ extension modules with \"$CXX\".
3362 If this is not intended, then set CXX on the configure command line.
3367 # checks for UNIX variants that set C preprocessor variables
3370 ac_cpp
='$CPP $CPPFLAGS'
3371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3374 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3375 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3376 # On Suns, sometimes $CPP names a directory.
3377 if test -n "$CPP" && test -d "$CPP"; then
3380 if test -z "$CPP"; then
3381 if test "${ac_cv_prog_CPP+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 # Double quotes because CPP needs to be expanded
3385 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 for ac_c_preproc_warn_flag
in '' yes
3390 # Use a header file that comes with gcc, so configuring glibc
3391 # with a fresh cross-compiler works.
3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393 # <limits.h> exists even on freestanding compilers.
3394 # On the NeXT, cc -E runs the code through the compiler's parser,
3395 # not just through cpp. "Syntax error" is here to catch this case.
3396 cat >conftest.
$ac_ext <<_ACEOF
3399 cat confdefs.h
>>conftest.
$ac_ext
3400 cat >>conftest.
$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3403 # include <limits.h>
3405 # include <assert.h>
3409 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null && {
3422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3423 test ! -s conftest.err
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Broken: fails on valid input.
3434 rm -f conftest.err conftest.$ac_ext
3436 # OK, works on sane cases. Now check whether nonexistent headers
3437 # can be detected and how.
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 #include <ac_nonexistent.h>
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3449 *) ac_try_echo
=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1
>conftest.err
3456 cat conftest.err
>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev
/null
&& {
3459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3462 # Broken: success on invalid input.
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.
$ac_ext >&5
3468 # Passes both tests.
3473 rm -f conftest.err conftest.
$ac_ext
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.
$ac_ext
3478 if $ac_preproc_ok; then
3490 { echo "$as_me:$LINENO: result: $CPP" >&5
3491 echo "${ECHO_T}$CPP" >&6; }
3493 for ac_c_preproc_warn_flag
in '' yes
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat >conftest.
$ac_ext <<_ACEOF
3504 cat confdefs.h
>>conftest.
$ac_ext
3505 cat >>conftest.
$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3508 # include <limits.h>
3510 # include <assert.h>
3514 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null && {
3527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 # Broken: fails on valid input.
3539 rm -f conftest.err conftest.$ac_ext
3541 # OK, works on sane cases. Now check whether nonexistent headers
3542 # can be detected and how.
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <ac_nonexistent.h>
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3554 *) ac_try_echo
=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1
>conftest.err
3561 cat conftest.err
>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev
/null
&& {
3564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3567 # Broken: success on invalid input.
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.
$ac_ext >&5
3573 # Passes both tests.
3578 rm -f conftest.err conftest.
$ac_ext
3581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3582 rm -f conftest.err conftest.
$ac_ext
3583 if $ac_preproc_ok; then
3586 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3587 See \`config.log' for more details." >&5
3588 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3589 See \`config.log' for more details." >&2;}
3590 { (exit 1); exit 1; }; }
3594 ac_cpp
='$CPP $CPPFLAGS'
3595 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3600 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3601 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3602 if test "${ac_cv_path_GREP+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 # Extract the first word of "grep ggrep" to use in msg output
3606 if test -z "$GREP"; then
3607 set dummy
grep ggrep
; ac_prog_name
=$2
3608 if test "${ac_cv_path_GREP+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_path_GREP_found
=false
3612 # Loop through the user's path and test for each of PROGNAME-LIST
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3614 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_prog
in grep ggrep
; do
3619 for ac_exec_ext
in '' $ac_executable_extensions; do
3620 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3621 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3622 # Check for GNU ac_path_GREP and select it if it is found.
3623 # Check for GNU $ac_path_GREP
3624 case `"$ac_path_GREP" --version 2>&1` in
3626 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3629 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3632 cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 mv "conftest.tmp" "conftest.in"
3634 cp "conftest.in" "conftest.nl"
3635 echo 'GREP' >> "conftest.nl"
3636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3637 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3638 ac_count
=`expr $ac_count + 1`
3639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3640 # Best one so far, save it but keep looking for a better one
3641 ac_cv_path_GREP
="$ac_path_GREP"
3642 ac_path_GREP_max
=$ac_count
3644 # 10*(2^10) chars as input seems more than enough
3645 test $ac_count -gt 10 && break
3647 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3651 $ac_path_GREP_found && break 3
3661 GREP
="$ac_cv_path_GREP"
3662 if test -z "$GREP"; then
3663 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3665 { (exit 1); exit 1; }; }
3669 ac_cv_path_GREP
=$GREP
3674 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3675 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3676 GREP
="$ac_cv_path_GREP"
3679 { echo "$as_me:$LINENO: checking for egrep" >&5
3680 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3681 if test "${ac_cv_path_EGREP+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3685 then ac_cv_path_EGREP
="$GREP -E"
3687 # Extract the first word of "egrep" to use in msg output
3688 if test -z "$EGREP"; then
3689 set dummy
egrep; ac_prog_name
=$2
3690 if test "${ac_cv_path_EGREP+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 ac_path_EGREP_found
=false
3694 # Loop through the user's path and test for each of PROGNAME-LIST
3695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3696 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3699 test -z "$as_dir" && as_dir
=.
3700 for ac_prog
in egrep; do
3701 for ac_exec_ext
in '' $ac_executable_extensions; do
3702 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3703 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3704 # Check for GNU ac_path_EGREP and select it if it is found.
3705 # Check for GNU $ac_path_EGREP
3706 case `"$ac_path_EGREP" --version 2>&1` in
3708 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3711 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3714 cat "conftest.in" "conftest.in" >"conftest.tmp"
3715 mv "conftest.tmp" "conftest.in"
3716 cp "conftest.in" "conftest.nl"
3717 echo 'EGREP' >> "conftest.nl"
3718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3719 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3720 ac_count
=`expr $ac_count + 1`
3721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3722 # Best one so far, save it but keep looking for a better one
3723 ac_cv_path_EGREP
="$ac_path_EGREP"
3724 ac_path_EGREP_max
=$ac_count
3726 # 10*(2^10) chars as input seems more than enough
3727 test $ac_count -gt 10 && break
3729 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3733 $ac_path_EGREP_found && break 3
3743 EGREP
="$ac_cv_path_EGREP"
3744 if test -z "$EGREP"; then
3745 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747 { (exit 1); exit 1; }; }
3751 ac_cv_path_EGREP
=$EGREP
3757 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3758 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3759 EGREP
="$ac_cv_path_EGREP"
3763 { echo "$as_me:$LINENO: checking for AIX" >&5
3764 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3765 cat >conftest.
$ac_ext <<_ACEOF
3768 cat confdefs.h
>>conftest.
$ac_ext
3769 cat >>conftest.
$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "yes" >/dev
/null
2>&1; then
3778 { echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6; }
3780 cat >>confdefs.h
<<\_ACEOF
3781 #define _ALL_SOURCE 1
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3792 # Check for unsupported systems
3793 case $ac_sys_system/$ac_sys_release in
3795 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3796 echo See README
for details.
3801 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3802 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3804 # Check whether --with-suffix was given.
3805 if test "${with_suffix+set}" = set; then
3806 withval
=$with_suffix;
3810 *) EXEEXT
=$withval;;
3814 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3815 echo "${ECHO_T}$EXEEXT" >&6; }
3817 # Test whether we're running on a non-case-sensitive system, in which
3818 # case we give a warning if no ext is given
3820 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3821 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3822 if test ! -d CaseSensitiveTestDir
; then
3823 mkdir CaseSensitiveTestDir
3826 if test -d casesensitivetestdir
3828 { echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6; }
3832 { echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6; }
3836 rmdir CaseSensitiveTestDir
3841 gcc
) CC
="$CC -D_HAVE_BSDI";;
3845 case $ac_sys_system in
3848 cc|
*/cc
) CC
="$CC -Ae";;
3852 cc
) CC
="$CC -Wl,-Bexport";;
3855 # Some functions have a prototype only with that define, e.g. confstr
3857 cat >>confdefs.h
<<\_ACEOF
3858 #define __EXTENSIONS__ 1
3866 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3867 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3868 if test -z "$LIBRARY"
3870 LIBRARY
='libpython$(VERSION).a'
3872 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3873 echo "${ECHO_T}$LIBRARY" >&6; }
3875 # LDLIBRARY is the name of the library to link against (as opposed to the
3876 # name of the library into which to insert object files). BLDLIBRARY is also
3877 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3878 # is blank as the main program is not linked directly against LDLIBRARY.
3879 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3880 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3881 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3882 # DLLLIBRARY is the shared (i.e., DLL) library.
3884 # RUNSHARED is used to run shared python without installed libraries
3886 # INSTSONAME is the name of the shared library that will be use to install
3887 # on the system - some systems like version suffix, others don't
3894 LDLIBRARY
="$LIBRARY"
3895 BLDLIBRARY
='$(LDLIBRARY)'
3896 INSTSONAME
='$(LDLIBRARY)'
3901 # LINKCC is the command that links the python executable -- default is $(CC).
3902 # If CXX is set, and if it is needed to link a main function that was
3903 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3904 # python might then depend on the C++ runtime
3905 # This is altered for AIX in order to build the export list before
3908 { echo "$as_me:$LINENO: checking LINKCC" >&5
3909 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3910 if test -z "$LINKCC"
3912 LINKCC
='$(PURIFY) $(MAINCC)'
3913 case $ac_sys_system in
3916 if test $ac_sys_release -ge 5 -o \
3917 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3920 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3922 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3925 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3926 echo "${ECHO_T}$LINKCC" >&6; }
3928 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3929 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3930 # Check whether --enable-shared was given.
3931 if test "${enable_shared+set}" = set; then
3932 enableval
=$enable_shared;
3936 if test -z "$enable_shared"
3938 case $ac_sys_system in
3940 enable_shared
="yes";;
3942 enable_shared
="no";;
3945 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3946 echo "${ECHO_T}$enable_shared" >&6; }
3948 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3949 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3950 # Check whether --enable-profiling was given.
3951 if test "${enable_profiling+set}" = set; then
3952 enableval
=$enable_profiling; ac_save_cc
="$CC"
3954 if test "$cross_compiling" = yes; then
3955 ac_enable_profiling
="no"
3957 cat >conftest.
$ac_ext <<_ACEOF
3960 cat confdefs.h
>>conftest.
$ac_ext
3961 cat >>conftest.
$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 int main() { return 0; }
3965 rm -f conftest
$ac_exeext
3966 if { (ac_try
="$ac_link"
3968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_link") 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3976 { (case "(($ac_try" in
3977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3978 *) ac_try_echo
=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_enable_profiling
="yes"
3987 echo "$as_me: program exited with status $ac_status" >&5
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.
$ac_ext >&5
3992 ac_enable_profiling
="no"
3994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4001 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4002 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4004 case "$ac_enable_profiling" in
4006 BASECFLAGS
="-pg $BASECFLAGS"
4007 LDFLAGS
="-pg $LDFLAGS"
4011 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4012 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4014 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4015 # library that we build, but we do not want to link against it (we
4016 # will find it with a -framework option). For this reason there is an
4017 # extra variable BLDLIBRARY against which Python and the extension
4018 # modules are linked, BLDLIBRARY. This is normally the same as
4019 # LDLIBRARY, but empty for MacOSX framework builds.
4020 if test "$enable_framework"
4022 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4023 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4026 BLDLIBRARY
='$(LDLIBRARY)'
4029 # Other platforms follow
4030 if test $enable_shared = "yes"; then
4032 cat >>confdefs.h
<<\_ACEOF
4033 #define Py_ENABLE_SHARED 1
4036 case $ac_sys_system in
4038 LDLIBRARY
='libpython$(VERSION).so'
4041 LDLIBRARY
='libpython$(VERSION).dll.a'
4042 DLLLIBRARY
='libpython$(VERSION).dll'
4045 LDLIBRARY
='libpython$(VERSION).so'
4046 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4047 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4048 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4050 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4051 LDLIBRARY
='libpython$(VERSION).so'
4052 BLDLIBRARY
='-L. -lpython$(VERSION)'
4053 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4054 case $ac_sys_system in
4056 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4059 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4064 LDLIBRARY
='libpython$(VERSION).so'
4067 LDLIBRARY
='libpython$(VERSION).sl'
4070 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4071 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4074 LDLIBRARY
='libpython$(VERSION).so'
4075 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4076 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4079 LDLIBRARY
='libpython$(VERSION).so'
4080 BLDLIBRARY
='-L. -lpython$(VERSION)'
4081 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4084 else # shared is disabled
4085 case $ac_sys_system in
4087 BLDLIBRARY
='$(LIBRARY)'
4088 LDLIBRARY
='libpython$(VERSION).dll.a'
4093 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4094 echo "${ECHO_T}$LDLIBRARY" >&6; }
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4098 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4101 if test "${ac_cv_prog_RANLIB+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if test -n "$RANLIB"; then
4105 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir
=.
4112 for ac_exec_ext
in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 RANLIB
=$ac_cv_prog_RANLIB
4125 if test -n "$RANLIB"; then
4126 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4127 echo "${ECHO_T}$RANLIB" >&6; }
4129 { echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6; }
4135 if test -z "$ac_cv_prog_RANLIB"; then
4136 ac_ct_RANLIB
=$RANLIB
4137 # Extract the first word of "ranlib", so it can be a program name with args.
4138 set dummy ranlib
; ac_word
=$2
4139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 if test -n "$ac_ct_RANLIB"; then
4145 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir
=.
4152 for ac_exec_ext
in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4165 if test -n "$ac_ct_RANLIB"; then
4166 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4167 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4169 { echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6; }
4173 if test "x$ac_ct_RANLIB" = x
; then
4176 case $cross_compiling:$ac_tool_warned in
4178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4179 whose name does not start with the host triplet. If you think this
4180 configuration is useful to you, please write to autoconf@gnu.org." >&5
4181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4182 whose name does not start with the host triplet. If you think this
4183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4184 ac_tool_warned
=yes ;;
4186 RANLIB
=$ac_ct_RANLIB
4189 RANLIB
="$ac_cv_prog_RANLIB"
4193 for ac_prog
in ar aal
4195 # Extract the first word of "$ac_prog", so it can be a program name with args.
4196 set dummy
$ac_prog; ac_word
=$2
4197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4199 if test "${ac_cv_prog_AR+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 if test -n "$AR"; then
4203 ac_cv_prog_AR
="$AR" # Let the user override the test.
4205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir
=.
4210 for ac_exec_ext
in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_AR
="$ac_prog"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 if test -n "$AR"; then
4224 { echo "$as_me:$LINENO: result: $AR" >&5
4225 echo "${ECHO_T}$AR" >&6; }
4227 { echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6; }
4232 test -n "$AR" && break
4234 test -n "$AR" || AR
="ar"
4238 # Extract the first word of "svnversion", so it can be a program name with args.
4239 set dummy svnversion
; ac_word
=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$SVNVERSION"; then
4246 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_SVNVERSION
="found"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4266 SVNVERSION
=$ac_cv_prog_SVNVERSION
4267 if test -n "$SVNVERSION"; then
4268 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4269 echo "${ECHO_T}$SVNVERSION" >&6; }
4271 { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4276 if test $SVNVERSION = found
4278 SVNVERSION
="svnversion \$(srcdir)"
4280 SVNVERSION
="echo exported"
4285 # install -d does not work on BSDI or HP-UX
4286 if test -z "$INSTALL"
4288 INSTALL
="${srcdir}/install-sh -c"
4292 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4293 if test -f "$ac_dir/install-sh"; then
4295 ac_install_sh
="$ac_aux_dir/install-sh -c"
4297 elif test -f "$ac_dir/install.sh"; then
4299 ac_install_sh
="$ac_aux_dir/install.sh -c"
4301 elif test -f "$ac_dir/shtool"; then
4303 ac_install_sh
="$ac_aux_dir/shtool install -c"
4307 if test -z "$ac_aux_dir"; then
4308 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4309 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4310 { (exit 1); exit 1; }; }
4313 # These three variables are undocumented and unsupported,
4314 # and are intended to be withdrawn in a future Autoconf release.
4315 # They can cause serious problems if a builder's source tree is in a directory
4316 # whose full name contains unusual characters.
4317 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4318 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4319 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4322 # Find a good install program. We prefer a C program (faster),
4323 # so one script is as good as another. But avoid the broken or
4324 # incompatible versions:
4325 # SysV /etc/install, /usr/sbin/install
4326 # SunOS /usr/etc/install
4327 # IRIX /sbin/install
4329 # AmigaOS /C/install, which installs bootblocks on floppy discs
4330 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4331 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4332 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4333 # OS/2's system install, which has a completely different semantic
4334 # ./install, which can be erroneously created by make from ./install.sh.
4335 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4336 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4337 if test -z "$INSTALL"; then
4338 if test "${ac_cv_path_install+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4345 test -z "$as_dir" && as_dir
=.
4346 # Account for people who put trailing slashes in PATH elements.
4348 .
/ | .
// |
/cC
/* | \
4349 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4350 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4353 # OSF1 and SCO ODT 3.0 have their own names for install.
4354 # Don't use installbsd from OSF since it installs stuff as root
4356 for ac_prog
in ginstall scoinst
install; do
4357 for ac_exec_ext
in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4359 if test $ac_prog = install &&
4360 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4361 # AIX install. It has an incompatible calling convention.
4363 elif test $ac_prog = install &&
4364 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4365 # program-specific install script used by HP pwplus--don't use.
4368 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4381 if test "${ac_cv_path_install+set}" = set; then
4382 INSTALL
=$ac_cv_path_install
4384 # As a last resort, use the slow shell script. Don't cache a
4385 # value for INSTALL within a source directory, because that will
4386 # break other packages using the cache if that directory is
4387 # removed, or if the value is a relative name.
4388 INSTALL
=$ac_install_sh
4391 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4392 echo "${ECHO_T}$INSTALL" >&6; }
4394 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4395 # It thinks the first close brace ends the variable substitution.
4396 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4398 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4400 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4403 # Not every filesystem supports hard links
4405 if test -z "$LN" ; then
4406 case $ac_sys_system in
4408 CYGWIN
*) LN
="ln -s";;
4409 atheos
*) LN
="ln -s";;
4414 # Check for --with-pydebug
4415 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4416 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4418 # Check whether --with-pydebug was given.
4419 if test "${with_pydebug+set}" = set; then
4420 withval
=$with_pydebug;
4421 if test "$withval" != no
4424 cat >>confdefs.h
<<\_ACEOF
4428 { echo "$as_me:$LINENO: result: yes" >&5
4429 echo "${ECHO_T}yes" >&6; };
4431 else { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4435 { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4440 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4441 # merged with this chunk of code?
4443 # Optimizer/debugger flags
4444 # ------------------------
4445 # (The following bit of code is complicated enough - please keep things
4446 # indented properly. Just pretend you're editing Python code. ;-)
4448 # There are two parallel sets of case statements below, one that checks to
4449 # see if OPT was set and one that does BASECFLAGS setting based upon
4450 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4453 # tweak OPT based on compiler and platform, only if the user didn't set
4454 # it on the command line
4460 if test "$CC" != 'g++' ; then
4461 STRICT_PROTO
="-Wstrict-prototypes"
4463 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4464 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4467 case $ac_cv_prog_cc_g in
4469 if test "$Py_DEBUG" = 'true' ; then
4470 # Optimization messes up debuggers, so turn it off for
4472 OPT
="-g -Wall $STRICT_PROTO"
4474 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4478 OPT
="-O3 -Wall $STRICT_PROTO"
4481 case $ac_sys_system in
4482 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4492 # The current (beta) Monterey compiler dies with optimizations
4493 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4494 case $ac_sys_system in
4503 # tweak BASECFLAGS based on compiler and platform
4506 # Python violates C99 rules, by casting between incompatible
4507 # pointer types. GCC may generate bad code as a result of that,
4508 # so use -fno-strict-aliasing if supported.
4509 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4510 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4512 CC
="$CC -fno-strict-aliasing"
4513 if test "$cross_compiling" = yes; then
4514 ac_cv_no_strict_aliasing_ok
=no
4516 cat >conftest.
$ac_ext <<_ACEOF
4519 cat confdefs.h
>>conftest.
$ac_ext
4520 cat >>conftest.
$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 int main() { return 0; }
4524 rm -f conftest
$ac_exeext
4525 if { (ac_try
="$ac_link"
4527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_link") 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4535 { (case "(($ac_try" in
4536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4537 *) ac_try_echo
=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_try") 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_no_strict_aliasing_ok
=yes
4546 echo "$as_me: program exited with status $ac_status" >&5
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.
$ac_ext >&5
4551 ac_cv_no_strict_aliasing_ok
=no
4553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4558 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4559 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4560 if test $ac_cv_no_strict_aliasing_ok = yes
4562 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4565 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4566 # support. Without this, treatment of subnormals doesn't follow
4568 case $ac_sys_machine in
4570 BASECFLAGS
="$BASECFLAGS -mieee"
4574 case $ac_sys_system in
4576 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4578 # is there any other compiler on Darwin besides gcc?
4580 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4581 # used to be here, but non-Apple gcc doesn't accept them.
4582 if test "${enable_universalsdk}"; then
4583 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4588 BASECFLAGS
="$BASECFLAGS -mieee"
4594 case $ac_sys_system in
4595 OpenUNIX
*|UnixWare
*)
4596 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4599 BASECFLAGS
="$BASECFLAGS -ieee -std"
4602 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4608 if test "$Py_DEBUG" = 'true'; then
4614 if test "$ac_arch_flags"
4616 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4619 # disable check for icc since it seems to pass, but generates a warning
4622 ac_cv_opt_olimit_ok
=no
4625 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4626 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4627 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 CC
="$CC -OPT:Olimit=0"
4632 if test "$cross_compiling" = yes; then
4633 ac_cv_opt_olimit_ok
=no
4635 cat >conftest.
$ac_ext <<_ACEOF
4638 cat confdefs.h
>>conftest.
$ac_ext
4639 cat >>conftest.
$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 int main() { return 0; }
4643 rm -f conftest
$ac_exeext
4644 if { (ac_try
="$ac_link"
4646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_link") 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4654 { (case "(($ac_try" in
4655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4656 *) ac_try_echo
=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_try") 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_opt_olimit_ok
=yes
4665 echo "$as_me: program exited with status $ac_status" >&5
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.
$ac_ext >&5
4670 ac_cv_opt_olimit_ok
=no
4672 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4679 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4680 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4681 if test $ac_cv_opt_olimit_ok = yes; then
4682 case $ac_sys_system in
4683 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4684 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4689 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4693 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4694 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4695 if test "${ac_cv_olimit_ok+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 CC
="$CC -Olimit 1500"
4700 if test "$cross_compiling" = yes; then
4703 cat >conftest.
$ac_ext <<_ACEOF
4706 cat confdefs.h
>>conftest.
$ac_ext
4707 cat >>conftest.
$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 int main() { return 0; }
4711 rm -f conftest
$ac_exeext
4712 if { (ac_try
="$ac_link"
4714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_link") 2>&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4722 { (case "(($ac_try" in
4723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4724 *) ac_try_echo
=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_try") 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4733 echo "$as_me: program exited with status $ac_status" >&5
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.
$ac_ext >&5
4740 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4747 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4748 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4749 if test $ac_cv_olimit_ok = yes; then
4750 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4754 # Check whether GCC supports PyArg_ParseTuple format
4755 if test "$GCC" = "yes"
4757 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4758 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4760 CFLAGS
="$CFLAGS -Werror"
4761 cat >conftest.
$ac_ext <<_ACEOF
4764 cat confdefs.h
>>conftest.
$ac_ext
4765 cat >>conftest.
$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4778 rm -f conftest.
$ac_objext
4779 if { (ac_try
="$ac_compile"
4781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4785 (eval "$ac_compile") 2>conftest.er1
4787 grep -v '^ *+' conftest.er1 >conftest.err
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && {
4792 test -z "$ac_c_werror_flag" ||
4793 test ! -s conftest.err
4794 } && test -s conftest.$ac_objext; then
4796 cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4800 { echo "$as_me:$LINENO: result: yes" >&5
4801 echo "${ECHO_T}yes" >&6; }
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 # On some compilers, pthreads are available without further options
4816 # (e.g. MacOS X). On some of these systems, the compiler will not
4817 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4818 # So we have to see first whether pthreads are available without
4819 # options before we can check whether -Kpthread improves anything.
4820 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4821 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4822 if test "${ac_cv_pthread_is_default+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 if test "$cross_compiling" = yes; then
4826 ac_cv_pthread_is_default=no
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4835 #include <pthread.h>
4837 void* routine(void* p){return NULL;}
4841 if(pthread_create(&p,NULL,routine,NULL)!=0)
4843 (void)pthread_detach(p);
4848 rm -f conftest$ac_exeext
4849 if { (ac_try="$ac_link"
4851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4852 *) ac_try_echo
=$ac_try;;
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_link") 2>&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4859 { (case "(($ac_try" in
4860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_try") 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4869 ac_cv_pthread_is_default=yes
4874 echo "$as_me: program exited with status $ac_status" >&5
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4879 ac_cv_pthread_is_default=no
4881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4888 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4889 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4892 if test $ac_cv_pthread_is_default = yes
4896 # -Kpthread, if available, provides the right #defines
4897 # and linker options to make pthread_create available
4898 # Some compilers won't report that they do not support -Kpthread,
4899 # so we need to run a program to see whether it really made the
4900 # function available.
4901 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4902 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4903 if test "${ac_cv_kpthread+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test "$cross_compiling" = yes; then
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 #include <pthread.h>
4920 void* routine(void* p){return NULL;}
4924 if(pthread_create(&p,NULL,routine,NULL)!=0)
4926 (void)pthread_detach(p);
4931 rm -f conftest$ac_exeext
4932 if { (ac_try="$ac_link"
4934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4935 *) ac_try_echo
=$ac_try;;
4937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_link") 2>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4942 { (case "(($ac_try" in
4943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_try") 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4953 echo "$as_me: program exited with status $ac_status" >&5
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4967 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4968 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4971 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4973 # -Kthread, if available, provides the right #defines
4974 # and linker options to make pthread_create available
4975 # Some compilers won't report that they do not support -Kthread,
4976 # so we need to run a program to see whether it really made the
4977 # function available.
4978 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4979 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4980 if test "${ac_cv_kthread+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 if test "$cross_compiling" = yes; then
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4995 #include <pthread.h>
4997 void* routine(void* p){return NULL;}
5001 if(pthread_create(&p,NULL,routine,NULL)!=0)
5003 (void)pthread_detach(p);
5008 rm -f conftest$ac_exeext
5009 if { (ac_try="$ac_link"
5011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5012 *) ac_try_echo
=$ac_try;;
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_link") 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5019 { (case "(($ac_try" in
5020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_try") 2>&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 echo "$as_me: program exited with status $ac_status" >&5
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5044 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5045 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5048 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5050 # -pthread, if available, provides the right #defines
5051 # and linker options to make pthread_create available
5052 # Some compilers won't report that they do not support -pthread,
5053 # so we need to run a program to see whether it really made the
5054 # function available.
5055 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5056 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5057 if test "${ac_cv_thread+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 if test "$cross_compiling" = yes; then
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5072 #include <pthread.h>
5074 void* routine(void* p){return NULL;}
5078 if(pthread_create(&p,NULL,routine,NULL)!=0)
5080 (void)pthread_detach(p);
5085 rm -f conftest$ac_exeext
5086 if { (ac_try="$ac_link"
5088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5089 *) ac_try_echo
=$ac_try;;
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_link") 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5096 { (case "(($ac_try" in
5097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101 (eval "$ac_try") 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5107 echo "$as_me: program exited with status $ac_status" >&5
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5121 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5122 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5125 # If we have set a CC compiler flag for thread support then
5126 # check if it works for CXX, too.
5130 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5131 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5134 if test "$ac_cv_kpthread" = "yes"
5136 CXX="$CXX -Kpthread"
5137 ac_cv_cxx_thread=yes
5138 elif test "$ac_cv_kthread" = "yes"
5141 ac_cv_cxx_thread=yes
5142 elif test "$ac_cv_pthread" = "yes"
5145 ac_cv_cxx_thread=yes
5148 if test $ac_cv_cxx_thread = yes
5150 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5151 $CXX -c conftest.$ac_ext 2>&5
5152 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5153 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5155 ac_cv_cxx_thread=yes
5161 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5162 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5167 # checks for header files
5168 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5170 if test "${ac_cv_header_stdc+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5196 *) ac_try_echo
=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1
>conftest.err
5203 cat conftest.err
>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.
$ac_objext; then
5209 ac_cv_header_stdc
=yes
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.
$ac_ext >&5
5214 ac_cv_header_stdc
=no
5217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5219 if test $ac_cv_header_stdc = yes; then
5220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5221 cat >conftest.
$ac_ext <<_ACEOF
5224 cat confdefs.h
>>conftest.
$ac_ext
5225 cat >>conftest.
$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5231 $EGREP "memchr" >/dev
/null
2>&1; then
5234 ac_cv_header_stdc
=no
5240 if test $ac_cv_header_stdc = yes; then
5241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5242 cat >conftest.
$ac_ext <<_ACEOF
5245 cat confdefs.h
>>conftest.
$ac_ext
5246 cat >>conftest.
$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5252 $EGREP "free" >/dev
/null
2>&1; then
5255 ac_cv_header_stdc
=no
5261 if test $ac_cv_header_stdc = yes; then
5262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5263 if test "$cross_compiling" = yes; then
5266 cat >conftest.
$ac_ext <<_ACEOF
5269 cat confdefs.h
>>conftest.
$ac_ext
5270 cat >>conftest.
$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5274 #if ((' ' & 0x0FF) == 0x020)
5275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5278 # define ISLOWER(c) \
5279 (('a' <= (c) && (c) <= 'i') \
5280 || ('j' <= (c) && (c) <= 'r') \
5281 || ('s' <= (c) && (c) <= 'z'))
5282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5290 for (i = 0; i < 256; i++)
5291 if (XOR (islower (i), ISLOWER (i))
5292 || toupper (i) != TOUPPER (i))
5297 rm -f conftest
$ac_exeext
5298 if { (ac_try
="$ac_link"
5300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_link") 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5308 { (case "(($ac_try" in
5309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5310 *) ac_try_echo
=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_try") 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5319 echo "$as_me: program exited with status $ac_status" >&5
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5324 ac_cv_header_stdc
=no
5326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5332 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5333 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5334 if test $ac_cv_header_stdc = yes; then
5336 cat >>confdefs.h
<<\_ACEOF
5337 #define STDC_HEADERS 1
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5353 inttypes.h stdint.h unistd.h
5355 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5358 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 cat >conftest.
$ac_ext <<_ACEOF
5364 cat confdefs.h
>>conftest.
$ac_ext
5365 cat >>conftest.
$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5369 #include <$ac_header>
5371 rm -f conftest.
$ac_objext
5372 if { (ac_try
="$ac_compile"
5374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 eval "$as_ac_Header=yes"
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 eval "$as_ac_Header=no"
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 ac_res=`eval echo '${'$as_ac_Header'}'`
5399 { echo "$as_me:$LINENO: result: $ac_res" >&5
5400 echo "${ECHO_T}$ac_res" >&6; }
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5464 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5466 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5467 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5469 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5470 sys/lock.h sys/mkdev.h sys/modem.h \
5471 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5473 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5474 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5475 bluetooth/bluetooth.h linux/tipc.h
5477 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_res=`eval echo '${'$as_ac_Header'}'`
5485 { echo "$as_me:$LINENO: result: $ac_res" >&5
5486 echo "${ECHO_T}$ac_res" >&6; }
5488 # Is the header compilable?
5489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5498 #include <$ac_header>
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5504 *) ac_try_echo
=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1
>conftest.err
5511 cat conftest.err
>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.
$ac_objext; then
5517 ac_header_compiler
=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.
$ac_ext >&5
5522 ac_header_compiler
=no
5525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5527 echo "${ECHO_T}$ac_header_compiler" >&6; }
5529 # Is the header present?
5530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5532 cat >conftest.
$ac_ext <<_ACEOF
5535 cat confdefs.h
>>conftest.
$ac_ext
5536 cat >>conftest.
$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 #include <$ac_header>
5540 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5548 grep -v '^ *+' conftest.er1 >conftest.err
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } >/dev/null && {
5553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5556 ac_header_preproc=yes
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 ac_header_preproc=no
5564 rm -f conftest.err conftest.$ac_ext
5565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5566 echo "${ECHO_T}$ac_header_preproc" >&6; }
5568 # So? What about this header?
5569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5575 ac_header_preproc=yes
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5591 ## ------------------------------------------------ ##
5592 ## Report this to http://www.python.org/python-bugs ##
5593 ## ------------------------------------------------ ##
5595 ) | sed "s/^/$as_me: WARNING: /" >&2
5598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $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 eval "$as_ac_Header=\$ac_header_preproc"
5605 ac_res=`eval echo '${'$as_ac_Header'}'`
5606 { echo "$as_me:$LINENO: result: $ac_res" >&5
5607 echo "${ECHO_T}$ac_res" >&6; }
5610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5611 cat >>confdefs.h <<_ACEOF
5612 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5626 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5627 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5628 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5654 *) ac_try_echo
=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1
>conftest.err
5661 cat conftest.err
>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.
$ac_objext; then
5667 eval "$as_ac_Header=yes"
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.
$ac_ext >&5
5672 eval "$as_ac_Header=no"
5675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5677 ac_res
=`eval echo '${'$as_ac_Header'}'`
5678 { echo "$as_me:$LINENO: result: $ac_res" >&5
5679 echo "${ECHO_T}$ac_res" >&6; }
5680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5681 cat >>confdefs.h
<<_ACEOF
5682 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5685 ac_header_dirent
=$ac_hdr; break
5689 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5690 if test $ac_header_dirent = dirent.h
; then
5691 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5692 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5693 if test "${ac_cv_search_opendir+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 ac_func_search_save_LIBS
=$LIBS
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5704 /* Override any GCC internal prototype to avoid an error.
5705 Use char because int might match the return type of a GCC
5706 builtin and then its argument prototype would still apply. */
5719 for ac_lib
in '' dir
; do
5720 if test -z "$ac_lib"; then
5721 ac_res
="none required"
5724 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5726 rm -f conftest.
$ac_objext conftest
$ac_exeext
5727 if { (ac_try
="$ac_link"
5729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_link") 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest$ac_exeext &&
5743 $as_test_x conftest$ac_exeext; then
5744 ac_cv_search_opendir=$ac_res
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5754 if test "${ac_cv_search_opendir+set}" = set; then
5758 if test "${ac_cv_search_opendir+set}" = set; then
5761 ac_cv_search_opendir=no
5764 LIBS=$ac_func_search_save_LIBS
5766 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5767 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5768 ac_res=$ac_cv_search_opendir
5769 if test "$ac_res" != no; then
5770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5775 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5777 if test "${ac_cv_search_opendir+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_func_search_save_LIBS=$LIBS
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5788 /* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5803 for ac_lib in '' x; do
5804 if test -z "$ac_lib"; then
5805 ac_res="none required"
5808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (ac_try="$ac_link"
5813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5814 *) ac_try_echo
=$ac_try;;
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_link") 2>conftest.er1
5819 grep -v '^ *+' conftest.er1
>conftest.err
5821 cat conftest.err
>&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && {
5824 test -z "$ac_c_werror_flag" ||
5825 test ! -s conftest.err
5826 } && test -s conftest
$ac_exeext &&
5827 $as_test_x conftest
$ac_exeext; then
5828 ac_cv_search_opendir
=$ac_res
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5836 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5838 if test "${ac_cv_search_opendir+set}" = set; then
5842 if test "${ac_cv_search_opendir+set}" = set; then
5845 ac_cv_search_opendir
=no
5848 LIBS
=$ac_func_search_save_LIBS
5850 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5851 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5852 ac_res
=$ac_cv_search_opendir
5853 if test "$ac_res" != no
; then
5854 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5860 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5861 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5862 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 cat >conftest.
$ac_ext <<_ACEOF
5868 cat confdefs.h
>>conftest.
$ac_ext
5869 cat >>conftest.
$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <sys/types.h>
5875 return makedev(0, 0);
5880 rm -f conftest.
$ac_objext conftest
$ac_exeext
5881 if { (ac_try
="$ac_link"
5883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_link") 2>conftest.er1
5889 grep -v '^ *+' conftest.er1 >conftest.err
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest$ac_exeext &&
5897 $as_test_x conftest$ac_exeext; then
5898 ac_cv_header_sys_types_h_makedev=yes
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 ac_cv_header_sys_types_h_makedev=no
5906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5907 conftest$ac_exeext conftest.$ac_ext
5910 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5911 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5913 if test $ac_cv_header_sys_types_h_makedev = no; then
5914 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5915 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5916 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5917 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5921 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5923 # Is the header compilable?
5924 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5925 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5926 cat >conftest.$ac_ext <<_ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 $ac_includes_default
5933 #include <sys/mkdev.h>
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5939 *) ac_try_echo
=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5944 grep -v '^ *+' conftest.er1
>conftest.err
5946 cat conftest.err
>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.
$ac_objext; then
5952 ac_header_compiler
=yes
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.
$ac_ext >&5
5957 ac_header_compiler
=no
5960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5962 echo "${ECHO_T}$ac_header_compiler" >&6; }
5964 # Is the header present?
5965 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5966 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5967 cat >conftest.
$ac_ext <<_ACEOF
5970 cat confdefs.h
>>conftest.
$ac_ext
5971 cat >>conftest.
$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/mkdev.h>
5975 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5991 ac_header_preproc=yes
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_header_preproc=no
5999 rm -f conftest.err conftest.$ac_ext
6000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6001 echo "${ECHO_T}$ac_header_preproc" >&6; }
6003 # So? What about this header?
6004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6006 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6007 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6009 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6010 ac_header_preproc=yes
6013 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6014 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6016 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6018 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6020 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6022 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6024 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6026 ## ------------------------------------------------ ##
6027 ## Report this to http://www.python.org/python-bugs ##
6028 ## ------------------------------------------------ ##
6030 ) | sed "s/^/$as_me: WARNING: /" >&2
6033 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6034 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6035 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6040 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6041 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6044 if test $ac_cv_header_sys_mkdev_h = yes; then
6046 cat >>confdefs.h <<\_ACEOF
6047 #define MAJOR_IN_MKDEV 1
6054 if test $ac_cv_header_sys_mkdev_h = no; then
6055 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6056 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6057 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6058 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6062 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6064 # Is the header compilable?
6065 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6066 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6067 cat >conftest.$ac_ext <<_ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 $ac_includes_default
6074 #include <sys/sysmacros.h>
6076 rm -f conftest.$ac_objext
6077 if { (ac_try="$ac_compile"
6079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6080 *) ac_try_echo
=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6085 grep -v '^ *+' conftest.er1
>conftest.err
6087 cat conftest.err
>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.
$ac_objext; then
6093 ac_header_compiler
=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.
$ac_ext >&5
6098 ac_header_compiler
=no
6101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6103 echo "${ECHO_T}$ac_header_compiler" >&6; }
6105 # Is the header present?
6106 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6107 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6108 cat >conftest.
$ac_ext <<_ACEOF
6111 cat confdefs.h
>>conftest.
$ac_ext
6112 cat >>conftest.
$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <sys/sysmacros.h>
6116 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } >/dev/null && {
6129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6132 ac_header_preproc=yes
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_header_preproc=no
6140 rm -f conftest.err conftest.$ac_ext
6141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6142 echo "${ECHO_T}$ac_header_preproc" >&6; }
6144 # So? What about this header?
6145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6147 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6148 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6150 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6151 ac_header_preproc=yes
6154 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6155 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6157 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6158 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6159 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6161 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6163 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6164 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6165 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6167 ## ------------------------------------------------ ##
6168 ## Report this to http://www.python.org/python-bugs ##
6169 ## ------------------------------------------------ ##
6171 ) | sed "s/^/$as_me: WARNING: /" >&2
6174 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6175 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6181 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6182 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6185 if test $ac_cv_header_sys_sysmacros_h = yes; then
6187 cat >>confdefs.h <<\_ACEOF
6188 #define MAJOR_IN_SYSMACROS 1
6198 # On Solaris, term.h requires curses.h
6200 for ac_header in term.h
6202 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6215 #ifdef HAVE_CURSES_H
6220 #include <$ac_header>
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6226 *) ac_try_echo
=$ac_try;;
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_compile") 2>conftest.er1
6231 grep -v '^ *+' conftest.er1
>conftest.err
6233 cat conftest.err
>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && {
6236 test -z "$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 } && test -s conftest.
$ac_objext; then
6239 eval "$as_ac_Header=yes"
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.
$ac_ext >&5
6244 eval "$as_ac_Header=no"
6247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6249 ac_res
=`eval echo '${'$as_ac_Header'}'`
6250 { echo "$as_me:$LINENO: result: $ac_res" >&5
6251 echo "${ECHO_T}$ac_res" >&6; }
6252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6253 cat >>confdefs.h
<<_ACEOF
6254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262 # On Linux, netlink.h requires asm/types.h
6264 for ac_header
in linux
/netlink.h
6266 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6269 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 cat >conftest.
$ac_ext <<_ACEOF
6275 cat confdefs.h
>>conftest.
$ac_ext
6276 cat >>conftest.
$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6279 #ifdef HAVE_ASM_TYPES_H
6280 #include <asm/types.h>
6282 #ifdef HAVE_SYS_SOCKET_H
6283 #include <sys/socket.h>
6287 #include <$ac_header>
6289 rm -f conftest.
$ac_objext
6290 if { (ac_try
="$ac_compile"
6292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 eval "$as_ac_Header=yes"
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 eval "$as_ac_Header=no"
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 ac_res=`eval echo '${'$as_ac_Header'}'`
6317 { echo "$as_me:$LINENO: result: $ac_res" >&5
6318 echo "${ECHO_T}$ac_res" >&6; }
6319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6329 # checks for typedefs
6331 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6332 echo $ECHO_N "checking for clock_t in time.h... $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. */
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 $EGREP "clock_t" >/dev/null 2>&1; then
6348 cat >>confdefs.h <<\_ACEOF
6349 #define clock_t long
6356 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6357 echo "${ECHO_T}$was_it_defined" >&6; }
6359 # Check whether using makedev requires defining _OSF_SOURCE
6360 { echo "$as_me:$LINENO: checking for makedev" >&5
6361 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <sys/types.h>
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (ac_try="$ac_link"
6380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6381 *) ac_try_echo
=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_link") 2>conftest.er1
6386 grep -v '^ *+' conftest.er1
>conftest.err
6388 cat conftest.err
>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest
$ac_exeext &&
6394 $as_test_x conftest
$ac_exeext; then
6395 ac_cv_has_makedev
=yes
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.
$ac_ext >&5
6400 ac_cv_has_makedev
=no
6403 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6404 conftest
$ac_exeext conftest.
$ac_ext
6405 if test "$ac_cv_has_makedev" = "no"; then
6406 # we didn't link, try if _OSF_SOURCE will allow us to link
6407 cat >conftest.
$ac_ext <<_ACEOF
6410 cat confdefs.h
>>conftest.
$ac_ext
6411 cat >>conftest.
$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6414 #define _OSF_SOURCE 1
6415 #include <sys/types.h>
6425 rm -f conftest.
$ac_objext conftest
$ac_exeext
6426 if { (ac_try
="$ac_link"
6428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_link") 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest$ac_exeext &&
6442 $as_test_x conftest$ac_exeext; then
6443 ac_cv_has_makedev=yes
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_cv_has_makedev=no
6451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6452 conftest$ac_exeext conftest.$ac_ext
6453 if test "$ac_cv_has_makedev" = "yes"; then
6455 cat >>confdefs.h <<\_ACEOF
6456 #define _OSF_SOURCE 1
6461 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6462 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6463 if test "$ac_cv_has_makedev" = "yes"; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_MAKEDEV 1
6471 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6472 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6473 # defined, but the compiler does not support pragma redefine_extname,
6474 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6475 # structures (such as rlimit64) without declaring them. As a
6476 # work-around, disable LFS on such configurations
6479 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6480 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6488 #define _LARGEFILE_SOURCE 1
6489 #define _FILE_OFFSET_BITS 64
6490 #include <sys/resource.h>
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6504 *) ac_try_echo
=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1
>conftest.err
6511 cat conftest.err
>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.
$ac_objext; then
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.
$ac_ext >&5
6525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6526 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6527 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6528 if test "$sol_lfs_bug" = "yes"; then
6532 if test "$use_lfs" = "yes"; then
6533 # Two defines needed to enable largefile support on various platforms
6534 # These may affect some typedefs
6536 cat >>confdefs.h
<<\_ACEOF
6537 #define _LARGEFILE_SOURCE 1
6541 cat >>confdefs.h
<<\_ACEOF
6542 #define _FILE_OFFSET_BITS 64
6547 # Add some code to confdefs.h so that the test for off_t works on SCO
6548 cat >> confdefs.h
<<\EOF
6554 # Type availability checks
6555 { echo "$as_me:$LINENO: checking for mode_t" >&5
6556 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6557 if test "${ac_cv_type_mode_t+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 cat >conftest.
$ac_ext <<_ACEOF
6563 cat confdefs.h
>>conftest.
$ac_ext
6564 cat >>conftest.
$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 $ac_includes_default
6567 typedef mode_t ac__type_new_;
6571 if ((ac__type_new_ *) 0)
6573 if (sizeof (ac__type_new_))
6579 rm -f conftest.
$ac_objext
6580 if { (ac_try
="$ac_compile"
6582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6588 grep -v '^ *+' conftest.er1 >conftest.err
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest.$ac_objext; then
6596 ac_cv_type_mode_t=yes
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_type_mode_t=no
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6607 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6608 if test $ac_cv_type_mode_t = yes; then
6612 cat >>confdefs.h <<_ACEOF
6618 { echo "$as_me:$LINENO: checking for off_t" >&5
6619 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6620 if test "${ac_cv_type_off_t+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6630 typedef off_t ac__type_new_;
6634 if ((ac__type_new_ *) 0)
6636 if (sizeof (ac__type_new_))
6642 rm -f conftest.$ac_objext
6643 if { (ac_try="$ac_compile"
6645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6646 *) ac_try_echo
=$ac_try;;
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_compile") 2>conftest.er1
6651 grep -v '^ *+' conftest.er1
>conftest.err
6653 cat conftest.err
>&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_c_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest.
$ac_objext; then
6659 ac_cv_type_off_t
=yes
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.
$ac_ext >&5
6667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6669 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6670 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6671 if test $ac_cv_type_off_t = yes; then
6675 cat >>confdefs.h
<<_ACEOF
6676 #define off_t long int
6681 { echo "$as_me:$LINENO: checking for pid_t" >&5
6682 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6683 if test "${ac_cv_type_pid_t+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 $ac_includes_default
6693 typedef pid_t ac__type_new_;
6697 if ((ac__type_new_ *) 0)
6699 if (sizeof (ac__type_new_))
6705 rm -f conftest.
$ac_objext
6706 if { (ac_try
="$ac_compile"
6708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6714 grep -v '^ *+' conftest.er1 >conftest.err
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 ac_cv_type_pid_t=yes
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6733 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6734 if test $ac_cv_type_pid_t = yes; then
6738 cat >>confdefs.h <<_ACEOF
6744 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6745 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6746 if test "${ac_cv_type_signal+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.$ac_ext <<_ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <sys/types.h>
6761 return *(signal (0, 0)) (0) == 1;
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6770 *) ac_try_echo
=$ac_try;;
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1
>conftest.err
6777 cat conftest.err
>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.
$ac_objext; then
6783 ac_cv_type_signal
=int
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.
$ac_ext >&5
6788 ac_cv_type_signal
=void
6791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6793 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6794 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6796 cat >>confdefs.h
<<_ACEOF
6797 #define RETSIGTYPE $ac_cv_type_signal
6801 { echo "$as_me:$LINENO: checking for size_t" >&5
6802 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6803 if test "${ac_cv_type_size_t+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 cat >conftest.
$ac_ext <<_ACEOF
6809 cat confdefs.h
>>conftest.
$ac_ext
6810 cat >>conftest.
$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 $ac_includes_default
6813 typedef size_t ac__type_new_;
6817 if ((ac__type_new_ *) 0)
6819 if (sizeof (ac__type_new_))
6825 rm -f conftest.
$ac_objext
6826 if { (ac_try
="$ac_compile"
6828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_compile") 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest.$ac_objext; then
6842 ac_cv_type_size_t=yes
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_type_size_t=no
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6853 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6854 if test $ac_cv_type_size_t = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define size_t unsigned int
6864 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6865 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6866 if test "${ac_cv_type_uid_t+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 #include <sys/types.h>
6878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6879 $EGREP "uid_t" >/dev/null 2>&1; then
6880 ac_cv_type_uid_t=yes
6887 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6888 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6889 if test $ac_cv_type_uid_t = no; then
6891 cat >>confdefs.h <<\_ACEOF
6896 cat >>confdefs.h <<\_ACEOF
6902 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6903 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6904 if test "${ac_cv_type_ssize_t+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6914 typedef ssize_t ac__type_new_;
6918 if ((ac__type_new_ *) 0)
6920 if (sizeof (ac__type_new_))
6926 rm -f conftest.$ac_objext
6927 if { (ac_try="$ac_compile"
6929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6930 *) ac_try_echo
=$ac_try;;
6932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 (eval "$ac_compile") 2>conftest.er1
6935 grep -v '^ *+' conftest.er1
>conftest.err
6937 cat conftest.err
>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && {
6940 test -z "$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6942 } && test -s conftest.
$ac_objext; then
6943 ac_cv_type_ssize_t
=yes
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.
$ac_ext >&5
6948 ac_cv_type_ssize_t
=no
6951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6954 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6955 if test $ac_cv_type_ssize_t = yes; then
6957 cat >>confdefs.h
<<\_ACEOF
6958 #define HAVE_SSIZE_T 1
6964 # Sizes of various common basic types
6965 # ANSI C requires sizeof(char) == 1, so no need to check it
6966 { echo "$as_me:$LINENO: checking for int" >&5
6967 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6968 if test "${ac_cv_type_int+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 cat >conftest.
$ac_ext <<_ACEOF
6974 cat confdefs.h
>>conftest.
$ac_ext
6975 cat >>conftest.
$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 $ac_includes_default
6978 typedef int ac__type_new_;
6982 if ((ac__type_new_ *) 0)
6984 if (sizeof (ac__type_new_))
6990 rm -f conftest.
$ac_objext
6991 if { (ac_try
="$ac_compile"
6993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1 >conftest.err
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.$ac_objext; then
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7018 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7020 # The cast to long int works around a bug in the HP C Compiler
7021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7022 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7023 # This bug is HP SR number 8606223364.
7024 { echo "$as_me:$LINENO: checking size of int" >&5
7025 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7026 if test "${ac_cv_sizeof_int+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 if test "$cross_compiling" = yes; then
7030 # Depending upon the size, compute the lo and hi bounds.
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7038 typedef int ac__type_sizeof_;
7042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7058 grep -v '^
*+' conftest.er1 >conftest.err
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 typedef int ac__type_sizeof_;
7079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7095 grep -v '^
*+' conftest.er1 >conftest.err
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.$ac_objext; then
7103 ac_hi=$ac_mid; break
7105 echo "$as_me: failed program was:" >&5
7106 sed 's
/^
/|
/' conftest.$ac_ext >&5
7108 ac_lo=`expr $ac_mid + 1`
7109 if test $ac_lo -le $ac_mid; then
7113 ac_mid=`expr 2 '*' $ac_mid + 1`
7116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 echo "$as_me: failed program was:" >&5
7120 sed 's
/^
/|
/' conftest.$ac_ext >&5
7122 cat >conftest.$ac_ext <<_ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 $ac_includes_default
7129 typedef int ac__type_sizeof_;
7133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7140 rm -f conftest.$ac_objext
7141 if { (ac_try="$ac_compile"
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147 (eval "$ac_compile") 2>conftest.er1
7149 grep -v '^
*+' conftest.er1 >conftest.err
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
7156 } && test -s conftest.$ac_objext; then
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 $ac_includes_default
7166 typedef int ac__type_sizeof_;
7170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7177 rm -f conftest.$ac_objext
7178 if { (ac_try="$ac_compile"
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7186 grep -v '^
*+' conftest.er1 >conftest.err
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7194 ac_lo=$ac_mid; break
7196 echo "$as_me: failed program was:" >&5
7197 sed 's
/^
/|
/' conftest.$ac_ext >&5
7199 ac_hi=`expr '(' $ac_mid ')' - 1`
7200 if test $ac_mid -le $ac_hi; then
7204 ac_mid=`expr 2 '*' $ac_mid`
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 echo "$as_me: failed program was:" >&5
7211 sed 's
/^
/|
/' conftest.$ac_ext >&5
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 # Binary search between lo and hi bounds.
7221 while test "x$ac_lo" != "x$ac_hi"; do
7222 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 $ac_includes_default
7230 typedef int ac__type_sizeof_;
7234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compile") 2>conftest.er1
7250 grep -v '^
*+' conftest.er1 >conftest.err
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_c_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest.$ac_objext; then
7260 echo "$as_me: failed program was:" >&5
7261 sed 's
/^
/|
/' conftest.$ac_ext >&5
7263 ac_lo=`expr '(' $ac_mid ')' + 1`
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 ?*) ac_cv_sizeof_int=$ac_lo;;
7270 '') if test "$ac_cv_type_int" = yes; then
7271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7272 See \`config.log' for more details.
" >&5
7273 echo "$as_me: error
: cannot compute sizeof
(int
)
7274 See \
`config.log' for more details." >&2;}
7275 { (exit 77); exit 77; }; }
7281 cat >conftest.$ac_ext <<_ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7288 typedef int ac__type_sizeof_;
7289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7297 FILE *f = fopen ("conftest.val", "w");
7300 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7302 long int i = longval ();
7303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7305 fprintf (f, "%ld\n", i);
7309 unsigned long int i = ulongval ();
7310 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7312 fprintf (f, "%lu\n", i);
7314 return ferror (f) || fclose (f) != 0;
7320 rm -f conftest$ac_exeext
7321 if { (ac_try="$ac_link"
7323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7324 *) ac_try_echo
=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_link") 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7331 { (case "(($ac_try" in
7332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_try") 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_sizeof_int=`cat conftest.val
`
7342 echo "$as_me: program exited with status $ac_status" >&5
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7347 if test "$ac_cv_type_int" = yes; then
7348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7349 See \`config.log
' for more details." >&5
7350 echo "$as_me: error: cannot compute sizeof (int)
7351 See \`config.log' for more details.
" >&2;}
7352 { (exit 77); exit 77; }; }
7357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7361 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7362 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7366 cat >>confdefs.h <<_ACEOF
7367 #define SIZEOF_INT $ac_cv_sizeof_int
7371 { echo "$as_me:$LINENO: checking
for long
" >&5
7372 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7373 if test "${ac_cv_type_long+set}" = set; then
7374 echo $ECHO_N "(cached
) $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7383 typedef long ac__type_new_;
7387 if ((ac__type_new_ *) 0)
7389 if (sizeof (ac__type_new_))
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7414 echo "$as_me: failed program was
:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7423 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7425 # The cast to long int works around a bug in the HP C Compiler
7426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7428 # This bug is HP SR number 8606223364.
7429 { echo "$as_me:$LINENO: checking size of long
" >&5
7430 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7431 if test "${ac_cv_sizeof_long+set}" = set; then
7432 echo $ECHO_N "(cached
) $ECHO_C" >&6
7434 if test "$cross_compiling" = yes; then
7435 # Depending upon the size, compute the lo and hi bounds.
7436 cat >conftest.$ac_ext <<_ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7443 typedef long ac__type_sizeof_;
7447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7454 rm -f conftest.$ac_objext
7455 if { (ac_try="$ac_compile"
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7473 cat >conftest.$ac_ext <<_ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 $ac_includes_default
7480 typedef long ac__type_sizeof_;
7484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7508 ac_hi=$ac_mid; break
7510 echo "$as_me: failed program was
:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_lo=`expr $ac_mid + 1`
7514 if test $ac_lo -le $ac_mid; then
7518 ac_mid=`expr 2 '*' $ac_mid + 1`
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 echo "$as_me: failed program was
:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 cat >conftest.$ac_ext <<_ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7534 typedef long ac__type_sizeof_;
7538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7545 rm -f conftest.$ac_objext
7546 if { (ac_try="$ac_compile"
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_compile") 2>conftest.er1
7554 grep -v '^ *+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest.$ac_objext; then
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 typedef long ac__type_sizeof_;
7575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_compile") 2>conftest.er1
7591 grep -v '^ *+' conftest.er1 >conftest.err
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest.$ac_objext; then
7599 ac_lo=$ac_mid; break
7601 echo "$as_me: failed program was
:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7604 ac_hi=`expr '(' $ac_mid ')' - 1`
7605 if test $ac_mid -le $ac_hi; then
7609 ac_mid=`expr 2 '*' $ac_mid`
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 echo "$as_me: failed program was
:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 # Binary search between lo and hi bounds.
7626 while test "x
$ac_lo" != "x
$ac_hi"; do
7627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7628 cat >conftest.$ac_ext <<_ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 typedef long ac__type_sizeof_;
7639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7646 rm -f conftest.$ac_objext
7647 if { (ac_try="$ac_compile"
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7655 grep -v '^ *+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7665 echo "$as_me: failed program was
:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_lo=`expr '(' $ac_mid ')' + 1`
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 ?*) ac_cv_sizeof_long=$ac_lo;;
7675 '') if test "$ac_cv_type_long" = yes; then
7676 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7677 See \
`config.log' for more details." >&5
7678 echo "$as_me: error: cannot compute sizeof (long)
7679 See \`config.log
' for more details." >&2;}
7680 { (exit 77); exit 77; }; }
7686 cat >conftest.$ac_ext <<_ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 $ac_includes_default
7693 typedef long ac__type_sizeof_;
7694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7702 FILE *f = fopen ("conftest.val", "w");
7705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7707 long int i = longval ();
7708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7710 fprintf (f, "%ld\n", i);
7714 unsigned long int i = ulongval ();
7715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7717 fprintf (f, "%lu\n", i);
7719 return ferror (f) || fclose (f) != 0;
7725 rm -f conftest$ac_exeext
7726 if { (ac_try="$ac_link"
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_link") 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7736 { (case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_try") 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_cv_sizeof_long=`cat conftest.val`
7747 echo "$as_me: program exited with status $ac_status" >&5
7748 echo "$as_me: failed program was:" >&5
7749 sed 's
/^
/|
/' conftest.$ac_ext >&5
7752 if test "$ac_cv_type_long" = yes; then
7753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7754 See \`config.log' for more details.
" >&5
7755 echo "$as_me: error
: cannot compute sizeof
(long
)
7756 See \
`config.log' for more details." >&2;}
7757 { (exit 77); exit 77; }; }
7762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7767 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7771 cat >>confdefs.h <<_ACEOF
7772 #define SIZEOF_LONG $ac_cv_sizeof_long
7776 { echo "$as_me:$LINENO: checking for void *" >&5
7777 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7778 if test "${ac_cv_type_void_p+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 cat >conftest.$ac_ext <<_ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 $ac_includes_default
7788 typedef void * ac__type_new_;
7792 if ((ac__type_new_ *) 0)
7794 if (sizeof (ac__type_new_))
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7804 *) ac_try_echo
=$ac_try;;
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7809 grep -v '^ *+' conftest.er1
>conftest.err
7811 cat conftest.err
>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.
$ac_objext; then
7817 ac_cv_type_void_p
=yes
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.
$ac_ext >&5
7822 ac_cv_type_void_p
=no
7825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7827 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7828 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7830 # The cast to long int works around a bug in the HP C Compiler
7831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7833 # This bug is HP SR number 8606223364.
7834 { echo "$as_me:$LINENO: checking size of void *" >&5
7835 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7836 if test "${ac_cv_sizeof_void_p+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 if test "$cross_compiling" = yes; then
7840 # Depending upon the size, compute the lo and hi bounds.
7841 cat >conftest.
$ac_ext <<_ACEOF
7844 cat confdefs.h
>>conftest.
$ac_ext
7845 cat >>conftest.
$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 $ac_includes_default
7848 typedef void * ac__type_sizeof_;
7852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7859 rm -f conftest.
$ac_objext
7860 if { (ac_try
="$ac_compile"
7862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 $ac_includes_default
7885 typedef void * ac__type_sizeof_;
7889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7900 *) ac_try_echo
=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1
>conftest.err
7907 cat conftest.err
>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.
$ac_objext; then
7913 ac_hi
=$ac_mid; break
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7918 ac_lo
=`expr $ac_mid + 1`
7919 if test $ac_lo -le $ac_mid; then
7923 ac_mid
=`expr 2 '*' $ac_mid + 1`
7926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.
$ac_ext >&5
7932 cat >conftest.
$ac_ext <<_ACEOF
7935 cat confdefs.h
>>conftest.
$ac_ext
7936 cat >>conftest.
$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7939 typedef void * ac__type_sizeof_;
7943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7950 rm -f conftest.
$ac_objext
7951 if { (ac_try
="$ac_compile"
7953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.$ac_objext; then
7969 cat >conftest.$ac_ext <<_ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7976 typedef void * ac__type_sizeof_;
7980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7991 *) ac_try_echo
=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7996 grep -v '^ *+' conftest.er1
>conftest.err
7998 cat conftest.err
>&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.
$ac_objext; then
8004 ac_lo
=$ac_mid; break
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.
$ac_ext >&5
8009 ac_hi
=`expr '(' $ac_mid ')' - 1`
8010 if test $ac_mid -le $ac_hi; then
8014 ac_mid
=`expr 2 '*' $ac_mid`
8017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.
$ac_ext >&5
8026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8030 # Binary search between lo and hi bounds.
8031 while test "x$ac_lo" != "x$ac_hi"; do
8032 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8033 cat >conftest.
$ac_ext <<_ACEOF
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8040 typedef void * ac__type_sizeof_;
8044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8051 rm -f conftest.
$ac_objext
8052 if { (ac_try
="$ac_compile"
8054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8055 *) ac_try_echo=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_compile") 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && {
8065 test -z "$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 } && test -s conftest.$ac_objext; then
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_lo=`expr '(' $ac_mid ')' + 1`
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8080 '') if test "$ac_cv_type_void_p" = yes; then
8081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8082 See \`config.log
' for more details." >&5
8083 echo "$as_me: error: cannot compute sizeof (void *)
8084 See \`config.log' for more details.
" >&2;}
8085 { (exit 77); exit 77; }; }
8087 ac_cv_sizeof_void_p=0
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8097 $ac_includes_default
8098 typedef void * ac__type_sizeof_;
8099 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8100 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8107 FILE *f = fopen ("conftest.val
", "w
");
8110 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8112 long int i = longval ();
8113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8115 fprintf (f, "%ld
\n", i);
8119 unsigned long int i = ulongval ();
8120 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8122 fprintf (f, "%lu
\n", i);
8124 return ferror (f) || fclose (f) != 0;
8130 rm -f conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_link") 2>&5
8139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8141 { (case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_try") 2>&5
8148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_sizeof_void_p=`cat conftest.val`
8152 echo "$as_me: program exited with status
$ac_status" >&5
8153 echo "$as_me: failed program was
:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8157 if test "$ac_cv_type_void_p" = yes; then
8158 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8159 See \
`config.log' for more details." >&5
8160 echo "$as_me: error: cannot compute sizeof (void *)
8161 See \`config.log
' for more details." >&2;}
8162 { (exit 77); exit 77; }; }
8164 ac_cv_sizeof_void_p=0
8167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8171 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8172 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8176 cat >>confdefs.h <<_ACEOF
8177 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8181 { echo "$as_me:$LINENO: checking for short" >&5
8182 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8183 if test "${ac_cv_type_short+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 $ac_includes_default
8193 typedef short ac__type_new_;
8197 if ((ac__type_new_ *) 0)
8199 if (sizeof (ac__type_new_))
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^
*+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8222 ac_cv_type_short=yes
8224 echo "$as_me: failed program was:" >&5
8225 sed 's
/^
/|
/' conftest.$ac_ext >&5
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8233 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8235 # The cast to long int works around a bug in the HP C Compiler
8236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8238 # This bug is HP SR number 8606223364.
8239 { echo "$as_me:$LINENO: checking size of short" >&5
8240 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8241 if test "${ac_cv_sizeof_short+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 if test "$cross_compiling" = yes; then
8245 # Depending upon the size, compute the lo and hi bounds.
8246 cat >conftest.
$ac_ext <<_ACEOF
8249 cat confdefs.h
>>conftest.
$ac_ext
8250 cat >>conftest.
$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 $ac_includes_default
8253 typedef short ac__type_sizeof_;
8257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8264 rm -f conftest.
$ac_objext
8265 if { (ac_try
="$ac_compile"
8267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 typedef short ac__type_sizeof_;
8294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8305 *) ac_try_echo
=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1
>conftest.err
8312 cat conftest.err
>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.
$ac_objext; then
8318 ac_hi
=$ac_mid; break
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.
$ac_ext >&5
8323 ac_lo
=`expr $ac_mid + 1`
8324 if test $ac_lo -le $ac_mid; then
8328 ac_mid
=`expr 2 '*' $ac_mid + 1`
8331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.
$ac_ext >&5
8337 cat >conftest.
$ac_ext <<_ACEOF
8340 cat confdefs.h
>>conftest.
$ac_ext
8341 cat >>conftest.
$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 typedef short ac__type_sizeof_;
8348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8355 rm -f conftest.
$ac_objext
8356 if { (ac_try
="$ac_compile"
8358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8364 grep -v '^ *+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest.$ac_objext; then
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 typedef short ac__type_sizeof_;
8385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8396 *) ac_try_echo
=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8401 grep -v '^ *+' conftest.er1
>conftest.err
8403 cat conftest.err
>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest.
$ac_objext; then
8409 ac_lo
=$ac_mid; break
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.
$ac_ext >&5
8414 ac_hi
=`expr '(' $ac_mid ')' - 1`
8415 if test $ac_mid -le $ac_hi; then
8419 ac_mid
=`expr 2 '*' $ac_mid`
8422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.
$ac_ext >&5
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 # Binary search between lo and hi bounds.
8436 while test "x$ac_lo" != "x$ac_hi"; do
8437 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8438 cat >conftest.
$ac_ext <<_ACEOF
8441 cat confdefs.h
>>conftest.
$ac_ext
8442 cat >>conftest.
$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 typedef short ac__type_sizeof_;
8449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8456 rm -f conftest.
$ac_objext
8457 if { (ac_try
="$ac_compile"
8459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_compile") 2>conftest.er1
8465 grep -v '^ *+' conftest.er1 >conftest.err
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest.$ac_objext; then
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_lo=`expr '(' $ac_mid ')' + 1`
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 ?*) ac_cv_sizeof_short=$ac_lo;;
8485 '') if test "$ac_cv_type_short" = yes; then
8486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8487 See \`config.log
' for more details." >&5
8488 echo "$as_me: error: cannot compute sizeof (short)
8489 See \`config.log' for more details.
" >&2;}
8490 { (exit 77); exit 77; }; }
8492 ac_cv_sizeof_short=0
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 typedef short ac__type_sizeof_;
8504 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8505 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8512 FILE *f = fopen ("conftest.val
", "w
");
8515 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8517 long int i = longval ();
8518 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8520 fprintf (f, "%ld
\n", i);
8524 unsigned long int i = ulongval ();
8525 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8527 fprintf (f, "%lu
\n", i);
8529 return ferror (f) || fclose (f) != 0;
8535 rm -f conftest$ac_exeext
8536 if { (ac_try="$ac_link"
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_link") 2>&5
8544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8546 { (case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_try") 2>&5
8553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_sizeof_short=`cat conftest.val`
8557 echo "$as_me: program exited with status
$ac_status" >&5
8558 echo "$as_me: failed program was
:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8562 if test "$ac_cv_type_short" = yes; then
8563 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8564 See \
`config.log' for more details." >&5
8565 echo "$as_me: error: cannot compute sizeof (short)
8566 See \`config.log
' for more details." >&2;}
8567 { (exit 77); exit 77; }; }
8569 ac_cv_sizeof_short=0
8572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8576 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8577 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8581 cat >>confdefs.h <<_ACEOF
8582 #define SIZEOF_SHORT $ac_cv_sizeof_short
8586 { echo "$as_me:$LINENO: checking for float" >&5
8587 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8588 if test "${ac_cv_type_float+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 cat >conftest.$ac_ext <<_ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8598 typedef float ac__type_new_;
8602 if ((ac__type_new_ *) 0)
8604 if (sizeof (ac__type_new_))
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8619 grep -v '^
*+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
8627 ac_cv_type_float=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's
/^
/|
/' conftest.$ac_ext >&5
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8638 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8640 # The cast to long int works around a bug in the HP C Compiler
8641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8643 # This bug is HP SR number 8606223364.
8644 { echo "$as_me:$LINENO: checking size of float" >&5
8645 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8646 if test "${ac_cv_sizeof_float+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 if test "$cross_compiling" = yes; then
8650 # Depending upon the size, compute the lo and hi bounds.
8651 cat >conftest.
$ac_ext <<_ACEOF
8654 cat confdefs.h
>>conftest.
$ac_ext
8655 cat >>conftest.
$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 typedef float ac__type_sizeof_;
8662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8669 rm -f conftest.
$ac_objext
8670 if { (ac_try
="$ac_compile"
8672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 $ac_includes_default
8695 typedef float ac__type_sizeof_;
8699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8710 *) ac_try_echo
=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1
>conftest.err
8717 cat conftest.err
>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.
$ac_objext; then
8723 ac_hi
=$ac_mid; break
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.
$ac_ext >&5
8728 ac_lo
=`expr $ac_mid + 1`
8729 if test $ac_lo -le $ac_mid; then
8733 ac_mid
=`expr 2 '*' $ac_mid + 1`
8736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.
$ac_ext >&5
8742 cat >conftest.
$ac_ext <<_ACEOF
8745 cat confdefs.h
>>conftest.
$ac_ext
8746 cat >>conftest.
$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 typedef float ac__type_sizeof_;
8753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8760 rm -f conftest.
$ac_objext
8761 if { (ac_try
="$ac_compile"
8763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_compile") 2>conftest.er1
8769 grep -v '^ *+' conftest.er1 >conftest.err
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && {
8774 test -z "$ac_c_werror_flag" ||
8775 test ! -s conftest.err
8776 } && test -s conftest.$ac_objext; then
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 typedef float ac__type_sizeof_;
8790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8797 rm -f conftest.$ac_objext
8798 if { (ac_try="$ac_compile"
8800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8801 *) ac_try_echo
=$ac_try;;
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_compile") 2>conftest.er1
8806 grep -v '^ *+' conftest.er1
>conftest.err
8808 cat conftest.err
>&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest.
$ac_objext; then
8814 ac_lo
=$ac_mid; break
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.
$ac_ext >&5
8819 ac_hi
=`expr '(' $ac_mid ')' - 1`
8820 if test $ac_mid -le $ac_hi; then
8824 ac_mid
=`expr 2 '*' $ac_mid`
8827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.
$ac_ext >&5
8836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8840 # Binary search between lo and hi bounds.
8841 while test "x$ac_lo" != "x$ac_hi"; do
8842 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8843 cat >conftest.
$ac_ext <<_ACEOF
8846 cat confdefs.h
>>conftest.
$ac_ext
8847 cat >>conftest.
$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8850 typedef float ac__type_sizeof_;
8854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8861 rm -f conftest.
$ac_objext
8862 if { (ac_try
="$ac_compile"
8864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_lo=`expr '(' $ac_mid ')' + 1`
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889 ?*) ac_cv_sizeof_float=$ac_lo;;
8890 '') if test "$ac_cv_type_float" = yes; then
8891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8892 See \`config.log
' for more details." >&5
8893 echo "$as_me: error: cannot compute sizeof (float)
8894 See \`config.log' for more details.
" >&2;}
8895 { (exit 77); exit 77; }; }
8897 ac_cv_sizeof_float=0
8901 cat >conftest.$ac_ext <<_ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8907 $ac_includes_default
8908 typedef float ac__type_sizeof_;
8909 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8910 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8917 FILE *f = fopen ("conftest.val
", "w
");
8920 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8922 long int i = longval ();
8923 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8925 fprintf (f, "%ld
\n", i);
8929 unsigned long int i = ulongval ();
8930 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8932 fprintf (f, "%lu
\n", i);
8934 return ferror (f) || fclose (f) != 0;
8940 rm -f conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_link") 2>&5
8949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_sizeof_float=`cat conftest.val`
8962 echo "$as_me: program exited with status
$ac_status" >&5
8963 echo "$as_me: failed program was
:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8967 if test "$ac_cv_type_float" = yes; then
8968 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8969 See \
`config.log' for more details." >&5
8970 echo "$as_me: error: cannot compute sizeof (float)
8971 See \`config.log
' for more details." >&2;}
8972 { (exit 77); exit 77; }; }
8974 ac_cv_sizeof_float=0
8977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8982 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8986 cat >>confdefs.h <<_ACEOF
8987 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8991 { echo "$as_me:$LINENO: checking for double" >&5
8992 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8993 if test "${ac_cv_type_double+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 $ac_includes_default
9003 typedef double ac__type_new_;
9007 if ((ac__type_new_ *) 0)
9009 if (sizeof (ac__type_new_))
9015 rm -f conftest.$ac_objext
9016 if { (ac_try="$ac_compile"
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_compile") 2>conftest.er1
9024 grep -v '^
*+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } && {
9029 test -z "$ac_c_werror_flag" ||
9030 test ! -s conftest.err
9031 } && test -s conftest.$ac_objext; then
9032 ac_cv_type_double=yes
9034 echo "$as_me: failed program was:" >&5
9035 sed 's
/^
/|
/' conftest.$ac_ext >&5
9037 ac_cv_type_double=no
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9043 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9045 # The cast to long int works around a bug in the HP C Compiler
9046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9048 # This bug is HP SR number 8606223364.
9049 { echo "$as_me:$LINENO: checking size of double" >&5
9050 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9051 if test "${ac_cv_sizeof_double+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 if test "$cross_compiling" = yes; then
9055 # Depending upon the size, compute the lo and hi bounds.
9056 cat >conftest.
$ac_ext <<_ACEOF
9059 cat confdefs.h
>>conftest.
$ac_ext
9060 cat >>conftest.
$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 $ac_includes_default
9063 typedef double ac__type_sizeof_;
9067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9074 rm -f conftest.
$ac_objext
9075 if { (ac_try
="$ac_compile"
9077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 typedef double ac__type_sizeof_;
9104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9115 *) ac_try_echo
=$ac_try;;
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1
>conftest.err
9122 cat conftest.err
>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.
$ac_objext; then
9128 ac_hi
=$ac_mid; break
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.
$ac_ext >&5
9133 ac_lo
=`expr $ac_mid + 1`
9134 if test $ac_lo -le $ac_mid; then
9138 ac_mid
=`expr 2 '*' $ac_mid + 1`
9141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.
$ac_ext >&5
9147 cat >conftest.
$ac_ext <<_ACEOF
9150 cat confdefs.h
>>conftest.
$ac_ext
9151 cat >>conftest.
$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9154 typedef double ac__type_sizeof_;
9158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9165 rm -f conftest.
$ac_objext
9166 if { (ac_try
="$ac_compile"
9168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.$ac_objext; then
9184 cat >conftest.$ac_ext <<_ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 $ac_includes_default
9191 typedef double ac__type_sizeof_;
9195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9206 *) ac_try_echo
=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9211 grep -v '^ *+' conftest.er1
>conftest.err
9213 cat conftest.err
>&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.
$ac_objext; then
9219 ac_lo
=$ac_mid; break
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.
$ac_ext >&5
9224 ac_hi
=`expr '(' $ac_mid ')' - 1`
9225 if test $ac_mid -le $ac_hi; then
9229 ac_mid
=`expr 2 '*' $ac_mid`
9232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.
$ac_ext >&5
9241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9245 # Binary search between lo and hi bounds.
9246 while test "x$ac_lo" != "x$ac_hi"; do
9247 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9248 cat >conftest.
$ac_ext <<_ACEOF
9251 cat confdefs.h
>>conftest.
$ac_ext
9252 cat >>conftest.
$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 $ac_includes_default
9255 typedef double ac__type_sizeof_;
9259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9266 rm -f conftest.
$ac_objext
9267 if { (ac_try
="$ac_compile"
9269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9275 grep -v '^ *+' conftest.er1 >conftest.err
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest.$ac_objext; then
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_lo=`expr '(' $ac_mid ')' + 1`
9291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 ?*) ac_cv_sizeof_double=$ac_lo;;
9295 '') if test "$ac_cv_type_double" = yes; then
9296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9297 See \`config.log
' for more details." >&5
9298 echo "$as_me: error: cannot compute sizeof (double)
9299 See \`config.log' for more details.
" >&2;}
9300 { (exit 77); exit 77; }; }
9302 ac_cv_sizeof_double=0
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 $ac_includes_default
9313 typedef double ac__type_sizeof_;
9314 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9315 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9322 FILE *f = fopen ("conftest.val
", "w
");
9325 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9327 long int i = longval ();
9328 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9330 fprintf (f, "%ld
\n", i);
9334 unsigned long int i = ulongval ();
9335 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9337 fprintf (f, "%lu
\n", i);
9339 return ferror (f) || fclose (f) != 0;
9345 rm -f conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>&5
9354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9356 { (case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_try") 2>&5
9363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_sizeof_double=`cat conftest.val`
9367 echo "$as_me: program exited with status
$ac_status" >&5
9368 echo "$as_me: failed program was
:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9372 if test "$ac_cv_type_double" = yes; then
9373 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9374 See \
`config.log' for more details." >&5
9375 echo "$as_me: error: cannot compute sizeof (double)
9376 See \`config.log
' for more details." >&2;}
9377 { (exit 77); exit 77; }; }
9379 ac_cv_sizeof_double=0
9382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9387 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9391 cat >>confdefs.h <<_ACEOF
9392 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9396 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9397 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9398 if test "${ac_cv_type_fpos_t+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 $ac_includes_default
9408 typedef fpos_t ac__type_new_;
9412 if ((ac__type_new_ *) 0)
9414 if (sizeof (ac__type_new_))
9420 rm -f conftest.$ac_objext
9421 if { (ac_try="$ac_compile"
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_compile") 2>conftest.er1
9429 grep -v '^
*+' conftest.er1 >conftest.err
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest.$ac_objext; then
9437 ac_cv_type_fpos_t=yes
9439 echo "$as_me: failed program was:" >&5
9440 sed 's
/^
/|
/' conftest.$ac_ext >&5
9442 ac_cv_type_fpos_t=no
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9448 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9450 # The cast to long int works around a bug in the HP C Compiler
9451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9453 # This bug is HP SR number 8606223364.
9454 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9455 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9456 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 if test "$cross_compiling" = yes; then
9460 # Depending upon the size, compute the lo and hi bounds.
9461 cat >conftest.
$ac_ext <<_ACEOF
9464 cat confdefs.h
>>conftest.
$ac_ext
9465 cat >>conftest.
$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9468 typedef fpos_t ac__type_sizeof_;
9472 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9479 rm -f conftest.
$ac_objext
9480 if { (ac_try
="$ac_compile"
9482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_compile") 2>conftest.er1
9488 grep -v '^ *+' conftest.er1 >conftest.err
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest.$ac_objext; then
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 $ac_includes_default
9505 typedef fpos_t ac__type_sizeof_;
9509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9516 rm -f conftest.$ac_objext
9517 if { (ac_try="$ac_compile"
9519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9520 *) ac_try_echo
=$ac_try;;
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9525 grep -v '^ *+' conftest.er1
>conftest.err
9527 cat conftest.err
>&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_c_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.
$ac_objext; then
9533 ac_hi
=$ac_mid; break
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.
$ac_ext >&5
9538 ac_lo
=`expr $ac_mid + 1`
9539 if test $ac_lo -le $ac_mid; then
9543 ac_mid
=`expr 2 '*' $ac_mid + 1`
9546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9552 cat >conftest.
$ac_ext <<_ACEOF
9555 cat confdefs.h
>>conftest.
$ac_ext
9556 cat >>conftest.
$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 $ac_includes_default
9559 typedef fpos_t ac__type_sizeof_;
9563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9570 rm -f conftest.
$ac_objext
9571 if { (ac_try
="$ac_compile"
9573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_compile") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest.$ac_objext; then
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 typedef fpos_t ac__type_sizeof_;
9600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9607 rm -f conftest.$ac_objext
9608 if { (ac_try="$ac_compile"
9610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9611 *) ac_try_echo
=$ac_try;;
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_compile") 2>conftest.er1
9616 grep -v '^ *+' conftest.er1
>conftest.err
9618 cat conftest.err
>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest.
$ac_objext; then
9624 ac_lo
=$ac_mid; break
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.
$ac_ext >&5
9629 ac_hi
=`expr '(' $ac_mid ')' - 1`
9630 if test $ac_mid -le $ac_hi; then
9634 ac_mid
=`expr 2 '*' $ac_mid`
9637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.
$ac_ext >&5
9646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 # Binary search between lo and hi bounds.
9651 while test "x$ac_lo" != "x$ac_hi"; do
9652 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9653 cat >conftest.
$ac_ext <<_ACEOF
9656 cat confdefs.h
>>conftest.
$ac_ext
9657 cat >>conftest.
$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 $ac_includes_default
9660 typedef fpos_t ac__type_sizeof_;
9664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9671 rm -f conftest.
$ac_objext
9672 if { (ac_try
="$ac_compile"
9674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest.$ac_objext; then
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_lo=`expr '(' $ac_mid ')' + 1`
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9700 '') if test "$ac_cv_type_fpos_t" = yes; then
9701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9702 See \`config.log
' for more details." >&5
9703 echo "$as_me: error: cannot compute sizeof (fpos_t)
9704 See \`config.log' for more details.
" >&2;}
9705 { (exit 77); exit 77; }; }
9707 ac_cv_sizeof_fpos_t=0
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9718 typedef fpos_t ac__type_sizeof_;
9719 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9720 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9727 FILE *f = fopen ("conftest.val
", "w
");
9730 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9732 long int i = longval ();
9733 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9735 fprintf (f, "%ld
\n", i);
9739 unsigned long int i = ulongval ();
9740 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9742 fprintf (f, "%lu
\n", i);
9744 return ferror (f) || fclose (f) != 0;
9750 rm -f conftest$ac_exeext
9751 if { (ac_try="$ac_link"
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_link") 2>&5
9759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_sizeof_fpos_t=`cat conftest.val`
9772 echo "$as_me: program exited with status
$ac_status" >&5
9773 echo "$as_me: failed program was
:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9777 if test "$ac_cv_type_fpos_t" = yes; then
9778 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9779 See \
`config.log' for more details." >&5
9780 echo "$as_me: error: cannot compute sizeof (fpos_t)
9781 See \`config.log
' for more details." >&2;}
9782 { (exit 77); exit 77; }; }
9784 ac_cv_sizeof_fpos_t=0
9787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9791 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9792 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9796 cat >>confdefs.h <<_ACEOF
9797 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9801 { echo "$as_me:$LINENO: checking for size_t" >&5
9802 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9803 if test "${ac_cv_type_size_t+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 $ac_includes_default
9813 typedef size_t ac__type_new_;
9817 if ((ac__type_new_ *) 0)
9819 if (sizeof (ac__type_new_))
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9834 grep -v '^
*+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_cv_type_size_t=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's
/^
/|
/' conftest.$ac_ext >&5
9847 ac_cv_type_size_t=no
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9853 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9855 # The cast to long int works around a bug in the HP C Compiler
9856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9858 # This bug is HP SR number 8606223364.
9859 { echo "$as_me:$LINENO: checking size of size_t" >&5
9860 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9861 if test "${ac_cv_sizeof_size_t+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 if test "$cross_compiling" = yes; then
9865 # Depending upon the size, compute the lo and hi bounds.
9866 cat >conftest.
$ac_ext <<_ACEOF
9869 cat confdefs.h
>>conftest.
$ac_ext
9870 cat >>conftest.
$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 typedef size_t ac__type_sizeof_;
9877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9884 rm -f conftest.
$ac_objext
9885 if { (ac_try
="$ac_compile"
9887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_compile") 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest.$ac_objext; then
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 $ac_includes_default
9910 typedef size_t ac__type_sizeof_;
9914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9925 *) ac_try_echo
=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1
>conftest.err
9932 cat conftest.err
>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.
$ac_objext; then
9938 ac_hi
=$ac_mid; break
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9943 ac_lo
=`expr $ac_mid + 1`
9944 if test $ac_lo -le $ac_mid; then
9948 ac_mid
=`expr 2 '*' $ac_mid + 1`
9951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.
$ac_ext >&5
9957 cat >conftest.
$ac_ext <<_ACEOF
9960 cat confdefs.h
>>conftest.
$ac_ext
9961 cat >>conftest.
$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 $ac_includes_default
9964 typedef size_t ac__type_sizeof_;
9968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9975 rm -f conftest.
$ac_objext
9976 if { (ac_try
="$ac_compile"
9978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_compile") 2>conftest.er1
9984 grep -v '^ *+' conftest.er1 >conftest.err
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest.$ac_objext; then
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 typedef size_t ac__type_sizeof_;
10005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10012 rm -f conftest.$ac_objext
10013 if { (ac_try="$ac_compile"
10014 case "(($ac_try" in
10015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10016 *) ac_try_echo
=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_compile") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1
>conftest.err
10023 cat conftest.err
>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest.
$ac_objext; then
10029 ac_lo
=$ac_mid; break
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.
$ac_ext >&5
10034 ac_hi
=`expr '(' $ac_mid ')' - 1`
10035 if test $ac_mid -le $ac_hi; then
10039 ac_mid
=`expr 2 '*' $ac_mid`
10042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.
$ac_ext >&5
10051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10055 # Binary search between lo and hi bounds.
10056 while test "x$ac_lo" != "x$ac_hi"; do
10057 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10058 cat >conftest.
$ac_ext <<_ACEOF
10061 cat confdefs.h
>>conftest.
$ac_ext
10062 cat >>conftest.
$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 $ac_includes_default
10065 typedef size_t ac__type_sizeof_;
10069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10076 rm -f conftest.
$ac_objext
10077 if { (ac_try
="$ac_compile"
10078 case "(($ac_try" in
10079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_compile") 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest.$ac_objext; then
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_lo=`expr '(' $ac_mid ')' + 1`
10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10105 '') if test "$ac_cv_type_size_t" = yes; then
10106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10107 See \`config.log
' for more details." >&5
10108 echo "$as_me: error: cannot compute sizeof (size_t)
10109 See \`config.log' for more details.
" >&2;}
10110 { (exit 77); exit 77; }; }
10112 ac_cv_sizeof_size_t=0
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 typedef size_t ac__type_sizeof_;
10124 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10125 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10127 #include <stdlib.h>
10132 FILE *f = fopen ("conftest.val
", "w
");
10135 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10137 long int i = longval ();
10138 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10140 fprintf (f, "%ld
\n", i);
10144 unsigned long int i = ulongval ();
10145 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10147 fprintf (f, "%lu
\n", i);
10149 return ferror (f) || fclose (f) != 0;
10155 rm -f conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>&5
10164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
10173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_sizeof_size_t=`cat conftest.val`
10177 echo "$as_me: program exited with status
$ac_status" >&5
10178 echo "$as_me: failed program was
:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ( exit $ac_status )
10182 if test "$ac_cv_type_size_t" = yes; then
10183 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10184 See \
`config.log' for more details." >&5
10185 echo "$as_me: error: cannot compute sizeof (size_t)
10186 See \`config.log
' for more details." >&2;}
10187 { (exit 77); exit 77; }; }
10189 ac_cv_sizeof_size_t=0
10192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10196 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10197 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10201 cat >>confdefs.h <<_ACEOF
10202 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10206 { echo "$as_me:$LINENO: checking for pid_t" >&5
10207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10208 if test "${ac_cv_type_pid_t+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 $ac_includes_default
10218 typedef pid_t ac__type_new_;
10222 if ((ac__type_new_ *) 0)
10224 if (sizeof (ac__type_new_))
10230 rm -f conftest.$ac_objext
10231 if { (ac_try="$ac_compile"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_compile") 2>conftest.er1
10239 grep -v '^
*+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } && {
10244 test -z "$ac_c_werror_flag" ||
10245 test ! -s conftest.err
10246 } && test -s conftest.$ac_objext; then
10247 ac_cv_type_pid_t=yes
10249 echo "$as_me: failed program was:" >&5
10250 sed 's
/^
/|
/' conftest.$ac_ext >&5
10252 ac_cv_type_pid_t=no
10255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10258 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10260 # The cast to long int works around a bug in the HP C Compiler
10261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10263 # This bug is HP SR number 8606223364.
10264 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10265 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10266 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 if test "$cross_compiling" = yes; then
10270 # Depending upon the size, compute the lo and hi bounds.
10271 cat >conftest.
$ac_ext <<_ACEOF
10274 cat confdefs.h
>>conftest.
$ac_ext
10275 cat >>conftest.
$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 typedef pid_t ac__type_sizeof_;
10282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10289 rm -f conftest.
$ac_objext
10290 if { (ac_try
="$ac_compile"
10291 case "(($ac_try" in
10292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_compile") 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest.$ac_objext; then
10308 cat >conftest.$ac_ext <<_ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314 $ac_includes_default
10315 typedef pid_t ac__type_sizeof_;
10319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10326 rm -f conftest.$ac_objext
10327 if { (ac_try="$ac_compile"
10328 case "(($ac_try" in
10329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10330 *) ac_try_echo
=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_compile") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest.
$ac_objext; then
10343 ac_hi
=$ac_mid; break
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.
$ac_ext >&5
10348 ac_lo
=`expr $ac_mid + 1`
10349 if test $ac_lo -le $ac_mid; then
10353 ac_mid
=`expr 2 '*' $ac_mid + 1`
10356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.
$ac_ext >&5
10362 cat >conftest.
$ac_ext <<_ACEOF
10365 cat confdefs.h
>>conftest.
$ac_ext
10366 cat >>conftest.
$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 $ac_includes_default
10369 typedef pid_t ac__type_sizeof_;
10373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10380 rm -f conftest.
$ac_objext
10381 if { (ac_try
="$ac_compile"
10382 case "(($ac_try" in
10383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_compile") 2>conftest.er1
10389 grep -v '^ *+' conftest.er1 >conftest.err
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest.$ac_objext; then
10399 cat >conftest.$ac_ext <<_ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 $ac_includes_default
10406 typedef pid_t ac__type_sizeof_;
10410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10417 rm -f conftest.$ac_objext
10418 if { (ac_try="$ac_compile"
10419 case "(($ac_try" in
10420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10421 *) ac_try_echo
=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1
>conftest.err
10428 cat conftest.err
>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.
$ac_objext; then
10434 ac_lo
=$ac_mid; break
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.
$ac_ext >&5
10439 ac_hi
=`expr '(' $ac_mid ')' - 1`
10440 if test $ac_mid -le $ac_hi; then
10444 ac_mid
=`expr 2 '*' $ac_mid`
10447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.
$ac_ext >&5
10456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10460 # Binary search between lo and hi bounds.
10461 while test "x$ac_lo" != "x$ac_hi"; do
10462 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10463 cat >conftest.
$ac_ext <<_ACEOF
10466 cat confdefs.h
>>conftest.
$ac_ext
10467 cat >>conftest.
$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 $ac_includes_default
10470 typedef pid_t ac__type_sizeof_;
10474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10481 rm -f conftest.
$ac_objext
10482 if { (ac_try
="$ac_compile"
10483 case "(($ac_try" in
10484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1 >conftest.err
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.$ac_objext; then
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_lo=`expr '(' $ac_mid ')' + 1`
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10509 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10510 '') if test "$ac_cv_type_pid_t" = yes; then
10511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10512 See \`config.log
' for more details." >&5
10513 echo "$as_me: error: cannot compute sizeof (pid_t)
10514 See \`config.log' for more details.
" >&2;}
10515 { (exit 77); exit 77; }; }
10517 ac_cv_sizeof_pid_t=0
10521 cat >conftest.$ac_ext <<_ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 $ac_includes_default
10528 typedef pid_t ac__type_sizeof_;
10529 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10530 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10532 #include <stdlib.h>
10537 FILE *f = fopen ("conftest.val
", "w
");
10540 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10542 long int i = longval ();
10543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10545 fprintf (f, "%ld
\n", i);
10549 unsigned long int i = ulongval ();
10550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10552 fprintf (f, "%lu
\n", i);
10554 return ferror (f) || fclose (f) != 0;
10560 rm -f conftest$ac_exeext
10561 if { (ac_try="$ac_link"
10562 case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_link") 2>&5
10569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10571 { (case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_try") 2>&5
10578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ac_cv_sizeof_pid_t=`cat conftest.val`
10582 echo "$as_me: program exited with status
$ac_status" >&5
10583 echo "$as_me: failed program was
:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ( exit $ac_status )
10587 if test "$ac_cv_type_pid_t" = yes; then
10588 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10589 See \
`config.log' for more details." >&5
10590 echo "$as_me: error: cannot compute sizeof (pid_t)
10591 See \`config.log
' for more details." >&2;}
10592 { (exit 77); exit 77; }; }
10594 ac_cv_sizeof_pid_t=0
10597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10601 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10602 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10606 cat >>confdefs.h <<_ACEOF
10607 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10612 { echo "$as_me:$LINENO: checking for long long support" >&5
10613 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10625 long long x; x = (long long)0;
10630 rm -f conftest.$ac_objext
10631 if { (ac_try="$ac_compile"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_compile") 2>conftest.er1
10639 grep -v '^
*+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest.$ac_objext; then
10649 cat >>confdefs.h <<\_ACEOF
10650 #define HAVE_LONG_LONG 1
10656 echo "$as_me: failed program was:" >&5
10657 sed 's
/^
/|
/' conftest.$ac_ext >&5
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10664 echo "${ECHO_T}$have_long_long" >&6; }
10665 if test "$have_long_long" = yes ; then
10666 { echo "$as_me:$LINENO: checking for long long" >&5
10667 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10668 if test "${ac_cv_type_long_long+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 $ac_includes_default
10678 typedef long long ac__type_new_;
10682 if ((ac__type_new_ *) 0)
10684 if (sizeof (ac__type_new_))
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10699 grep -v '^
*+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10707 ac_cv_type_long_long=yes
10709 echo "$as_me: failed program was:" >&5
10710 sed 's
/^
/|
/' conftest.$ac_ext >&5
10712 ac_cv_type_long_long=no
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10718 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10720 # The cast to long int works around a bug in the HP C Compiler
10721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10723 # This bug is HP SR number 8606223364.
10724 { echo "$as_me:$LINENO: checking size of long long" >&5
10725 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10726 if test "${ac_cv_sizeof_long_long+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 if test "$cross_compiling" = yes; then
10730 # Depending upon the size, compute the lo and hi bounds.
10731 cat >conftest.
$ac_ext <<_ACEOF
10734 cat confdefs.h
>>conftest.
$ac_ext
10735 cat >>conftest.
$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 $ac_includes_default
10738 typedef long long ac__type_sizeof_;
10742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10749 rm -f conftest.
$ac_objext
10750 if { (ac_try
="$ac_compile"
10751 case "(($ac_try" in
10752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_compile") 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest.$ac_objext; then
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 $ac_includes_default
10775 typedef long long ac__type_sizeof_;
10779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10786 rm -f conftest.$ac_objext
10787 if { (ac_try="$ac_compile"
10788 case "(($ac_try" in
10789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10790 *) ac_try_echo
=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_compile") 2>conftest.er1
10795 grep -v '^ *+' conftest.er1
>conftest.err
10797 cat conftest.err
>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest.
$ac_objext; then
10803 ac_hi
=$ac_mid; break
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.
$ac_ext >&5
10808 ac_lo
=`expr $ac_mid + 1`
10809 if test $ac_lo -le $ac_mid; then
10813 ac_mid
=`expr 2 '*' $ac_mid + 1`
10816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.
$ac_ext >&5
10822 cat >conftest.
$ac_ext <<_ACEOF
10825 cat confdefs.h
>>conftest.
$ac_ext
10826 cat >>conftest.
$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 $ac_includes_default
10829 typedef long long ac__type_sizeof_;
10833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10840 rm -f conftest.
$ac_objext
10841 if { (ac_try
="$ac_compile"
10842 case "(($ac_try" in
10843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest.$ac_objext; then
10859 cat >conftest.$ac_ext <<_ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865 $ac_includes_default
10866 typedef long long ac__type_sizeof_;
10870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10877 rm -f conftest.$ac_objext
10878 if { (ac_try="$ac_compile"
10879 case "(($ac_try" in
10880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10881 *) ac_try_echo
=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_compile") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1
>conftest.err
10888 cat conftest.err
>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest.
$ac_objext; then
10894 ac_lo
=$ac_mid; break
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.
$ac_ext >&5
10899 ac_hi
=`expr '(' $ac_mid ')' - 1`
10900 if test $ac_mid -le $ac_hi; then
10904 ac_mid
=`expr 2 '*' $ac_mid`
10907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.
$ac_ext >&5
10916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10920 # Binary search between lo and hi bounds.
10921 while test "x$ac_lo" != "x$ac_hi"; do
10922 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10923 cat >conftest.
$ac_ext <<_ACEOF
10926 cat confdefs.h
>>conftest.
$ac_ext
10927 cat >>conftest.
$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10930 typedef long long ac__type_sizeof_;
10934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10941 rm -f conftest.
$ac_objext
10942 if { (ac_try
="$ac_compile"
10943 case "(($ac_try" in
10944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_compile") 2>conftest.er1
10950 grep -v '^ *+' conftest.er1 >conftest.err
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest.$ac_objext; then
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_lo=`expr '(' $ac_mid ')' + 1`
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10970 '') if test "$ac_cv_type_long_long" = yes; then
10971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10972 See \`config.log
' for more details." >&5
10973 echo "$as_me: error: cannot compute sizeof (long long)
10974 See \`config.log' for more details.
" >&2;}
10975 { (exit 77); exit 77; }; }
10977 ac_cv_sizeof_long_long=0
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 $ac_includes_default
10988 typedef long long ac__type_sizeof_;
10989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10992 #include <stdlib.h>
10997 FILE *f = fopen ("conftest.val
", "w
");
11000 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11002 long int i = longval ();
11003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11005 fprintf (f, "%ld
\n", i);
11009 unsigned long int i = ulongval ();
11010 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11012 fprintf (f, "%lu
\n", i);
11014 return ferror (f) || fclose (f) != 0;
11020 rm -f conftest$ac_exeext
11021 if { (ac_try="$ac_link"
11022 case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_link") 2>&5
11029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_sizeof_long_long=`cat conftest.val`
11042 echo "$as_me: program exited with status
$ac_status" >&5
11043 echo "$as_me: failed program was
:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 ( exit $ac_status )
11047 if test "$ac_cv_type_long_long" = yes; then
11048 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11049 See \
`config.log' for more details." >&5
11050 echo "$as_me: error: cannot compute sizeof (long long)
11051 See \`config.log
' for more details." >&2;}
11052 { (exit 77); exit 77; }; }
11054 ac_cv_sizeof_long_long=0
11057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11062 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11066 cat >>confdefs.h <<_ACEOF
11067 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11073 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11074 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11076 cat >conftest.$ac_ext <<_ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11086 _Bool x; x = (_Bool)0;
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11100 grep -v '^
*+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11110 cat >>confdefs.h <<\_ACEOF
11111 #define HAVE_C99_BOOL 1
11117 echo "$as_me: failed program was:" >&5
11118 sed 's
/^
/|
/' conftest.$ac_ext >&5
11123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11125 echo "${ECHO_T}$have_c99_bool" >&6; }
11126 if test "$have_c99_bool" = yes ; then
11127 { echo "$as_me:$LINENO: checking for _Bool" >&5
11128 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11129 if test "${ac_cv_type__Bool+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 $ac_includes_default
11139 typedef _Bool ac__type_new_;
11143 if ((ac__type_new_ *) 0)
11145 if (sizeof (ac__type_new_))
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_compile") 2>conftest.er1
11160 grep -v '^
*+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && {
11165 test -z "$ac_c_werror_flag" ||
11166 test ! -s conftest.err
11167 } && test -s conftest.$ac_objext; then
11168 ac_cv_type__Bool=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's
/^
/|
/' conftest.$ac_ext >&5
11173 ac_cv_type__Bool=no
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11179 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11181 # The cast to long int works around a bug in the HP C Compiler
11182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11184 # This bug is HP SR number 8606223364.
11185 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11186 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11187 if test "${ac_cv_sizeof__Bool+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 if test "$cross_compiling" = yes; then
11191 # Depending upon the size, compute the lo and hi bounds.
11192 cat >conftest.
$ac_ext <<_ACEOF
11195 cat confdefs.h
>>conftest.
$ac_ext
11196 cat >>conftest.
$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11199 typedef _Bool ac__type_sizeof_;
11203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11210 rm -f conftest.
$ac_objext
11211 if { (ac_try
="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_compile") 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest.$ac_objext; then
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 typedef _Bool ac__type_sizeof_;
11240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11251 *) ac_try_echo
=$ac_try;;
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1
>conftest.err
11258 cat conftest.err
>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest.
$ac_objext; then
11264 ac_hi
=$ac_mid; break
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.
$ac_ext >&5
11269 ac_lo
=`expr $ac_mid + 1`
11270 if test $ac_lo -le $ac_mid; then
11274 ac_mid
=`expr 2 '*' $ac_mid + 1`
11277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.
$ac_ext >&5
11283 cat >conftest.
$ac_ext <<_ACEOF
11286 cat confdefs.h
>>conftest.
$ac_ext
11287 cat >>conftest.
$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 $ac_includes_default
11290 typedef _Bool ac__type_sizeof_;
11294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11301 rm -f conftest.
$ac_objext
11302 if { (ac_try
="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11310 grep -v '^ *+' conftest.er1 >conftest.err
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && {
11315 test -z "$ac_c_werror_flag" ||
11316 test ! -s conftest.err
11317 } && test -s conftest.$ac_objext; then
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 typedef _Bool ac__type_sizeof_;
11331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11342 *) ac_try_echo
=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_compile") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1
>conftest.err
11349 cat conftest.err
>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest.
$ac_objext; then
11355 ac_lo
=$ac_mid; break
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.
$ac_ext >&5
11360 ac_hi
=`expr '(' $ac_mid ')' - 1`
11361 if test $ac_mid -le $ac_hi; then
11365 ac_mid
=`expr 2 '*' $ac_mid`
11368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.
$ac_ext >&5
11377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11381 # Binary search between lo and hi bounds.
11382 while test "x$ac_lo" != "x$ac_hi"; do
11383 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11384 cat >conftest.
$ac_ext <<_ACEOF
11387 cat confdefs.h
>>conftest.
$ac_ext
11388 cat >>conftest.
$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 typedef _Bool ac__type_sizeof_;
11395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11402 rm -f conftest.
$ac_objext
11403 if { (ac_try
="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11424 ac_lo=`expr '(' $ac_mid ')' + 1`
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11431 '') if test "$ac_cv_type__Bool" = yes; then
11432 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11433 See \`config.log
' for more details." >&5
11434 echo "$as_me: error: cannot compute sizeof (_Bool)
11435 See \`config.log' for more details.
" >&2;}
11436 { (exit 77); exit 77; }; }
11438 ac_cv_sizeof__Bool=0
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 typedef _Bool ac__type_sizeof_;
11450 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11451 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11453 #include <stdlib.h>
11458 FILE *f = fopen ("conftest.val
", "w
");
11461 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11463 long int i = longval ();
11464 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11466 fprintf (f, "%ld
\n", i);
11470 unsigned long int i = ulongval ();
11471 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11473 fprintf (f, "%lu
\n", i);
11475 return ferror (f) || fclose (f) != 0;
11481 rm -f conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_link") 2>&5
11490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
11499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_sizeof__Bool=`cat conftest.val`
11503 echo "$as_me: program exited with status
$ac_status" >&5
11504 echo "$as_me: failed program was
:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ( exit $ac_status )
11508 if test "$ac_cv_type__Bool" = yes; then
11509 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11510 See \
`config.log' for more details." >&5
11511 echo "$as_me: error: cannot compute sizeof (_Bool)
11512 See \`config.log
' for more details." >&2;}
11513 { (exit 77); exit 77; }; }
11515 ac_cv_sizeof__Bool=0
11518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11522 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11523 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11527 cat >>confdefs.h <<_ACEOF
11528 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11534 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11535 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11536 if test "${ac_cv_type_uintptr_t+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #ifdef HAVE_STDINT_H
11546 #include <stdint.h>
11549 typedef uintptr_t ac__type_new_;
11553 if ((ac__type_new_ *) 0)
11555 if (sizeof (ac__type_new_))
11561 rm -f conftest.$ac_objext
11562 if { (ac_try="$ac_compile"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_compile") 2>conftest.er1
11570 grep -v '^
*+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest.$ac_objext; then
11578 ac_cv_type_uintptr_t=yes
11580 echo "$as_me: failed program was:" >&5
11581 sed 's
/^
/|
/' conftest.$ac_ext >&5
11583 ac_cv_type_uintptr_t=no
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11589 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11590 if test $ac_cv_type_uintptr_t = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_UINTPTR_T 1
11596 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11597 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11598 if test "${ac_cv_type_uintptr_t+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 $ac_includes_default
11608 typedef uintptr_t ac__type_new_;
11612 if ((ac__type_new_ *) 0)
11614 if (sizeof (ac__type_new_))
11620 rm -f conftest.$ac_objext
11621 if { (ac_try="$ac_compile"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_compile") 2>conftest.er1
11629 grep -v '^
*+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && {
11634 test -z "$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11636 } && test -s conftest.$ac_objext; then
11637 ac_cv_type_uintptr_t=yes
11639 echo "$as_me: failed program was:" >&5
11640 sed 's
/^
/|
/' conftest.$ac_ext >&5
11642 ac_cv_type_uintptr_t=no
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11647 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11648 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11650 # The cast to long int works around a bug in the HP C Compiler
11651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11653 # This bug is HP SR number 8606223364.
11654 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11655 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11656 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 if test "$cross_compiling" = yes; then
11660 # Depending upon the size, compute the lo and hi bounds.
11661 cat >conftest.
$ac_ext <<_ACEOF
11664 cat confdefs.h
>>conftest.
$ac_ext
11665 cat >>conftest.
$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 $ac_includes_default
11668 typedef uintptr_t ac__type_sizeof_;
11672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11679 rm -f conftest.
$ac_objext
11680 if { (ac_try
="$ac_compile"
11681 case "(($ac_try" in
11682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_compile") 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest.$ac_objext; then
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 $ac_includes_default
11705 typedef uintptr_t ac__type_sizeof_;
11709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11716 rm -f conftest.$ac_objext
11717 if { (ac_try="$ac_compile"
11718 case "(($ac_try" in
11719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11720 *) ac_try_echo
=$ac_try;;
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_compile") 2>conftest.er1
11725 grep -v '^ *+' conftest.er1
>conftest.err
11727 cat conftest.err
>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest.
$ac_objext; then
11733 ac_hi
=$ac_mid; break
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.
$ac_ext >&5
11738 ac_lo
=`expr $ac_mid + 1`
11739 if test $ac_lo -le $ac_mid; then
11743 ac_mid
=`expr 2 '*' $ac_mid + 1`
11746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.
$ac_ext >&5
11752 cat >conftest.
$ac_ext <<_ACEOF
11755 cat confdefs.h
>>conftest.
$ac_ext
11756 cat >>conftest.
$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 typedef uintptr_t ac__type_sizeof_;
11763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11770 rm -f conftest.
$ac_objext
11771 if { (ac_try
="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11796 typedef uintptr_t ac__type_sizeof_;
11800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11807 rm -f conftest.$ac_objext
11808 if { (ac_try="$ac_compile"
11809 case "(($ac_try" in
11810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11811 *) ac_try_echo
=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1
>conftest.err
11818 cat conftest.err
>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } && {
11821 test -z "$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11823 } && test -s conftest.
$ac_objext; then
11824 ac_lo
=$ac_mid; break
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.
$ac_ext >&5
11829 ac_hi
=`expr '(' $ac_mid ')' - 1`
11830 if test $ac_mid -le $ac_hi; then
11834 ac_mid
=`expr 2 '*' $ac_mid`
11837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.
$ac_ext >&5
11846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11850 # Binary search between lo and hi bounds.
11851 while test "x$ac_lo" != "x$ac_hi"; do
11852 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11853 cat >conftest.
$ac_ext <<_ACEOF
11856 cat confdefs.h
>>conftest.
$ac_ext
11857 cat >>conftest.
$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 $ac_includes_default
11860 typedef uintptr_t ac__type_sizeof_;
11864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11871 rm -f conftest.
$ac_objext
11872 if { (ac_try
="$ac_compile"
11873 case "(($ac_try" in
11874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_lo=`expr '(' $ac_mid ')' + 1`
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11900 '') if test "$ac_cv_type_uintptr_t" = yes; then
11901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11902 See \`config.log
' for more details." >&5
11903 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11904 See \`config.log' for more details.
" >&2;}
11905 { (exit 77); exit 77; }; }
11907 ac_cv_sizeof_uintptr_t=0
11911 cat >conftest.$ac_ext <<_ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 $ac_includes_default
11918 typedef uintptr_t ac__type_sizeof_;
11919 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11920 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11922 #include <stdlib.h>
11927 FILE *f = fopen ("conftest.val
", "w
");
11930 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11932 long int i = longval ();
11933 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11935 fprintf (f, "%ld
\n", i);
11939 unsigned long int i = ulongval ();
11940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11942 fprintf (f, "%lu
\n", i);
11944 return ferror (f) || fclose (f) != 0;
11950 rm -f conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>&5
11959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11961 { (case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_try") 2>&5
11968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11972 echo "$as_me: program exited with status
$ac_status" >&5
11973 echo "$as_me: failed program was
:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ( exit $ac_status )
11977 if test "$ac_cv_type_uintptr_t" = yes; then
11978 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
11979 See \
`config.log' for more details." >&5
11980 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11981 See \`config.log
' for more details." >&2;}
11982 { (exit 77); exit 77; }; }
11984 ac_cv_sizeof_uintptr_t=0
11987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11991 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11992 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11996 cat >>confdefs.h <<_ACEOF
11997 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12005 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12006 { echo "$as_me:$LINENO: checking size of off_t" >&5
12007 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12008 if test "${ac_cv_sizeof_off_t+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 if test "$cross_compiling" = yes; then
12012 ac_cv_sizeof_off_t
=4
12014 cat >conftest.
$ac_ext <<_ACEOF
12017 cat confdefs.h
>>conftest.
$ac_ext
12018 cat >>conftest.
$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12021 #include <sys/types.h>
12024 FILE *f=fopen("conftestval", "w");
12026 fprintf(f, "%d\n", sizeof(off_t));
12030 rm -f conftest
$ac_exeext
12031 if { (ac_try
="$ac_link"
12032 case "(($ac_try" in
12033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_link") 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12041 { (case "(($ac_try" in
12042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12043 *) ac_try_echo
=$ac_try;;
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_try") 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_sizeof_off_t
=`cat conftestval`
12052 echo "$as_me: program exited with status $ac_status" >&5
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.
$ac_ext >&5
12056 ( exit $ac_status )
12057 ac_cv_sizeof_off_t
=0
12059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12066 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12067 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12069 cat >>confdefs.h
<<_ACEOF
12070 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12074 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12075 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12076 if test "$have_long_long" = yes -a \
12077 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12078 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12080 cat >>confdefs.h
<<\_ACEOF
12081 #define HAVE_LARGEFILE_SUPPORT 1
12084 { echo "$as_me:$LINENO: result: yes" >&5
12085 echo "${ECHO_T}yes" >&6; }
12087 { echo "$as_me:$LINENO: result: no" >&5
12088 echo "${ECHO_T}no" >&6; }
12091 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12092 { echo "$as_me:$LINENO: checking size of time_t" >&5
12093 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12094 if test "${ac_cv_sizeof_time_t+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 if test "$cross_compiling" = yes; then
12098 ac_cv_sizeof_time_t
=4
12100 cat >conftest.
$ac_ext <<_ACEOF
12103 cat confdefs.h
>>conftest.
$ac_ext
12104 cat >>conftest.
$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12110 FILE *f=fopen("conftestval", "w");
12112 fprintf(f, "%d\n", sizeof(time_t));
12116 rm -f conftest
$ac_exeext
12117 if { (ac_try
="$ac_link"
12118 case "(($ac_try" in
12119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_link") 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12129 *) ac_try_echo
=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_cv_sizeof_time_t
=`cat conftestval`
12138 echo "$as_me: program exited with status $ac_status" >&5
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.
$ac_ext >&5
12142 ( exit $ac_status )
12143 ac_cv_sizeof_time_t
=0
12145 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12152 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12153 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12155 cat >>confdefs.h
<<_ACEOF
12156 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12161 # if have pthread_t then define SIZEOF_PTHREAD_T
12163 if test "$ac_cv_kpthread" = "yes"
12164 then CC
="$CC -Kpthread"
12165 elif test "$ac_cv_kthread" = "yes"
12166 then CC
="$CC -Kthread"
12167 elif test "$ac_cv_pthread" = "yes"
12168 then CC
="$CC -pthread"
12170 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12171 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12173 cat >conftest.
$ac_ext <<_ACEOF
12176 cat confdefs.h
>>conftest.
$ac_ext
12177 cat >>conftest.
$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 #include <pthread.h>
12183 pthread_t x; x = *(pthread_t*)0;
12188 rm -f conftest.
$ac_objext
12189 if { (ac_try
="$ac_compile"
12190 case "(($ac_try" in
12191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_compile") 2>conftest.er1
12197 grep -v '^ *+' conftest.er1 >conftest.err
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } && {
12202 test -z "$ac_c_werror_flag" ||
12203 test ! -s conftest.err
12204 } && test -s conftest.$ac_objext; then
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12215 echo "${ECHO_T}$have_pthread_t" >&6; }
12216 if test "$have_pthread_t" = yes ; then
12217 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12218 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12219 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12220 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 if test "$cross_compiling" = yes; then
12224 ac_cv_sizeof_pthread_t=4
12226 cat >conftest.$ac_ext <<_ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 #include <pthread.h>
12236 FILE *f=fopen("conftestval", "w");
12238 fprintf(f, "%d\n", sizeof(pthread_t));
12242 rm -f conftest$ac_exeext
12243 if { (ac_try="$ac_link"
12244 case "(($ac_try" in
12245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12246 *) ac_try_echo
=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_link") 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12253 { (case "(($ac_try" in
12254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_try") 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12262 ac_cv_sizeof_pthread_t=`cat conftestval
`
12264 echo "$as_me: program exited with status $ac_status" >&5
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ( exit $ac_status )
12269 ac_cv_sizeof_pthread_t=0
12271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12278 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12279 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12281 cat >>confdefs.h <<_ACEOF
12282 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12288 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12289 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12290 # Check whether --enable-toolbox-glue was given.
12291 if test "${enable_toolbox_glue+set}" = set; then
12292 enableval=$enable_toolbox_glue;
12296 if test -z "$enable_toolbox_glue"
12298 case $ac_sys_system/$ac_sys_release in
12300 enable_toolbox_glue="yes";;
12302 enable_toolbox_glue="no";;
12305 case "$enable_toolbox_glue" in
12307 extra_machdep_objs="Python/mactoolboxglue.o"
12308 extra_undefs="-u _PyMac_Error"
12310 cat >>confdefs.h <<\_ACEOF
12311 #define USE_TOOLBOX_OBJECT_GLUE 1
12316 extra_machdep_objs=""
12320 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12321 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12324 case $ac_sys_system/$ac_sys_release in
12325 Darwin/[01567]\..*)
12326 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12329 OTHER_LIBTOOL_OPT=""
12334 case $ac_sys_system/$ac_sys_release in
12335 Darwin/[01567]\..*)
12336 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12337 if test "${enable_universalsdk}"; then
12340 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12342 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12343 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12345 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12346 if test ${gcc_version} '<' 4.0
12348 LIBTOOL_CRUFT="-lcc_dynamic"
12352 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12353 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12354 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12357 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12358 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12359 if test "$enable_framework"
12361 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12362 # -F. is needed to allow linking to the framework while
12363 # in the build location.
12365 cat >>confdefs.h <<\_ACEOF
12366 #define WITH_NEXT_FRAMEWORK 1
12369 { echo "$as_me:$LINENO: result: yes" >&5
12370 echo "${ECHO_T}yes" >&6; }
12372 { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12376 { echo "$as_me:$LINENO: checking for dyld" >&5
12377 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12378 case $ac_sys_system/$ac_sys_release in
12381 cat >>confdefs.h <<\_ACEOF
12382 #define WITH_DYLD 1
12385 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12386 echo "${ECHO_T}always on for Darwin" >&6; }
12389 { echo "$as_me:$LINENO: result: no" >&5
12390 echo "${ECHO_T}no" >&6; }
12394 # Set info about shared libraries.
12400 # SO is the extension of shared libraries `(including the dot
!)
12401 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12402 { echo "$as_me:$LINENO: checking SO" >&5
12403 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12406 case $ac_sys_system in
12417 # this might also be a termcap variable, see #610332
12419 echo '====================================================================='
12421 echo '+ WARNING: You have set SO in your environment. +'
12422 echo '+ Do you really mean to change the extension for shared libraries? +'
12423 echo '+ Continuing in 10 seconds to let you to ponder. +'
12425 echo '====================================================================='
12428 { echo "$as_me:$LINENO: result: $SO" >&5
12429 echo "${ECHO_T}$SO" >&6; }
12431 cat >>confdefs.h
<<_ACEOF
12432 #define SHLIB_EXT "$SO"
12435 # LDSHARED is the ld *command* used to create shared library
12436 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12437 # (Shared libraries in this instance are shared modules to be loaded into
12438 # Python, as opposed to building Python itself as a shared library.)
12439 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12440 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12441 if test -z "$LDSHARED"
12443 case $ac_sys_system/$ac_sys_release in
12445 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12446 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12449 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12450 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12452 IRIX
/5*) LDSHARED
="ld -shared";;
12453 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12455 if test "$GCC" = "yes"
12456 then LDSHARED
='$(CC) -shared'
12457 else LDSHARED
='$(CC) -G';
12460 if test "$GCC" = "yes"
12461 then LDSHARED
='$(CC) -shared'
12462 else LDSHARED
='ld -b';
12464 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
12466 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12467 if test "$enable_framework" ; then
12468 # Link against the framework. All externals should be defined.
12469 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12470 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12472 # No framework. Ignore undefined symbols, assuming they come from Python
12473 LDSHARED
="$LDSHARED -undefined suppress"
12475 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12476 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12477 if test "$enable_framework" ; then
12478 # Link against the framework. All externals should be defined.
12479 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12480 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12482 # No framework, use the Python app as bundle-loader
12483 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12484 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12487 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12488 # This allows an extension to be used in any Python
12489 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12490 if test ${cur_target} '>' 10.2; then
12493 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12495 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12496 # environment with a value that is the same as what we'll use
12497 # in the Makefile to ensure that we'll get the same compiler
12498 # environment during configure and build time.
12499 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12500 export MACOSX_DEPLOYMENT_TARGET
12502 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12503 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12505 if test "${enable_universalsdk}"; then
12506 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12508 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12509 BLDSHARED
="$LDSHARED"
12511 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12512 if test "$enable_framework" ; then
12513 # Link against the framework. All externals should be defined.
12514 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12515 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12517 # No framework, use the Python app as bundle-loader
12518 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12519 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12523 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
12524 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12526 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12528 LDSHARED
="$CC -shared ${LDFLAGS}"
12530 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12533 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12535 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12538 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12539 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12542 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12546 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12547 OpenUNIX
*|UnixWare
*)
12548 if test "$GCC" = "yes"
12549 then LDSHARED
='$(CC) -shared'
12550 else LDSHARED
='$(CC) -G'
12552 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12553 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12554 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12555 atheos
*) LDSHARED
="gcc -shared";;
12559 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12560 echo "${ECHO_T}$LDSHARED" >&6; }
12561 BLDSHARED
=${BLDSHARED-$LDSHARED}
12562 # CCSHARED are the C *flags* used to create objects to go into a shared
12563 # library (module) -- this is only needed for a few systems
12564 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12565 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12566 if test -z "$CCSHARED"
12568 case $ac_sys_system/$ac_sys_release in
12569 SunOS
*) if test "$GCC" = yes;
12570 then CCSHARED
="-fPIC";
12571 elif test `uname -p` = sparc
;
12572 then CCSHARED
="-xcode=pic32";
12573 else CCSHARED
="-Kpic";
12575 hp
*|HP
*) if test "$GCC" = yes;
12576 then CCSHARED
="-fPIC";
12577 else CCSHARED
="+z";
12579 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12580 BSD
/OS
*/4*) CCSHARED
="-fpic";;
12581 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12582 OpenUNIX
*|UnixWare
*)
12583 if test "$GCC" = "yes"
12584 then CCSHARED
="-fPIC"
12585 else CCSHARED
="-KPIC"
12588 if test "$GCC" = "yes"
12589 then CCSHARED
="-fPIC"
12590 else CCSHARED
="-Kpic -belf"
12592 Monterey
*) CCSHARED
="-G";;
12593 IRIX
*/6*) case $CC in
12594 *gcc
*) CCSHARED
="-shared";;
12597 atheos
*) CCSHARED
="-fPIC";;
12600 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12601 echo "${ECHO_T}$CCSHARED" >&6; }
12602 # LINKFORSHARED are the flags passed to the $(CC) command that links
12603 # the python executable -- this is only needed for a few systems
12604 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12605 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12606 if test -z "$LINKFORSHARED"
12608 case $ac_sys_system/$ac_sys_release in
12609 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
12611 LINKFORSHARED
="-Wl,-E -Wl,+s";;
12612 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12613 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12614 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12615 # -u libsys_s pulls in all symbols in libsys
12617 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12619 # not used by the core itself but which needs to be in the core so
12620 # that dynamically loaded extension modules have access to it.
12621 # -prebind is no longer used, because it actually seems to give a
12622 # slowdown in stead of a speedup, maybe due to the large number of
12623 # dynamic loads Python does.
12625 LINKFORSHARED
="$extra_undefs"
12626 if test "$enable_framework"
12628 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12630 LINKFORSHARED
="$LINKFORSHARED";;
12631 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
12632 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
12633 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
12634 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
12635 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12637 LINKFORSHARED
="-Wl,--export-dynamic"
12639 SunOS
/5*) case $CC in
12641 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
12643 LINKFORSHARED
="-Xlinker --export-dynamic"
12647 if test $enable_shared = "no"
12649 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
12653 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12654 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12657 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12658 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12659 if test ! "$LIBRARY" = "$LDLIBRARY"
12661 case $ac_sys_system in
12663 # Cygwin needs CCSHARED when building extension DLLs
12664 # but not when building the interpreter DLL.
12665 CFLAGSFORSHARED
='';;
12667 CFLAGSFORSHARED
='$(CCSHARED)'
12670 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12671 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12673 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12674 # library (with --enable-shared).
12675 # For platforms on which shared libraries are not allowed to have unresolved
12676 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12677 # if it is not required, since it creates a dependency of the shared library
12678 # to LIBS. This, in turn, means that applications linking the shared libpython
12679 # don't need to link LIBS explicitly. The default should be only changed
12680 # on systems where this approach causes problems.
12682 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12683 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12684 case "$ac_sys_system" in
12688 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12689 echo "${ECHO_T}$SHLIBS" >&6; }
12692 # checks for libraries
12694 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 ac_check_lib_save_LIBS
=$LIBS
12701 cat >conftest.
$ac_ext <<_ACEOF
12704 cat confdefs.h
>>conftest.
$ac_ext
12705 cat >>conftest.
$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12723 rm -f conftest.
$ac_objext conftest
$ac_exeext
12724 if { (ac_try
="$ac_link"
12725 case "(($ac_try" in
12726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest$ac_exeext &&
12740 $as_test_x conftest$ac_exeext; then
12741 ac_cv_lib_dl_dlopen=yes
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_lib_dl_dlopen=no
12749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12755 if test $ac_cv_lib_dl_dlopen = yes; then
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_LIBDL 1
12763 # Dynamic linking for SunOS/Solaris and SYSV
12765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 ac_check_lib_save_LIBS=$LIBS
12772 cat >conftest.$ac_ext <<_ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12789 return shl_load ();
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (ac_try="$ac_link"
12796 case "(($ac_try" in
12797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12798 *) ac_try_echo
=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_link") 2>conftest.er1
12803 grep -v '^ *+' conftest.er1
>conftest.err
12805 cat conftest.err
>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && {
12808 test -z "$ac_c_werror_flag" ||
12809 test ! -s conftest.err
12810 } && test -s conftest
$ac_exeext &&
12811 $as_test_x conftest
$ac_exeext; then
12812 ac_cv_lib_dld_shl_load
=yes
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.
$ac_ext >&5
12817 ac_cv_lib_dld_shl_load
=no
12820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12821 conftest
$ac_exeext conftest.
$ac_ext
12822 LIBS
=$ac_check_lib_save_LIBS
12824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12826 if test $ac_cv_lib_dld_shl_load = yes; then
12827 cat >>confdefs.h
<<_ACEOF
12828 #define HAVE_LIBDLD 1
12834 # Dynamic linking for HP-UX
12836 # only check for sem_ini if thread support is requested
12837 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12838 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12839 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12840 if test "${ac_cv_search_sem_init+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 ac_func_search_save_LIBS
=$LIBS
12844 cat >conftest.
$ac_ext <<_ACEOF
12847 cat confdefs.h
>>conftest.
$ac_ext
12848 cat >>conftest.
$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12851 /* Override any GCC internal prototype to avoid an error.
12852 Use char because int might match the return type of a GCC
12853 builtin and then its argument prototype would still apply. */
12861 return sem_init ();
12866 for ac_lib
in '' pthread rt posix4
; do
12867 if test -z "$ac_lib"; then
12868 ac_res
="none required"
12871 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12873 rm -f conftest.
$ac_objext conftest
$ac_exeext
12874 if { (ac_try
="$ac_link"
12875 case "(($ac_try" in
12876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_link") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest$ac_exeext &&
12890 $as_test_x conftest$ac_exeext; then
12891 ac_cv_search_sem_init=$ac_res
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12901 if test "${ac_cv_search_sem_init+set}" = set; then
12905 if test "${ac_cv_search_sem_init+set}" = set; then
12908 ac_cv_search_sem_init=no
12910 rm conftest.$ac_ext
12911 LIBS=$ac_func_search_save_LIBS
12913 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12914 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12915 ac_res=$ac_cv_search_sem_init
12916 if test "$ac_res" != no; then
12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12920 # 'Real Time' functions on Solaris
12921 # posix4 on Solaris 2.6
12922 # pthread (first!) on Linux
12925 # check if we need libintl for locale functions
12926 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12927 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12928 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 ac_check_lib_save_LIBS=$LIBS
12932 LIBS="-lintl $LIBS"
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12946 char textdomain ();
12950 return textdomain ();
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (ac_try="$ac_link"
12957 case "(($ac_try" in
12958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12959 *) ac_try_echo
=$ac_try;;
12961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_link") 2>conftest.er1
12964 grep -v '^ *+' conftest.er1
>conftest.err
12966 cat conftest.err
>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
12971 } && test -s conftest
$ac_exeext &&
12972 $as_test_x conftest
$ac_exeext; then
12973 ac_cv_lib_intl_textdomain
=yes
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.
$ac_ext >&5
12978 ac_cv_lib_intl_textdomain
=no
12981 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12982 conftest
$ac_exeext conftest.
$ac_ext
12983 LIBS
=$ac_check_lib_save_LIBS
12985 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12986 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12987 if test $ac_cv_lib_intl_textdomain = yes; then
12989 cat >>confdefs.h
<<\_ACEOF
12990 #define WITH_LIBINTL 1
12996 # checks for system dependent C++ extensions support
12997 case "$ac_sys_system" in
12998 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12999 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13000 cat >conftest.
$ac_ext <<_ACEOF
13003 cat confdefs.h
>>conftest.
$ac_ext
13004 cat >>conftest.
$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include "/usr/lpp/xlC/include/load.h"
13010 loadAndInit("", 0, "")
13015 rm -f conftest.
$ac_objext conftest
$ac_exeext
13016 if { (ac_try
="$ac_link"
13017 case "(($ac_try" in
13018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_link") 2>conftest.er1
13024 grep -v '^ *+' conftest.er1 >conftest.err
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } && {
13029 test -z "$ac_c_werror_flag" ||
13030 test ! -s conftest.err
13031 } && test -s conftest$ac_exeext &&
13032 $as_test_x conftest$ac_exeext; then
13034 cat >>confdefs.h <<\_ACEOF
13035 #define AIX_GENUINE_CPLUSPLUS 1
13038 { echo "$as_me:$LINENO: result: yes" >&5
13039 echo "${ECHO_T}yes" >&6; }
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 { echo "$as_me:$LINENO: result: no" >&5
13045 echo "${ECHO_T}no" >&6; }
13048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13049 conftest$ac_exeext conftest.$ac_ext;;
13053 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13054 # BeOS' sockets are stashed in libnet.
13055 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13056 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13057 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 ac_check_lib_save_LIBS=$LIBS
13062 cat >conftest.$ac_ext <<_ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13069 /* Override any GCC internal prototype to avoid an error.
13070 Use char because int might match the return type of a GCC
13071 builtin and then its argument prototype would still apply. */
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13088 *) ac_try_echo
=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_link") 2>conftest.er1
13093 grep -v '^ *+' conftest.er1
>conftest.err
13095 cat conftest.err
>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest
$ac_exeext &&
13101 $as_test_x conftest
$ac_exeext; then
13102 ac_cv_lib_nsl_t_open
=yes
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.
$ac_ext >&5
13107 ac_cv_lib_nsl_t_open
=no
13110 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13111 conftest
$ac_exeext conftest.
$ac_ext
13112 LIBS
=$ac_check_lib_save_LIBS
13114 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13115 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13116 if test $ac_cv_lib_nsl_t_open = yes; then
13120 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13122 if test "${ac_cv_lib_socket_socket+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 ac_check_lib_save_LIBS
=$LIBS
13126 LIBS
="-lsocket $LIBS $LIBS"
13127 cat >conftest.
$ac_ext <<_ACEOF
13130 cat confdefs.h
>>conftest.
$ac_ext
13131 cat >>conftest.
$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13149 rm -f conftest.
$ac_objext conftest
$ac_exeext
13150 if { (ac_try
="$ac_link"
13151 case "(($ac_try" in
13152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_link") 2>conftest.er1
13158 grep -v '^ *+' conftest.er1 >conftest.err
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } && {
13163 test -z "$ac_c_werror_flag" ||
13164 test ! -s conftest.err
13165 } && test -s conftest$ac_exeext &&
13166 $as_test_x conftest$ac_exeext; then
13167 ac_cv_lib_socket_socket=yes
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ac_cv_lib_socket_socket=no
13175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13179 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13180 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13181 if test $ac_cv_lib_socket_socket = yes; then
13182 LIBS="-lsocket $LIBS"
13186 case "$ac_sys_system" in
13188 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13189 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13190 if test "${ac_cv_lib_net_socket+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-lnet $LIBS $LIBS"
13195 cat >conftest.$ac_ext <<_ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13221 *) ac_try_echo
=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1
>conftest.err
13228 cat conftest.err
>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest
$ac_exeext &&
13234 $as_test_x conftest
$ac_exeext; then
13235 ac_cv_lib_net_socket
=yes
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.
$ac_ext >&5
13240 ac_cv_lib_net_socket
=no
13243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13244 conftest
$ac_exeext conftest.
$ac_ext
13245 LIBS
=$ac_check_lib_save_LIBS
13247 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13248 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13249 if test $ac_cv_lib_net_socket = yes; then
13256 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13257 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13259 # Check whether --with-libs was given.
13260 if test "${with_libs+set}" = set; then
13261 withval
=$with_libs;
13262 { echo "$as_me:$LINENO: result: $withval" >&5
13263 echo "${ECHO_T}$withval" >&6; }
13264 LIBS
="$withval $LIBS"
13267 { echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6; }
13272 # Check for use of the system libffi library
13273 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13274 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13276 # Check whether --with-system_ffi was given.
13277 if test "${with_system_ffi+set}" = set; then
13278 withval
=$with_system_ffi;
13282 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13283 echo "${ECHO_T}$with_system_ffi" >&6; }
13285 # Determine if signalmodule should be used.
13288 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13289 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13291 # Check whether --with-signal-module was given.
13292 if test "${with_signal_module+set}" = set; then
13293 withval
=$with_signal_module;
13297 if test -z "$with_signal_module"
13298 then with_signal_module
="yes"
13300 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13301 echo "${ECHO_T}$with_signal_module" >&6; }
13303 if test "${with_signal_module}" = "yes"; then
13304 USE_SIGNAL_MODULE
=""
13307 USE_SIGNAL_MODULE
="#"
13308 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13311 # This is used to generate Setup.config
13313 USE_THREAD_MODULE
=""
13315 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13316 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13319 # Check whether --with-dec-threads was given.
13320 if test "${with_dec_threads+set}" = set; then
13321 withval
=$with_dec_threads;
13322 { echo "$as_me:$LINENO: result: $withval" >&5
13323 echo "${ECHO_T}$withval" >&6; }
13325 if test "${with_thread+set}" != set; then
13326 with_thread
="$withval";
13329 { echo "$as_me:$LINENO: result: no" >&5
13330 echo "${ECHO_T}no" >&6; }
13334 # Templates for things AC_DEFINEd more than once.
13335 # For a single AC_DEFINE, no template is needed.
13343 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13344 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13346 # Check whether --with-threads was given.
13347 if test "${with_threads+set}" = set; then
13348 withval
=$with_threads;
13352 # --with-thread is deprecated, but check for it anyway
13354 # Check whether --with-thread was given.
13355 if test "${with_thread+set}" = set; then
13356 withval
=$with_thread; with_threads
=$with_thread
13360 if test -z "$with_threads"
13361 then with_threads
="yes"
13363 { echo "$as_me:$LINENO: result: $with_threads" >&5
13364 echo "${ECHO_T}$with_threads" >&6; }
13367 if test "$with_threads" = "no"
13369 USE_THREAD_MODULE
="#"
13370 elif test "$ac_cv_pthread_is_default" = yes
13372 cat >>confdefs.h
<<\_ACEOF
13373 #define WITH_THREAD 1
13376 # Defining _REENTRANT on system with POSIX threads should not hurt.
13377 cat >>confdefs.h
<<\_ACEOF
13378 #define _REENTRANT 1
13382 THREADOBJ
="Python/thread.o"
13383 elif test "$ac_cv_kpthread" = "yes"
13386 if test "$ac_cv_cxx_thread" = "yes"; then
13387 CXX
="$CXX -Kpthread"
13389 cat >>confdefs.h
<<\_ACEOF
13390 #define WITH_THREAD 1
13394 THREADOBJ
="Python/thread.o"
13395 elif test "$ac_cv_kthread" = "yes"
13398 if test "$ac_cv_cxx_thread" = "yes"; then
13399 CXX
="$CXX -Kthread"
13401 cat >>confdefs.h
<<\_ACEOF
13402 #define WITH_THREAD 1
13406 THREADOBJ
="Python/thread.o"
13407 elif test "$ac_cv_pthread" = "yes"
13410 if test "$ac_cv_cxx_thread" = "yes"; then
13411 CXX
="$CXX -pthread"
13413 cat >>confdefs.h
<<\_ACEOF
13414 #define WITH_THREAD 1
13418 THREADOBJ
="Python/thread.o"
13420 if test ! -z "$with_threads" -a -d "$with_threads"
13421 then LDFLAGS
="$LDFLAGS -L$with_threads"
13423 if test ! -z "$withval" -a -d "$withval"
13424 then LDFLAGS
="$LDFLAGS -L$withval"
13427 # According to the POSIX spec, a pthreads implementation must
13428 # define _POSIX_THREADS in unistd.h. Some apparently don't
13429 # (e.g. gnu pth with pthread emulation)
13430 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13431 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13432 cat >conftest.
$ac_ext <<_ACEOF
13435 cat confdefs.h
>>conftest.
$ac_ext
13436 cat >>conftest.
$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13439 #include <unistd.h>
13440 #ifdef _POSIX_THREADS
13445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13446 $EGREP "yes" >/dev
/null
2>&1; then
13447 unistd_defines_pthreads
=yes
13449 unistd_defines_pthreads
=no
13453 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13454 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13456 cat >>confdefs.h
<<\_ACEOF
13457 #define _REENTRANT 1
13460 if test "${ac_cv_header_cthreads_h+set}" = set; then
13461 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13462 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13463 if test "${ac_cv_header_cthreads_h+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13467 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13469 # Is the header compilable?
13470 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13471 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13472 cat >conftest.
$ac_ext <<_ACEOF
13475 cat confdefs.h
>>conftest.
$ac_ext
13476 cat >>conftest.
$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13479 #include <cthreads.h>
13481 rm -f conftest.
$ac_objext
13482 if { (ac_try
="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_header_compiler=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_compiler=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13508 echo "${ECHO_T}$ac_header_compiler" >&6; }
13510 # Is the header present?
13511 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13512 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <cthreads.h>
13521 if { (ac_try="$ac_cpp conftest.$ac_ext"
13522 case "(($ac_try" in
13523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13524 *) ac_try_echo
=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13529 grep -v '^ *+' conftest.er1
>conftest.err
13531 cat conftest.err
>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } >/dev
/null
&& {
13534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13537 ac_header_preproc
=yes
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.
$ac_ext >&5
13542 ac_header_preproc
=no
13545 rm -f conftest.err conftest.
$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6; }
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc
=yes
13559 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13572 ## ------------------------------------------------ ##
13573 ## Report this to http://www.python.org/python-bugs ##
13574 ## ------------------------------------------------ ##
13576 ) |
sed "s/^/$as_me: WARNING: /" >&2
13579 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13580 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13581 if test "${ac_cv_header_cthreads_h+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 ac_cv_header_cthreads_h
=$ac_header_preproc
13586 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13587 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13590 if test $ac_cv_header_cthreads_h = yes; then
13591 cat >>confdefs.h
<<\_ACEOF
13592 #define WITH_THREAD 1
13595 cat >>confdefs.h
<<\_ACEOF
13596 #define C_THREADS 1
13600 cat >>confdefs.h
<<\_ACEOF
13601 #define HURD_C_THREADS 1
13604 LIBS
="$LIBS -lthreads"
13605 THREADOBJ
="Python/thread.o"
13608 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13609 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13610 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13611 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13615 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13617 # Is the header compilable?
13618 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13619 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13620 cat >conftest.
$ac_ext <<_ACEOF
13623 cat confdefs.h
>>conftest.
$ac_ext
13624 cat >>conftest.
$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13627 #include <mach/cthreads.h>
13629 rm -f conftest.
$ac_objext
13630 if { (ac_try
="$ac_compile"
13631 case "(($ac_try" in
13632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_compile") 2>conftest.er1
13638 grep -v '^ *+' conftest.er1 >conftest.err
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } && {
13643 test -z "$ac_c_werror_flag" ||
13644 test ! -s conftest.err
13645 } && test -s conftest.$ac_objext; then
13646 ac_header_compiler=yes
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_header_compiler=no
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13656 echo "${ECHO_T}$ac_header_compiler" >&6; }
13658 # Is the header present?
13659 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13660 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include <mach/cthreads.h>
13669 if { (ac_try="$ac_cpp conftest.$ac_ext"
13670 case "(($ac_try" in
13671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13672 *) ac_try_echo
=$ac_try;;
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13677 grep -v '^ *+' conftest.er1
>conftest.err
13679 cat conftest.err
>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } >/dev
/null
&& {
13682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13683 test ! -s conftest.err
13685 ac_header_preproc
=yes
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.
$ac_ext >&5
13690 ac_header_preproc
=no
13693 rm -f conftest.err conftest.
$ac_ext
13694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13695 echo "${ECHO_T}$ac_header_preproc" >&6; }
13697 # So? What about this header?
13698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13700 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13701 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13703 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13704 ac_header_preproc
=yes
13707 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13708 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13709 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13710 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13712 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13714 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13716 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13718 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13720 ## ------------------------------------------------ ##
13721 ## Report this to http://www.python.org/python-bugs ##
13722 ## ------------------------------------------------ ##
13724 ) |
sed "s/^/$as_me: WARNING: /" >&2
13727 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13728 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13729 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
13734 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13735 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13738 if test $ac_cv_header_mach_cthreads_h = yes; then
13739 cat >>confdefs.h
<<\_ACEOF
13740 #define WITH_THREAD 1
13743 cat >>confdefs.h
<<\_ACEOF
13744 #define C_THREADS 1
13748 cat >>confdefs.h
<<\_ACEOF
13749 #define MACH_C_THREADS 1
13752 THREADOBJ
="Python/thread.o"
13755 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13756 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13758 # Check whether --with-pth was given.
13759 if test "${with_pth+set}" = set; then
13760 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13761 echo "${ECHO_T}$withval" >&6; }
13762 cat >>confdefs.h
<<\_ACEOF
13763 #define WITH_THREAD 1
13767 cat >>confdefs.h
<<\_ACEOF
13772 THREADOBJ
="Python/thread.o"
13774 { echo "$as_me:$LINENO: result: no" >&5
13775 echo "${ECHO_T}no" >&6; }
13777 # Just looking for pthread_create in libpthread is not enough:
13778 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13779 # So we really have to include pthread.h, and then link.
13781 LIBS
="$LIBS -lpthread"
13782 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13783 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13784 cat >conftest.
$ac_ext <<_ACEOF
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 #include <pthread.h>
13792 void * start_routine (void *arg) { exit (0); }
13797 pthread_create (NULL, NULL, start_routine, NULL)
13802 rm -f conftest.
$ac_objext conftest
$ac_exeext
13803 if { (ac_try
="$ac_link"
13804 case "(($ac_try" in
13805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } && {
13816 test -z "$ac_c_werror_flag" ||
13817 test ! -s conftest.err
13818 } && test -s conftest$ac_exeext &&
13819 $as_test_x conftest$ac_exeext; then
13821 { echo "$as_me:$LINENO: result: yes" >&5
13822 echo "${ECHO_T}yes" >&6; }
13823 cat >>confdefs.h <<\_ACEOF
13824 #define WITH_THREAD 1
13828 THREADOBJ="Python/thread.o"
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13835 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13836 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13837 if test "${ac_cv_func_pthread_detach+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13848 #define pthread_detach innocuous_pthread_detach
13850 /* System header to define __stub macros and hopefully few prototypes,
13851 which can conflict with char pthread_detach (); below.
13852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13853 <limits.h> exists even on freestanding compilers. */
13856 # include <limits.h>
13858 # include <assert.h>
13861 #undef pthread_detach
13863 /* Override any GCC internal prototype to avoid an error.
13864 Use char because int might match the return type of a GCC
13865 builtin and then its argument prototype would still apply. */
13869 char pthread_detach ();
13870 /* The GNU C library defines this for functions which it implements
13871 to always fail with ENOSYS. Some functions are actually named
13872 something starting with __ and the normal name is an alias. */
13873 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13880 return pthread_detach ();
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (ac_try="$ac_link"
13887 case "(($ac_try" in
13888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13889 *) ac_try_echo
=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_link") 2>conftest.er1
13894 grep -v '^ *+' conftest.er1
>conftest.err
13896 cat conftest.err
>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest
$ac_exeext &&
13902 $as_test_x conftest
$ac_exeext; then
13903 ac_cv_func_pthread_detach
=yes
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.
$ac_ext >&5
13908 ac_cv_func_pthread_detach
=no
13911 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13912 conftest
$ac_exeext conftest.
$ac_ext
13914 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13915 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13916 if test $ac_cv_func_pthread_detach = yes; then
13917 cat >>confdefs.h
<<\_ACEOF
13918 #define WITH_THREAD 1
13922 THREADOBJ
="Python/thread.o"
13925 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13926 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13927 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13936 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13937 cat >conftest.
$ac_ext <<_ACEOF
13940 cat confdefs.h
>>conftest.
$ac_ext
13941 cat >>conftest.
$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <atheos/threads.h>
13946 rm -f conftest.
$ac_objext
13947 if { (ac_try
="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13955 grep -v '^ *+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_header_compiler=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13977 echo $ECHO_N "checking atheos/threads.h presence... $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 #include <atheos/threads.h>
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13989 *) ac_try_echo
=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 grep -v '^ *+' conftest.er1
>conftest.err
13996 cat conftest.err
>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev
/null
&& {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14002 ac_header_preproc
=yes
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.
$ac_ext >&5
14007 ac_header_preproc
=no
14010 rm -f conftest.err conftest.
$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc
=yes
14024 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14037 ## ------------------------------------------------ ##
14038 ## Report this to http://www.python.org/python-bugs ##
14039 ## ------------------------------------------------ ##
14041 ) |
sed "s/^/$as_me: WARNING: /" >&2
14044 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14045 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14046 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14051 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14052 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14055 if test $ac_cv_header_atheos_threads_h = yes; then
14056 cat >>confdefs.h
<<\_ACEOF
14057 #define WITH_THREAD 1
14061 cat >>confdefs.h
<<\_ACEOF
14062 #define ATHEOS_THREADS 1
14065 THREADOBJ
="Python/thread.o"
14068 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14069 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14070 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14071 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14075 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14077 # Is the header compilable?
14078 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14079 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14080 cat >conftest.
$ac_ext <<_ACEOF
14083 cat confdefs.h
>>conftest.
$ac_ext
14084 cat >>conftest.
$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 $ac_includes_default
14087 #include <kernel/OS.h>
14089 rm -f conftest.
$ac_objext
14090 if { (ac_try
="$ac_compile"
14091 case "(($ac_try" in
14092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_compile") 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && {
14103 test -z "$ac_c_werror_flag" ||
14104 test ! -s conftest.err
14105 } && test -s conftest.$ac_objext; then
14106 ac_header_compiler=yes
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_header_compiler=no
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14116 echo "${ECHO_T}$ac_header_compiler" >&6; }
14118 # Is the header present?
14119 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14120 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <kernel/OS.h>
14129 if { (ac_try="$ac_cpp conftest.$ac_ext"
14130 case "(($ac_try" in
14131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14132 *) ac_try_echo
=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1
>conftest.err
14139 cat conftest.err
>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } >/dev
/null
&& {
14142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14145 ac_header_preproc
=yes
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.
$ac_ext >&5
14150 ac_header_preproc
=no
14153 rm -f conftest.err conftest.
$ac_ext
14154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14155 echo "${ECHO_T}$ac_header_preproc" >&6; }
14157 # So? What about this header?
14158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14160 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14161 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14162 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14163 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14164 ac_header_preproc
=yes
14167 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14168 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14170 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14172 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14174 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14176 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14178 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14180 ## ------------------------------------------------ ##
14181 ## Report this to http://www.python.org/python-bugs ##
14182 ## ------------------------------------------------ ##
14184 ) |
sed "s/^/$as_me: WARNING: /" >&2
14187 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14188 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14189 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14194 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14195 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14198 if test $ac_cv_header_kernel_OS_h = yes; then
14199 cat >>confdefs.h
<<\_ACEOF
14200 #define WITH_THREAD 1
14204 cat >>confdefs.h
<<\_ACEOF
14205 #define BEOS_THREADS 1
14208 THREADOBJ
="Python/thread.o"
14211 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14212 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14213 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 ac_check_lib_save_LIBS
=$LIBS
14217 LIBS
="-lpthreads $LIBS"
14218 cat >conftest.
$ac_ext <<_ACEOF
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14231 char pthread_create ();
14235 return pthread_create ();
14240 rm -f conftest.
$ac_objext conftest
$ac_exeext
14241 if { (ac_try
="$ac_link"
14242 case "(($ac_try" in
14243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_link") 2>conftest.er1
14249 grep -v '^ *+' conftest.er1 >conftest.err
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 } && test -s conftest$ac_exeext &&
14257 $as_test_x conftest$ac_exeext; then
14258 ac_cv_lib_pthreads_pthread_create=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_lib_pthreads_pthread_create=no
14266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14270 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14271 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14272 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define WITH_THREAD 1
14278 LIBS="$LIBS -lpthreads"
14279 THREADOBJ="Python/thread.o"
14282 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14283 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14284 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 ac_check_lib_save_LIBS=$LIBS
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14302 char pthread_create ();
14306 return pthread_create ();
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (ac_try="$ac_link"
14313 case "(($ac_try" in
14314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14315 *) ac_try_echo
=$ac_try;;
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_link") 2>conftest.er1
14320 grep -v '^ *+' conftest.er1
>conftest.err
14322 cat conftest.err
>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && {
14325 test -z "$ac_c_werror_flag" ||
14326 test ! -s conftest.err
14327 } && test -s conftest
$ac_exeext &&
14328 $as_test_x conftest
$ac_exeext; then
14329 ac_cv_lib_c_r_pthread_create
=yes
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.
$ac_ext >&5
14334 ac_cv_lib_c_r_pthread_create
=no
14337 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14338 conftest
$ac_exeext conftest.
$ac_ext
14339 LIBS
=$ac_check_lib_save_LIBS
14341 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14342 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14343 if test $ac_cv_lib_c_r_pthread_create = yes; then
14344 cat >>confdefs.h
<<\_ACEOF
14345 #define WITH_THREAD 1
14350 THREADOBJ
="Python/thread.o"
14353 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14354 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14355 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 ac_check_lib_save_LIBS
=$LIBS
14359 LIBS
="-lpthread $LIBS"
14360 cat >conftest.
$ac_ext <<_ACEOF
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 /* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14373 char __pthread_create_system ();
14377 return __pthread_create_system ();
14382 rm -f conftest.
$ac_objext conftest
$ac_exeext
14383 if { (ac_try
="$ac_link"
14384 case "(($ac_try" in
14385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_link") 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } && {
14396 test -z "$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14398 } && test -s conftest$ac_exeext &&
14399 $as_test_x conftest$ac_exeext; then
14400 ac_cv_lib_pthread___pthread_create_system=yes
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_lib_pthread___pthread_create_system=no
14408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_check_lib_save_LIBS
14412 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14413 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14414 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14415 cat >>confdefs.h <<\_ACEOF
14416 #define WITH_THREAD 1
14420 LIBS="$LIBS -lpthread"
14421 THREADOBJ="Python/thread.o"
14424 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14425 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14426 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 ac_check_lib_save_LIBS=$LIBS
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply. */
14444 char pthread_create ();
14448 return pthread_create ();
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454 if { (ac_try="$ac_link"
14455 case "(($ac_try" in
14456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14457 *) ac_try_echo
=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1
>conftest.err
14464 cat conftest.err
>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest
$ac_exeext &&
14470 $as_test_x conftest
$ac_exeext; then
14471 ac_cv_lib_cma_pthread_create
=yes
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.
$ac_ext >&5
14476 ac_cv_lib_cma_pthread_create
=no
14479 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14480 conftest
$ac_exeext conftest.
$ac_ext
14481 LIBS
=$ac_check_lib_save_LIBS
14483 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14484 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14485 if test $ac_cv_lib_cma_pthread_create = yes; then
14486 cat >>confdefs.h
<<\_ACEOF
14487 #define WITH_THREAD 1
14492 THREADOBJ
="Python/thread.o"
14495 USE_THREAD_MODULE
="#"
14515 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14516 conftest
$ac_exeext conftest.
$ac_ext
14526 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14527 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14528 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 ac_check_lib_save_LIBS
=$LIBS
14533 cat >conftest.
$ac_ext <<_ACEOF
14536 cat confdefs.h
>>conftest.
$ac_ext
14537 cat >>conftest.
$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14540 /* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14550 return usconfig ();
14555 rm -f conftest.
$ac_objext conftest
$ac_exeext
14556 if { (ac_try
="$ac_link"
14557 case "(($ac_try" in
14558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_link") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest$ac_exeext &&
14572 $as_test_x conftest$ac_exeext; then
14573 ac_cv_lib_mpc_usconfig=yes
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_cv_lib_mpc_usconfig=no
14581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14585 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14586 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14587 if test $ac_cv_lib_mpc_usconfig = yes; then
14588 cat >>confdefs.h <<\_ACEOF
14589 #define WITH_THREAD 1
14593 THREADOBJ="Python/thread.o"
14594 USE_THREAD_MODULE=""
14598 if test "$posix_threads" != "yes"; then
14599 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14600 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14601 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 ac_check_lib_save_LIBS=$LIBS
14605 LIBS="-lthread $LIBS"
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14619 char thr_create ();
14623 return thr_create ();
14628 rm -f conftest.$ac_objext conftest$ac_exeext
14629 if { (ac_try="$ac_link"
14630 case "(($ac_try" in
14631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14632 *) ac_try_echo
=$ac_try;;
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_link") 2>conftest.er1
14637 grep -v '^ *+' conftest.er1
>conftest.err
14639 cat conftest.err
>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest
$ac_exeext &&
14645 $as_test_x conftest
$ac_exeext; then
14646 ac_cv_lib_thread_thr_create
=yes
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.
$ac_ext >&5
14651 ac_cv_lib_thread_thr_create
=no
14654 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14655 conftest
$ac_exeext conftest.
$ac_ext
14656 LIBS
=$ac_check_lib_save_LIBS
14658 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14659 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14660 if test $ac_cv_lib_thread_thr_create = yes; then
14661 cat >>confdefs.h
<<\_ACEOF
14662 #define WITH_THREAD 1
14665 LIBS
="$LIBS -lthread"
14666 THREADOBJ
="Python/thread.o"
14667 USE_THREAD_MODULE
=""
14672 if test "$USE_THREAD_MODULE" != "#"
14674 # If the above checks didn't disable threads, (at least) OSF1
14675 # needs this '-threads' argument during linking.
14676 case $ac_sys_system in
14677 OSF1
) LDLAST
=-threads;;
14682 if test "$posix_threads" = "yes"; then
14683 if test "$unistd_defines_pthreads" = "no"; then
14685 cat >>confdefs.h
<<\_ACEOF
14686 #define _POSIX_THREADS 1
14691 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14692 case $ac_sys_system/$ac_sys_release in
14694 cat >>confdefs.h
<<\_ACEOF
14695 #define HAVE_PTHREAD_DESTRUCTOR 1
14700 cat >>confdefs.h
<<\_ACEOF
14701 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14706 cat >>confdefs.h
<<\_ACEOF
14707 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14713 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14714 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14715 if test "${ac_cv_pthread_system_supported+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 if test "$cross_compiling" = yes; then
14719 ac_cv_pthread_system_supported
=no
14721 cat >conftest.
$ac_ext <<_ACEOF
14724 cat confdefs.h
>>conftest.
$ac_ext
14725 cat >>conftest.
$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 #include <pthread.h>
14728 void *foo(void *parm) {
14732 pthread_attr_t attr;
14734 if (pthread_attr_init(&attr)) exit(-1);
14735 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14736 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14740 rm -f conftest
$ac_exeext
14741 if { (ac_try
="$ac_link"
14742 case "(($ac_try" in
14743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_link") 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14753 *) ac_try_echo
=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 ac_cv_pthread_system_supported
=yes
14762 echo "$as_me: program exited with status $ac_status" >&5
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.
$ac_ext >&5
14766 ( exit $ac_status )
14767 ac_cv_pthread_system_supported
=no
14769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14777 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14778 if test "$ac_cv_pthread_system_supported" = "yes"; then
14780 cat >>confdefs.h
<<\_ACEOF
14781 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14786 for ac_func
in pthread_sigmask
14788 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14791 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 cat >conftest.
$ac_ext <<_ACEOF
14797 cat confdefs.h
>>conftest.
$ac_ext
14798 cat >>conftest.
$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14802 #define $ac_func innocuous_$ac_func
14804 /* System header to define __stub macros and hopefully few prototypes,
14805 which can conflict with char $ac_func (); below.
14806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14807 <limits.h> exists even on freestanding compilers. */
14810 # include <limits.h>
14812 # include <assert.h>
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14824 /* The GNU C library defines this for functions which it implements
14825 to always fail with ENOSYS. Some functions are actually named
14826 something starting with __ and the normal name is an alias. */
14827 #if defined __stub_$ac_func || defined __stub___$ac_func
14834 return $ac_func ();
14839 rm -f conftest.
$ac_objext conftest
$ac_exeext
14840 if { (ac_try
="$ac_link"
14841 case "(($ac_try" in
14842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_link") 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } && {
14853 test -z "$ac_c_werror_flag" ||
14854 test ! -s conftest.err
14855 } && test -s conftest$ac_exeext &&
14856 $as_test_x conftest$ac_exeext; then
14857 eval "$as_ac_var=yes"
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 eval "$as_ac_var=no"
14865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14866 conftest$ac_exeext conftest.$ac_ext
14868 ac_res=`eval echo '${'$as_ac_var'}'`
14869 { echo "$as_me:$LINENO: result: $ac_res" >&5
14870 echo "${ECHO_T}$ac_res" >&6; }
14871 if test `eval echo '${'$as_ac_var'}'` = yes; then
14872 cat >>confdefs.h <<_ACEOF
14873 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14875 case $ac_sys_system in
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14890 # Check for enable-ipv6
14893 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14894 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14895 # Check whether --enable-ipv6 was given.
14896 if test "${enable_ipv6+set}" = set; then
14897 enableval=$enable_ipv6; case "$enableval" in
14899 { echo "$as_me:$LINENO: result: no" >&5
14900 echo "${ECHO_T}no" >&6; }
14903 *) { echo "$as_me:$LINENO: result: yes" >&5
14904 echo "${ECHO_T}yes" >&6; }
14905 cat >>confdefs.h <<\_ACEOF
14906 #define ENABLE_IPV6 1
14914 if test "$cross_compiling" = yes; then
14915 { echo "$as_me:$LINENO: result: no" >&5
14916 echo "${ECHO_T}no" >&6; }
14920 cat >conftest.$ac_ext <<_ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14926 /* AF_INET6 available check */
14927 #include <sys/types.h>
14928 #include <sys/socket.h>
14931 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14938 rm -f conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14942 *) ac_try_echo
=$ac_try;;
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14949 { (case "(($ac_try" in
14950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_try") 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 { echo "$as_me:$LINENO: result: yes" >&5
14959 echo "${ECHO_T}yes" >&6; }
14962 echo "$as_me: program exited with status $ac_status" >&5
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 ( exit $ac_status )
14967 { echo "$as_me:$LINENO: result: no" >&5
14968 echo "${ECHO_T}no" >&6; }
14971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14976 if test "$ipv6" = "yes"; then
14977 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14978 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <sys/types.h>
14986 #include <netinet/in.h>
14990 struct sockaddr_in6 x;
14996 rm -f conftest.$ac_objext
14997 if { (ac_try="$ac_compile"
14998 case "(($ac_try" in
14999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15000 *) ac_try_echo
=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_compile") 2>conftest.er1
15005 grep -v '^ *+' conftest.er1
>conftest.err
15007 cat conftest.err
>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 } && test -s conftest.
$ac_objext; then
15013 { echo "$as_me:$LINENO: result: yes" >&5
15014 echo "${ECHO_T}yes" >&6; }
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.
$ac_ext >&5
15020 { echo "$as_me:$LINENO: result: no" >&5
15021 echo "${ECHO_T}no" >&6; }
15025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15028 if test "$ipv6" = "yes"; then
15029 cat >>confdefs.h
<<\_ACEOF
15030 #define ENABLE_IPV6 1
15042 if test "$ipv6" = "yes"; then
15043 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15044 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15045 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15049 cat >conftest.
$ac_ext <<_ACEOF
15052 cat confdefs.h
>>conftest.
$ac_ext
15053 cat >>conftest.
$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15056 #include <netinet/in.h>
15057 #ifdef IPV6_INRIA_VERSION
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "yes" >/dev
/null
2>&1; then
15069 cat >conftest.
$ac_ext <<_ACEOF
15072 cat confdefs.h
>>conftest.
$ac_ext
15073 cat >>conftest.
$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15076 #include <netinet/in.h>
15081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15082 $EGREP "yes" >/dev
/null
2>&1; then
15085 ipv6libdir
=/usr
/local
/v
6/lib
15092 cat >conftest.
$ac_ext <<_ACEOF
15095 cat confdefs.h
>>conftest.
$ac_ext
15096 cat >>conftest.
$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 #include <features.h>
15100 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15105 $EGREP "yes" >/dev
/null
2>&1; then
15113 if test -d /usr
/inet6
; then
15116 ipv6libdir
=/usr
/inet
6/lib
15117 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15121 if test -f /etc
/netconfig
; then
15122 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15129 cat >conftest.
$ac_ext <<_ACEOF
15132 cat confdefs.h
>>conftest.
$ac_ext
15133 cat >>conftest.
$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15136 #include <sys/param.h>
15137 #ifdef _TOSHIBA_INET6
15141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15142 $EGREP "yes" >/dev
/null
2>&1; then
15145 ipv6libdir
=/usr
/local
/v
6/lib
15151 cat >conftest.
$ac_ext <<_ACEOF
15154 cat confdefs.h
>>conftest.
$ac_ext
15155 cat >>conftest.
$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15158 #include </usr/local/v6/include/sys/v6config.h>
15163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15164 $EGREP "yes" >/dev
/null
2>&1; then
15167 ipv6libdir
=/usr
/local
/v
6/lib
;
15168 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15174 cat >conftest.
$ac_ext <<_ACEOF
15177 cat confdefs.h
>>conftest.
$ac_ext
15178 cat >>conftest.
$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15181 #include <sys/param.h>
15182 #ifdef _ZETA_MINAMI_INET6
15186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15187 $EGREP "yes" >/dev
/null
2>&1; then
15190 ipv6libdir
=/usr
/local
/v
6/lib
15196 if test "$ipv6type" != "unknown"; then
15200 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15201 echo "${ECHO_T}$ipv6type" >&6; }
15204 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15205 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15206 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15207 echo "using lib$ipv6lib"
15209 if test $ipv6trylibc = "yes"; then
15212 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15213 echo "You need to fetch lib$ipv6lib.a from appropriate"
15214 echo 'ipv6 kit and compile beforehand.'
15220 # Check for --with-doc-strings
15221 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15222 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15224 # Check whether --with-doc-strings was given.
15225 if test "${with_doc_strings+set}" = set; then
15226 withval
=$with_doc_strings;
15230 if test -z "$with_doc_strings"
15231 then with_doc_strings
="yes"
15233 if test "$with_doc_strings" != "no"
15236 cat >>confdefs.h
<<\_ACEOF
15237 #define WITH_DOC_STRINGS 1
15241 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15242 echo "${ECHO_T}$with_doc_strings" >&6; }
15244 # Check for Python-specific malloc support
15245 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15246 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15248 # Check whether --with-tsc was given.
15249 if test "${with_tsc+set}" = set; then
15251 if test "$withval" != no
15254 cat >>confdefs.h
<<\_ACEOF
15258 { echo "$as_me:$LINENO: result: yes" >&5
15259 echo "${ECHO_T}yes" >&6; }
15260 else { echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6; }
15264 { echo "$as_me:$LINENO: result: no" >&5
15265 echo "${ECHO_T}no" >&6; }
15269 # Check for Python-specific malloc support
15270 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15271 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15273 # Check whether --with-pymalloc was given.
15274 if test "${with_pymalloc+set}" = set; then
15275 withval
=$with_pymalloc;
15279 if test -z "$with_pymalloc"
15280 then with_pymalloc
="yes"
15282 if test "$with_pymalloc" != "no"
15285 cat >>confdefs.h
<<\_ACEOF
15286 #define WITH_PYMALLOC 1
15290 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15291 echo "${ECHO_T}$with_pymalloc" >&6; }
15293 # Check for --with-wctype-functions
15294 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15295 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15297 # Check whether --with-wctype-functions was given.
15298 if test "${with_wctype_functions+set}" = set; then
15299 withval
=$with_wctype_functions;
15300 if test "$withval" != no
15303 cat >>confdefs.h
<<\_ACEOF
15304 #define WANT_WCTYPE_FUNCTIONS 1
15307 { echo "$as_me:$LINENO: result: yes" >&5
15308 echo "${ECHO_T}yes" >&6; }
15309 else { echo "$as_me:$LINENO: result: no" >&5
15310 echo "${ECHO_T}no" >&6; }
15313 { echo "$as_me:$LINENO: result: no" >&5
15314 echo "${ECHO_T}no" >&6; }
15318 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15322 # the dlopen() function means we might want to use dynload_shlib.o. some
15323 # platforms, such as AIX, have dlopen(), but don't want to use it.
15325 for ac_func
in dlopen
15327 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15330 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 cat >conftest.
$ac_ext <<_ACEOF
15336 cat confdefs.h
>>conftest.
$ac_ext
15337 cat >>conftest.
$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15341 #define $ac_func innocuous_$ac_func
15343 /* System header to define __stub macros and hopefully few prototypes,
15344 which can conflict with char $ac_func (); below.
15345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15346 <limits.h> exists even on freestanding compilers. */
15349 # include <limits.h>
15351 # include <assert.h>
15356 /* Override any GCC internal prototype to avoid an error.
15357 Use char because int might match the return type of a GCC
15358 builtin and then its argument prototype would still apply. */
15363 /* The GNU C library defines this for functions which it implements
15364 to always fail with ENOSYS. Some functions are actually named
15365 something starting with __ and the normal name is an alias. */
15366 #if defined __stub_$ac_func || defined __stub___$ac_func
15373 return $ac_func ();
15378 rm -f conftest.
$ac_objext conftest
$ac_exeext
15379 if { (ac_try
="$ac_link"
15380 case "(($ac_try" in
15381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_link") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest$ac_exeext &&
15395 $as_test_x conftest$ac_exeext; then
15396 eval "$as_ac_var=yes"
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 eval "$as_ac_var=no"
15404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15405 conftest$ac_exeext conftest.$ac_ext
15407 ac_res=`eval echo '${'$as_ac_var'}'`
15408 { echo "$as_me:$LINENO: result: $ac_res" >&5
15409 echo "${ECHO_T}$ac_res" >&6; }
15410 if test `eval echo '${'$as_ac_var'}'` = yes; then
15411 cat >>confdefs.h <<_ACEOF
15412 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15419 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15420 # loading of modules.
15422 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15423 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15424 if test -z "$DYNLOADFILE"
15426 case $ac_sys_system/$ac_sys_release in
15427 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15428 if test "$ac_cv_func_dlopen" = yes
15429 then DYNLOADFILE="dynload_shlib.o"
15430 else DYNLOADFILE="dynload_aix.o"
15433 BeOS*) DYNLOADFILE="dynload_beos.o";;
15434 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15435 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15436 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15437 atheos*) DYNLOADFILE="dynload_atheos.o";;
15439 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15440 # out any dynamic loading
15441 if test "$ac_cv_func_dlopen" = yes
15442 then DYNLOADFILE="dynload_shlib.o"
15443 else DYNLOADFILE="dynload_stub.o"
15448 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15449 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15450 if test "$DYNLOADFILE" != "dynload_stub.o"
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAVE_DYNAMIC_LOADING 1
15459 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15462 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15463 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15464 if test -z "$MACHDEP_OBJS"
15466 MACHDEP_OBJS=$extra_machdep_objs
15468 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15470 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15471 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15473 # checks for library functions
15555 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15556 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15557 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15558 getpriority getpwent getspnam getspent getsid getwd \
15559 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15560 mremap nice pathconf pause plock poll pthread_init \
15561 putenv readlink realpath \
15562 select setegid seteuid setgid \
15563 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15564 sigaction siginterrupt sigrelse strftime \
15565 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15566 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15568 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15582 #define $ac_func innocuous_$ac_func
15584 /* System header to define __stub macros and hopefully few prototypes,
15585 which can conflict with char $ac_func (); below.
15586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587 <limits.h> exists even on freestanding compilers. */
15590 # include <limits.h>
15592 # include <assert.h>
15597 /* Override any GCC internal prototype to avoid an error.
15598 Use char because int might match the return type of a GCC
15599 builtin and then its argument prototype would still apply. */
15604 /* The GNU C library defines this for functions which it implements
15605 to always fail with ENOSYS. Some functions are actually named
15606 something starting with __ and the normal name is an alias. */
15607 #if defined __stub_$ac_func || defined __stub___$ac_func
15614 return $ac_func ();
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15623 *) ac_try_echo
=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15628 grep -v '^ *+' conftest.er1
>conftest.err
15630 cat conftest.err
>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest
$ac_exeext &&
15636 $as_test_x conftest
$ac_exeext; then
15637 eval "$as_ac_var=yes"
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.
$ac_ext >&5
15642 eval "$as_ac_var=no"
15645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15646 conftest
$ac_exeext conftest.
$ac_ext
15648 ac_res
=`eval echo '${'$as_ac_var'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15651 if test `eval echo '${'$as_ac_var'}'` = yes; then
15652 cat >>confdefs.h
<<_ACEOF
15653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15660 # For some functions, having a definition is not sufficient, since
15661 # we want to take their address.
15662 { echo "$as_me:$LINENO: checking for chroot" >&5
15663 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15664 cat >conftest.
$ac_ext <<_ACEOF
15667 cat confdefs.h
>>conftest.
$ac_ext
15668 cat >>conftest.
$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 #include <unistd.h>
15679 rm -f conftest.
$ac_objext
15680 if { (ac_try
="$ac_compile"
15681 case "(($ac_try" in
15682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_compile") 2>conftest.er1
15688 grep -v '^ *+' conftest.er1 >conftest.err
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } && {
15693 test -z "$ac_c_werror_flag" ||
15694 test ! -s conftest.err
15695 } && test -s conftest.$ac_objext; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define HAVE_CHROOT 1
15701 { echo "$as_me:$LINENO: result: yes" >&5
15702 echo "${ECHO_T}yes" >&6; }
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 { echo "$as_me:$LINENO: result: no" >&5
15708 echo "${ECHO_T}no" >&6; }
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: checking for link" >&5
15714 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <unistd.h>
15730 rm -f conftest.$ac_objext
15731 if { (ac_try="$ac_compile"
15732 case "(($ac_try" in
15733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15734 *) ac_try_echo
=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_compile") 2>conftest.er1
15739 grep -v '^ *+' conftest.er1
>conftest.err
15741 cat conftest.err
>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest.
$ac_objext; then
15748 cat >>confdefs.h
<<\_ACEOF
15749 #define HAVE_LINK 1
15752 { echo "$as_me:$LINENO: result: yes" >&5
15753 echo "${ECHO_T}yes" >&6; }
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.
$ac_ext >&5
15758 { echo "$as_me:$LINENO: result: no" >&5
15759 echo "${ECHO_T}no" >&6; }
15763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15764 { echo "$as_me:$LINENO: checking for symlink" >&5
15765 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15766 cat >conftest.
$ac_ext <<_ACEOF
15769 cat confdefs.h
>>conftest.
$ac_ext
15770 cat >>conftest.
$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <unistd.h>
15781 rm -f conftest.
$ac_objext
15782 if { (ac_try
="$ac_compile"
15783 case "(($ac_try" in
15784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest.$ac_objext; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_SYMLINK 1
15803 { echo "$as_me:$LINENO: result: yes" >&5
15804 echo "${ECHO_T}yes" >&6; }
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 { echo "$as_me:$LINENO: result: no" >&5
15810 echo "${ECHO_T}no" >&6; }
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 { echo "$as_me:$LINENO: checking for fchdir" >&5
15816 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15817 cat >conftest.$ac_ext <<_ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 #include <unistd.h>
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
15850 cat >>confdefs.h
<<\_ACEOF
15851 #define HAVE_FCHDIR 1
15854 { echo "$as_me:$LINENO: result: yes" >&5
15855 echo "${ECHO_T}yes" >&6; }
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.
$ac_ext >&5
15860 { echo "$as_me:$LINENO: result: no" >&5
15861 echo "${ECHO_T}no" >&6; }
15865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15866 { echo "$as_me:$LINENO: checking for fsync" >&5
15867 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15868 cat >conftest.
$ac_ext <<_ACEOF
15871 cat confdefs.h
>>conftest.
$ac_ext
15872 cat >>conftest.
$ac_ext <<_ACEOF
15873 /* end confdefs.h. */
15874 #include <unistd.h>
15883 rm -f conftest.
$ac_objext
15884 if { (ac_try
="$ac_compile"
15885 case "(($ac_try" in
15886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_compile") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest.$ac_objext; then
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_FSYNC 1
15905 { echo "$as_me:$LINENO: result: yes" >&5
15906 echo "${ECHO_T}yes" >&6; }
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 { echo "$as_me:$LINENO: result: no" >&5
15912 echo "${ECHO_T}no" >&6; }
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15918 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15919 cat >conftest.$ac_ext <<_ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <unistd.h>
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15938 *) ac_try_echo
=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_compile") 2>conftest.er1
15943 grep -v '^ *+' conftest.er1
>conftest.err
15945 cat conftest.err
>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } && {
15948 test -z "$ac_c_werror_flag" ||
15949 test ! -s conftest.err
15950 } && test -s conftest.
$ac_objext; then
15952 cat >>confdefs.h
<<\_ACEOF
15953 #define HAVE_FDATASYNC 1
15956 { echo "$as_me:$LINENO: result: yes" >&5
15957 echo "${ECHO_T}yes" >&6; }
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.
$ac_ext >&5
15962 { echo "$as_me:$LINENO: result: no" >&5
15963 echo "${ECHO_T}no" >&6; }
15967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15968 { echo "$as_me:$LINENO: checking for epoll" >&5
15969 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
15970 cat >conftest.
$ac_ext <<_ACEOF
15973 cat confdefs.h
>>conftest.
$ac_ext
15974 cat >>conftest.
$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <sys/epoll.h>
15980 void *x=epoll_create
15985 rm -f conftest.
$ac_objext
15986 if { (ac_try
="$ac_compile"
15987 case "(($ac_try" in
15988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992 (eval "$ac_compile") 2>conftest.er1
15994 grep -v '^ *+' conftest.er1 >conftest.err
15996 cat conftest.err >&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } && {
15999 test -z "$ac_c_werror_flag" ||
16000 test ! -s conftest.err
16001 } && test -s conftest.$ac_objext; then
16003 cat >>confdefs.h <<\_ACEOF
16004 #define HAVE_EPOLL 1
16007 { echo "$as_me:$LINENO: result: yes" >&5
16008 echo "${ECHO_T}yes" >&6; }
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 { echo "$as_me:$LINENO: result: no" >&5
16014 echo "${ECHO_T}no" >&6; }
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 { echo "$as_me:$LINENO: checking for kqueue" >&5
16020 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16028 #include <sys/types.h>
16029 #include <sys/event.h>
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16043 *) ac_try_echo
=$ac_try;;
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_compile") 2>conftest.er1
16048 grep -v '^ *+' conftest.er1
>conftest.err
16050 cat conftest.err
>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && {
16053 test -z "$ac_c_werror_flag" ||
16054 test ! -s conftest.err
16055 } && test -s conftest.
$ac_objext; then
16057 cat >>confdefs.h
<<\_ACEOF
16058 #define HAVE_KQUEUE 1
16061 { echo "$as_me:$LINENO: result: yes" >&5
16062 echo "${ECHO_T}yes" >&6; }
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.
$ac_ext >&5
16067 { echo "$as_me:$LINENO: result: no" >&5
16068 echo "${ECHO_T}no" >&6; }
16072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16073 # On some systems (eg. FreeBSD 5), we would find a definition of the
16074 # functions ctermid_r, setgroups in the library, but no prototype
16075 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16076 # address to avoid compiler warnings and potential miscompilations
16077 # because of the missing prototypes.
16079 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16080 echo $ECHO_N "checking for ctermid_r... $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. */
16088 #include "confdefs.h"
16094 void* p = ctermid_r
16099 rm -f conftest.
$ac_objext
16100 if { (ac_try
="$ac_compile"
16101 case "(($ac_try" in
16102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_compile") 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } && {
16113 test -z "$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16115 } && test -s conftest.$ac_objext; then
16117 cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_CTERMID_R 1
16121 { echo "$as_me:$LINENO: result: yes" >&5
16122 echo "${ECHO_T}yes" >&6; }
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 { echo "$as_me:$LINENO: result: no" >&5
16128 echo "${ECHO_T}no" >&6; }
16132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134 { echo "$as_me:$LINENO: checking for flock" >&5
16135 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16143 #include "confdefs.h"
16144 #include <sys/file.h>
16154 rm -f conftest.$ac_objext
16155 if { (ac_try="$ac_compile"
16156 case "(($ac_try" in
16157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16158 *) ac_try_echo
=$ac_try;;
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1
>conftest.err
16165 cat conftest.err
>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest.
$ac_objext; then
16172 cat >>confdefs.h
<<\_ACEOF
16173 #define HAVE_FLOCK 1
16176 { echo "$as_me:$LINENO: result: yes" >&5
16177 echo "${ECHO_T}yes" >&6; }
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.
$ac_ext >&5
16182 { echo "$as_me:$LINENO: result: no" >&5
16183 echo "${ECHO_T}no" >&6; }
16187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16189 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16190 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16191 cat >conftest.
$ac_ext <<_ACEOF
16194 cat confdefs.h
>>conftest.
$ac_ext
16195 cat >>conftest.
$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16198 #include "confdefs.h"
16199 #include <unistd.h>
16204 void* p = getpagesize
16209 rm -f conftest.
$ac_objext
16210 if { (ac_try
="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16227 cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_GETPAGESIZE 1
16231 { echo "$as_me:$LINENO: result: yes" >&5
16232 echo "${ECHO_T}yes" >&6; }
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 { echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6; }
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 for ac_prog in true
16246 # Extract the first word of "$ac_prog", so it can be a program name with args.
16247 set dummy $ac_prog; ac_word=$2
16248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16250 if test "${ac_cv_prog_TRUE+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 if test -n "$TRUE"; then
16254 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257 for as_dir in $PATH
16260 test -z "$as_dir" && as_dir=.
16261 for ac_exec_ext in '' $ac_executable_extensions; do
16262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16263 ac_cv_prog_TRUE="$ac_prog"
16264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16273 TRUE=$ac_cv_prog_TRUE
16274 if test -n "$TRUE"; then
16275 { echo "$as_me:$LINENO: result: $TRUE" >&5
16276 echo "${ECHO_T}$TRUE" >&6; }
16278 { echo "$as_me:$LINENO: result: no" >&5
16279 echo "${ECHO_T}no" >&6; }
16283 test -n "$TRUE" && break
16285 test -n "$TRUE" || TRUE="/bin/true"
16288 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16289 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16290 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 ac_check_lib_save_LIBS=$LIBS
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16302 /* Override any GCC internal prototype to avoid an error.
16303 Use char because int might match the return type of a GCC
16304 builtin and then its argument prototype would still apply. */
16312 return inet_aton ();
16317 rm -f conftest.$ac_objext conftest$ac_exeext
16318 if { (ac_try="$ac_link"
16319 case "(($ac_try" in
16320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16321 *) ac_try_echo
=$ac_try;;
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324 (eval "$ac_link") 2>conftest.er1
16326 grep -v '^ *+' conftest.er1
>conftest.err
16328 cat conftest.err
>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && {
16331 test -z "$ac_c_werror_flag" ||
16332 test ! -s conftest.err
16333 } && test -s conftest
$ac_exeext &&
16334 $as_test_x conftest
$ac_exeext; then
16335 ac_cv_lib_c_inet_aton
=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.
$ac_ext >&5
16340 ac_cv_lib_c_inet_aton
=no
16343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16344 conftest
$ac_exeext conftest.
$ac_ext
16345 LIBS
=$ac_check_lib_save_LIBS
16347 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16348 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16349 if test $ac_cv_lib_c_inet_aton = yes; then
16353 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16354 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16355 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 ac_check_lib_save_LIBS
=$LIBS
16359 LIBS
="-lresolv $LIBS"
16360 cat >conftest.
$ac_ext <<_ACEOF
16363 cat confdefs.h
>>conftest.
$ac_ext
16364 cat >>conftest.
$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16377 return inet_aton ();
16382 rm -f conftest.
$ac_objext conftest
$ac_exeext
16383 if { (ac_try
="$ac_link"
16384 case "(($ac_try" in
16385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && {
16396 test -z "$ac_c_werror_flag" ||
16397 test ! -s conftest.err
16398 } && test -s conftest$ac_exeext &&
16399 $as_test_x conftest$ac_exeext; then
16400 ac_cv_lib_resolv_inet_aton=yes
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 ac_cv_lib_resolv_inet_aton=no
16408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16409 conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16412 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16413 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16414 if test $ac_cv_lib_resolv_inet_aton = yes; then
16415 cat >>confdefs.h <<_ACEOF
16416 #define HAVE_LIBRESOLV 1
16419 LIBS="-lresolv $LIBS"
16427 # On Tru64, chflags seems to be present, but calling it will
16429 { echo "$as_me:$LINENO: checking for chflags" >&5
16430 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16431 if test "$cross_compiling" = yes; then
16432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16433 See \`config.log
' for more details." >&5
16434 echo "$as_me: error: cannot run test program while cross compiling
16435 See \`config.log' for more details.
" >&2;}
16436 { (exit 1); exit 1; }; }
16438 cat >conftest.$ac_ext <<_ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16445 #include <sys/stat.h>
16446 #include <unistd.h>
16447 int main(int argc, char*argv[])
16449 if(chflags(argv[0], 0) != 0)
16455 rm -f conftest$ac_exeext
16456 if { (ac_try="$ac_link"
16457 case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_link") 2>&5
16464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16474 (exit $ac_status); }; }; then
16476 cat >>confdefs.h <<\_ACEOF
16477 #define HAVE_CHFLAGS 1
16480 { echo "$as_me:$LINENO: result
: yes" >&5
16481 echo "${ECHO_T}yes" >&6; }
16483 echo "$as_me: program exited with status
$ac_status" >&5
16484 echo "$as_me: failed program was
:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ( exit $ac_status )
16488 { echo "$as_me:$LINENO: result
: no
" >&5
16489 echo "${ECHO_T}no
" >&6; }
16492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16497 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
16498 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
16499 if test "$cross_compiling" = yes; then
16500 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
16501 See \
`config.log' for more details." >&5
16502 echo "$as_me: error: cannot run test program while cross compiling
16503 See \`config.log
' for more details." >&2;}
16504 { (exit 1); exit 1; }; }
16506 cat >conftest.$ac_ext <<_ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16513 #include <sys/stat.h>
16514 #include <unistd.h>
16515 int main(int argc, char*argv[])
16517 if(lchflags(argv[0], 0) != 0)
16523 rm -f conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_LCHFLAGS 1
16548 { echo "$as_me:$LINENO: result: yes" >&5
16549 echo "${ECHO_T}yes" >&6; }
16551 echo "$as_me: program exited with status $ac_status" >&5
16552 echo "$as_me: failed program was:" >&5
16553 sed 's
/^
/|
/' conftest.$ac_ext >&5
16555 ( exit $ac_status )
16556 { echo "$as_me:$LINENO: result: no" >&5
16557 echo "${ECHO_T}no" >&6; }
16560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16565 case $ac_sys_system/$ac_sys_release in
16567 _CUR_CFLAGS="${CFLAGS}"
16568 _CUR_LDFLAGS="${LDFLAGS}"
16569 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16570 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16574 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16575 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16576 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 ac_check_lib_save_LIBS=$LIBS
16581 cat >conftest.$ac_ext <<_ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16588 /* Override any GCC internal prototype to avoid an error.
16589 Use char because int might match the return type of a GCC
16590 builtin and then its argument prototype would still apply. */
16594 char inflateCopy ();
16598 return inflateCopy ();
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (ac_try="$ac_link"
16605 case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_link") 2>conftest.er1
16612 grep -v '^
*+' conftest.er1 >conftest.err
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } && {
16617 test -z "$ac_c_werror_flag" ||
16618 test ! -s conftest.err
16619 } && test -s conftest$ac_exeext &&
16620 $as_test_x conftest$ac_exeext; then
16621 ac_cv_lib_z_inflateCopy=yes
16623 echo "$as_me: failed program was:" >&5
16624 sed 's
/^
/|
/' conftest.$ac_ext >&5
16626 ac_cv_lib_z_inflateCopy=no
16629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16630 conftest$ac_exeext conftest.$ac_ext
16631 LIBS=$ac_check_lib_save_LIBS
16633 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16634 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16635 if test $ac_cv_lib_z_inflateCopy = yes; then
16637 cat >>confdefs.h <<\_ACEOF
16638 #define HAVE_ZLIB_COPY 1
16644 case $ac_sys_system/$ac_sys_release in
16646 CFLAGS="${_CUR_CFLAGS}"
16647 LDFLAGS="${_CUR_LDFLAGS}"
16651 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16652 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16660 #include "confdefs.h"
16666 void* p = hstrerror; hstrerror(0)
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (ac_try="$ac_link"
16673 case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_link") 2>conftest.er1
16680 grep -v '^
*+' conftest.er1 >conftest.err
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } && {
16685 test -z "$ac_c_werror_flag" ||
16686 test ! -s conftest.err
16687 } && test -s conftest$ac_exeext &&
16688 $as_test_x conftest$ac_exeext; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_HSTRERROR 1
16694 { echo "$as_me:$LINENO: result: yes" >&5
16695 echo "${ECHO_T}yes" >&6; }
16697 echo "$as_me: failed program was:" >&5
16698 sed 's
/^
/|
/' conftest.$ac_ext >&5
16700 { echo "$as_me:$LINENO: result: no" >&5
16701 echo "${ECHO_T}no" >&6; }
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706 conftest$ac_exeext conftest.$ac_ext
16708 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16709 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16717 #include "confdefs.h"
16718 #include <sys/types.h>
16719 #include <sys/socket.h>
16720 #include <netinet/in.h>
16721 #include <arpa/inet.h>
16726 void* p = inet_aton;inet_aton(0,0)
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (ac_try="$ac_link"
16733 case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_link") 2>conftest.er1
16740 grep -v '^
*+' conftest.er1 >conftest.err
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } && {
16745 test -z "$ac_c_werror_flag" ||
16746 test ! -s conftest.err
16747 } && test -s conftest$ac_exeext &&
16748 $as_test_x conftest$ac_exeext; then
16750 cat >>confdefs.h <<\_ACEOF
16751 #define HAVE_INET_ATON 1
16754 { echo "$as_me:$LINENO: result: yes" >&5
16755 echo "${ECHO_T}yes" >&6; }
16757 echo "$as_me: failed program was:" >&5
16758 sed 's
/^
/|
/' conftest.$ac_ext >&5
16760 { echo "$as_me:$LINENO: result: no" >&5
16761 echo "${ECHO_T}no" >&6; }
16765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766 conftest$ac_exeext conftest.$ac_ext
16768 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16769 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 #include "confdefs.h"
16778 #include <sys/types.h>
16779 #include <sys/socket.h>
16780 #include <netinet/in.h>
16781 #include <arpa/inet.h>
16786 void* p = inet_pton
16791 rm -f conftest.$ac_objext
16792 if { (ac_try="$ac_compile"
16793 case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16800 grep -v '^
*+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.$ac_objext; then
16809 cat >>confdefs.h <<\_ACEOF
16810 #define HAVE_INET_PTON 1
16813 { echo "$as_me:$LINENO: result: yes" >&5
16814 echo "${ECHO_T}yes" >&6; }
16816 echo "$as_me: failed program was:" >&5
16817 sed 's
/^
/|
/' conftest.$ac_ext >&5
16819 { echo "$as_me:$LINENO: result: no" >&5
16820 echo "${ECHO_T}no" >&6; }
16824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826 # On some systems, setgroups is in unistd.h, on others, in grp.h
16827 { echo "$as_me:$LINENO: checking for setgroups" >&5
16828 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16829 cat >conftest.$ac_ext <<_ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16836 #include "confdefs.h"
16837 #include <unistd.h>
16845 void* p = setgroups
16850 rm -f conftest.$ac_objext
16851 if { (ac_try="$ac_compile"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_compile") 2>conftest.er1
16859 grep -v '^
*+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest.$ac_objext; then
16868 cat >>confdefs.h <<\_ACEOF
16869 #define HAVE_SETGROUPS 1
16872 { echo "$as_me:$LINENO: result: yes" >&5
16873 echo "${ECHO_T}yes" >&6; }
16875 echo "$as_me: failed program was:" >&5
16876 sed 's
/^
/|
/' conftest.$ac_ext >&5
16878 { echo "$as_me:$LINENO: result: no" >&5
16879 echo "${ECHO_T}no" >&6; }
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 # check for openpty and forkpty
16888 for ac_func in openpty
16890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16896 cat >conftest.$ac_ext <<_ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16904 #define $ac_func innocuous_$ac_func
16906 /* System header to define __stub macros and hopefully few prototypes,
16907 which can conflict with char $ac_func (); below.
16908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16909 <limits.h> exists even on freestanding compilers. */
16912 # include <limits.h>
16914 # include <assert.h>
16919 /* Override any GCC internal prototype to avoid an error.
16920 Use char because int might match the return type of a GCC
16921 builtin and then its argument prototype would still apply. */
16926 /* The GNU C library defines this for functions which it implements
16927 to always fail with ENOSYS. Some functions are actually named
16928 something starting with __ and the normal name is an alias. */
16929 #if defined __stub_$ac_func || defined __stub___$ac_func
16936 return $ac_func ();
16941 rm -f conftest.$ac_objext conftest$ac_exeext
16942 if { (ac_try="$ac_link"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_link") 2>conftest.er1
16950 grep -v '^
*+' conftest.er1 >conftest.err
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } && {
16955 test -z "$ac_c_werror_flag" ||
16956 test ! -s conftest.err
16957 } && test -s conftest$ac_exeext &&
16958 $as_test_x conftest$ac_exeext; then
16959 eval "$as_ac_var=yes"
16961 echo "$as_me: failed program was:" >&5
16962 sed 's
/^
/|
/' conftest.$ac_ext >&5
16964 eval "$as_ac_var=no"
16967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16968 conftest$ac_exeext conftest.$ac_ext
16970 ac_res=`eval echo '${'$as_ac_var'}'`
16971 { echo "$as_me:$LINENO: result: $ac_res" >&5
16972 echo "${ECHO_T}$ac_res" >&6; }
16973 if test `eval echo '${'$as_ac_var'}'` = yes; then
16974 cat >>confdefs.h <<_ACEOF
16975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16979 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16980 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16981 if test "${ac_cv_lib_util_openpty+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 ac_check_lib_save_LIBS=$LIBS
16985 LIBS="-lutil $LIBS"
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16993 /* Override any GCC internal prototype to avoid an error.
16994 Use char because int might match the return type of a GCC
16995 builtin and then its argument prototype would still apply. */
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17017 grep -v '^
*+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && {
17022 test -z "$ac_c_werror_flag" ||
17023 test ! -s conftest.err
17024 } && test -s conftest$ac_exeext &&
17025 $as_test_x conftest$ac_exeext; then
17026 ac_cv_lib_util_openpty=yes
17028 echo "$as_me: failed program was:" >&5
17029 sed 's
/^
/|
/' conftest.$ac_ext >&5
17031 ac_cv_lib_util_openpty=no
17034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17035 conftest$ac_exeext conftest.$ac_ext
17036 LIBS=$ac_check_lib_save_LIBS
17038 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17039 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17040 if test $ac_cv_lib_util_openpty = yes; then
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_OPENPTY 1
17044 LIBS="$LIBS -lutil"
17046 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17047 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17048 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 ac_check_lib_save_LIBS=$LIBS
17053 cat >conftest.$ac_ext <<_ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (ac_try="$ac_link"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_link") 2>conftest.er1
17084 grep -v '^
*+' conftest.er1 >conftest.err
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } && {
17089 test -z "$ac_c_werror_flag" ||
17090 test ! -s conftest.err
17091 } && test -s conftest$ac_exeext &&
17092 $as_test_x conftest$ac_exeext; then
17093 ac_cv_lib_bsd_openpty=yes
17095 echo "$as_me: failed program was:" >&5
17096 sed 's
/^
/|
/' conftest.$ac_ext >&5
17098 ac_cv_lib_bsd_openpty=no
17101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17102 conftest$ac_exeext conftest.$ac_ext
17103 LIBS=$ac_check_lib_save_LIBS
17105 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17106 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17107 if test $ac_cv_lib_bsd_openpty = yes; then
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_OPENPTY 1
17122 for ac_func in forkpty
17124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138 #define $ac_func innocuous_$ac_func
17140 /* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143 <limits.h> exists even on freestanding compilers. */
17146 # include <limits.h>
17148 # include <assert.h>
17153 /* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
17160 /* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163 #if defined __stub_$ac_func || defined __stub___$ac_func
17170 return $ac_func ();
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^
*+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 eval "$as_ac_var=yes"
17195 echo "$as_me: failed program was:" >&5
17196 sed 's
/^
/|
/' conftest.$ac_ext >&5
17198 eval "$as_ac_var=no"
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17204 ac_res=`eval echo '${'$as_ac_var'}'`
17205 { echo "$as_me:$LINENO: result: $ac_res" >&5
17206 echo "${ECHO_T}$ac_res" >&6; }
17207 if test `eval echo '${'$as_ac_var'}'` = yes; then
17208 cat >>confdefs.h <<_ACEOF
17209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17213 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17214 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17215 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 ac_check_lib_save_LIBS=$LIBS
17219 LIBS="-lutil $LIBS"
17220 cat >conftest.$ac_ext <<_ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17227 /* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
17242 rm -f conftest.$ac_objext conftest$ac_exeext
17243 if { (ac_try="$ac_link"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_link") 2>conftest.er1
17251 grep -v '^
*+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && {
17256 test -z "$ac_c_werror_flag" ||
17257 test ! -s conftest.err
17258 } && test -s conftest$ac_exeext &&
17259 $as_test_x conftest$ac_exeext; then
17260 ac_cv_lib_util_forkpty=yes
17262 echo "$as_me: failed program was:" >&5
17263 sed 's
/^
/|
/' conftest.$ac_ext >&5
17265 ac_cv_lib_util_forkpty=no
17268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_lib_save_LIBS
17272 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17273 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17274 if test $ac_cv_lib_util_forkpty = yes; then
17275 cat >>confdefs.h <<\_ACEOF
17276 #define HAVE_FORKPTY 1
17278 LIBS="$LIBS -lutil"
17280 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17281 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17282 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 ac_check_lib_save_LIBS=$LIBS
17287 cat >conftest.$ac_ext <<_ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17318 grep -v '^
*+' conftest.er1 >conftest.err
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest$ac_exeext &&
17326 $as_test_x conftest$ac_exeext; then
17327 ac_cv_lib_bsd_forkpty=yes
17329 echo "$as_me: failed program was:" >&5
17330 sed 's
/^
/|
/' conftest.$ac_ext >&5
17332 ac_cv_lib_bsd_forkpty=no
17335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17340 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17341 if test $ac_cv_lib_bsd_forkpty = yes; then
17342 cat >>confdefs.h <<\_ACEOF
17343 #define HAVE_FORKPTY 1
17358 for ac_func in memmove
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17382 # include <limits.h>
17384 # include <assert.h>
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17406 return $ac_func ();
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17420 grep -v '^
*+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest$ac_exeext &&
17428 $as_test_x conftest$ac_exeext; then
17429 eval "$as_ac_var=yes"
17431 echo "$as_me: failed program was:" >&5
17432 sed 's
/^
/|
/' conftest.$ac_ext >&5
17434 eval "$as_ac_var=no"
17437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17438 conftest$ac_exeext conftest.$ac_ext
17440 ac_res=`eval echo '${'$as_ac_var'}'`
17441 { echo "$as_me:$LINENO: result: $ac_res" >&5
17442 echo "${ECHO_T}$ac_res" >&6; }
17443 if test `eval echo '${'$as_ac_var'}'` = yes; then
17444 cat >>confdefs.h <<_ACEOF
17445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17452 # check for long file support functions
17459 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17475 #define $ac_func innocuous_$ac_func
17477 /* System header to define __stub macros and hopefully few prototypes,
17478 which can conflict with char $ac_func (); below.
17479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17480 <limits.h> exists even on freestanding compilers. */
17483 # include <limits.h>
17485 # include <assert.h>
17490 /* Override any GCC internal prototype to avoid an error.
17491 Use char because int might match the return type of a GCC
17492 builtin and then its argument prototype would still apply. */
17497 /* The GNU C library defines this for functions which it implements
17498 to always fail with ENOSYS. Some functions are actually named
17499 something starting with __ and the normal name is an alias. */
17500 #if defined __stub_$ac_func || defined __stub___$ac_func
17507 return $ac_func ();
17512 rm -f conftest.$ac_objext conftest$ac_exeext
17513 if { (ac_try="$ac_link"
17514 case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_link") 2>conftest.er1
17521 grep -v '^
*+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } && {
17526 test -z "$ac_c_werror_flag" ||
17527 test ! -s conftest.err
17528 } && test -s conftest$ac_exeext &&
17529 $as_test_x conftest$ac_exeext; then
17530 eval "$as_ac_var=yes"
17532 echo "$as_me: failed program was:" >&5
17533 sed 's
/^
/|
/' conftest.$ac_ext >&5
17535 eval "$as_ac_var=no"
17538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17539 conftest$ac_exeext conftest.$ac_ext
17541 ac_res=`eval echo '${'$as_ac_var'}'`
17542 { echo "$as_me:$LINENO: result: $ac_res" >&5
17543 echo "${ECHO_T}$ac_res" >&6; }
17544 if test `eval echo '${'$as_ac_var'}'` = yes; then
17545 cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17556 for ac_func in dup2 getcwd strdup
17558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17572 #define $ac_func innocuous_$ac_func
17574 /* System header to define __stub macros and hopefully few prototypes,
17575 which can conflict with char $ac_func (); below.
17576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17577 <limits.h> exists even on freestanding compilers. */
17580 # include <limits.h>
17582 # include <assert.h>
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined __stub_$ac_func || defined __stub___$ac_func
17604 return $ac_func ();
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^
*+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 eval "$as_ac_var=yes"
17629 echo "$as_me: failed program was:" >&5
17630 sed 's
/^
/|
/' conftest.$ac_ext >&5
17632 eval "$as_ac_var=no"
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636 conftest$ac_exeext conftest.$ac_ext
17638 ac_res=`eval echo '${'$as_ac_var'}'`
17639 { echo "$as_me:$LINENO: result: $ac_res" >&5
17640 echo "${ECHO_T}$ac_res" >&6; }
17641 if test `eval echo '${'$as_ac_var'}'` = yes; then
17642 cat >>confdefs.h <<_ACEOF
17643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17647 case " $LIBOBJS " in
17648 *" $ac_func.$ac_objext "* ) ;;
17649 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17658 for ac_func in getpgrp
17660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17674 #define $ac_func innocuous_$ac_func
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char $ac_func (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17682 # include <limits.h>
17684 # include <assert.h>
17689 /* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17696 /* The GNU C library defines this for functions which it implements
17697 to always fail with ENOSYS. Some functions are actually named
17698 something starting with __ and the normal name is an alias. */
17699 #if defined __stub_$ac_func || defined __stub___$ac_func
17706 return $ac_func ();
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>conftest.er1
17720 grep -v '^
*+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } && {
17725 test -z "$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 } && test -s conftest$ac_exeext &&
17728 $as_test_x conftest$ac_exeext; then
17729 eval "$as_ac_var=yes"
17731 echo "$as_me: failed program was:" >&5
17732 sed 's
/^
/|
/' conftest.$ac_ext >&5
17734 eval "$as_ac_var=no"
17737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17738 conftest$ac_exeext conftest.$ac_ext
17740 ac_res=`eval echo '${'$as_ac_var'}'`
17741 { echo "$as_me:$LINENO: result: $ac_res" >&5
17742 echo "${ECHO_T}$ac_res" >&6; }
17743 if test `eval echo '${'$as_ac_var'}'` = yes; then
17744 cat >>confdefs.h <<_ACEOF
17745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17747 cat >conftest.$ac_ext <<_ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include <unistd.h>
17762 rm -f conftest.$ac_objext
17763 if { (ac_try="$ac_compile"
17764 case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_compile") 2>conftest.er1
17771 grep -v '^
*+' conftest.er1 >conftest.err
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } && {
17776 test -z "$ac_c_werror_flag" ||
17777 test ! -s conftest.err
17778 } && test -s conftest.$ac_objext; then
17780 cat >>confdefs.h <<\_ACEOF
17781 #define GETPGRP_HAVE_ARG 1
17786 echo "$as_me: failed program was:" >&5
17787 sed 's
/^
/|
/' conftest.$ac_ext >&5
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798 for ac_func in setpgrp
17800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 cat >conftest.$ac_ext <<_ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17814 #define $ac_func innocuous_$ac_func
17816 /* System header to define __stub macros and hopefully few prototypes,
17817 which can conflict with char $ac_func (); below.
17818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17819 <limits.h> exists even on freestanding compilers. */
17822 # include <limits.h>
17824 # include <assert.h>
17829 /* Override any GCC internal prototype to avoid an error.
17830 Use char because int might match the return type of a GCC
17831 builtin and then its argument prototype would still apply. */
17836 /* The GNU C library defines this for functions which it implements
17837 to always fail with ENOSYS. Some functions are actually named
17838 something starting with __ and the normal name is an alias. */
17839 #if defined __stub_$ac_func || defined __stub___$ac_func
17846 return $ac_func ();
17851 rm -f conftest.$ac_objext conftest$ac_exeext
17852 if { (ac_try="$ac_link"
17853 case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_link") 2>conftest.er1
17860 grep -v '^
*+' conftest.er1 >conftest.err
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && {
17865 test -z "$ac_c_werror_flag" ||
17866 test ! -s conftest.err
17867 } && test -s conftest$ac_exeext &&
17868 $as_test_x conftest$ac_exeext; then
17869 eval "$as_ac_var=yes"
17871 echo "$as_me: failed program was:" >&5
17872 sed 's
/^
/|
/' conftest.$ac_ext >&5
17874 eval "$as_ac_var=no"
17877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17878 conftest$ac_exeext conftest.$ac_ext
17880 ac_res=`eval echo '${'$as_ac_var'}'`
17881 { echo "$as_me:$LINENO: result: $ac_res" >&5
17882 echo "${ECHO_T}$ac_res" >&6; }
17883 if test `eval echo '${'$as_ac_var'}'` = yes; then
17884 cat >>confdefs.h <<_ACEOF
17885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17887 cat >conftest.$ac_ext <<_ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 #include <unistd.h>
17902 rm -f conftest.$ac_objext
17903 if { (ac_try="$ac_compile"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_compile") 2>conftest.er1
17911 grep -v '^
*+' conftest.er1 >conftest.err
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } && {
17916 test -z "$ac_c_werror_flag" ||
17917 test ! -s conftest.err
17918 } && test -s conftest.$ac_objext; then
17920 cat >>confdefs.h <<\_ACEOF
17921 #define SETPGRP_HAVE_ARG 1
17926 echo "$as_me: failed program was:" >&5
17927 sed 's
/^
/|
/' conftest.$ac_ext >&5
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 for ac_func in gettimeofday
17940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17954 #define $ac_func innocuous_$ac_func
17956 /* System header to define __stub macros and hopefully few prototypes,
17957 which can conflict with char $ac_func (); below.
17958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959 <limits.h> exists even on freestanding compilers. */
17962 # include <limits.h>
17964 # include <assert.h>
17969 /* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17976 /* The GNU C library defines this for functions which it implements
17977 to always fail with ENOSYS. Some functions are actually named
17978 something starting with __ and the normal name is an alias. */
17979 #if defined __stub_$ac_func || defined __stub___$ac_func
17986 return $ac_func ();
17991 rm -f conftest.$ac_objext conftest$ac_exeext
17992 if { (ac_try="$ac_link"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_link") 2>conftest.er1
18000 grep -v '^
*+' conftest.er1 >conftest.err
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } && {
18005 test -z "$ac_c_werror_flag" ||
18006 test ! -s conftest.err
18007 } && test -s conftest$ac_exeext &&
18008 $as_test_x conftest$ac_exeext; then
18009 eval "$as_ac_var=yes"
18011 echo "$as_me: failed program was:" >&5
18012 sed 's
/^
/|
/' conftest.$ac_ext >&5
18014 eval "$as_ac_var=no"
18017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18018 conftest$ac_exeext conftest.$ac_ext
18020 ac_res=`eval echo '${'$as_ac_var'}'`
18021 { echo "$as_me:$LINENO: result: $ac_res" >&5
18022 echo "${ECHO_T}$ac_res" >&6; }
18023 if test `eval echo '${'$as_ac_var'}'` = yes; then
18024 cat >>confdefs.h <<_ACEOF
18025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #include <sys/time.h>
18037 gettimeofday((struct timeval*)0,(struct timezone*)0);
18042 rm -f conftest.$ac_objext
18043 if { (ac_try="$ac_compile"
18044 case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_compile") 2>conftest.er1
18051 grep -v '^
*+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && {
18056 test -z "$ac_c_werror_flag" ||
18057 test ! -s conftest.err
18058 } && test -s conftest.$ac_objext; then
18061 echo "$as_me: failed program was:" >&5
18062 sed 's
/^
/|
/' conftest.$ac_ext >&5
18065 cat >>confdefs.h <<\_ACEOF
18066 #define GETTIMEOFDAY_NO_TZ 1
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078 { echo "$as_me:$LINENO: checking for major" >&5
18079 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18087 #if defined(MAJOR_IN_MKDEV)
18088 #include <sys/mkdev.h>
18089 #elif defined(MAJOR_IN_SYSMACROS)
18090 #include <sys/sysmacros.h>
18092 #include <sys/types.h>
18099 makedev(major(0),minor(0));
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_link") 2>conftest.er1
18114 grep -v '^
*+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } && {
18119 test -z "$ac_c_werror_flag" ||
18120 test ! -s conftest.err
18121 } && test -s conftest$ac_exeext &&
18122 $as_test_x conftest$ac_exeext; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_DEVICE_MACROS 1
18129 { echo "$as_me:$LINENO: result: yes" >&5
18130 echo "${ECHO_T}yes" >&6; }
18133 echo "$as_me: failed program was:" >&5
18134 sed 's
/^
/|
/' conftest.$ac_ext >&5
18137 { echo "$as_me:$LINENO: result: no" >&5
18138 echo "${ECHO_T}no" >&6; }
18142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18143 conftest$ac_exeext conftest.$ac_ext
18145 # On OSF/1 V5.1, getaddrinfo is available, but a define
18146 # for [no]getaddrinfo in netdb.h.
18147 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18148 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 #include <sys/types.h>
18157 #include <sys/socket.h>
18165 getaddrinfo(NULL, NULL, NULL, NULL);
18171 rm -f conftest.$ac_objext conftest$ac_exeext
18172 if { (ac_try="$ac_link"
18173 case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_link") 2>conftest.er1
18180 grep -v '^
*+' conftest.er1 >conftest.err
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } && {
18185 test -z "$ac_c_werror_flag" ||
18186 test ! -s conftest.err
18187 } && test -s conftest$ac_exeext &&
18188 $as_test_x conftest$ac_exeext; then
18190 { echo "$as_me:$LINENO: result: yes" >&5
18191 echo "${ECHO_T}yes" >&6; }
18192 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18193 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18194 if test "$cross_compiling" = yes; then
18195 { echo "$as_me:$LINENO: result: buggy" >&5
18196 echo "${ECHO_T}buggy" >&6; }
18197 buggygetaddrinfo=yes
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18206 #include <sys/types.h>
18208 #include <string.h>
18209 #include <sys/socket.h>
18210 #include <netinet/in.h>
18214 int passive, gaierr, inet4 = 0, inet6 = 0;
18215 struct addrinfo hints, *ai, *aitop;
18216 char straddr[INET6_ADDRSTRLEN], strport[16];
18218 for (passive = 0; passive <= 1; passive++) {
18219 memset(&hints, 0, sizeof(hints));
18220 hints.ai_family = AF_UNSPEC;
18221 hints.ai_flags = passive ? AI_PASSIVE : 0;
18222 hints.ai_socktype = SOCK_STREAM;
18223 hints.ai_protocol = IPPROTO_TCP;
18224 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18225 (void)gai_strerror(gaierr);
18228 for (ai = aitop; ai; ai = ai->ai_next) {
18229 if (ai->ai_addr == NULL ||
18230 ai->ai_addrlen == 0 ||
18231 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18232 straddr, sizeof(straddr), strport, sizeof(strport),
18233 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18236 switch (ai->ai_family) {
18238 if (strcmp(strport, "54321") != 0) {
18242 if (strcmp(straddr, "0.0.0.0") != 0) {
18246 if (strcmp(straddr, "127.0.0.1") != 0) {
18253 if (strcmp(strport, "54321") != 0) {
18257 if (strcmp(straddr, "::") != 0) {
18261 if (strcmp(straddr, "::1") != 0) {
18271 /* another family support? */
18277 if (!(inet4 == 0 || inet4 == 2))
18279 if (!(inet6 == 0 || inet6 == 2))
18283 freeaddrinfo(aitop);
18288 freeaddrinfo(aitop);
18293 rm -f conftest$ac_exeext
18294 if { (ac_try="$ac_link"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_link") 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
18304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 { echo "$as_me:$LINENO: result: good" >&5
18314 echo "${ECHO_T}good" >&6; }
18315 buggygetaddrinfo=no
18317 echo "$as_me: program exited with status $ac_status" >&5
18318 echo "$as_me: failed program was:" >&5
18319 sed 's
/^
/|
/' conftest.$ac_ext >&5
18321 ( exit $ac_status )
18322 { echo "$as_me:$LINENO: result: buggy" >&5
18323 echo "${ECHO_T}buggy" >&6; }
18324 buggygetaddrinfo=yes
18326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18331 echo "$as_me: failed program was:" >&5
18332 sed 's
/^
/|
/' conftest.$ac_ext >&5
18335 { echo "$as_me:$LINENO: result: no" >&5
18336 echo "${ECHO_T}no" >&6; }
18337 buggygetaddrinfo=yes
18341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18342 conftest$ac_exeext conftest.$ac_ext
18344 if test "$buggygetaddrinfo" = "yes"; then
18345 if test "$ipv6" = "yes"; then
18346 echo 'Fatal
: You must get working getaddrinfo
() function.
'
18347 echo ' or you can specify
"--disable-ipv6"'.
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE_GETADDRINFO 1
18358 for ac_func in getnameinfo
18360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18374 #define $ac_func innocuous_$ac_func
18376 /* System header to define __stub macros and hopefully few prototypes,
18377 which can conflict with char $ac_func (); below.
18378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18379 <limits.h> exists even on freestanding compilers. */
18382 # include <limits.h>
18384 # include <assert.h>
18389 /* Override any GCC internal prototype to avoid an error.
18390 Use char because int might match the return type of a GCC
18391 builtin and then its argument prototype would still apply. */
18396 /* The GNU C library defines this for functions which it implements
18397 to always fail with ENOSYS. Some functions are actually named
18398 something starting with __ and the normal name is an alias. */
18399 #if defined __stub_$ac_func || defined __stub___$ac_func
18406 return $ac_func ();
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (ac_try="$ac_link"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_link") 2>conftest.er1
18420 grep -v '^
*+' conftest.er1 >conftest.err
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } && {
18425 test -z "$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 } && test -s conftest$ac_exeext &&
18428 $as_test_x conftest$ac_exeext; then
18429 eval "$as_ac_var=yes"
18431 echo "$as_me: failed program was:" >&5
18432 sed 's
/^
/|
/' conftest.$ac_ext >&5
18434 eval "$as_ac_var=no"
18437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18438 conftest$ac_exeext conftest.$ac_ext
18440 ac_res=`eval echo '${'$as_ac_var'}'`
18441 { echo "$as_me:$LINENO: result: $ac_res" >&5
18442 echo "${ECHO_T}$ac_res" >&6; }
18443 if test `eval echo '${'$as_ac_var'}'` = yes; then
18444 cat >>confdefs.h <<_ACEOF
18445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18452 # checks for structures
18453 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18455 if test "${ac_cv_header_time+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <sys/types.h>
18465 #include <sys/time.h>
18471 if ((struct tm *) 0)
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_compile") 2>conftest.er1
18486 grep -v '^
*+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest.$ac_objext; then
18494 ac_cv_header_time=yes
18496 echo "$as_me: failed program was:" >&5
18497 sed 's
/^
/|
/' conftest.$ac_ext >&5
18499 ac_cv_header_time=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18505 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18506 if test $ac_cv_header_time = yes; then
18508 cat >>confdefs.h <<\_ACEOF
18509 #define TIME_WITH_SYS_TIME 1
18514 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18515 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18516 if test "${ac_cv_struct_tm+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 cat >conftest.$ac_ext <<_ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 #include <sys/types.h>
18532 int *p = &tm.tm_sec;
18538 rm -f conftest.$ac_objext
18539 if { (ac_try="$ac_compile"
18540 case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_compile") 2>conftest.er1
18547 grep -v '^
*+' conftest.er1 >conftest.err
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && {
18552 test -z "$ac_c_werror_flag" ||
18553 test ! -s conftest.err
18554 } && test -s conftest.$ac_objext; then
18555 ac_cv_struct_tm=time.h
18557 echo "$as_me: failed program was:" >&5
18558 sed 's
/^
/|
/' conftest.$ac_ext >&5
18560 ac_cv_struct_tm=sys/time.h
18563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18565 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18566 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18567 if test $ac_cv_struct_tm = sys/time.h; then
18569 cat >>confdefs.h <<\_ACEOF
18570 #define TM_IN_SYS_TIME 1
18575 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18576 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18577 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <sys/types.h>
18587 #include <$ac_cv_struct_tm>
18593 static struct tm ac_aggr;
18594 if (ac_aggr.tm_zone)
18600 rm -f conftest.$ac_objext
18601 if { (ac_try="$ac_compile"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_compile") 2>conftest.er1
18609 grep -v '^
*+' conftest.er1 >conftest.err
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest.$ac_objext; then
18617 ac_cv_member_struct_tm_tm_zone=yes
18619 echo "$as_me: failed program was:" >&5
18620 sed 's
/^
/|
/' conftest.$ac_ext >&5
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 #include <sys/types.h>
18629 #include <$ac_cv_struct_tm>
18635 static struct tm ac_aggr;
18636 if (sizeof ac_aggr.tm_zone)
18642 rm -f conftest.$ac_objext
18643 if { (ac_try="$ac_compile"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_compile") 2>conftest.er1
18651 grep -v '^
*+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && {
18656 test -z "$ac_c_werror_flag" ||
18657 test ! -s conftest.err
18658 } && test -s conftest.$ac_objext; then
18659 ac_cv_member_struct_tm_tm_zone=yes
18661 echo "$as_me: failed program was:" >&5
18662 sed 's
/^
/|
/' conftest.$ac_ext >&5
18664 ac_cv_member_struct_tm_tm_zone=no
18667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18672 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18673 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18674 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define HAVE_STRUCT_TM_TM_ZONE 1
18683 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18685 cat >>confdefs.h <<\_ACEOF
18686 #define HAVE_TM_ZONE 1
18690 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18691 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18692 if test "${ac_cv_have_decl_tzname+set}" = set; then
18693 echo $ECHO_N "(cached) $ECHO_C" >&6
18695 cat >conftest.$ac_ext <<_ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18714 rm -f conftest.$ac_objext
18715 if { (ac_try="$ac_compile"
18716 case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_compile") 2>conftest.er1
18723 grep -v '^
*+' conftest.er1 >conftest.err
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } && {
18728 test -z "$ac_c_werror_flag" ||
18729 test ! -s conftest.err
18730 } && test -s conftest.$ac_objext; then
18731 ac_cv_have_decl_tzname=yes
18733 echo "$as_me: failed program was:" >&5
18734 sed 's
/^
/|
/' conftest.$ac_ext >&5
18736 ac_cv_have_decl_tzname=no
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18742 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18743 if test $ac_cv_have_decl_tzname = yes; then
18745 cat >>confdefs.h <<_ACEOF
18746 #define HAVE_DECL_TZNAME 1
18751 cat >>confdefs.h <<_ACEOF
18752 #define HAVE_DECL_TZNAME 0
18759 { echo "$as_me:$LINENO: checking for tzname" >&5
18760 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18761 if test "${ac_cv_var_tzname+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 #if !HAVE_DECL_TZNAME
18772 extern char *tzname[];
18778 return tzname[0][0];
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (ac_try="$ac_link"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>conftest.er1
18792 grep -v '^
*+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } && {
18797 test -z "$ac_c_werror_flag" ||
18798 test ! -s conftest.err
18799 } && test -s conftest$ac_exeext &&
18800 $as_test_x conftest$ac_exeext; then
18801 ac_cv_var_tzname=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's
/^
/|
/' conftest.$ac_ext >&5
18806 ac_cv_var_tzname=no
18809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18810 conftest$ac_exeext conftest.$ac_ext
18812 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18813 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18814 if test $ac_cv_var_tzname = yes; then
18816 cat >>confdefs.h <<\_ACEOF
18817 #define HAVE_TZNAME 1
18823 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18824 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18825 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 cat >conftest.$ac_ext <<_ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834 $ac_includes_default
18838 static struct stat ac_aggr;
18839 if (ac_aggr.st_rdev)
18845 rm -f conftest.$ac_objext
18846 if { (ac_try="$ac_compile"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_compile") 2>conftest.er1
18854 grep -v '^
*+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest.$ac_objext; then
18862 ac_cv_member_struct_stat_st_rdev=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's
/^
/|
/' conftest.$ac_ext >&5
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 $ac_includes_default
18877 static struct stat ac_aggr;
18878 if (sizeof ac_aggr.st_rdev)
18884 rm -f conftest.$ac_objext
18885 if { (ac_try="$ac_compile"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_compile") 2>conftest.er1
18893 grep -v '^
*+' conftest.er1 >conftest.err
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } && {
18898 test -z "$ac_c_werror_flag" ||
18899 test ! -s conftest.err
18900 } && test -s conftest.$ac_objext; then
18901 ac_cv_member_struct_stat_st_rdev=yes
18903 echo "$as_me: failed program was:" >&5
18904 sed 's
/^
/|
/' conftest.$ac_ext >&5
18906 ac_cv_member_struct_stat_st_rdev=no
18909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18915 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18916 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define HAVE_STRUCT_STAT_ST_RDEV 1
18925 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18926 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18927 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18940 static struct stat ac_aggr;
18941 if (ac_aggr.st_blksize)
18947 rm -f conftest.$ac_objext
18948 if { (ac_try="$ac_compile"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_compile") 2>conftest.er1
18956 grep -v '^
*+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest.$ac_objext; then
18964 ac_cv_member_struct_stat_st_blksize=yes
18966 echo "$as_me: failed program was:" >&5
18967 sed 's
/^
/|
/' conftest.$ac_ext >&5
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 $ac_includes_default
18979 static struct stat ac_aggr;
18980 if (sizeof ac_aggr.st_blksize)
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18995 grep -v '^
*+' conftest.er1 >conftest.err
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest.$ac_objext; then
19003 ac_cv_member_struct_stat_st_blksize=yes
19005 echo "$as_me: failed program was:" >&5
19006 sed 's
/^
/|
/' conftest.$ac_ext >&5
19008 ac_cv_member_struct_stat_st_blksize=no
19011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19017 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19018 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19020 cat >>confdefs.h <<_ACEOF
19021 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19027 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19028 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19029 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 $ac_includes_default
19042 static struct stat ac_aggr;
19043 if (ac_aggr.st_flags)
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19058 grep -v '^
*+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest.$ac_objext; then
19066 ac_cv_member_struct_stat_st_flags=yes
19068 echo "$as_me: failed program was:" >&5
19069 sed 's
/^
/|
/' conftest.$ac_ext >&5
19071 cat >conftest.$ac_ext <<_ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 $ac_includes_default
19081 static struct stat ac_aggr;
19082 if (sizeof ac_aggr.st_flags)
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_compile") 2>conftest.er1
19097 grep -v '^
*+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest.$ac_objext; then
19105 ac_cv_member_struct_stat_st_flags=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's
/^
/|
/' conftest.$ac_ext >&5
19110 ac_cv_member_struct_stat_st_flags=no
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19119 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19120 if test $ac_cv_member_struct_stat_st_flags = yes; then
19122 cat >>confdefs.h <<_ACEOF
19123 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19129 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19130 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19131 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 cat >conftest.$ac_ext <<_ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 $ac_includes_default
19144 static struct stat ac_aggr;
19145 if (ac_aggr.st_gen)
19151 rm -f conftest.$ac_objext
19152 if { (ac_try="$ac_compile"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_compile") 2>conftest.er1
19160 grep -v '^
*+' conftest.er1 >conftest.err
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } && {
19165 test -z "$ac_c_werror_flag" ||
19166 test ! -s conftest.err
19167 } && test -s conftest.$ac_objext; then
19168 ac_cv_member_struct_stat_st_gen=yes
19170 echo "$as_me: failed program was:" >&5
19171 sed 's
/^
/|
/' conftest.$ac_ext >&5
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 $ac_includes_default
19183 static struct stat ac_aggr;
19184 if (sizeof ac_aggr.st_gen)
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19199 grep -v '^
*+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } && {
19204 test -z "$ac_c_werror_flag" ||
19205 test ! -s conftest.err
19206 } && test -s conftest.$ac_objext; then
19207 ac_cv_member_struct_stat_st_gen=yes
19209 echo "$as_me: failed program was:" >&5
19210 sed 's
/^
/|
/' conftest.$ac_ext >&5
19212 ac_cv_member_struct_stat_st_gen=no
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19221 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19222 if test $ac_cv_member_struct_stat_st_gen = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_STRUCT_STAT_ST_GEN 1
19231 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19232 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19233 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 $ac_includes_default
19246 static struct stat ac_aggr;
19247 if (ac_aggr.st_birthtime)
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19262 grep -v '^
*+' conftest.er1 >conftest.err
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && {
19267 test -z "$ac_c_werror_flag" ||
19268 test ! -s conftest.err
19269 } && test -s conftest.$ac_objext; then
19270 ac_cv_member_struct_stat_st_birthtime=yes
19272 echo "$as_me: failed program was:" >&5
19273 sed 's
/^
/|
/' conftest.$ac_ext >&5
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 $ac_includes_default
19285 static struct stat ac_aggr;
19286 if (sizeof ac_aggr.st_birthtime)
19292 rm -f conftest.$ac_objext
19293 if { (ac_try="$ac_compile"
19294 case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_compile") 2>conftest.er1
19301 grep -v '^
*+' conftest.er1 >conftest.err
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } && {
19306 test -z "$ac_c_werror_flag" ||
19307 test ! -s conftest.err
19308 } && test -s conftest.$ac_objext; then
19309 ac_cv_member_struct_stat_st_birthtime=yes
19311 echo "$as_me: failed program was:" >&5
19312 sed 's
/^
/|
/' conftest.$ac_ext >&5
19314 ac_cv_member_struct_stat_st_birthtime=no
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19322 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19323 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19324 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19333 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19334 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19335 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 $ac_includes_default
19348 static struct stat ac_aggr;
19349 if (ac_aggr.st_blocks)
19355 rm -f conftest.$ac_objext
19356 if { (ac_try="$ac_compile"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_compile") 2>conftest.er1
19364 grep -v '^
*+' conftest.er1 >conftest.err
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest.$ac_objext; then
19372 ac_cv_member_struct_stat_st_blocks=yes
19374 echo "$as_me: failed program was:" >&5
19375 sed 's
/^
/|
/' conftest.$ac_ext >&5
19377 cat >conftest.$ac_ext <<_ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 $ac_includes_default
19387 static struct stat ac_aggr;
19388 if (sizeof ac_aggr.st_blocks)
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19403 grep -v '^
*+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } && {
19408 test -z "$ac_c_werror_flag" ||
19409 test ! -s conftest.err
19410 } && test -s conftest.$ac_objext; then
19411 ac_cv_member_struct_stat_st_blocks=yes
19413 echo "$as_me: failed program was:" >&5
19414 sed 's
/^
/|
/' conftest.$ac_ext >&5
19416 ac_cv_member_struct_stat_st_blocks=no
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19426 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19428 cat >>confdefs.h <<_ACEOF
19429 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19433 cat >>confdefs.h <<\_ACEOF
19434 #define HAVE_ST_BLOCKS 1
19438 case " $LIBOBJS " in
19439 *" fileblocks.$ac_objext "* ) ;;
19440 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19448 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19449 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19450 if test "${ac_cv_header_time_altzone+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
19470 case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_compile") 2>conftest.er1
19477 grep -v '^
*+' conftest.er1 >conftest.err
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } && {
19482 test -z "$ac_c_werror_flag" ||
19483 test ! -s conftest.err
19484 } && test -s conftest.$ac_objext; then
19485 ac_cv_header_time_altzone=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's
/^
/|
/' conftest.$ac_ext >&5
19490 ac_cv_header_time_altzone=no
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19497 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19498 if test $ac_cv_header_time_altzone = yes; then
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_ALTZONE 1
19507 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19508 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19516 #include <sys/types.h>
19517 #include <sys/select.h>
19518 #include <sys/time.h>
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19537 grep -v '^
*+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } && {
19542 test -z "$ac_c_werror_flag" ||
19543 test ! -s conftest.err
19544 } && test -s conftest.$ac_objext; then
19547 cat >>confdefs.h <<\_ACEOF
19548 #define SYS_SELECT_WITH_SYS_TIME 1
19554 echo "$as_me: failed program was:" >&5
19555 sed 's
/^
/|
/' conftest.$ac_ext >&5
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19562 echo "${ECHO_T}$was_it_defined" >&6; }
19564 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19565 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19566 if test "${ac_cv_struct_addrinfo+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 cat >conftest.$ac_ext <<_ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19576 # include <netdb.h>
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19594 grep -v '^
*+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } && {
19599 test -z "$ac_c_werror_flag" ||
19600 test ! -s conftest.err
19601 } && test -s conftest.$ac_objext; then
19602 ac_cv_struct_addrinfo=yes
19604 echo "$as_me: failed program was:" >&5
19605 sed 's
/^
/|
/' conftest.$ac_ext >&5
19607 ac_cv_struct_addrinfo=no
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19614 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19615 if test $ac_cv_struct_addrinfo = yes; then
19617 cat >>confdefs.h <<\_ACEOF
19618 #define HAVE_ADDRINFO 1
19623 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19624 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19625 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 # include <sys/types.h>
19636 # include <sys/socket.h>
19640 struct sockaddr_storage s
19645 rm -f conftest.$ac_objext
19646 if { (ac_try="$ac_compile"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_compile") 2>conftest.er1
19654 grep -v '^
*+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest.$ac_objext; then
19662 ac_cv_struct_sockaddr_storage=yes
19664 echo "$as_me: failed program was:" >&5
19665 sed 's
/^
/|
/' conftest.$ac_ext >&5
19667 ac_cv_struct_sockaddr_storage=no
19670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19674 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19675 if test $ac_cv_struct_sockaddr_storage = yes; then
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_SOCKADDR_STORAGE 1
19683 # checks for compiler characteristics
19686 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19687 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19688 if test "${ac_cv_c_char_unsigned+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 $ac_includes_default
19701 static int test_array [1 - 2 * !(((char) -1) < 0)];
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19717 grep -v '^
*+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest.$ac_objext; then
19725 ac_cv_c_char_unsigned=no
19727 echo "$as_me: failed program was:" >&5
19728 sed 's
/^
/|
/' conftest.$ac_ext >&5
19730 ac_cv_c_char_unsigned=yes
19733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19736 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19737 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19738 cat >>confdefs.h <<\_ACEOF
19739 #define __CHAR_UNSIGNED__ 1
19744 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19745 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19746 if test "${ac_cv_c_const+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19759 /* FIXME: Include the comments suggested by Paul. */
19760 #ifndef __cplusplus
19761 /* Ultrix mips cc rejects this. */
19762 typedef int charset[2];
19764 /* SunOS 4.1.1 cc rejects this. */
19765 char const *const *pcpcc;
19767 /* NEC SVR4.0.2 mips cc rejects this. */
19768 struct point {int x, y;};
19769 static struct point const zero = {0,0};
19770 /* AIX XL C 1.02.0.0 rejects this.
19771 It does not let you subtract one const X* pointer from another in
19772 an arm of an if-expression whose if-part is not a constant
19774 const char *g = "string";
19775 pcpcc = &g + (g ? g-g : 0);
19776 /* HPUX 7.0 cc rejects these. */
19778 ppc = (char**) pcpcc;
19779 pcpcc = (char const *const *) ppc;
19780 { /* SCO 3.2v4 cc rejects this. */
19782 char const *s = 0 ? (char *) 0 : (char const *) 0;
19787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19788 int x[] = {25, 17};
19789 const int *foo = &x[0];
19792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19793 typedef const int *iptr;
19797 { /* AIX XL C 1.02.0.0 rejects this saying
19798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19799 struct s { int j; const int *ap[3]; };
19800 struct s *b; b->j = 5;
19802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19803 const int foo = 10;
19804 if (!foo) return 0;
19806 return !cs[0] && !zero.x;
19813 rm -f conftest.$ac_objext
19814 if { (ac_try="$ac_compile"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_compile") 2>conftest.er1
19822 grep -v '^
*+' conftest.er1 >conftest.err
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest.$ac_objext; then
19832 echo "$as_me: failed program was:" >&5
19833 sed 's
/^
/|
/' conftest.$ac_ext >&5
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19841 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19842 if test $ac_cv_c_const = no; then
19844 cat >>confdefs.h <<\_ACEOF
19852 { echo "$as_me:$LINENO: checking for working volatile" >&5
19853 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19864 volatile int x; x = 0;
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19878 grep -v '^
*+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } && {
19883 test -z "$ac_c_werror_flag" ||
19884 test ! -s conftest.err
19885 } && test -s conftest.$ac_objext; then
19888 echo "$as_me: failed program was:" >&5
19889 sed 's
/^
/|
/' conftest.$ac_ext >&5
19892 cat >>confdefs.h <<\_ACEOF
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 { echo "$as_me:$LINENO: result: $works" >&5
19901 echo "${ECHO_T}$works" >&6; }
19904 { echo "$as_me:$LINENO: checking for working signed char" >&5
19905 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
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
19940 echo "$as_me: failed program was:" >&5
19941 sed 's
/^
/|
/' conftest.$ac_ext >&5
19944 cat >>confdefs.h <<\_ACEOF
19951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $works" >&5
19953 echo "${ECHO_T}$works" >&6; }
19956 { echo "$as_me:$LINENO: checking for prototypes" >&5
19957 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 int foo(int x) { return 0; }
19973 rm -f conftest.$ac_objext
19974 if { (ac_try="$ac_compile"
19975 case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_compile") 2>conftest.er1
19982 grep -v '^
*+' conftest.er1 >conftest.err
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && {
19987 test -z "$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19989 } && test -s conftest.$ac_objext; then
19992 cat >>confdefs.h <<\_ACEOF
19993 #define HAVE_PROTOTYPES 1
19996 have_prototypes=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's
/^
/|
/' conftest.$ac_ext >&5
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20007 echo "${ECHO_T}$have_prototypes" >&6; }
20010 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20011 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20012 cat >conftest.$ac_ext <<_ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20019 #include <stdarg.h>
20020 int foo(int x, ...) {
20024 va_arg(va, char *);
20025 va_arg(va, double);
20032 return foo(10, "", 3.14);
20037 rm -f conftest.$ac_objext
20038 if { (ac_try="$ac_compile"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_compile") 2>conftest.er1
20046 grep -v '^
*+' conftest.er1 >conftest.err
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest.$ac_objext; then
20056 cat >>confdefs.h <<\_ACEOF
20057 #define HAVE_STDARG_PROTOTYPES 1
20063 echo "$as_me: failed program was:" >&5
20064 sed 's
/^
/|
/' conftest.$ac_ext >&5
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 { echo "$as_me:$LINENO: result: $works" >&5
20071 echo "${ECHO_T}$works" >&6; }
20073 # check for socketpair
20074 { echo "$as_me:$LINENO: checking for socketpair" >&5
20075 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20083 #include <sys/types.h>
20084 #include <sys/socket.h>
20094 rm -f conftest.$ac_objext
20095 if { (ac_try="$ac_compile"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_compile") 2>conftest.er1
20103 grep -v '^
*+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest.$ac_objext; then
20112 cat >>confdefs.h <<\_ACEOF
20113 #define HAVE_SOCKETPAIR 1
20116 { echo "$as_me:$LINENO: result: yes" >&5
20117 echo "${ECHO_T}yes" >&6; }
20119 echo "$as_me: failed program was:" >&5
20120 sed 's
/^
/|
/' conftest.$ac_ext >&5
20122 { echo "$as_me:$LINENO: result: no" >&5
20123 echo "${ECHO_T}no" >&6; }
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 # check if sockaddr has sa_len member
20130 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20131 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20132 cat >conftest.$ac_ext <<_ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 #include <sys/types.h>
20139 #include <sys/socket.h>
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20158 grep -v '^
*+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } && {
20163 test -z "$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 } && test -s conftest.$ac_objext; then
20166 { echo "$as_me:$LINENO: result: yes" >&5
20167 echo "${ECHO_T}yes" >&6; }
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_SOCKADDR_SA_LEN 1
20174 echo "$as_me: failed program was:" >&5
20175 sed 's
/^
/|
/' conftest.$ac_ext >&5
20177 { echo "$as_me:$LINENO: result: no" >&5
20178 echo "${ECHO_T}no" >&6; }
20181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183 va_list_is_array=no
20184 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20185 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20193 #ifdef HAVE_STDARG_PROTOTYPES
20194 #include <stdarg.h>
20196 #include <varargs.h>
20202 va_list list1, list2; list1 = list2;
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_compile") 2>conftest.er1
20216 grep -v '^
*+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest.$ac_objext; then
20226 echo "$as_me: failed program was:" >&5
20227 sed 's
/^
/|
/' conftest.$ac_ext >&5
20231 cat >>confdefs.h <<\_ACEOF
20232 #define VA_LIST_IS_ARRAY 1
20235 va_list_is_array=yes
20239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20241 echo "${ECHO_T}$va_list_is_array" >&6; }
20243 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20247 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20248 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20249 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20260 #define gethostbyname_r innocuous_gethostbyname_r
20262 /* System header to define __stub macros and hopefully few prototypes,
20263 which can conflict with char gethostbyname_r (); below.
20264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20265 <limits.h> exists even on freestanding compilers. */
20268 # include <limits.h>
20270 # include <assert.h>
20273 #undef gethostbyname_r
20275 /* Override any GCC internal prototype to avoid an error.
20276 Use char because int might match the return type of a GCC
20277 builtin and then its argument prototype would still apply. */
20281 char gethostbyname_r ();
20282 /* The GNU C library defines this for functions which it implements
20283 to always fail with ENOSYS. Some functions are actually named
20284 something starting with __ and the normal name is an alias. */
20285 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20292 return gethostbyname_r ();
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>conftest.er1
20306 grep -v '^
*+' conftest.er1 >conftest.err
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && {
20311 test -z "$ac_c_werror_flag" ||
20312 test ! -s conftest.err
20313 } && test -s conftest$ac_exeext &&
20314 $as_test_x conftest$ac_exeext; then
20315 ac_cv_func_gethostbyname_r=yes
20317 echo "$as_me: failed program was:" >&5
20318 sed 's
/^
/|
/' conftest.$ac_ext >&5
20320 ac_cv_func_gethostbyname_r=no
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324 conftest$ac_exeext conftest.$ac_ext
20326 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20327 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20328 if test $ac_cv_func_gethostbyname_r = yes; then
20330 cat >>confdefs.h <<\_ACEOF
20331 #define HAVE_GETHOSTBYNAME_R 1
20334 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20335 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20337 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20338 cat >conftest.$ac_ext <<_ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h. */
20345 # include <netdb.h>
20352 struct hostent *he, *res;
20357 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20363 rm -f conftest.$ac_objext
20364 if { (ac_try="$ac_compile"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
20372 grep -v '^
*+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest.$ac_objext; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE_GETHOSTBYNAME_R 1
20386 cat >>confdefs.h <<\_ACEOF
20387 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20390 { echo "$as_me:$LINENO: result: yes" >&5
20391 echo "${ECHO_T}yes" >&6; }
20394 echo "$as_me: failed program was:" >&5
20395 sed 's
/^
/|
/' conftest.$ac_ext >&5
20398 { echo "$as_me:$LINENO: result: no" >&5
20399 echo "${ECHO_T}no" >&6; }
20400 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20401 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20402 cat >conftest.$ac_ext <<_ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h. */
20409 # include <netdb.h>
20416 struct hostent *he;
20421 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20436 grep -v '^
*+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_GETHOSTBYNAME_R 1
20450 cat >>confdefs.h <<\_ACEOF
20451 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20454 { echo "$as_me:$LINENO: result: yes" >&5
20455 echo "${ECHO_T}yes" >&6; }
20458 echo "$as_me: failed program was:" >&5
20459 sed 's
/^
/|
/' conftest.$ac_ext >&5
20462 { echo "$as_me:$LINENO: result: no" >&5
20463 echo "${ECHO_T}no" >&6; }
20464 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20465 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20473 # include <netdb.h>
20480 struct hostent *he;
20481 struct hostent_data data;
20483 (void) gethostbyname_r(name, he, &data);
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20498 grep -v '^
*+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_GETHOSTBYNAME_R 1
20512 cat >>confdefs.h <<\_ACEOF
20513 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20516 { echo "$as_me:$LINENO: result: yes" >&5
20517 echo "${ECHO_T}yes" >&6; }
20520 echo "$as_me: failed program was:" >&5
20521 sed 's
/^
/|
/' conftest.$ac_ext >&5
20524 { echo "$as_me:$LINENO: result: no" >&5
20525 echo "${ECHO_T}no" >&6; }
20529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 for ac_func in gethostbyname
20545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20559 #define $ac_func innocuous_$ac_func
20561 /* System header to define __stub macros and hopefully few prototypes,
20562 which can conflict with char $ac_func (); below.
20563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20564 <limits.h> exists even on freestanding compilers. */
20567 # include <limits.h>
20569 # include <assert.h>
20574 /* Override any GCC internal prototype to avoid an error.
20575 Use char because int might match the return type of a GCC
20576 builtin and then its argument prototype would still apply. */
20581 /* The GNU C library defines this for functions which it implements
20582 to always fail with ENOSYS. Some functions are actually named
20583 something starting with __ and the normal name is an alias. */
20584 #if defined __stub_$ac_func || defined __stub___$ac_func
20591 return $ac_func ();
20596 rm -f conftest.$ac_objext conftest$ac_exeext
20597 if { (ac_try="$ac_link"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_link") 2>conftest.er1
20605 grep -v '^
*+' conftest.er1 >conftest.err
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest$ac_exeext &&
20613 $as_test_x conftest$ac_exeext; then
20614 eval "$as_ac_var=yes"
20616 echo "$as_me: failed program was:" >&5
20617 sed 's
/^
/|
/' conftest.$ac_ext >&5
20619 eval "$as_ac_var=no"
20622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20623 conftest$ac_exeext conftest.$ac_ext
20625 ac_res=`eval echo '${'$as_ac_var'}'`
20626 { echo "$as_me:$LINENO: result: $ac_res" >&5
20627 echo "${ECHO_T}$ac_res" >&6; }
20628 if test `eval echo '${'$as_ac_var'}'` = yes; then
20629 cat >>confdefs.h <<_ACEOF
20630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20645 # checks for system services
20648 # Linux requires this for correct f.p. operations
20649 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20650 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20651 if test "${ac_cv_func___fpu_control+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 cat >conftest.$ac_ext <<_ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20660 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20662 #define __fpu_control innocuous___fpu_control
20664 /* System header to define __stub macros and hopefully few prototypes,
20665 which can conflict with char __fpu_control (); below.
20666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20667 <limits.h> exists even on freestanding compilers. */
20670 # include <limits.h>
20672 # include <assert.h>
20675 #undef __fpu_control
20677 /* Override any GCC internal prototype to avoid an error.
20678 Use char because int might match the return type of a GCC
20679 builtin and then its argument prototype would still apply. */
20683 char __fpu_control ();
20684 /* The GNU C library defines this for functions which it implements
20685 to always fail with ENOSYS. Some functions are actually named
20686 something starting with __ and the normal name is an alias. */
20687 #if defined __stub___fpu_control || defined __stub_____fpu_control
20694 return __fpu_control ();
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (ac_try="$ac_link"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_link") 2>conftest.er1
20708 grep -v '^
*+' conftest.er1 >conftest.err
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest$ac_exeext &&
20716 $as_test_x conftest$ac_exeext; then
20717 ac_cv_func___fpu_control=yes
20719 echo "$as_me: failed program was:" >&5
20720 sed 's
/^
/|
/' conftest.$ac_ext >&5
20722 ac_cv_func___fpu_control=no
20725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20726 conftest$ac_exeext conftest.$ac_ext
20728 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20729 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20730 if test $ac_cv_func___fpu_control = yes; then
20734 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20735 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20736 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-lieee $LIBS"
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20748 /* Override any GCC internal prototype to avoid an error.
20749 Use char because int might match the return type of a GCC
20750 builtin and then its argument prototype would still apply. */
20754 char __fpu_control ();
20758 return __fpu_control ();
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_link") 2>conftest.er1
20772 grep -v '^
*+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && {
20777 test -z "$ac_c_werror_flag" ||
20778 test ! -s conftest.err
20779 } && test -s conftest$ac_exeext &&
20780 $as_test_x conftest$ac_exeext; then
20781 ac_cv_lib_ieee___fpu_control=yes
20783 echo "$as_me: failed program was:" >&5
20784 sed 's
/^
/|
/' conftest.$ac_ext >&5
20786 ac_cv_lib_ieee___fpu_control=no
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20793 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20794 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20795 if test $ac_cv_lib_ieee___fpu_control = yes; then
20796 cat >>confdefs.h <<_ACEOF
20797 #define HAVE_LIBIEEE 1
20800 LIBS="-lieee $LIBS"
20808 # Check for --with-fpectl
20809 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20810 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20812 # Check whether --with-fpectl was given.
20813 if test "${with_fpectl+set}" = set; then
20814 withval=$with_fpectl;
20815 if test "$withval" != no
20818 cat >>confdefs.h <<\_ACEOF
20819 #define WANT_SIGFPE_HANDLER 1
20822 { echo "$as_me:$LINENO: result: yes" >&5
20823 echo "${ECHO_T}yes" >&6; }
20824 else { echo "$as_me:$LINENO: result: no" >&5
20825 echo "${ECHO_T}no" >&6; }
20828 { echo "$as_me:$LINENO: result: no" >&5
20829 echo "${ECHO_T}no" >&6; }
20833 # check for --with-libm=...
20835 case $ac_sys_system in
20840 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20841 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20843 # Check whether --with-libm was given.
20844 if test "${with_libm+set}" = set; then
20845 withval=$with_libm;
20846 if test "$withval" = no
20848 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20849 echo "${ECHO_T}force LIBM empty" >&6; }
20850 elif test "$withval" != yes
20852 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20853 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20854 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20855 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20856 { (exit 1); exit 1; }; }
20859 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20860 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20864 # check for --with-libc=...
20866 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20867 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20869 # Check whether --with-libc was given.
20870 if test "${with_libc+set}" = set; then
20871 withval=$with_libc;
20872 if test "$withval" = no
20874 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20875 echo "${ECHO_T}force LIBC empty" >&6; }
20876 elif test "$withval" != yes
20878 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20879 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20880 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20881 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20882 { (exit 1); exit 1; }; }
20885 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20886 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20890 # ************************************
20891 # * Check for mathematical functions *
20892 # ************************************
20897 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
20898 # -0. on some architectures.
20899 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
20900 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
20901 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 if test "$cross_compiling" = yes; then
20906 ac_cv_tanh_preserves_zero_sign=no
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20916 #include <stdlib.h>
20918 /* return 0 if either negative zeros don't exist
20919 on this platform or
if negative zeros exist
20920 and tanh
(-0.
) == -0.
*/
20921 if (atan2
(0.
, -1.
) == atan2
(-0.
, -1.
) ||
20922 atan2
(tanh
(-0.
), -1.
) == atan2
(-0.
, -1.
)) exit(0);
20927 rm -f conftest
$ac_exeext
20928 if { (ac_try
="$ac_link"
20929 case "(($ac_try" in
20930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_link") 2>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20940 *) ac_try_echo
=$ac_try;;
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 ac_cv_tanh_preserves_zero_sign
=yes
20949 echo "$as_me: program exited with status $ac_status" >&5
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.
$ac_ext >&5
20953 ( exit $ac_status )
20954 ac_cv_tanh_preserves_zero_sign
=no
20956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20962 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
20963 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
20964 if test "$ac_cv_tanh_preserves_zero_sign" = yes
20967 cat >>confdefs.h
<<\_ACEOF
20968 #define TANH_PRESERVES_ZERO_SIGN 1
20974 for ac_func
in hypot
20976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20979 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 cat >conftest.
$ac_ext <<_ACEOF
20985 cat confdefs.h
>>conftest.
$ac_ext
20986 cat >>conftest.
$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20990 #define $ac_func innocuous_$ac_func
20992 /* System header to define __stub macros and hopefully few prototypes,
20993 which can conflict with char $ac_func (); below.
20994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20995 <limits.h> exists even on freestanding compilers. */
20998 # include <limits.h>
21000 # include <assert.h>
21005 /* Override any GCC internal prototype to avoid an error.
21006 Use char because int might match the return type of a GCC
21007 builtin and then its argument prototype would still apply. */
21012 /* The GNU C library defines this for functions which it implements
21013 to always fail with ENOSYS. Some functions are actually named
21014 something starting with __ and the normal name is an alias. */
21015 #if defined __stub_$ac_func || defined __stub___$ac_func
21022 return $ac_func ();
21027 rm -f conftest.
$ac_objext conftest
$ac_exeext
21028 if { (ac_try
="$ac_link"
21029 case "(($ac_try" in
21030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_link") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest$ac_exeext &&
21044 $as_test_x conftest$ac_exeext; then
21045 eval "$as_ac_var=yes"
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 eval "$as_ac_var=no"
21053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21054 conftest$ac_exeext conftest.$ac_ext
21056 ac_res=`eval echo '${'$as_ac_var'}'`
21057 { echo "$as_me:$LINENO: result: $ac_res" >&5
21058 echo "${ECHO_T}$ac_res" >&6; }
21059 if test `eval echo '${'$as_ac_var'}'` = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21065 case " $LIBOBJS " in
21066 *" $ac_func.$ac_objext "* ) ;;
21067 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21085 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21087 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21101 #define $ac_func innocuous_$ac_func
21103 /* System header to define __stub macros and hopefully few prototypes,
21104 which can conflict with char $ac_func (); below.
21105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21106 <limits.h> exists even on freestanding compilers. */
21109 # include <limits.h>
21111 # include <assert.h>
21116 /* Override any GCC internal prototype to avoid an error.
21117 Use char because int might match the return type of a GCC
21118 builtin and then its argument prototype would still apply. */
21123 /* The GNU C library defines this for functions which it implements
21124 to always fail with ENOSYS. Some functions are actually named
21125 something starting with __ and the normal name is an alias. */
21126 #if defined __stub_$ac_func || defined __stub___$ac_func
21133 return $ac_func ();
21138 rm -f conftest.$ac_objext conftest$ac_exeext
21139 if { (ac_try="$ac_link"
21140 case "(($ac_try" in
21141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21142 *) ac_try_echo
=$ac_try;;
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_link") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1
>conftest.err
21149 cat conftest.err
>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest
$ac_exeext &&
21155 $as_test_x conftest
$ac_exeext; then
21156 eval "$as_ac_var=yes"
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.
$ac_ext >&5
21161 eval "$as_ac_var=no"
21164 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21165 conftest
$ac_exeext conftest.
$ac_ext
21167 ac_res
=`eval echo '${'$as_ac_var'}'`
21168 { echo "$as_me:$LINENO: result: $ac_res" >&5
21169 echo "${ECHO_T}$ac_res" >&6; }
21170 if test `eval echo '${'$as_ac_var'}'` = yes; then
21171 cat >>confdefs.h
<<_ACEOF
21172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21181 # check for wchar.h
21182 if test "${ac_cv_header_wchar_h+set}" = set; then
21183 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21184 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21185 if test "${ac_cv_header_wchar_h+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21189 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21191 # Is the header compilable?
21192 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21193 echo $ECHO_N "checking wchar.h usability... $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 $ac_includes_default
21203 rm -f conftest.
$ac_objext
21204 if { (ac_try
="$ac_compile"
21205 case "(($ac_try" in
21206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_compile") 2>conftest.er1
21212 grep -v '^ *+' conftest.er1 >conftest.err
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } && {
21217 test -z "$ac_c_werror_flag" ||
21218 test ! -s conftest.err
21219 } && test -s conftest.$ac_objext; then
21220 ac_header_compiler=yes
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225 ac_header_compiler=no
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21230 echo "${ECHO_T}$ac_header_compiler" >&6; }
21232 # Is the header present?
21233 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21234 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21243 if { (ac_try="$ac_cpp conftest.$ac_ext"
21244 case "(($ac_try" in
21245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21246 *) ac_try_echo
=$ac_try;;
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21251 grep -v '^ *+' conftest.er1
>conftest.err
21253 cat conftest.err
>&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } >/dev
/null
&& {
21256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21259 ac_header_preproc
=yes
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.
$ac_ext >&5
21264 ac_header_preproc
=no
21267 rm -f conftest.err conftest.
$ac_ext
21268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21269 echo "${ECHO_T}$ac_header_preproc" >&6; }
21271 # So? What about this header?
21272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21274 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21275 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21277 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21278 ac_header_preproc
=yes
21281 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21282 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21283 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21284 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21286 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21287 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21288 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21289 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21290 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21291 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21292 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21294 ## ------------------------------------------------ ##
21295 ## Report this to http://www.python.org/python-bugs ##
21296 ## ------------------------------------------------ ##
21298 ) |
sed "s/^/$as_me: WARNING: /" >&2
21301 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21302 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21303 if test "${ac_cv_header_wchar_h+set}" = set; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 ac_cv_header_wchar_h
=$ac_header_preproc
21308 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21309 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21312 if test $ac_cv_header_wchar_h = yes; then
21315 cat >>confdefs.h
<<\_ACEOF
21316 #define HAVE_WCHAR_H 1
21328 # determine wchar_t size
21329 if test "$wchar_h" = yes
21331 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21332 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21333 if test "${ac_cv_type_wchar_t+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 cat >conftest.
$ac_ext <<_ACEOF
21339 cat confdefs.h
>>conftest.
$ac_ext
21340 cat >>conftest.
$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21344 typedef wchar_t ac__type_new_;
21348 if ((ac__type_new_ *) 0)
21350 if (sizeof (ac__type_new_))
21356 rm -f conftest.
$ac_objext
21357 if { (ac_try
="$ac_compile"
21358 case "(($ac_try" in
21359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_compile") 2>conftest.er1
21365 grep -v '^ *+' conftest.er1 >conftest.err
21367 cat conftest.err >&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); } && {
21370 test -z "$ac_c_werror_flag" ||
21371 test ! -s conftest.err
21372 } && test -s conftest.$ac_objext; then
21373 ac_cv_type_wchar_t=yes
21375 echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21378 ac_cv_type_wchar_t=no
21381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21383 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21384 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21386 # The cast to long int works around a bug in the HP C Compiler
21387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21388 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21389 # This bug is HP SR number 8606223364.
21390 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21391 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21392 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 if test "$cross_compiling" = yes; then
21396 # Depending upon the size, compute the lo and hi bounds.
21397 cat >conftest.$ac_ext <<_ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21405 typedef wchar_t ac__type_sizeof_;
21409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21416 rm -f conftest.$ac_objext
21417 if { (ac_try="$ac_compile"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_compile") 2>conftest.er1
21425 grep -v '^
*+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && {
21430 test -z "$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 } && test -s conftest.$ac_objext; then
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21443 typedef wchar_t ac__type_sizeof_;
21447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21454 rm -f conftest.$ac_objext
21455 if { (ac_try="$ac_compile"
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_compile") 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); } && {
21468 test -z "$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 } && test -s conftest.$ac_objext; then
21471 ac_hi=$ac_mid; break
21473 echo "$as_me: failed program was:" >&5
21474 sed 's
/^
/|
/' conftest.$ac_ext >&5
21476 ac_lo=`expr $ac_mid + 1`
21477 if test $ac_lo -le $ac_mid; then
21481 ac_mid=`expr 2 '*' $ac_mid + 1`
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487 echo "$as_me: failed program was:" >&5
21488 sed 's
/^
/|
/' conftest.$ac_ext >&5
21490 cat >conftest.$ac_ext <<_ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21498 typedef wchar_t ac__type_sizeof_;
21502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21509 rm -f conftest.$ac_objext
21510 if { (ac_try="$ac_compile"
21511 case "(($ac_try" in
21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513 *) ac_try_echo=$ac_try;;
21515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21516 (eval "$ac_compile") 2>conftest.er1
21518 grep -v '^
*+' conftest.er1 >conftest.err
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && {
21523 test -z "$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 } && test -s conftest.$ac_objext; then
21528 cat >conftest.$ac_ext <<_ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21536 typedef wchar_t ac__type_sizeof_;
21540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_compile") 2>conftest.er1
21556 grep -v '^
*+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } && {
21561 test -z "$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 } && test -s conftest.$ac_objext; then
21564 ac_lo=$ac_mid; break
21566 echo "$as_me: failed program was:" >&5
21567 sed 's
/^
/|
/' conftest.$ac_ext >&5
21569 ac_hi=`expr '(' $ac_mid ')' - 1`
21570 if test $ac_mid -le $ac_hi; then
21574 ac_mid=`expr 2 '*' $ac_mid`
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21580 echo "$as_me: failed program was:" >&5
21581 sed 's
/^
/|
/' conftest.$ac_ext >&5
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 # Binary search between lo and hi bounds.
21591 while test "x$ac_lo" != "x$ac_hi"; do
21592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21601 typedef wchar_t ac__type_sizeof_;
21605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21621 grep -v '^
*+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && {
21626 test -z "$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 } && test -s conftest.$ac_objext; then
21631 echo "$as_me: failed program was:" >&5
21632 sed 's
/^
/|
/' conftest.$ac_ext >&5
21634 ac_lo=`expr '(' $ac_mid ')' + 1`
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21641 '') if test "$ac_cv_type_wchar_t" = yes; then
21642 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21643 See \`config.log' for more details.
" >&5
21644 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
21645 See \
`config.log' for more details." >&2;}
21646 { (exit 77); exit 77; }; }
21648 ac_cv_sizeof_wchar_t=0
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21660 typedef wchar_t ac__type_sizeof_;
21661 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21662 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21664 #include <stdlib.h>
21669 FILE *f = fopen ("conftest.val", "w");
21672 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21674 long int i = longval ();
21675 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21677 fprintf (f, "%ld\n", i);
21681 unsigned long int i = ulongval ();
21682 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21684 fprintf (f, "%lu\n", i);
21686 return ferror (f) || fclose (f) != 0;
21692 rm -f conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21696 *) ac_try_echo
=$ac_try;;
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_link") 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21703 { (case "(($ac_try" in
21704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_try") 2>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712 ac_cv_sizeof_wchar_t=`cat conftest.val
`
21714 echo "$as_me: program exited with status $ac_status" >&5
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ( exit $ac_status )
21719 if test "$ac_cv_type_wchar_t" = yes; then
21720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21721 See \`config.log
' for more details." >&5
21722 echo "$as_me: error: cannot compute sizeof (wchar_t)
21723 See \`config.log' for more details.
" >&2;}
21724 { (exit 77); exit 77; }; }
21726 ac_cv_sizeof_wchar_t=0
21729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21733 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
21734 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21738 cat >>confdefs.h <<_ACEOF
21739 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21745 { echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
21746 echo $ECHO_N "checking
for UCS-4 tcl...
$ECHO_C" >&6; }
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21756 #if TCL_UTF_MAX != 6
21757 # error "NOT UCS4_TCL
"
21767 rm -f conftest.$ac_objext
21768 if { (ac_try="$ac_compile"
21769 case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_compile") 2>conftest.er1
21776 grep -v '^ *+' conftest.er1 >conftest.err
21778 cat conftest.err >&5
21779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21780 (exit $ac_status); } && {
21781 test -z "$ac_c_werror_flag" ||
21782 test ! -s conftest.err
21783 } && test -s conftest.$ac_objext; then
21786 cat >>confdefs.h <<\_ACEOF
21787 #define HAVE_UCS4_TCL 1
21793 echo "$as_me: failed program was
:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800 { echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
21801 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21803 # check whether wchar_t is signed or not
21804 if test "$wchar_h" = yes
21806 # check whether wchar_t is signed or not
21807 { echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
21808 echo $ECHO_N "checking whether wchar_t is signed...
$ECHO_C" >&6; }
21809 if test "${ac_cv_wchar_t_signed+set}" = set; then
21810 echo $ECHO_N "(cached
) $ECHO_C" >&6
21813 if test "$cross_compiling" = yes; then
21814 ac_cv_wchar_t_signed=yes
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21826 /* Success: exit code 0 */
21827 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_link") 2>&5
21840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842 { (case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_try") 2>&5
21849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_cv_wchar_t_signed=yes
21853 echo "$as_me: program exited with status
$ac_status" >&5
21854 echo "$as_me: failed program was
:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ( exit $ac_status )
21858 ac_cv_wchar_t_signed=no
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
21867 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21870 { echo "$as_me:$LINENO: checking what
type to use
for unicode
" >&5
21871 echo $ECHO_N "checking what
type to use
for unicode...
$ECHO_C" >&6; }
21872 # Check whether --enable-unicode was given.
21873 if test "${enable_unicode+set}" = set; then
21874 enableval=$enable_unicode;
21880 if test $enable_unicode = yes
21882 # Without any arguments, Py_UNICODE defaults to two-byte mode
21883 case "$have_ucs4_tcl" in
21884 yes) enable_unicode="ucs4
"
21886 *) enable_unicode="ucs2
"
21893 case "$enable_unicode" in
21894 ucs2) unicode_size="2"
21895 cat >>confdefs.h <<\_ACEOF
21896 #define Py_UNICODE_SIZE 2
21900 ucs4) unicode_size="4"
21901 cat >>confdefs.h <<\_ACEOF
21902 #define Py_UNICODE_SIZE 4
21912 if test "$enable_unicode" = "no
"
21915 { echo "$as_me:$LINENO: result
: not used
" >&5
21916 echo "${ECHO_T}not used
" >&6; }
21918 UNICODE_OBJS="Objects
/unicodeobject.o Objects
/unicodectype.o
"
21920 cat >>confdefs.h <<\_ACEOF
21921 #define Py_USING_UNICODE 1
21925 # wchar_t is only usable if it maps to an unsigned type
21926 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21927 -a "$ac_cv_wchar_t_signed" = "no
"
21929 PY_UNICODE_TYPE="wchar_t
"
21931 cat >>confdefs.h <<\_ACEOF
21932 #define HAVE_USABLE_WCHAR_T 1
21935 cat >>confdefs.h <<\_ACEOF
21936 #define PY_UNICODE_TYPE wchar_t
21939 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21941 PY_UNICODE_TYPE="unsigned short
"
21942 cat >>confdefs.h <<\_ACEOF
21943 #define PY_UNICODE_TYPE unsigned short
21946 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21948 PY_UNICODE_TYPE="unsigned long
"
21949 cat >>confdefs.h <<\_ACEOF
21950 #define PY_UNICODE_TYPE unsigned long
21954 PY_UNICODE_TYPE="no
type found
"
21956 { echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
21957 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21960 # check for endianness
21961 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
21962 echo $ECHO_N "checking whether byte ordering is bigendian...
$ECHO_C" >&6; }
21963 if test "${ac_cv_c_bigendian+set}" = set; then
21964 echo $ECHO_N "(cached
) $ECHO_C" >&6
21966 # See if sys/param.h defines the BYTE_ORDER macro.
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #include <sys/types.h>
21974 #include <sys/param.h>
21979 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21980 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21981 bogus endian macros
21988 rm -f conftest.$ac_objext
21989 if { (ac_try="$ac_compile"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21997 grep -v '^ *+' conftest.er1 >conftest.err
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22005 # It does; now see whether it defined to BIG_ENDIAN or not.
22006 cat >conftest.$ac_ext <<_ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */
22012 #include <sys/types.h>
22013 #include <sys/param.h>
22018 #if BYTE_ORDER != BIG_ENDIAN
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_cv_c_bigendian=yes
22045 echo "$as_me: failed program was
:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_cv_c_bigendian=no
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 echo "$as_me: failed program was
:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22056 # It does not; compile a test program.
22057 if test "$cross_compiling" = yes; then
22058 # try to guess the endianness by grepping values into an object file
22059 ac_cv_c_bigendian=unknown
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22067 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22068 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22069 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22070 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22071 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22075 _ascii (); _ebcdic ();
22080 rm -f conftest.$ac_objext
22081 if { (ac_try="$ac_compile"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_compile") 2>conftest.er1
22089 grep -v '^ *+' conftest.er1 >conftest.err
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22093 (exit $ac_status); } && {
22094 test -z "$ac_c_werror_flag" ||
22095 test ! -s conftest.err
22096 } && test -s conftest.$ac_objext; then
22097 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22098 ac_cv_c_bigendian=yes
22100 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22101 if test "$ac_cv_c_bigendian" = unknown; then
22102 ac_cv_c_bigendian=no
22104 # finding both strings is unlikely to happen, but who knows?
22105 ac_cv_c_bigendian=unknown
22109 echo "$as_me: failed program was
:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22128 /* Are we little or big endian? From Harbison&Steele. */
22132 char c[sizeof (long int)];
22135 return u.c[sizeof (long int) - 1] == 1;
22141 rm -f conftest$ac_exeext
22142 if { (ac_try="$ac_link"
22143 case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_link") 2>&5
22150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22152 { (case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_try") 2>&5
22159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 ac_cv_c_bigendian=no
22163 echo "$as_me: program exited with status
$ac_status" >&5
22164 echo "$as_me: failed program was
:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ( exit $ac_status )
22168 ac_cv_c_bigendian=yes
22170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178 { echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
22179 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22180 case $ac_cv_c_bigendian in
22183 cat >>confdefs.h <<\_ACEOF
22184 #define WORDS_BIGENDIAN 1
22190 { { echo "$as_me:$LINENO: error
: unknown endianness
22191 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
22192 echo "$as_me: error
: unknown endianness
22193 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
22194 { (exit 1); exit 1; }; } ;;
22200 # Check whether right shifting a negative integer extends the sign bit
22201 # or fills with zeros (like the Cray J90, according to Tim Peters).
22202 { echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
22203 echo $ECHO_N "checking whether right
shift extends the sign bit...
$ECHO_C" >&6; }
22204 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22205 echo $ECHO_N "(cached
) $ECHO_C" >&6
22208 if test "$cross_compiling" = yes; then
22209 ac_cv_rshift_extends_sign=yes
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22220 exit(((-1)>>3 == -1) ? 0 : 1);
22224 rm -f conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>&5
22233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22235 { (case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_try") 2>&5
22242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22243 (exit $ac_status); }; }; then
22244 ac_cv_rshift_extends_sign=yes
22246 echo "$as_me: program exited with status
$ac_status" >&5
22247 echo "$as_me: failed program was
:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ( exit $ac_status )
22251 ac_cv_rshift_extends_sign=no
22253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22259 { echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
22260 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22261 if test "$ac_cv_rshift_extends_sign" = no
22264 cat >>confdefs.h <<\_ACEOF
22265 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22270 # check for getc_unlocked and related locking functions
22271 { echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
22272 echo $ECHO_N "checking
for getc_unlocked
() and friends...
$ECHO_C" >&6; }
22273 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22274 echo $ECHO_N "(cached
) $ECHO_C" >&6
22277 cat >conftest.$ac_ext <<_ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h. */
22288 FILE *f = fopen("/dev
/null
", "r
");
22297 rm -f conftest.$ac_objext conftest$ac_exeext
22298 if { (ac_try="$ac_link"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_link") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest$ac_exeext &&
22314 $as_test_x conftest$ac_exeext; then
22315 ac_cv_have_getc_unlocked=yes
22317 echo "$as_me: failed program was
:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_cv_have_getc_unlocked=no
22323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324 conftest$ac_exeext conftest.$ac_ext
22327 { echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
22328 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22329 if test "$ac_cv_have_getc_unlocked" = yes
22332 cat >>confdefs.h <<\_ACEOF
22333 #define HAVE_GETC_UNLOCKED 1
22338 # check where readline lives
22339 # save the value of LIBS so we don't actually link Python with readline
22340 LIBS_no_readline=$LIBS
22342 { echo "$as_me:$LINENO: checking
for readline
in -lreadline" >&5
22343 echo $ECHO_N "checking
for readline
in -lreadline...
$ECHO_C" >&6; }
22344 if test "${ac_cv_lib_readline_readline+set}" = set; then
22345 echo $ECHO_N "(cached
) $ECHO_C" >&6
22347 ac_check_lib_save_LIBS=$LIBS
22348 LIBS="-lreadline $LIBS"
22349 cat >conftest.$ac_ext <<_ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22366 return readline ();
22371 rm -f conftest.$ac_objext conftest$ac_exeext
22372 if { (ac_try="$ac_link"
22373 case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22378 (eval "$ac_link") 2>conftest.er1
22380 grep -v '^ *+' conftest.er1 >conftest.err
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22384 (exit $ac_status); } && {
22385 test -z "$ac_c_werror_flag" ||
22386 test ! -s conftest.err
22387 } && test -s conftest$ac_exeext &&
22388 $as_test_x conftest$ac_exeext; then
22389 ac_cv_lib_readline_readline=yes
22391 echo "$as_me: failed program was
:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 ac_cv_lib_readline_readline=no
22397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22398 conftest$ac_exeext conftest.$ac_ext
22399 LIBS=$ac_check_lib_save_LIBS
22401 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_readline" >&5
22402 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22403 if test $ac_cv_lib_readline_readline = yes; then
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_LIBREADLINE 1
22408 LIBS="-lreadline $LIBS"
22412 if test "$ac_cv_have_readline_readline" = no
22415 { echo "$as_me:$LINENO: checking
for readline
in -ltermcap" >&5
22416 echo $ECHO_N "checking
for readline
in -ltermcap...
$ECHO_C" >&6; }
22417 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22418 echo $ECHO_N "(cached
) $ECHO_C" >&6
22420 ac_check_lib_save_LIBS=$LIBS
22421 LIBS="-ltermcap $LIBS"
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22429 /* Override any GCC internal prototype to avoid an error.
22430 Use char because int might match the return type of a GCC
22431 builtin and then its argument prototype would still apply. */
22439 return readline ();
22444 rm -f conftest.$ac_objext conftest$ac_exeext
22445 if { (ac_try="$ac_link"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_link") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest$ac_exeext &&
22461 $as_test_x conftest$ac_exeext; then
22462 ac_cv_lib_termcap_readline=yes
22464 echo "$as_me: failed program was
:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 ac_cv_lib_termcap_readline=no
22470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22471 conftest$ac_exeext conftest.$ac_ext
22472 LIBS=$ac_check_lib_save_LIBS
22474 { echo "$as_me:$LINENO: result
: $ac_cv_lib_termcap_readline" >&5
22475 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22476 if test $ac_cv_lib_termcap_readline = yes; then
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_LIBTERMCAP 1
22481 LIBS="-ltermcap $LIBS"
22487 # check for readline 2.1
22488 { echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
22489 echo $ECHO_N "checking
for rl_callback_handler_install
in -lreadline...
$ECHO_C" >&6; }
22490 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22491 echo $ECHO_N "(cached
) $ECHO_C" >&6
22493 ac_check_lib_save_LIBS=$LIBS
22494 LIBS="-lreadline $LIBS"
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* Override any GCC internal prototype to avoid an error.
22503 Use char because int might match the return type of a GCC
22504 builtin and then its argument prototype would still apply. */
22508 char rl_callback_handler_install ();
22512 return rl_callback_handler_install ();
22517 rm -f conftest.$ac_objext conftest$ac_exeext
22518 if { (ac_try="$ac_link"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_link") 2>conftest.er1
22526 grep -v '^ *+' conftest.er1 >conftest.err
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22530 (exit $ac_status); } && {
22531 test -z "$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 } && test -s conftest$ac_exeext &&
22534 $as_test_x conftest$ac_exeext; then
22535 ac_cv_lib_readline_rl_callback_handler_install=yes
22537 echo "$as_me: failed program was
:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ac_cv_lib_readline_rl_callback_handler_install=no
22543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22544 conftest$ac_exeext conftest.$ac_ext
22545 LIBS=$ac_check_lib_save_LIBS
22547 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22548 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22549 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22551 cat >>confdefs.h <<\_ACEOF
22552 #define HAVE_RL_CALLBACK 1
22558 # check for readline 2.2
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 #include <readline/readline.h>
22567 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22573 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22575 grep -v '^ *+' conftest.er1 >conftest.err
22577 cat conftest.err >&5
22578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22579 (exit $ac_status); } >/dev/null && {
22580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22581 test ! -s conftest.err
22585 echo "$as_me: failed program was
:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22591 rm -f conftest.err conftest.$ac_ext
22592 if test $have_readline = yes
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600 #include <readline/readline.h>
22603 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22604 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22615 # check for readline 4.0
22616 { echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
22617 echo $ECHO_N "checking
for rl_pre_input_hook
in -lreadline...
$ECHO_C" >&6; }
22618 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22619 echo $ECHO_N "(cached
) $ECHO_C" >&6
22621 ac_check_lib_save_LIBS=$LIBS
22622 LIBS="-lreadline $LIBS"
22623 cat >conftest.$ac_ext <<_ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22630 /* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22636 char rl_pre_input_hook ();
22640 return rl_pre_input_hook ();
22645 rm -f conftest.$ac_objext conftest$ac_exeext
22646 if { (ac_try="$ac_link"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_link") 2>conftest.er1
22654 grep -v '^ *+' conftest.er1 >conftest.err
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest$ac_exeext &&
22662 $as_test_x conftest$ac_exeext; then
22663 ac_cv_lib_readline_rl_pre_input_hook=yes
22665 echo "$as_me: failed program was
:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22668 ac_cv_lib_readline_rl_pre_input_hook=no
22671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22672 conftest$ac_exeext conftest.$ac_ext
22673 LIBS=$ac_check_lib_save_LIBS
22675 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22676 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22677 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22679 cat >>confdefs.h <<\_ACEOF
22680 #define HAVE_RL_PRE_INPUT_HOOK 1
22687 { echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
22688 echo $ECHO_N "checking
for rl_completion_display_matches_hook
in -lreadline...
$ECHO_C" >&6; }
22689 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22690 echo $ECHO_N "(cached
) $ECHO_C" >&6
22692 ac_check_lib_save_LIBS=$LIBS
22693 LIBS="-lreadline $LIBS"
22694 cat >conftest.$ac_ext <<_ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22701 /* Override any GCC internal prototype to avoid an error.
22702 Use char because int might match the return type of a GCC
22703 builtin and then its argument prototype would still apply. */
22707 char rl_completion_display_matches_hook ();
22711 return rl_completion_display_matches_hook ();
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_link") 2>conftest.er1
22725 grep -v '^ *+' conftest.er1 >conftest.err
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext &&
22733 $as_test_x conftest$ac_exeext; then
22734 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22736 echo "$as_me: failed program was
:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22743 conftest$ac_exeext conftest.$ac_ext
22744 LIBS=$ac_check_lib_save_LIBS
22746 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22747 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22748 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22750 cat >>confdefs.h <<\_ACEOF
22751 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22757 # check for readline 4.2
22758 { echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
22759 echo $ECHO_N "checking
for rl_completion_matches
in -lreadline...
$ECHO_C" >&6; }
22760 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22761 echo $ECHO_N "(cached
) $ECHO_C" >&6
22763 ac_check_lib_save_LIBS=$LIBS
22764 LIBS="-lreadline $LIBS"
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22772 /* Override any GCC internal prototype to avoid an error.
22773 Use char because int might match the return type of a GCC
22774 builtin and then its argument prototype would still apply. */
22778 char rl_completion_matches ();
22782 return rl_completion_matches ();
22787 rm -f conftest.$ac_objext conftest$ac_exeext
22788 if { (ac_try="$ac_link"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_link") 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest$ac_exeext &&
22804 $as_test_x conftest$ac_exeext; then
22805 ac_cv_lib_readline_rl_completion_matches=yes
22807 echo "$as_me: failed program was
:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 ac_cv_lib_readline_rl_completion_matches=no
22813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22814 conftest$ac_exeext conftest.$ac_ext
22815 LIBS=$ac_check_lib_save_LIBS
22817 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
22818 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22819 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22821 cat >>confdefs.h <<\_ACEOF
22822 #define HAVE_RL_COMPLETION_MATCHES 1
22828 # also in readline 4.2
22829 cat >conftest.$ac_ext <<_ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22835 #include <readline/readline.h>
22837 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22843 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22845 grep -v '^ *+' conftest.er1 >conftest.err
22847 cat conftest.err >&5
22848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22849 (exit $ac_status); } >/dev/null && {
22850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22855 echo "$as_me: failed program was
:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22861 rm -f conftest.err conftest.$ac_ext
22862 if test $have_readline = yes
22864 cat >conftest.$ac_ext <<_ACEOF
22867 cat confdefs.h >>conftest.$ac_ext
22868 cat >>conftest.$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22870 #include <readline/readline.h>
22873 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22874 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
22876 cat >>confdefs.h <<\_ACEOF
22877 #define HAVE_RL_CATCH_SIGNAL 1
22885 # End of readline checks: restore LIBS
22886 LIBS=$LIBS_no_readline
22888 { echo "$as_me:$LINENO: checking
for broken nice
()" >&5
22889 echo $ECHO_N "checking
for broken nice
()...
$ECHO_C" >&6; }
22890 if test "${ac_cv_broken_nice+set}" = set; then
22891 echo $ECHO_N "(cached
) $ECHO_C" >&6
22894 if test "$cross_compiling" = yes; then
22895 ac_cv_broken_nice=no
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22906 int val1 = nice(1);
22907 if (val1 != -1 && val1 == nice(2))
22913 rm -f conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_link") 2>&5
22922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22924 { (case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_try") 2>&5
22931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 ac_cv_broken_nice=yes
22935 echo "$as_me: program exited with status
$ac_status" >&5
22936 echo "$as_me: failed program was
:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ( exit $ac_status )
22940 ac_cv_broken_nice=no
22942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22948 { echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
22949 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22950 if test "$ac_cv_broken_nice" = yes
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_BROKEN_NICE 1
22959 { echo "$as_me:$LINENO: checking
for broken poll
()" >&5
22960 echo $ECHO_N "checking
for broken poll
()...
$ECHO_C" >&6; }
22961 if test "$cross_compiling" = yes; then
22962 ac_cv_broken_poll=no
22964 cat >conftest.$ac_ext <<_ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22975 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22979 int poll_test = poll (&poll_struct, 1, 0);
22985 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22996 rm -f conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>&5
23005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23007 { (case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_try") 2>&5
23014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016 ac_cv_broken_poll=yes
23018 echo "$as_me: program exited with status
$ac_status" >&5
23019 echo "$as_me: failed program was
:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ( exit $ac_status )
23023 ac_cv_broken_poll=no
23025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23029 { echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
23030 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23031 if test "$ac_cv_broken_poll" = yes
23034 cat >>confdefs.h <<\_ACEOF
23035 #define HAVE_BROKEN_POLL 1
23040 # Before we can test tzset, we need to check if struct tm has a tm_zone
23041 # (which is not required by ISO C or UNIX spec) and/or if we support
23043 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
23044 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
23045 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23046 echo $ECHO_N "(cached
) $ECHO_C" >&6
23048 cat >conftest.$ac_ext <<_ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23054 #include <sys/types.h>
23055 #include <$ac_cv_struct_tm>
23061 static struct tm ac_aggr;
23062 if (ac_aggr.tm_zone)
23068 rm -f conftest.$ac_objext
23069 if { (ac_try="$ac_compile"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23077 grep -v '^ *+' conftest.er1 >conftest.err
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23085 ac_cv_member_struct_tm_tm_zone=yes
23087 echo "$as_me: failed program was
:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 #include <sys/types.h>
23097 #include <$ac_cv_struct_tm>
23103 static struct tm ac_aggr;
23104 if (sizeof ac_aggr.tm_zone)
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23119 grep -v '^ *+' conftest.er1 >conftest.err
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23123 (exit $ac_status); } && {
23124 test -z "$ac_c_werror_flag" ||
23125 test ! -s conftest.err
23126 } && test -s conftest.$ac_objext; then
23127 ac_cv_member_struct_tm_tm_zone=yes
23129 echo "$as_me: failed program was
:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 ac_cv_member_struct_tm_tm_zone=no
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23140 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
23141 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23142 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23144 cat >>confdefs.h <<_ACEOF
23145 #define HAVE_STRUCT_TM_TM_ZONE 1
23151 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23153 cat >>confdefs.h <<\_ACEOF
23154 #define HAVE_TM_ZONE 1
23158 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
23159 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
23160 if test "${ac_cv_have_decl_tzname+set}" = set; then
23161 echo $ECHO_N "(cached
) $ECHO_C" >&6
23163 cat >conftest.$ac_ext <<_ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23191 grep -v '^ *+' conftest.er1 >conftest.err
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_cv_have_decl_tzname=yes
23201 echo "$as_me: failed program was
:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_cv_have_decl_tzname=no
23207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23209 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
23210 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23211 if test $ac_cv_have_decl_tzname = yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_DECL_TZNAME 1
23219 cat >>confdefs.h <<_ACEOF
23220 #define HAVE_DECL_TZNAME 0
23227 { echo "$as_me:$LINENO: checking
for tzname
" >&5
23228 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
23229 if test "${ac_cv_var_tzname+set}" = set; then
23230 echo $ECHO_N "(cached
) $ECHO_C" >&6
23232 cat >conftest.$ac_ext <<_ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23239 #if !HAVE_DECL_TZNAME
23240 extern char *tzname[];
23246 return tzname[0][0];
23251 rm -f conftest.$ac_objext conftest$ac_exeext
23252 if { (ac_try="$ac_link"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23258 (eval "$ac_link") 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23264 (exit $ac_status); } && {
23265 test -z "$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23267 } && test -s conftest$ac_exeext &&
23268 $as_test_x conftest$ac_exeext; then
23269 ac_cv_var_tzname=yes
23271 echo "$as_me: failed program was
:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ac_cv_var_tzname=no
23277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23278 conftest$ac_exeext conftest.$ac_ext
23280 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
23281 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23282 if test $ac_cv_var_tzname = yes; then
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_TZNAME 1
23292 # check tzset(3) exists and works like we expect it to
23293 { echo "$as_me:$LINENO: checking
for working tzset
()" >&5
23294 echo $ECHO_N "checking
for working tzset
()...
$ECHO_C" >&6; }
23295 if test "${ac_cv_working_tzset+set}" = set; then
23296 echo $ECHO_N "(cached
) $ECHO_C" >&6
23299 if test "$cross_compiling" = yes; then
23300 ac_cv_working_tzset=no
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23309 #include <stdlib.h>
23311 #include <string.h>
23314 extern char *tzname[];
23319 /* Note that we need to ensure that not only does tzset(3)
23320 do 'something' with localtime, but it works as documented
23321 in the library reference and as expected by the test suite.
23322 This includes making sure that tzname is set properly if
23323 tm->tm_zone does not exist since it is the alternative way
23324 of getting timezone info.
23326 Red Hat 6.2 doesn't understand the southern hemisphere
23327 after New Year's Day.
23330 time_t groundhogday = 1044144000; /* GMT-based */
23331 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23333 putenv("TZ
=UTC
+0");
23335 if (localtime(&groundhogday)->tm_hour != 0)
23338 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23339 if (strcmp(tzname[0], "UTC
") ||
23340 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23344 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
23346 if (localtime(&groundhogday)->tm_hour != 19)
23349 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
23353 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
23355 if (localtime(&groundhogday)->tm_hour != 11)
23358 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
23362 #if HAVE_STRUCT_TM_TM_ZONE
23363 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
23365 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
23373 rm -f conftest$ac_exeext
23374 if { (ac_try="$ac_link"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23380 (eval "$ac_link") 2>&5
23382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23384 { (case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23389 (eval "$ac_try") 2>&5
23391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23392 (exit $ac_status); }; }; then
23393 ac_cv_working_tzset=yes
23395 echo "$as_me: program exited with status
$ac_status" >&5
23396 echo "$as_me: failed program was
:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ( exit $ac_status )
23400 ac_cv_working_tzset=no
23402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23408 { echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
23409 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23410 if test "$ac_cv_working_tzset" = yes
23413 cat >>confdefs.h <<\_ACEOF
23414 #define HAVE_WORKING_TZSET 1
23419 # Look for subsecond timestamps in struct stat
23420 { echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
23421 echo $ECHO_N "checking
for tv_nsec
in struct stat...
$ECHO_C" >&6; }
23422 if test "${ac_cv_stat_tv_nsec+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. */
23431 #include <sys/stat.h>
23437 st.st_mtim.tv_nsec = 1;
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_compile") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1 >conftest.err
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest.$ac_objext; then
23460 ac_cv_stat_tv_nsec=yes
23462 echo "$as_me: failed program was
:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ac_cv_stat_tv_nsec=no
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
23472 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23473 if test "$ac_cv_stat_tv_nsec" = yes
23476 cat >>confdefs.h <<\_ACEOF
23477 #define HAVE_STAT_TV_NSEC 1
23482 # Look for BSD style subsecond timestamps in struct stat
23483 { echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
23484 echo $ECHO_N "checking
for tv_nsec2
in struct stat...
$ECHO_C" >&6; }
23485 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23486 echo $ECHO_N "(cached
) $ECHO_C" >&6
23488 cat >conftest.$ac_ext <<_ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 #include <sys/stat.h>
23500 st.st_mtimespec.tv_nsec = 1;
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23515 grep -v '^ *+' conftest.er1 >conftest.err
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_stat_tv_nsec2=yes
23525 echo "$as_me: failed program was
:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_stat_tv_nsec2=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
23535 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23536 if test "$ac_cv_stat_tv_nsec2" = yes
23539 cat >>confdefs.h <<\_ACEOF
23540 #define HAVE_STAT_TV_NSEC2 1
23545 # On HP/UX 11.0, mvwdelch is a block with a return statement
23546 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
23547 echo $ECHO_N "checking whether mvwdelch is an expression...
$ECHO_C" >&6; }
23548 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23549 echo $ECHO_N "(cached
) $ECHO_C" >&6
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 #include <curses.h>
23563 rtn = mvwdelch(0,0,0);
23569 rm -f conftest.$ac_objext
23570 if { (ac_try="$ac_compile"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_compile") 2>conftest.er1
23578 grep -v '^ *+' conftest.er1 >conftest.err
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23582 (exit $ac_status); } && {
23583 test -z "$ac_c_werror_flag" ||
23584 test ! -s conftest.err
23585 } && test -s conftest.$ac_objext; then
23586 ac_cv_mvwdelch_is_expression=yes
23588 echo "$as_me: failed program was
:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23591 ac_cv_mvwdelch_is_expression=no
23594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 { echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
23598 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23600 if test "$ac_cv_mvwdelch_is_expression" = yes
23603 cat >>confdefs.h <<\_ACEOF
23604 #define MVWDELCH_IS_EXPRESSION 1
23609 { echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
23610 echo $ECHO_N "checking whether WINDOW has _flags...
$ECHO_C" >&6; }
23611 if test "${ac_cv_window_has_flags+set}" = set; then
23612 echo $ECHO_N "(cached
) $ECHO_C" >&6
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 #include <curses.h>
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23641 grep -v '^ *+' conftest.er1 >conftest.err
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_cv_window_has_flags=yes
23651 echo "$as_me: failed program was
:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_cv_window_has_flags=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 { echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
23661 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23664 if test "$ac_cv_window_has_flags" = yes
23667 cat >>confdefs.h <<\_ACEOF
23668 #define WINDOW_HAS_FLAGS 1
23673 { echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
23674 echo $ECHO_N "checking
for is_term_resized...
$ECHO_C" >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 #include <curses.h>
23685 void *x=is_term_resized
23690 rm -f conftest.$ac_objext
23691 if { (ac_try="$ac_compile"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_compile") 2>conftest.er1
23699 grep -v '^ *+' conftest.er1 >conftest.err
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23703 (exit $ac_status); } && {
23704 test -z "$ac_c_werror_flag" ||
23705 test ! -s conftest.err
23706 } && test -s conftest.$ac_objext; then
23708 cat >>confdefs.h <<\_ACEOF
23709 #define HAVE_CURSES_IS_TERM_RESIZED 1
23712 { echo "$as_me:$LINENO: result
: yes" >&5
23713 echo "${ECHO_T}yes" >&6; }
23715 echo "$as_me: failed program was
:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23718 { echo "$as_me:$LINENO: result
: no
" >&5
23719 echo "${ECHO_T}no
" >&6; }
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { echo "$as_me:$LINENO: checking
for resize_term
" >&5
23726 echo $ECHO_N "checking
for resize_term...
$ECHO_C" >&6; }
23727 cat >conftest.$ac_ext <<_ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 #include <curses.h>
23737 void *x=resize_term
23742 rm -f conftest.$ac_objext
23743 if { (ac_try="$ac_compile"
23744 case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23751 grep -v '^ *+' conftest.er1 >conftest.err
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23760 cat >>confdefs.h <<\_ACEOF
23761 #define HAVE_CURSES_RESIZE_TERM 1
23764 { echo "$as_me:$LINENO: result
: yes" >&5
23765 echo "${ECHO_T}yes" >&6; }
23767 echo "$as_me: failed program was
:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 { echo "$as_me:$LINENO: result
: no
" >&5
23771 echo "${ECHO_T}no
" >&6; }
23775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777 { echo "$as_me:$LINENO: checking
for resizeterm
" >&5
23778 echo $ECHO_N "checking
for resizeterm...
$ECHO_C" >&6; }
23779 cat >conftest.$ac_ext <<_ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 #include <curses.h>
23794 rm -f conftest.$ac_objext
23795 if { (ac_try="$ac_compile"
23796 case "(($ac_try" in
23797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798 *) ac_try_echo=$ac_try;;
23800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23812 cat >>confdefs.h <<\_ACEOF
23813 #define HAVE_CURSES_RESIZETERM 1
23816 { echo "$as_me:$LINENO: result
: yes" >&5
23817 echo "${ECHO_T}yes" >&6; }
23819 echo "$as_me: failed program was
:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 { echo "$as_me:$LINENO: result
: no
" >&5
23823 echo "${ECHO_T}no
" >&6; }
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
23830 echo $ECHO_N "checking
for /dev
/ptmx...
$ECHO_C" >&6; }
23832 if test -r /dev/ptmx
23834 { echo "$as_me:$LINENO: result
: yes" >&5
23835 echo "${ECHO_T}yes" >&6; }
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_DEV_PTMX 1
23842 { echo "$as_me:$LINENO: result
: no
" >&5
23843 echo "${ECHO_T}no
" >&6; }
23846 { echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
23847 echo $ECHO_N "checking
for /dev
/ptc...
$ECHO_C" >&6; }
23849 if test -r /dev/ptc
23851 { echo "$as_me:$LINENO: result
: yes" >&5
23852 echo "${ECHO_T}yes" >&6; }
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_DEV_PTC 1
23859 { echo "$as_me:$LINENO: result
: no
" >&5
23860 echo "${ECHO_T}no
" >&6; }
23863 { echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
23864 echo $ECHO_N "checking
for %zd
printf() format support...
$ECHO_C" >&6; }
23865 if test "$cross_compiling" = yes; then
23866 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
23867 See \
`config.log' for more details." >&5
23868 echo "$as_me: error: cannot run test program while cross compiling
23869 See \`config.log
' for more details." >&2;}
23870 { (exit 1); exit 1; }; }
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23879 #include <stddef.h>
23880 #include <string.h>
23882 #ifdef HAVE_SYS_TYPES_H
23883 #include <sys/types.h>
23886 #ifdef HAVE_SSIZE_T
23887 typedef ssize_t Py_ssize_t;
23888 #elif SIZEOF_VOID_P == SIZEOF_LONG
23889 typedef long Py_ssize_t;
23891 typedef int Py_ssize_t;
23898 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23901 if (strcmp(buffer, "123"))
23904 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23907 if (strcmp(buffer, "-123"))
23913 rm -f conftest$ac_exeext
23914 if { (ac_try="$ac_link"
23915 case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_link") 2>&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23924 { (case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929 (eval "$ac_try") 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23933 { echo "$as_me:$LINENO: result: yes" >&5
23934 echo "${ECHO_T}yes" >&6; }
23936 cat >>confdefs.h <<\_ACEOF
23937 #define PY_FORMAT_SIZE_T "z"
23941 echo "$as_me: program exited with status $ac_status" >&5
23942 echo "$as_me: failed program was:" >&5
23943 sed 's
/^
/|
/' conftest.$ac_ext >&5
23945 ( exit $ac_status )
23946 { echo "$as_me:$LINENO: result: no" >&5
23947 echo "${ECHO_T}no" >&6; }
23949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23954 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23955 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23956 if test "${ac_cv_type_socklen_t+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23959 cat >conftest.$ac_ext <<_ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23966 #ifdef HAVE_SYS_TYPES_H
23967 #include <sys/types.h>
23969 #ifdef HAVE_SYS_SOCKET_H
23970 #include <sys/socket.h>
23974 typedef socklen_t ac__type_new_;
23978 if ((ac__type_new_ *) 0)
23980 if (sizeof (ac__type_new_))
23986 rm -f conftest.$ac_objext
23987 if { (ac_try="$ac_compile"
23988 case "(($ac_try" in
23989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23990 *) ac_try_echo=$ac_try;;
23992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23995 grep -v '^
*+' conftest.er1 >conftest.err
23997 cat conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 ac_cv_type_socklen_t=yes
24005 echo "$as_me: failed program was:" >&5
24006 sed 's
/^
/|
/' conftest.$ac_ext >&5
24008 ac_cv_type_socklen_t=no
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24014 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24015 if test $ac_cv_type_socklen_t = yes; then
24019 cat >>confdefs.h <<\_ACEOF
24020 #define socklen_t int
24028 for h in `(cd $srcdir;echo Python/thread_*.h)`
24030 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24034 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24035 { echo "$as_me:$LINENO: checking for build directories" >&5
24036 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24037 for dir in $SRCDIRS; do
24038 if test ! -d $dir; then
24042 { echo "$as_me:$LINENO: result: done" >&5
24043 echo "${ECHO_T}done" >&6; }
24045 # generate output files
24046 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24048 cat >confcache <<\_ACEOF
24049 # This file is a shell script that caches the results of configure
24050 # tests run on this system so they can be shared between configure
24051 # scripts and configure runs, see configure's option
--config-cache.
24052 # It is not useful on other systems. If it contains results you don't
24053 # want to keep, you may remove or edit it.
24055 # config.status only pays attention to the cache file if you give it
24056 # the --recheck option to rerun configure.
24058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24060 # following values.
24064 # The following way of writing the cache mishandles newlines in values,
24065 # but we know of no workaround that is simple, portable, and efficient.
24066 # So, we kill variables containing newlines.
24067 # Ultrix sh set writes to stderr and can't be redirected directly,
24068 # and sets the high bit in the cache file unless we assign to the vars.
24070 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24071 eval ac_val
=\$
$ac_var
24075 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24076 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24079 _ | IFS | as_nl
) ;; #(
24080 *) $as_unset $ac_var ;;
24086 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24087 *${as_nl}ac_space
=\
*)
24088 # `set' does not quote correctly, so add quotes (double-quote
24089 # substitution turns \\\\ into \\, and sed turns \\ into \).
24092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24095 # `set' quotes correctly as required by POSIX, so do not add quotes.
24096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24107 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24109 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24110 if test -w "$cache_file"; then
24111 test "x$cache_file" != "x/dev/null" &&
24112 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24113 echo "$as_me: updating cache $cache_file" >&6;}
24114 cat confcache
>$cache_file
24116 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24117 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24122 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24123 # Let make expand exec_prefix.
24124 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24126 DEFS
=-DHAVE_CONFIG_H
24130 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24131 # 1. Remove the extension, and $U if already installed.
24132 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24133 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24134 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24135 # will be set to the directory where LIBOBJS objects are built.
24136 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24137 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24139 LIBOBJS
=$ac_libobjs
24141 LTLIBOBJS
=$ac_ltlibobjs
24145 : ${CONFIG_STATUS=./config.status}
24146 ac_clean_files_save
=$ac_clean_files
24147 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24148 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24149 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24150 cat >$CONFIG_STATUS <<_ACEOF
24152 # Generated by $as_me.
24153 # Run this file to recreate the current configuration.
24154 # Compiler output produced by configure, useful for debugging
24155 # configure, is in config.log if it exists.
24158 ac_cs_recheck=false
24160 SHELL=\${CONFIG_SHELL-$SHELL}
24163 cat >>$CONFIG_STATUS <<\_ACEOF
24164 ## --------------------- ##
24165 ## M4sh Initialization. ##
24166 ## --------------------- ##
24168 # Be more Bourne compatible
24169 DUALCASE
=1; export DUALCASE
# for MKS sh
24170 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24173 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24174 # is contrary to our usage. Disable this feature.
24175 alias -g '${1+"$@"}'='"$@"'
24176 setopt NO_GLOB_SUBST
24178 case `(set -o) 2>/dev/null` in
24179 *posix
*) set -o posix
;;
24188 # Avoid depending upon Character Ranges.
24189 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24190 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24191 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24192 as_cr_digits
='0123456789'
24193 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24195 # The user is always right.
24196 if test "${PATH_SEPARATOR+set}" != set; then
24197 echo "#! /bin/sh" >conf$$.sh
24198 echo "exit 0" >>conf$$.sh
24200 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24208 # Support unset when possible.
24209 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24217 # We need space, tab and new line, in precisely that order. Quoting is
24218 # there to prevent editors from complaining about space-tab.
24219 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24220 # splitting by setting IFS to empty value.)
24225 # Find who we are. Look in the path if we contain no directory separator.
24227 *[\\/]* ) as_myself
=$0 ;;
24228 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24229 for as_dir
in $PATH
24232 test -z "$as_dir" && as_dir
=.
24233 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24239 # We did not find ourselves, most probably we were run as `sh COMMAND'
24240 # in which case we are not to be found in the path.
24241 if test "x$as_myself" = x
; then
24244 if test ! -f "$as_myself"; then
24245 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24246 { (exit 1); exit 1; }
24249 # Work around bugs in pre-3.0 UWIN ksh.
24250 for as_var
in ENV MAIL MAILPATH
24251 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24259 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24260 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24261 LC_TELEPHONE LC_TIME
24263 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24264 eval $as_var=C
; export $as_var
24266 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24270 # Required to use basename.
24271 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24272 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24278 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24279 as_basename
=basename
24285 # Name of the executable.
24286 as_me
=`$as_basename -- "$0" ||
24287 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24288 X"$0" : 'X\(//\)$' \| \
24289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24291 sed '/^.*\/\([^/][^/]*\)\/*$/{
24310 as_lineno_1
=$LINENO
24311 as_lineno_2
=$LINENO
24312 test "x$as_lineno_1" != "x$as_lineno_2" &&
24313 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24315 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24316 # uniformly replaced by the line number. The first 'sed' inserts a
24317 # line-number line after each line using $LINENO; the second 'sed'
24318 # does the real work. The second script uses 'N' to pair each
24319 # line-number line with the line containing $LINENO, and appends
24320 # trailing '-' during substitution so that $LINENO is not a special
24321 # case at line end.
24322 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24323 # scripts with optimization help from Paolo Bonzini. Blame Lee
24324 # E. McMahon (1931-1989) for sed's syntax. :-)
24336 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24339 ' >$as_me.lineno
&&
24340 chmod +x
"$as_me.lineno" ||
24341 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24342 { (exit 1); exit 1; }; }
24344 # Don't try to exec as it changes $[0], causing all sort of problems
24345 # (the dirname of $[0] is not the place where we might find the
24346 # original and so on. Autoconf is especially sensitive to this).
24347 .
"./$as_me.lineno"
24348 # Exit status is that of the last command.
24353 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24359 ECHO_C
= ECHO_N
= ECHO_T
=
24360 case `echo -n x` in
24362 case `echo 'x\c'` in
24363 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24370 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24371 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24377 rm -f conf$$ conf$$.exe conf$$.
file
24378 if test -d conf$$.dir
; then
24379 rm -f conf$$.dir
/conf$$.
file
24385 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24387 # ... but there are two gotchas:
24388 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24389 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24390 # In both cases, we have to default to `cp -p'.
24391 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24393 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24398 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24399 rmdir conf$$.dir
2>/dev
/null
24401 if mkdir
-p .
2>/dev
/null
; then
24404 test -d .
/-p && rmdir .
/-p
24408 if test -x / >/dev
/null
2>&1; then
24409 as_test_x
='test -x'
24411 if ls -dL / >/dev
/null
2>&1; then
24418 if test -d "$1"; then
24424 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24425 ???[sx]*):;;*)false;;esac;fi
24429 as_executable_p
=$as_test_x
24431 # Sed expression to map a string onto a valid CPP name.
24432 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24434 # Sed expression to map a string onto a valid variable name.
24435 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24440 # Save the log message, to keep $[0] and so on meaningful, and to
24441 # report actual input values of CONFIG_FILES etc. instead of their
24442 # values after options handling.
24444 This file was extended by python $as_me 2.6, which was
24445 generated by GNU Autoconf 2.61. Invocation command line was
24447 CONFIG_FILES = $CONFIG_FILES
24448 CONFIG_HEADERS = $CONFIG_HEADERS
24449 CONFIG_LINKS = $CONFIG_LINKS
24450 CONFIG_COMMANDS = $CONFIG_COMMANDS
24453 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24458 cat >>$CONFIG_STATUS <<_ACEOF
24459 # Files that config.status was made for.
24460 config_files="$ac_config_files"
24461 config_headers="$ac_config_headers"
24465 cat >>$CONFIG_STATUS <<\_ACEOF
24467 \`$as_me' instantiates files from templates according to the
24468 current configuration.
24470 Usage: $0 [OPTIONS] [FILE]...
24472 -h, --help print this help, then exit
24473 -V, --version print version number and configuration settings, then exit
24474 -q, --quiet do not print progress messages
24475 -d, --debug don't remove temporary files
24476 --recheck update $as_me by reconfiguring in the same conditions
24477 --file=FILE[:TEMPLATE]
24478 instantiate the configuration file FILE
24479 --header=FILE[:TEMPLATE]
24480 instantiate the configuration header FILE
24482 Configuration files:
24485 Configuration headers:
24488 Report bugs to <bug-autoconf@gnu.org>."
24491 cat >>$CONFIG_STATUS <<_ACEOF
24493 python config.status 2.6
24494 configured by $0, generated by GNU Autoconf 2.61,
24495 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24497 Copyright (C) 2006 Free Software Foundation, Inc.
24498 This config.status script is free software; the Free Software Foundation
24499 gives unlimited permission to copy, distribute and modify it."
24506 cat >>$CONFIG_STATUS <<\_ACEOF
24507 # If no file are specified by the user, then we need to provide default
24508 # value. By we need to know if files were specified by the user.
24514 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24515 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24526 # Handling of the options.
24527 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24529 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24530 echo "$ac_cs_version"; exit ;;
24531 --debug |
--debu |
--deb |
--de |
--d |
-d )
24533 --file |
--fil |
--fi |
--f )
24535 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24536 ac_need_defaults
=false
;;
24537 --header |
--heade |
--head |
--hea )
24539 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24540 ac_need_defaults
=false
;;
24542 # Conflict between --help and --header
24543 { echo "$as_me: error: ambiguous option: $1
24544 Try \`$0 --help' for more information." >&2
24545 { (exit 1); exit 1; }; };;
24546 --help |
--hel |
-h )
24547 echo "$ac_cs_usage"; exit ;;
24548 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24549 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24552 # This is an error.
24553 -*) { echo "$as_me: error: unrecognized option: $1
24554 Try \`$0 --help' for more information." >&2
24555 { (exit 1); exit 1; }; } ;;
24557 *) ac_config_targets
="$ac_config_targets $1"
24558 ac_need_defaults
=false
;;
24564 ac_configure_extra_args
=
24566 if $ac_cs_silent; then
24568 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24572 cat >>$CONFIG_STATUS <<_ACEOF
24573 if \$ac_cs_recheck; then
24574 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24575 CONFIG_SHELL=$SHELL
24576 export CONFIG_SHELL
24577 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24581 cat >>$CONFIG_STATUS <<\_ACEOF
24585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24586 ## Running $as_me. ##
24592 cat >>$CONFIG_STATUS <<_ACEOF
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24597 # Handling of arguments.
24598 for ac_config_target
in $ac_config_targets
24600 case $ac_config_target in
24601 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
24602 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
24603 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24604 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24605 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24606 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24607 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
24608 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
24610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24612 { (exit 1); exit 1; }; };;
24617 # If the user did not use the arguments to specify the items to instantiate,
24618 # then the envvar interface is used. Set only those that are not.
24619 # We use the long form for the default assignment because of an extremely
24620 # bizarre bug on SunOS 4.1.3.
24621 if $ac_need_defaults; then
24622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24626 # Have a temporary directory for convenience. Make it in the build tree
24627 # simply because there is no reason against having it here, and in addition,
24628 # creating and moving files from /tmp can sometimes cause problems.
24629 # Hook for its removal unless debugging.
24630 # Note that there is a small window in which the directory will not be cleaned:
24631 # after its creation but before its name has been assigned to `$tmp'.
24635 trap 'exit_status=$?
24636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24638 trap '{ (exit 1); exit 1; }' 1 2 13 15
24640 # Create a (secure) tmp directory for tmp files.
24643 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24644 test -n "$tmp" && test -d "$tmp"
24647 tmp
=.
/conf$$
-$RANDOM
24648 (umask 077 && mkdir
"$tmp")
24651 echo "$me: cannot create a temporary directory in ." >&2
24652 { (exit 1); exit 1; }
24656 # Set up the sed scripts for CONFIG_FILES section.
24659 # No need to generate the scripts if there are no CONFIG_FILES.
24660 # This happens for instance when ./config.status config.h
24661 if test -n "$CONFIG_FILES"; then
24668 for ac_last_try
in false false false false false
:; do
24669 cat >conf$
$subs.
sed <<_ACEOF
24670 SHELL!$SHELL$ac_delim
24671 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24672 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24673 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24674 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24675 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24676 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24677 exec_prefix!$exec_prefix$ac_delim
24678 prefix!$prefix$ac_delim
24679 program_transform_name!$program_transform_name$ac_delim
24680 bindir!$bindir$ac_delim
24681 sbindir!$sbindir$ac_delim
24682 libexecdir!$libexecdir$ac_delim
24683 datarootdir!$datarootdir$ac_delim
24684 datadir!$datadir$ac_delim
24685 sysconfdir!$sysconfdir$ac_delim
24686 sharedstatedir!$sharedstatedir$ac_delim
24687 localstatedir!$localstatedir$ac_delim
24688 includedir!$includedir$ac_delim
24689 oldincludedir!$oldincludedir$ac_delim
24690 docdir!$docdir$ac_delim
24691 infodir!$infodir$ac_delim
24692 htmldir!$htmldir$ac_delim
24693 dvidir!$dvidir$ac_delim
24694 pdfdir!$pdfdir$ac_delim
24695 psdir!$psdir$ac_delim
24696 libdir!$libdir$ac_delim
24697 localedir!$localedir$ac_delim
24698 mandir!$mandir$ac_delim
24699 DEFS!$DEFS$ac_delim
24700 ECHO_C!$ECHO_C$ac_delim
24701 ECHO_N!$ECHO_N$ac_delim
24702 ECHO_T!$ECHO_T$ac_delim
24703 LIBS!$LIBS$ac_delim
24704 build_alias!$build_alias$ac_delim
24705 host_alias!$host_alias$ac_delim
24706 target_alias!$target_alias$ac_delim
24707 VERSION!$VERSION$ac_delim
24708 SOVERSION!$SOVERSION$ac_delim
24709 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24710 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24711 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24712 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24713 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24714 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24715 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24716 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24717 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24718 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24719 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24720 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24721 MACHDEP!$MACHDEP$ac_delim
24722 SGI_ABI!$SGI_ABI$ac_delim
24723 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24724 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24725 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24726 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24728 CFLAGS!$CFLAGS$ac_delim
24729 LDFLAGS!$LDFLAGS$ac_delim
24730 CPPFLAGS!$CPPFLAGS$ac_delim
24731 ac_ct_CC!$ac_ct_CC$ac_delim
24732 EXEEXT!$EXEEXT$ac_delim
24733 OBJEXT!$OBJEXT$ac_delim
24735 MAINCC!$MAINCC$ac_delim
24737 GREP!$GREP$ac_delim
24738 EGREP!$EGREP$ac_delim
24739 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24740 LIBRARY!$LIBRARY$ac_delim
24741 LDLIBRARY!$LDLIBRARY$ac_delim
24742 DLLLIBRARY!$DLLLIBRARY$ac_delim
24743 BLDLIBRARY!$BLDLIBRARY$ac_delim
24744 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24745 INSTSONAME!$INSTSONAME$ac_delim
24746 RUNSHARED!$RUNSHARED$ac_delim
24747 LINKCC!$LINKCC$ac_delim
24748 RANLIB!$RANLIB$ac_delim
24750 SVNVERSION!$SVNVERSION$ac_delim
24751 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24752 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24753 INSTALL_DATA!$INSTALL_DATA$ac_delim
24756 BASECFLAGS!$BASECFLAGS$ac_delim
24757 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24758 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24760 LDSHARED!$LDSHARED$ac_delim
24761 BLDSHARED!$BLDSHARED$ac_delim
24762 CCSHARED!$CCSHARED$ac_delim
24763 LINKFORSHARED!$LINKFORSHARED$ac_delim
24764 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24765 SHLIBS!$SHLIBS$ac_delim
24766 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24771 elif $ac_last_try; then
24772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24774 { (exit 1); exit 1; }; }
24776 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24780 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24781 if test -n "$ac_eof"; then
24782 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24783 ac_eof
=`expr $ac_eof + 1`
24786 cat >>$CONFIG_STATUS <<_ACEOF
24787 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24792 s/^/s,@/; s/!/@,|#_!!_#|/
24795 s/'"$ac_delim"'$/,g/; t
24797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24798 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24799 rm -f conf$
$subs.
sed
24800 cat >>$CONFIG_STATUS <<_ACEOF
24806 for ac_last_try
in false false false false false
:; do
24807 cat >conf$
$subs.
sed <<_ACEOF
24808 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24809 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24810 LDLAST!$LDLAST$ac_delim
24811 THREADOBJ!$THREADOBJ$ac_delim
24812 DLINCLDIR!$DLINCLDIR$ac_delim
24813 DYNLOADFILE!$DYNLOADFILE$ac_delim
24814 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24815 TRUE!$TRUE$ac_delim
24816 LIBOBJS!$LIBOBJS$ac_delim
24817 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24818 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24819 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24820 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24821 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24822 LIBM!$LIBM$ac_delim
24823 LIBC!$LIBC$ac_delim
24824 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24825 THREADHEADERS!$THREADHEADERS$ac_delim
24826 SRCDIRS!$SRCDIRS$ac_delim
24827 LTLIBOBJS!$LTLIBOBJS$ac_delim
24830 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
24832 elif $ac_last_try; then
24833 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24834 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24835 { (exit 1); exit 1; }; }
24837 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24841 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24842 if test -n "$ac_eof"; then
24843 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24844 ac_eof
=`expr $ac_eof + 1`
24847 cat >>$CONFIG_STATUS <<_ACEOF
24848 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24852 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24853 s/^/s,@/; s/!/@,|#_!!_#|/
24856 s/'"$ac_delim"'$/,g/; t
24858 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24859 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24860 rm -f conf$
$subs.
sed
24861 cat >>$CONFIG_STATUS <<_ACEOF
24868 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24869 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24870 # trailing colons and then remove the whole line if VPATH becomes empty
24871 # (actually we leave an empty line to preserve line numbers).
24872 if test "x$srcdir" = x.
; then
24873 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24874 s/:*\$(srcdir):*/:/
24875 s/:*\${srcdir}:*/:/
24877 s/^\([^=]*=[ ]*\):*/\1/
24883 cat >>$CONFIG_STATUS <<\_ACEOF
24884 fi # test -n "$CONFIG_FILES"
24887 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
24890 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24892 case $ac_mode$ac_tag in
24894 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24895 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24896 { (exit 1); exit 1; }; };;
24897 :[FH
]-) ac_tag
=-:-;;
24898 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24915 -) ac_f
="$tmp/stdin";;
24916 *) # Look for the file first in the build tree, then in the source tree
24917 # (if the path is not absolute). The absolute path cannot be DOS-style,
24918 # because $ac_f cannot contain `:'.
24922 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24924 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24925 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24926 { (exit 1); exit 1; }; };;
24928 ac_file_inputs
="$ac_file_inputs $ac_f"
24931 # Let's still pretend it is `configure' which instantiates (i.e., don't
24932 # use $as_me), people would be surprised to read:
24933 # /* config.h. Generated by config.status. */
24934 configure_input
="Generated from "`IFS=:
24935 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24936 if test x
"$ac_file" != x-
; then
24937 configure_input
="$ac_file. $configure_input"
24938 { echo "$as_me:$LINENO: creating $ac_file" >&5
24939 echo "$as_me: creating $ac_file" >&6;}
24943 *:-:* |
*:-) cat >"$tmp/stdin";;
24948 ac_dir
=`$as_dirname -- "$ac_file" ||
24949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24950 X"$ac_file" : 'X\(//\)[^/]' \| \
24951 X"$ac_file" : 'X\(//\)$' \| \
24952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24958 /^X\(\/\/\)[^/].*/{
24973 -*) as_dir
=.
/$as_dir;;
24975 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24979 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24980 *) as_qdir
=$as_dir;;
24982 as_dirs
="'$as_qdir' $as_dirs"
24983 as_dir
=`$as_dirname -- "$as_dir" ||
24984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24985 X"$as_dir" : 'X\(//\)[^/]' \| \
24986 X"$as_dir" : 'X\(//\)$' \| \
24987 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24993 /^X\(\/\/\)[^/].*/{
25006 test -d "$as_dir" && break
25008 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25009 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25010 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25011 { (exit 1); exit 1; }; }; }
25015 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25017 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25018 # A ".." for each directory in $ac_dir_suffix.
25019 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25020 case $ac_top_builddir_sub in
25021 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25022 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25025 ac_abs_top_builddir
=$ac_pwd
25026 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25027 # for backward compatibility:
25028 ac_top_builddir
=$ac_top_build_prefix
25031 .
) # We are building in place.
25033 ac_top_srcdir
=$ac_top_builddir_sub
25034 ac_abs_top_srcdir
=$ac_pwd ;;
25035 [\\/]* | ?
:[\\/]* ) # Absolute name.
25036 ac_srcdir
=$srcdir$ac_dir_suffix;
25037 ac_top_srcdir
=$srcdir
25038 ac_abs_top_srcdir
=$srcdir ;;
25039 *) # Relative name.
25040 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25041 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25042 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25044 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25054 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25055 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25059 cat >>$CONFIG_STATUS <<\_ACEOF
25060 # If the template does not know about datarootdir, expand it.
25061 # FIXME: This hack should be removed a few years after 2.60.
25062 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25064 case `sed -n '/datarootdir/ {
25073 ' $ac_file_inputs` in
25074 *datarootdir
*) ac_datarootdir_seen
=yes;;
25075 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25076 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25077 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25079 cat >>$CONFIG_STATUS <<_ACEOF
25080 ac_datarootdir_hack='
25081 s&@datadir@&$datadir&g
25082 s&@docdir@&$docdir&g
25083 s&@infodir@&$infodir&g
25084 s&@localedir@&$localedir&g
25085 s&@mandir@&$mandir&g
25086 s&\\\${datarootdir}&$datarootdir&g' ;;
25090 # Neutralize VPATH when `$srcdir' = `.'.
25091 # Shell code in configure.ac might set extrasub.
25092 # FIXME: do we really want to maintain this feature?
25093 cat >>$CONFIG_STATUS <<_ACEOF
25097 cat >>$CONFIG_STATUS <<\_ACEOF
25099 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25100 s
&@configure_input@
&$configure_input&;t t
25101 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25102 s
&@srcdir@
&$ac_srcdir&;t t
25103 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25104 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25105 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25106 s
&@builddir@
&$ac_builddir&;t t
25107 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25108 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25109 s
&@INSTALL@
&$ac_INSTALL&;t t
25110 $ac_datarootdir_hack
25111 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25113 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25114 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25115 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25116 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25117 which seems to be undefined. Please make sure it is defined." >&5
25118 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25119 which seems to be undefined. Please make sure it is defined." >&2;}
25123 -) cat "$tmp/out"; rm -f "$tmp/out";;
25124 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25133 # Transform confdefs.h into a sed script `conftest.defines', that
25134 # substitutes the proper values into config.h.in to produce config.h.
25135 rm -f conftest.defines conftest.
tail
25136 # First, append a space to every undef/define line, to ease matching.
25137 echo 's/$/ /' >conftest.defines
25138 # Then, protect against being on the right side of a sed subst, or in
25139 # an unquoted here document, in config.status. If some macros were
25140 # called several times there might be several #defines for the same
25141 # symbol, which is useless. But do not sort them, since the last
25142 # AC_DEFINE must be honored.
25143 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25144 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25145 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25146 # PARAMS is the parameter list in the macro definition--in most cases, it's
25147 # just an empty string.
25148 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25149 ac_dB
='\\)[ (].*,\\1define\\2'
25157 s/^[ ]*#[ ]*define[ ][ ]*//
25162 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25163 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25164 ' >>conftest.defines
25166 # Remove the space that was appended to ease matching.
25167 # Then replace #undef with comments. This is necessary, for
25168 # example, in the case of _POSIX_SOURCE, which is predefined and required
25169 # on some systems where configure will not decide to define it.
25170 # (The regexp can be short, since the line contains either #define or #undef.)
25172 s,^[ #]*u.*,/* & */,' >>conftest.defines
25174 # Break up conftest.defines:
25175 ac_max_sed_lines
=50
25177 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25178 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25179 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25181 ac_in
='$ac_file_inputs'
25182 ac_out
='"$tmp/out1"'
25183 ac_nxt
='"$tmp/out2"'
25187 # Write a here document:
25188 cat >>$CONFIG_STATUS <<_ACEOF
25189 # First, check the format of the line:
25190 cat >"\$tmp/defines.sed" <<\\CEOF
25191 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25192 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25196 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25198 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25199 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25200 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25201 grep . conftest.
tail >/dev
/null ||
break
25202 rm -f conftest.defines
25203 mv conftest.
tail conftest.defines
25205 rm -f conftest.defines conftest.
tail
25207 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25208 cat >>$CONFIG_STATUS <<\_ACEOF
25209 if test x
"$ac_file" != x-
; then
25210 echo "/* $configure_input */" >"$tmp/config.h"
25211 cat "$ac_result" >>"$tmp/config.h"
25212 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25213 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25214 echo "$as_me: $ac_file is unchanged" >&6;}
25217 mv "$tmp/config.h" $ac_file
25220 echo "/* $configure_input */"
25232 { (exit 0); exit 0; }
25234 chmod +x
$CONFIG_STATUS
25235 ac_clean_files
=$ac_clean_files_save
25238 # configure is writing to config.log, and then calls config.status.
25239 # config.status does its own redirection, appending to config.log.
25240 # Unfortunately, on DOS this fails, as config.log is still kept open
25241 # by configure, so config.status won't be able to write to it; its
25242 # output is simply discarded. So we exec the FD to /dev/null,
25243 # effectively closing config.log, so it can be properly (re)opened and
25244 # appended to by config.status. When coming back to configure, we
25245 # need to make the FD available again.
25246 if test "$no_create" != yes; then
25248 ac_config_status_args
=
25249 test "$silent" = yes &&
25250 ac_config_status_args
="$ac_config_status_args --quiet"
25252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25255 # would make configure fail if this is the last instruction.
25256 $ac_cs_success ||
{ (exit 1); exit 1; }
25260 echo "creating Modules/Setup"
25261 if test ! -f Modules
/Setup
25263 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25266 echo "creating Modules/Setup.local"
25267 if test ! -f Modules
/Setup.
local
25269 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25272 echo "creating Makefile"
25273 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25274 -s Modules Modules
/Setup.config \
25275 Modules
/Setup.
local Modules
/Setup
25277 case $ac_sys_system in
25279 { echo "$as_me:$LINENO: WARNING:
25281 Support for BeOS is deprecated as of Python 2.6.
25282 See PEP 11 for the gory details.
25284 echo "$as_me: WARNING:
25286 Support for BeOS is deprecated as of Python 2.6.
25287 See PEP 11 for the gory details.
25293 mv config.c Modules