2 # From configure.in Revision: 63545 .
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
2081 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2082 # defining NI_NUMERICHOST.
2084 define_xopen_source=no
2089 if test $define_xopen_source = yes
2091 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2092 # defined precisely as g++ defines it
2093 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2095 case $ac_sys_system/$ac_sys_release in
2096 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2098 cat >>confdefs.h <<\_ACEOF
2099 #define _XOPEN_SOURCE 500
2105 cat >>confdefs.h <<\_ACEOF
2106 #define _XOPEN_SOURCE 600
2112 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2113 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2114 # several APIs are not declared. Since this is also needed in some
2115 # cases for HP-UX, we define it globally.
2116 # except for Solaris 10, where it must not be defined,
2117 # as it implies XPG4.2
2118 case $ac_sys_system/$ac_sys_release in
2123 cat >>confdefs.h <<\_ACEOF
2124 #define _XOPEN_SOURCE_EXTENDED 1
2131 cat >>confdefs.h <<\_ACEOF
2132 #define _POSIX_C_SOURCE 200112L
2139 # SGI compilers allow the specification of the both the ABI and the
2140 # ISA on the command line. Depending on the values of these switches,
2141 # different and often incompatable code will be generated.
2143 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2144 # thus supply support for various ABI/ISA combinations. The MACHDEP
2145 # variable is also adjusted.
2148 if test ! -z "$SGI_ABI"
2151 LDFLAGS="$SGI_ABI $LDFLAGS"
2152 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2154 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2155 echo "${ECHO_T}$MACHDEP" >&6; }
2157 # And add extra plat-mac for darwin
2160 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2161 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2162 if test -z "$EXTRAPLATDIR"
2166 EXTRAPLATDIR="\$(PLATMACDIRS)"
2167 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2175 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2176 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2178 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2179 # it may influence the way we can build extensions, so distutils
2183 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2184 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2186 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2187 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2188 ac_sys_machine=`uname
-m`
2189 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2190 echo "${ECHO_T}$ac_sys_machine" >&6; }
2192 # checks for alternative programs
2194 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2195 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2196 # just to get things to compile and link. Users are free to override OPT
2197 # when running configure or make. The build should not break if they do.
2198 # BASECFLAGS should generally not be messed with, however.
2200 # XXX shouldn't some/most/all of this code be merged with the stuff later
2201 # on that fiddles with OPT and BASECFLAGS?
2202 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2203 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2205 # Check whether --with-gcc was given.
2206 if test "${with_gcc+set}" = set; then
2214 without_gcc=$withval;;
2218 case $ac_sys_system in
2222 case $BE_HOST_CPU in
2226 BASECFLAGS="$BASECFLAGS -export pragma"
2228 LDFLAGS="$LDFLAGS -nodup"
2236 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2237 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2238 { (exit 1); exit 1; }; }
2241 AR="\$(srcdir)/Modules/ar_beos"
2251 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2252 echo "${ECHO_T}$without_gcc" >&6; }
2254 # If the user switches compilers, we can't believe the cache
2255 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2257 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2258 (it is also a good idea to do 'make clean' before compiling)" >&5
2259 echo "$as_me: error: cached CC is different -- throw away $cache_file
2260 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2261 { (exit 1); exit 1; }; }
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269 if test -n "$ac_tool_prefix"; then
2270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$CC"; then
2278 ac_cv_prog_CC="$CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 if test -n "$CC"; then
2299 { echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6; }
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2308 if test -z "$ac_cv_prog_CC"; then
2310 # Extract the first word of "gcc", so it can be a program name with args.
2311 set dummy gcc; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_ac_ct_CC="gcc"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2338 if test -n "$ac_ct_CC"; then
2339 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2340 echo "${ECHO_T}$ac_ct_CC" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2346 if test "x$ac_ct_CC" = x; then
2349 case $cross_compiling:$ac_tool_warned in
2351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet. If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&5
2354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2355 whose name does not start with the host triplet. If you think this
2356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2357 ac_tool_warned=yes ;;
2365 if test -z "$CC"; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}cc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_CC="${ac_tool_prefix}cc"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 if test -n "$CC"; then
2396 { echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6; }
2399 { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2406 if test -z "$CC"; then
2407 # Extract the first word of "cc", so it can be a program name with args.
2408 set dummy cc; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_CC+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$CC"; then
2415 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2426 ac_prog_rejected=yes
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 if test $ac_prog_rejected = yes; then
2438 # We found a bogon in the path, so make sure we never use it.
2439 set dummy $ac_cv_prog_CC
2441 if test $# != 0; then
2442 # We chose a different compiler from the bogus one.
2443 # However, it has the same basename, so the bogon will be chosen
2444 # first if we set CC to just the basename; use the full file name.
2446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2452 if test -n "$CC"; then
2453 { echo "$as_me:$LINENO: result: $CC" >&5
2454 echo "${ECHO_T}$CC" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2462 if test -z "$CC"; then
2463 if test -n "$ac_tool_prefix"; then
2464 for ac_prog in cl.exe
2466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 if test -n "$CC"; then
2495 { echo "$as_me:$LINENO: result: $CC" >&5
2496 echo "${ECHO_T}$CC" >&6; }
2498 { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2503 test -n "$CC" && break
2506 if test -z "$CC"; then
2508 for ac_prog in cl.exe
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$ac_ct_CC"; then
2518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_ac_ct_CC="$ac_prog"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2538 if test -n "$ac_ct_CC"; then
2539 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2540 echo "${ECHO_T}$ac_ct_CC" >&6; }
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2547 test -n "$ac_ct_CC" && break
2550 if test "x$ac_ct_CC" = x; then
2553 case $cross_compiling:$ac_tool_warned in
2555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet. If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&5
2558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet. If you think this
2560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2561 ac_tool_warned=yes ;;
2570 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2571 See \`config.log
' for more details." >&5
2572 echo "$as_me: error: no acceptable C compiler found in \$PATH
2573 See \`config.log' for more details.
" >&2;}
2574 { (exit 1); exit 1; }; }
2576 # Provide some information about the compiler.
2577 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (ac_try="$ac_compiler --version >&5"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compiler --version >&5") 2>&5
2587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2588 (exit $ac_status); }
2589 { (ac_try="$ac_compiler -v >&5"
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compiler -v >&5") 2>&5
2597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2598 (exit $ac_status); }
2599 { (ac_try="$ac_compiler -V >&5"
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compiler -V >&5") 2>&5
2607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2608 (exit $ac_status); }
2610 cat >conftest.$ac_ext <<_ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2625 ac_clean_files_save=$ac_clean_files
2626 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2627 # Try to create an executable without -o first, disregard a.out.
2628 # It will help us diagnose broken compilers, and finding out an intuition
2630 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2631 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2634 # List of possible output files, starting from the most likely.
2635 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2636 # only as a last resort. b.out is created by i960 compilers.
2637 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2639 # The IRIX 6 linker writes into existing files which may not be
2640 # executable, retaining their permissions. Remove them first so a
2641 # subsequent execution test works.
2643 for ac_file in $ac_files
2646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2652 if { (ac_try="$ac_link_default"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_link_default") 2>&5
2660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2661 (exit $ac_status); }; then
2662 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2663 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2664 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2665 # so that the user can short-circuit this test for compilers unknown to
2667 for ac_file in $ac_files ''
2669 test -f "$ac_file" || continue
2671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2674 # We found the default executable, but exeext='' is most
2678 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2682 # We set ac_cv_exeext here because the later test for it is not
2683 # safe: cross compilers may not add the suffix if given an `-o'
2684 # argument, so we may need to know it at that point already.
2685 # Even if this section looks crufty: it has the advantage of
2692 test "$ac_cv_exeext" = no && ac_cv_exeext=
2698 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2699 echo "${ECHO_T}$ac_file" >&6; }
2700 if test -z "$ac_file"; then
2701 echo "$as_me: failed program was
:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2704 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2705 See \
`config.log' for more details." >&5
2706 echo "$as_me: error: C compiler cannot create executables
2707 See \`config.log
' for more details." >&2;}
2708 { (exit 77); exit 77; }; }
2711 ac_exeext=$ac_cv_exeext
2713 # Check that the compiler produces executables we can run. If not, either
2714 # the compiler is broken, or we cross compile.
2715 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2716 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2718 # If not cross compiling, check that we can run a simple program.
2719 if test "$cross_compiling" != yes; then
2720 if { ac_try='.
/$ac_file'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2732 if test "$cross_compiling" = maybe; then
2735 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2736 If you meant to cross compile, use \`--host'.
2737 See \
`config.log' for more details." >&5
2738 echo "$as_me: error: cannot run C compiled programs.
2739 If you meant to cross compile, use \`--host'.
2740 See \`config.log' for more details.
" >&2;}
2741 { (exit 1); exit 1; }; }
2745 { echo "$as_me:$LINENO: result
: yes" >&5
2746 echo "${ECHO_T}yes" >&6; }
2748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2749 ac_clean_files=$ac_clean_files_save
2750 # Check that the compiler produces executables we can run. If not, either
2751 # the compiler is broken, or we cross compile.
2752 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2753 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2754 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2755 echo "${ECHO_T}$cross_compiling" >&6; }
2757 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2758 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2759 if { (ac_try="$ac_link"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_link") 2>&5
2767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2768 (exit $ac_status); }; then
2769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2771 # work properly (i.e., refer to `conftest.exe'), while it won't with
2773 for ac_file in conftest.exe conftest conftest.*; do
2774 test -f "$ac_file" || continue
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2777 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2783 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2784 See \
`config.log' for more details." >&5
2785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2786 See \`config.log
' for more details." >&2;}
2787 { (exit 1); exit 1; }; }
2790 rm -f conftest$ac_cv_exeext
2791 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2792 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2794 rm -f conftest.$ac_ext
2795 EXEEXT=$ac_cv_exeext
2797 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2799 if test "${ac_cv_objext+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 cat >conftest.$ac_ext <<_ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h. */
2817 rm -f conftest.o conftest.obj
2818 if { (ac_try="$ac_compile"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 for ac_file in conftest.o conftest.obj conftest.*; do
2829 test -f "$ac_file" || continue;
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2832 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2837 echo "$as_me: failed program was:" >&5
2838 sed 's
/^
/|
/' conftest.$ac_ext >&5
2840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2841 See \`config.log' for more details.
" >&5
2842 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2843 See \
`config.log' for more details." >&2;}
2844 { (exit 1); exit 1; }; }
2847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2849 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2850 echo "${ECHO_T}$ac_cv_objext" >&6; }
2851 OBJEXT=$ac_cv_objext
2853 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 cat >conftest.$ac_ext <<_ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2880 *) ac_try_echo
=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2885 grep -v '^ *+' conftest.er1
>conftest.err
2887 cat conftest.err
>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.
$ac_objext; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.
$ac_ext >&5
2901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2902 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2905 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2906 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2907 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2908 ac_test_CFLAGS
=${CFLAGS+set}
2909 ac_save_CFLAGS
=$CFLAGS
2910 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2911 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2912 if test "${ac_cv_prog_cc_g+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 ac_save_c_werror_flag
=$ac_c_werror_flag
2916 ac_c_werror_flag
=yes
2919 cat >conftest.
$ac_ext <<_ACEOF
2922 cat confdefs.h
>>conftest.
$ac_ext
2923 cat >>conftest.
$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.
$ac_objext
2935 if { (ac_try
="$ac_compile"
2937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2957 cat >conftest.$ac_ext <<_ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2972 rm -f conftest.$ac_objext
2973 if { (ac_try="$ac_compile"
2975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2976 *) ac_try_echo
=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_compile") 2>conftest.er1
2981 grep -v '^ *+' conftest.er1
>conftest.err
2983 cat conftest.err
>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } && {
2986 test -z "$ac_c_werror_flag" ||
2987 test ! -s conftest.err
2988 } && test -s conftest.
$ac_objext; then
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.
$ac_ext >&5
2994 ac_c_werror_flag
=$ac_save_c_werror_flag
2996 cat >conftest.
$ac_ext <<_ACEOF
2999 cat confdefs.h
>>conftest.
$ac_ext
3000 cat >>conftest.
$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.
$ac_objext
3012 if { (ac_try
="$ac_compile"
3014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } && {
3025 test -z "$ac_c_werror_flag" ||
3026 test ! -s conftest.err
3027 } && test -s conftest.$ac_objext; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_c_werror_flag=$ac_save_c_werror_flag
3045 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3046 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3047 if test "$ac_test_CFLAGS" = set; then
3048 CFLAGS=$ac_save_CFLAGS
3049 elif test $ac_cv_prog_cc_g = yes; then
3050 if test "$GCC" = yes; then
3056 if test "$GCC" = yes; then
3062 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3063 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cc_c89+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 ac_cv_prog_cc_c89=no
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3077 #include <sys/types.h>
3078 #include <sys/stat.h>
3079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3080 struct buf { int x; };
3081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3082 static char *e (p, i)
3088 static char *f (char * (*g) (char **, int), char **p, ...)
3093 s = g (p, va_arg (v,int));
3098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3099 function prototypes and stuff, but not '\xHH' hex character constants.
3100 These don't provoke an error unfortunately, instead are silently treated
3101 as 'x'. The following induces an error, until -std is added to get
3102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3103 array size at least. It's necessary to write '\x00'==0 to get something
3104 that's true only with -std. */
3105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3108 inside strings and character constants. */
3110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3112 int test (int i, double x);
3113 struct s1 {int (*f) (int a);};
3114 struct s2 {int (*f) (double a);};
3115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3129 CC="$ac_save_CC $ac_arg"
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3134 *) ac_try_echo
=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1
>conftest.err
3141 cat conftest.err
>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.
$ac_objext; then
3147 ac_cv_prog_cc_c89
=$ac_arg
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.
$ac_ext >&5
3155 rm -f core conftest.err conftest.
$ac_objext
3156 test "x$ac_cv_prog_cc_c89" != "xno" && break
3158 rm -f conftest.
$ac_ext
3163 case "x$ac_cv_prog_cc_c89" in
3165 { echo "$as_me:$LINENO: result: none needed" >&5
3166 echo "${ECHO_T}none needed" >&6; } ;;
3168 { echo "$as_me:$LINENO: result: unsupported" >&5
3169 echo "${ECHO_T}unsupported" >&6; } ;;
3171 CC
="$CC $ac_cv_prog_cc_c89"
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3178 ac_cpp
='$CPP $CPPFLAGS'
3179 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3186 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3187 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3189 # Check whether --with-cxx_main was given.
3190 if test "${with_cxx_main+set}" = set; then
3191 withval
=$with_cxx_main;
3194 no
) with_cxx_main
=no
3196 yes) with_cxx_main
=yes
3198 *) with_cxx_main
=yes
3212 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3213 echo "${ECHO_T}$with_cxx_main" >&6; }
3219 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3220 set dummy g
++; ac_word
=$2
3221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3223 if test "${ac_cv_path_CXX+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3232 for as_dir
in notfound
3235 test -z "$as_dir" && as_dir
=.
3236 for ac_exec_ext
in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3251 if test -n "$CXX"; then
3252 { echo "$as_me:$LINENO: result: $CXX" >&5
3253 echo "${ECHO_T}$CXX" >&6; }
3255 { echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6; }
3260 cc
) # Extract the first word of "c++", so it can be a program name with args.
3261 set dummy c
++; ac_word
=$2
3262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3264 if test "${ac_cv_path_CXX+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3273 for as_dir
in notfound
3276 test -z "$as_dir" && as_dir
=.
3277 for ac_exec_ext
in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3292 if test -n "$CXX"; then
3293 { echo "$as_me:$LINENO: result: $CXX" >&5
3294 echo "${ECHO_T}$CXX" >&6; }
3296 { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3302 if test "$CXX" = "notfound"
3309 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3311 # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy
$ac_prog; ac_word
=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_CXX+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$CXX"; then
3319 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir
=.
3326 for ac_exec_ext
in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_CXX
="$ac_prog"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 if test -n "$CXX"; then
3340 { echo "$as_me:$LINENO: result: $CXX" >&5
3341 echo "${ECHO_T}$CXX" >&6; }
3343 { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3348 test -n "$CXX" && break
3350 test -n "$CXX" || CXX
="notfound"
3352 if test "$CXX" = "notfound"
3357 if test "$preset_cxx" != "$CXX"
3359 { echo "$as_me:$LINENO: 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.
3364 echo "$as_me: WARNING:
3366 By default, distutils will build C++ extension modules with \"$CXX\".
3367 If this is not intended, then set CXX on the configure command line.
3372 # checks for UNIX variants that set C preprocessor variables
3375 ac_cpp
='$CPP $CPPFLAGS'
3376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3379 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3380 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3381 # On Suns, sometimes $CPP names a directory.
3382 if test -n "$CPP" && test -d "$CPP"; then
3385 if test -z "$CPP"; then
3386 if test "${ac_cv_prog_CPP+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 # Double quotes because CPP needs to be expanded
3390 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3393 for ac_c_preproc_warn_flag
in '' yes
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
3401 cat >conftest.
$ac_ext <<_ACEOF
3404 cat confdefs.h
>>conftest.
$ac_ext
3405 cat >>conftest.
$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3408 # include <limits.h>
3410 # include <assert.h>
3414 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 grep -v '^ *+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null && {
3427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Broken: fails on valid input.
3439 rm -f conftest.err conftest.$ac_ext
3441 # OK, works on sane cases. Now check whether nonexistent headers
3442 # can be detected and how.
3443 cat >conftest.$ac_ext <<_ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449 #include <ac_nonexistent.h>
3451 if { (ac_try="$ac_cpp conftest.$ac_ext"
3453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3454 *) ac_try_echo
=$ac_try;;
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1
>conftest.err
3461 cat conftest.err
>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } >/dev
/null
&& {
3464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.
$ac_ext >&5
3473 # Passes both tests.
3478 rm -f conftest.err conftest.
$ac_ext
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.
$ac_ext
3483 if $ac_preproc_ok; then
3495 { echo "$as_me:$LINENO: result: $CPP" >&5
3496 echo "${ECHO_T}$CPP" >&6; }
3498 for ac_c_preproc_warn_flag
in '' yes
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
3506 cat >conftest.
$ac_ext <<_ACEOF
3509 cat confdefs.h
>>conftest.
$ac_ext
3510 cat >>conftest.
$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3513 # include <limits.h>
3515 # include <assert.h>
3519 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null && {
3532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3559 *) ac_try_echo
=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1
>conftest.err
3566 cat conftest.err
>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev
/null
&& {
3569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3572 # Broken: success on invalid input.
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.
$ac_ext >&5
3578 # Passes both tests.
3583 rm -f conftest.err conftest.
$ac_ext
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.
$ac_ext
3588 if $ac_preproc_ok; then
3591 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&2;}
3595 { (exit 1); exit 1; }; }
3599 ac_cpp
='$CPP $CPPFLAGS'
3600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3605 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3606 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3607 if test "${ac_cv_path_GREP+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 # Extract the first word of "grep ggrep" to use in msg output
3611 if test -z "$GREP"; then
3612 set dummy
grep ggrep
; ac_prog_name
=$2
3613 if test "${ac_cv_path_GREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 ac_path_GREP_found
=false
3617 # Loop through the user's path and test for each of PROGNAME-LIST
3618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3619 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3622 test -z "$as_dir" && as_dir
=.
3623 for ac_prog
in grep ggrep
; do
3624 for ac_exec_ext
in '' $ac_executable_extensions; do
3625 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3626 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3627 # Check for GNU ac_path_GREP and select it if it is found.
3628 # Check for GNU $ac_path_GREP
3629 case `"$ac_path_GREP" --version 2>&1` in
3631 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3634 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3637 cat "conftest.in" "conftest.in" >"conftest.tmp"
3638 mv "conftest.tmp" "conftest.in"
3639 cp "conftest.in" "conftest.nl"
3640 echo 'GREP' >> "conftest.nl"
3641 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3642 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3643 ac_count
=`expr $ac_count + 1`
3644 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3645 # Best one so far, save it but keep looking for a better one
3646 ac_cv_path_GREP
="$ac_path_GREP"
3647 ac_path_GREP_max
=$ac_count
3649 # 10*(2^10) chars as input seems more than enough
3650 test $ac_count -gt 10 && break
3652 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3656 $ac_path_GREP_found && break 3
3666 GREP
="$ac_cv_path_GREP"
3667 if test -z "$GREP"; then
3668 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3669 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3670 { (exit 1); exit 1; }; }
3674 ac_cv_path_GREP
=$GREP
3679 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3680 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3681 GREP
="$ac_cv_path_GREP"
3684 { echo "$as_me:$LINENO: checking for egrep" >&5
3685 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3686 if test "${ac_cv_path_EGREP+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3690 then ac_cv_path_EGREP
="$GREP -E"
3692 # Extract the first word of "egrep" to use in msg output
3693 if test -z "$EGREP"; then
3694 set dummy
egrep; ac_prog_name
=$2
3695 if test "${ac_cv_path_EGREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_path_EGREP_found
=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3704 test -z "$as_dir" && as_dir
=.
3705 for ac_prog
in egrep; do
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3708 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3709 # Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711 case `"$ac_path_EGREP" --version 2>&1` in
3713 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3716 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3724 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3725 ac_count
=`expr $ac_count + 1`
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP
="$ac_path_EGREP"
3729 ac_path_EGREP_max
=$ac_count
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3734 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3738 $ac_path_EGREP_found && break 3
3748 EGREP
="$ac_cv_path_EGREP"
3749 if test -z "$EGREP"; then
3750 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752 { (exit 1); exit 1; }; }
3756 ac_cv_path_EGREP
=$EGREP
3762 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3763 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3764 EGREP
="$ac_cv_path_EGREP"
3768 { echo "$as_me:$LINENO: checking for AIX" >&5
3769 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 $EGREP "yes" >/dev
/null
2>&1; then
3783 { echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6; }
3785 cat >>confdefs.h
<<\_ACEOF
3786 #define _ALL_SOURCE 1
3790 { echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6; }
3797 # Check for unsupported systems
3798 case $ac_sys_system/$ac_sys_release in
3800 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3801 echo See README
for details.
3806 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3807 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3809 # Check whether --with-suffix was given.
3810 if test "${with_suffix+set}" = set; then
3811 withval
=$with_suffix;
3815 *) EXEEXT
=$withval;;
3819 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3820 echo "${ECHO_T}$EXEEXT" >&6; }
3822 # Test whether we're running on a non-case-sensitive system, in which
3823 # case we give a warning if no ext is given
3825 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3826 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3827 if test ! -d CaseSensitiveTestDir
; then
3828 mkdir CaseSensitiveTestDir
3831 if test -d casesensitivetestdir
3833 { echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6; }
3837 { echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6; }
3841 rmdir CaseSensitiveTestDir
3846 gcc
) CC
="$CC -D_HAVE_BSDI";;
3850 case $ac_sys_system in
3853 cc|
*/cc
) CC
="$CC -Ae";;
3857 cc
) CC
="$CC -Wl,-Bexport";;
3860 # Some functions have a prototype only with that define, e.g. confstr
3862 cat >>confdefs.h
<<\_ACEOF
3863 #define __EXTENSIONS__ 1
3871 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3872 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3873 if test -z "$LIBRARY"
3875 LIBRARY
='libpython$(VERSION).a'
3877 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3878 echo "${ECHO_T}$LIBRARY" >&6; }
3880 # LDLIBRARY is the name of the library to link against (as opposed to the
3881 # name of the library into which to insert object files). BLDLIBRARY is also
3882 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3883 # is blank as the main program is not linked directly against LDLIBRARY.
3884 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3885 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3886 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3887 # DLLLIBRARY is the shared (i.e., DLL) library.
3889 # RUNSHARED is used to run shared python without installed libraries
3891 # INSTSONAME is the name of the shared library that will be use to install
3892 # on the system - some systems like version suffix, others don't
3899 LDLIBRARY
="$LIBRARY"
3900 BLDLIBRARY
='$(LDLIBRARY)'
3901 INSTSONAME
='$(LDLIBRARY)'
3906 # LINKCC is the command that links the python executable -- default is $(CC).
3907 # If CXX is set, and if it is needed to link a main function that was
3908 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3909 # python might then depend on the C++ runtime
3910 # This is altered for AIX in order to build the export list before
3913 { echo "$as_me:$LINENO: checking LINKCC" >&5
3914 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3915 if test -z "$LINKCC"
3917 LINKCC
='$(PURIFY) $(MAINCC)'
3918 case $ac_sys_system in
3921 if test $ac_sys_release -ge 5 -o \
3922 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3925 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3927 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3929 # qcc must be used because the other compilers do not
3934 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3935 echo "${ECHO_T}$LINKCC" >&6; }
3937 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3938 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3939 # Check whether --enable-shared was given.
3940 if test "${enable_shared+set}" = set; then
3941 enableval
=$enable_shared;
3945 if test -z "$enable_shared"
3947 case $ac_sys_system in
3949 enable_shared
="yes";;
3951 enable_shared
="no";;
3954 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3955 echo "${ECHO_T}$enable_shared" >&6; }
3957 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3958 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3959 # Check whether --enable-profiling was given.
3960 if test "${enable_profiling+set}" = set; then
3961 enableval
=$enable_profiling; ac_save_cc
="$CC"
3963 if test "$cross_compiling" = yes; then
3964 ac_enable_profiling
="no"
3966 cat >conftest.
$ac_ext <<_ACEOF
3969 cat confdefs.h
>>conftest.
$ac_ext
3970 cat >>conftest.
$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 int main() { return 0; }
3974 rm -f conftest
$ac_exeext
3975 if { (ac_try
="$ac_link"
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_link") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3987 *) ac_try_echo
=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_enable_profiling
="yes"
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.
$ac_ext >&5
4001 ac_enable_profiling
="no"
4003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4010 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4011 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4013 case "$ac_enable_profiling" in
4015 BASECFLAGS
="-pg $BASECFLAGS"
4016 LDFLAGS
="-pg $LDFLAGS"
4020 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4021 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4023 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4024 # library that we build, but we do not want to link against it (we
4025 # will find it with a -framework option). For this reason there is an
4026 # extra variable BLDLIBRARY against which Python and the extension
4027 # modules are linked, BLDLIBRARY. This is normally the same as
4028 # LDLIBRARY, but empty for MacOSX framework builds.
4029 if test "$enable_framework"
4031 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4032 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4035 BLDLIBRARY
='$(LDLIBRARY)'
4038 # Other platforms follow
4039 if test $enable_shared = "yes"; then
4041 cat >>confdefs.h
<<\_ACEOF
4042 #define Py_ENABLE_SHARED 1
4045 case $ac_sys_system in
4047 LDLIBRARY
='libpython$(VERSION).so'
4050 LDLIBRARY
='libpython$(VERSION).dll.a'
4051 DLLLIBRARY
='libpython$(VERSION).dll'
4054 LDLIBRARY
='libpython$(VERSION).so'
4055 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4056 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4057 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4059 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4060 LDLIBRARY
='libpython$(VERSION).so'
4061 BLDLIBRARY
='-L. -lpython$(VERSION)'
4062 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4063 case $ac_sys_system in
4065 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4068 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4073 LDLIBRARY
='libpython$(VERSION).so'
4076 LDLIBRARY
='libpython$(VERSION).sl'
4079 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4080 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4083 LDLIBRARY
='libpython$(VERSION).so'
4084 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4085 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4088 LDLIBRARY
='libpython$(VERSION).so'
4089 BLDLIBRARY
='-L. -lpython$(VERSION)'
4090 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4093 else # shared is disabled
4094 case $ac_sys_system in
4096 BLDLIBRARY
='$(LIBRARY)'
4097 LDLIBRARY
='libpython$(VERSION).dll.a'
4102 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4103 echo "${ECHO_T}$LDLIBRARY" >&6; }
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4107 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4110 if test "${ac_cv_prog_RANLIB+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 if test -n "$RANLIB"; then
4114 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir
=.
4121 for ac_exec_ext
in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 RANLIB
=$ac_cv_prog_RANLIB
4134 if test -n "$RANLIB"; then
4135 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4136 echo "${ECHO_T}$RANLIB" >&6; }
4138 { echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6; }
4144 if test -z "$ac_cv_prog_RANLIB"; then
4145 ac_ct_RANLIB
=$RANLIB
4146 # Extract the first word of "ranlib", so it can be a program name with args.
4147 set dummy ranlib
; ac_word
=$2
4148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4150 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$ac_ct_RANLIB"; then
4154 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4174 if test -n "$ac_ct_RANLIB"; then
4175 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4176 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4178 { echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6; }
4182 if test "x$ac_ct_RANLIB" = x
; then
4185 case $cross_compiling:$ac_tool_warned in
4187 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4188 whose name does not start with the host triplet. If you think this
4189 configuration is useful to you, please write to autoconf@gnu.org." >&5
4190 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4191 whose name does not start with the host triplet. If you think this
4192 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4193 ac_tool_warned
=yes ;;
4195 RANLIB
=$ac_ct_RANLIB
4198 RANLIB
="$ac_cv_prog_RANLIB"
4202 for ac_prog
in ar aal
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy
$ac_prog; ac_word
=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_prog_AR+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 if test -n "$AR"; then
4212 ac_cv_prog_AR
="$AR" # Let the user override the test.
4214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir
=.
4219 for ac_exec_ext
in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_AR
="$ac_prog"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 if test -n "$AR"; then
4233 { echo "$as_me:$LINENO: result: $AR" >&5
4234 echo "${ECHO_T}$AR" >&6; }
4236 { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4241 test -n "$AR" && break
4243 test -n "$AR" || AR
="ar"
4247 # Extract the first word of "svnversion", so it can be a program name with args.
4248 set dummy svnversion
; ac_word
=$2
4249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4251 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$SVNVERSION"; then
4255 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir
=.
4262 for ac_exec_ext
in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_SVNVERSION
="found"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4275 SVNVERSION
=$ac_cv_prog_SVNVERSION
4276 if test -n "$SVNVERSION"; then
4277 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4278 echo "${ECHO_T}$SVNVERSION" >&6; }
4280 { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4285 if test $SVNVERSION = found
4287 SVNVERSION
="svnversion \$(srcdir)"
4289 SVNVERSION
="echo exported"
4294 # install -d does not work on BSDI or HP-UX
4295 if test -z "$INSTALL"
4297 INSTALL
="${srcdir}/install-sh -c"
4301 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4302 if test -f "$ac_dir/install-sh"; then
4304 ac_install_sh
="$ac_aux_dir/install-sh -c"
4306 elif test -f "$ac_dir/install.sh"; then
4308 ac_install_sh
="$ac_aux_dir/install.sh -c"
4310 elif test -f "$ac_dir/shtool"; then
4312 ac_install_sh
="$ac_aux_dir/shtool install -c"
4316 if test -z "$ac_aux_dir"; then
4317 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4318 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4319 { (exit 1); exit 1; }; }
4322 # These three variables are undocumented and unsupported,
4323 # and are intended to be withdrawn in a future Autoconf release.
4324 # They can cause serious problems if a builder's source tree is in a directory
4325 # whose full name contains unusual characters.
4326 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4327 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4328 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4331 # Find a good install program. We prefer a C program (faster),
4332 # so one script is as good as another. But avoid the broken or
4333 # incompatible versions:
4334 # SysV /etc/install, /usr/sbin/install
4335 # SunOS /usr/etc/install
4336 # IRIX /sbin/install
4338 # AmigaOS /C/install, which installs bootblocks on floppy discs
4339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4342 # OS/2's system install, which has a completely different semantic
4343 # ./install, which can be erroneously created by make from ./install.sh.
4344 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4346 if test -z "$INSTALL"; then
4347 if test "${ac_cv_path_install+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir
=.
4355 # Account for people who put trailing slashes in PATH elements.
4357 .
/ | .
// |
/cC
/* | \
4358 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4359 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4362 # OSF1 and SCO ODT 3.0 have their own names for install.
4363 # Don't use installbsd from OSF since it installs stuff as root
4365 for ac_prog
in ginstall scoinst
install; do
4366 for ac_exec_ext
in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4368 if test $ac_prog = install &&
4369 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4370 # AIX install. It has an incompatible calling convention.
4372 elif test $ac_prog = install &&
4373 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4374 # program-specific install script used by HP pwplus--don't use.
4377 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4390 if test "${ac_cv_path_install+set}" = set; then
4391 INSTALL
=$ac_cv_path_install
4393 # As a last resort, use the slow shell script. Don't cache a
4394 # value for INSTALL within a source directory, because that will
4395 # break other packages using the cache if that directory is
4396 # removed, or if the value is a relative name.
4397 INSTALL
=$ac_install_sh
4400 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4401 echo "${ECHO_T}$INSTALL" >&6; }
4403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4404 # It thinks the first close brace ends the variable substitution.
4405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4409 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4412 # Not every filesystem supports hard links
4414 if test -z "$LN" ; then
4415 case $ac_sys_system in
4417 CYGWIN
*) LN
="ln -s";;
4418 atheos
*) LN
="ln -s";;
4423 # Check for --with-pydebug
4424 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4425 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4427 # Check whether --with-pydebug was given.
4428 if test "${with_pydebug+set}" = set; then
4429 withval
=$with_pydebug;
4430 if test "$withval" != no
4433 cat >>confdefs.h
<<\_ACEOF
4437 { echo "$as_me:$LINENO: result: yes" >&5
4438 echo "${ECHO_T}yes" >&6; };
4440 else { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4449 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4450 # merged with this chunk of code?
4452 # Optimizer/debugger flags
4453 # ------------------------
4454 # (The following bit of code is complicated enough - please keep things
4455 # indented properly. Just pretend you're editing Python code. ;-)
4457 # There are two parallel sets of case statements below, one that checks to
4458 # see if OPT was set and one that does BASECFLAGS setting based upon
4459 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4462 # tweak OPT based on compiler and platform, only if the user didn't set
4463 # it on the command line
4469 if test "$CC" != 'g++' ; then
4470 STRICT_PROTO
="-Wstrict-prototypes"
4472 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4473 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4476 case $ac_cv_prog_cc_g in
4478 if test "$Py_DEBUG" = 'true' ; then
4479 # Optimization messes up debuggers, so turn it off for
4481 OPT
="-g -Wall $STRICT_PROTO"
4483 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4487 OPT
="-O3 -Wall $STRICT_PROTO"
4490 case $ac_sys_system in
4491 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4501 # The current (beta) Monterey compiler dies with optimizations
4502 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4503 case $ac_sys_system in
4512 # tweak BASECFLAGS based on compiler and platform
4515 # Python violates C99 rules, by casting between incompatible
4516 # pointer types. GCC may generate bad code as a result of that,
4517 # so use -fno-strict-aliasing if supported.
4518 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4519 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4521 CC
="$CC -fno-strict-aliasing"
4522 if test "$cross_compiling" = yes; then
4523 ac_cv_no_strict_aliasing_ok
=no
4525 cat >conftest.
$ac_ext <<_ACEOF
4528 cat confdefs.h
>>conftest.
$ac_ext
4529 cat >>conftest.
$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 int main() { return 0; }
4533 rm -f conftest
$ac_exeext
4534 if { (ac_try
="$ac_link"
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_link") 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4546 *) ac_try_echo
=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_try") 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_no_strict_aliasing_ok
=yes
4555 echo "$as_me: program exited with status $ac_status" >&5
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.
$ac_ext >&5
4560 ac_cv_no_strict_aliasing_ok
=no
4562 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4567 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4568 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4569 if test $ac_cv_no_strict_aliasing_ok = yes
4571 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4574 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4575 # support. Without this, treatment of subnormals doesn't follow
4577 case $ac_sys_machine in
4579 BASECFLAGS
="$BASECFLAGS -mieee"
4583 case $ac_sys_system in
4585 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4587 # is there any other compiler on Darwin besides gcc?
4589 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4590 # used to be here, but non-Apple gcc doesn't accept them.
4591 if test "${enable_universalsdk}"; then
4592 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4597 BASECFLAGS
="$BASECFLAGS -mieee"
4603 case $ac_sys_system in
4604 OpenUNIX
*|UnixWare
*)
4605 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4608 BASECFLAGS
="$BASECFLAGS -ieee -std"
4611 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4617 if test "$Py_DEBUG" = 'true'; then
4623 if test "$ac_arch_flags"
4625 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4628 # disable check for icc since it seems to pass, but generates a warning
4631 ac_cv_opt_olimit_ok
=no
4634 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4635 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4636 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 CC
="$CC -OPT:Olimit=0"
4641 if test "$cross_compiling" = yes; then
4642 ac_cv_opt_olimit_ok
=no
4644 cat >conftest.
$ac_ext <<_ACEOF
4647 cat confdefs.h
>>conftest.
$ac_ext
4648 cat >>conftest.
$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 int main() { return 0; }
4652 rm -f conftest
$ac_exeext
4653 if { (ac_try
="$ac_link"
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_link") 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4665 *) ac_try_echo
=$ac_try;;
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668 (eval "$ac_try") 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 ac_cv_opt_olimit_ok
=yes
4674 echo "$as_me: program exited with status $ac_status" >&5
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.
$ac_ext >&5
4679 ac_cv_opt_olimit_ok
=no
4681 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4688 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4689 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4690 if test $ac_cv_opt_olimit_ok = yes; then
4691 case $ac_sys_system in
4692 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4693 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4698 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4702 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4703 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4704 if test "${ac_cv_olimit_ok+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 CC
="$CC -Olimit 1500"
4709 if test "$cross_compiling" = yes; then
4712 cat >conftest.
$ac_ext <<_ACEOF
4715 cat confdefs.h
>>conftest.
$ac_ext
4716 cat >>conftest.
$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718 int main() { return 0; }
4720 rm -f conftest
$ac_exeext
4721 if { (ac_try
="$ac_link"
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_link") 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4731 { (case "(($ac_try" in
4732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4733 *) ac_try_echo
=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_try") 2>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4742 echo "$as_me: program exited with status $ac_status" >&5
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.
$ac_ext >&5
4749 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4756 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4757 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4758 if test $ac_cv_olimit_ok = yes; then
4759 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4763 # Check whether GCC supports PyArg_ParseTuple format
4764 if test "$GCC" = "yes"
4766 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4767 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4769 CFLAGS
="$CFLAGS -Werror"
4770 cat >conftest.
$ac_ext <<_ACEOF
4773 cat confdefs.h
>>conftest.
$ac_ext
4774 cat >>conftest.
$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4777 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4787 rm -f conftest.
$ac_objext
4788 if { (ac_try
="$ac_compile"
4790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4796 grep -v '^ *+' conftest.er1 >conftest.err
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4805 cat >>confdefs.h <<\_ACEOF
4806 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4809 { echo "$as_me:$LINENO: result: yes" >&5
4810 echo "${ECHO_T}yes" >&6; }
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 # On some compilers, pthreads are available without further options
4825 # (e.g. MacOS X). On some of these systems, the compiler will not
4826 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4827 # So we have to see first whether pthreads are available without
4828 # options before we can check whether -Kpthread improves anything.
4829 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4830 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4831 if test "${ac_cv_pthread_is_default+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 if test "$cross_compiling" = yes; then
4835 ac_cv_pthread_is_default=no
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 #include <pthread.h>
4846 void* routine(void* p){return NULL;}
4850 if(pthread_create(&p,NULL,routine,NULL)!=0)
4852 (void)pthread_detach(p);
4857 rm -f conftest$ac_exeext
4858 if { (ac_try="$ac_link"
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_link") 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4868 { (case "(($ac_try" in
4869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_try") 2>&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4878 ac_cv_pthread_is_default=yes
4883 echo "$as_me: program exited with status $ac_status" >&5
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4888 ac_cv_pthread_is_default=no
4890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4897 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4898 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4901 if test $ac_cv_pthread_is_default = yes
4905 # -Kpthread, if available, provides the right #defines
4906 # and linker options to make pthread_create available
4907 # Some compilers won't report that they do not support -Kpthread,
4908 # so we need to run a program to see whether it really made the
4909 # function available.
4910 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4911 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4912 if test "${ac_cv_kpthread+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test "$cross_compiling" = yes; then
4920 cat >conftest.$ac_ext <<_ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4927 #include <pthread.h>
4929 void* routine(void* p){return NULL;}
4933 if(pthread_create(&p,NULL,routine,NULL)!=0)
4935 (void)pthread_detach(p);
4940 rm -f conftest$ac_exeext
4941 if { (ac_try="$ac_link"
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_link") 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4951 { (case "(($ac_try" in
4952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956 (eval "$ac_try") 2>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4962 echo "$as_me: program exited with status $ac_status" >&5
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4976 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4977 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4980 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4982 # -Kthread, if available, provides the right #defines
4983 # and linker options to make pthread_create available
4984 # Some compilers won't report that they do not support -Kthread,
4985 # so we need to run a program to see whether it really made the
4986 # function available.
4987 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4988 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4989 if test "${ac_cv_kthread+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 if test "$cross_compiling" = yes; then
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5004 #include <pthread.h>
5006 void* routine(void* p){return NULL;}
5010 if(pthread_create(&p,NULL,routine,NULL)!=0)
5012 (void)pthread_detach(p);
5017 rm -f conftest$ac_exeext
5018 if { (ac_try="$ac_link"
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_link") 2>&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5028 { (case "(($ac_try" in
5029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_try") 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5039 echo "$as_me: program exited with status $ac_status" >&5
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5053 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5054 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5057 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5059 # -pthread, if available, provides the right #defines
5060 # and linker options to make pthread_create available
5061 # Some compilers won't report that they do not support -pthread,
5062 # so we need to run a program to see whether it really made the
5063 # function available.
5064 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5065 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5066 if test "${ac_cv_thread+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 if test "$cross_compiling" = yes; then
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 #include <pthread.h>
5083 void* routine(void* p){return NULL;}
5087 if(pthread_create(&p,NULL,routine,NULL)!=0)
5089 (void)pthread_detach(p);
5094 rm -f conftest$ac_exeext
5095 if { (ac_try="$ac_link"
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_link") 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5105 { (case "(($ac_try" in
5106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_try") 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5116 echo "$as_me: program exited with status $ac_status" >&5
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5130 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5131 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5134 # If we have set a CC compiler flag for thread support then
5135 # check if it works for CXX, too.
5139 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5140 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5143 if test "$ac_cv_kpthread" = "yes"
5145 CXX="$CXX -Kpthread"
5146 ac_cv_cxx_thread=yes
5147 elif test "$ac_cv_kthread" = "yes"
5150 ac_cv_cxx_thread=yes
5151 elif test "$ac_cv_pthread" = "yes"
5154 ac_cv_cxx_thread=yes
5157 if test $ac_cv_cxx_thread = yes
5159 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5160 $CXX -c conftest.$ac_ext 2>&5
5161 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5162 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5164 ac_cv_cxx_thread=yes
5170 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5171 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5176 # checks for header files
5177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5179 if test "${ac_cv_header_stdc+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5201 rm -f conftest.$ac_objext
5202 if { (ac_try="$ac_compile"
5204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5205 *) ac_try_echo
=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_compile") 2>conftest.er1
5210 grep -v '^ *+' conftest.er1
>conftest.err
5212 cat conftest.err
>&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } && {
5215 test -z "$ac_c_werror_flag" ||
5216 test ! -s conftest.err
5217 } && test -s conftest.
$ac_objext; then
5218 ac_cv_header_stdc
=yes
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.
$ac_ext >&5
5223 ac_cv_header_stdc
=no
5226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5228 if test $ac_cv_header_stdc = yes; then
5229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5230 cat >conftest.
$ac_ext <<_ACEOF
5233 cat confdefs.h
>>conftest.
$ac_ext
5234 cat >>conftest.
$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240 $EGREP "memchr" >/dev
/null
2>&1; then
5243 ac_cv_header_stdc
=no
5249 if test $ac_cv_header_stdc = yes; then
5250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5251 cat >conftest.
$ac_ext <<_ACEOF
5254 cat confdefs.h
>>conftest.
$ac_ext
5255 cat >>conftest.
$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "free" >/dev
/null
2>&1; then
5264 ac_cv_header_stdc
=no
5270 if test $ac_cv_header_stdc = yes; then
5271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5272 if test "$cross_compiling" = yes; then
5275 cat >conftest.
$ac_ext <<_ACEOF
5278 cat confdefs.h
>>conftest.
$ac_ext
5279 cat >>conftest.
$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5283 #if ((' ' & 0x0FF) == 0x020)
5284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5287 # define ISLOWER(c) \
5288 (('a' <= (c) && (c) <= 'i') \
5289 || ('j' <= (c) && (c) <= 'r') \
5290 || ('s' <= (c) && (c) <= 'z'))
5291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5299 for (i = 0; i < 256; i++)
5300 if (XOR (islower (i), ISLOWER (i))
5301 || toupper (i) != TOUPPER (i))
5306 rm -f conftest
$ac_exeext
5307 if { (ac_try
="$ac_link"
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_link") 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5317 { (case "(($ac_try" in
5318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5319 *) ac_try_echo
=$ac_try;;
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_try") 2>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5328 echo "$as_me: program exited with status $ac_status" >&5
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.
$ac_ext >&5
5333 ac_cv_header_stdc
=no
5335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5343 if test $ac_cv_header_stdc = yes; then
5345 cat >>confdefs.h
<<\_ACEOF
5346 #define STDC_HEADERS 1
5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5361 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5362 inttypes.h stdint.h unistd.h
5364 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5367 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 cat >conftest.
$ac_ext <<_ACEOF
5373 cat confdefs.h
>>conftest.
$ac_ext
5374 cat >>conftest.
$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5378 #include <$ac_header>
5380 rm -f conftest.
$ac_objext
5381 if { (ac_try
="$ac_compile"
5383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compile") 2>conftest.er1
5389 grep -v '^ *+' conftest.er1 >conftest.err
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
5397 eval "$as_ac_Header=yes"
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5402 eval "$as_ac_Header=no"
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_res=`eval echo '${'$as_ac_Header'}'`
5408 { echo "$as_me:$LINENO: result: $ac_res" >&5
5409 echo "${ECHO_T}$ac_res" >&6; }
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5474 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5476 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5477 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5479 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5480 sys/lock.h sys/mkdev.h sys/modem.h \
5481 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5482 sys/termio.h sys/time.h \
5483 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5484 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5485 bluetooth/bluetooth.h linux/tipc.h
5487 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 ac_res=`eval echo '${'$as_ac_Header'}'`
5495 { echo "$as_me:$LINENO: result: $ac_res" >&5
5496 echo "${ECHO_T}$ac_res" >&6; }
5498 # Is the header compilable?
5499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5501 cat >conftest.$ac_ext <<_ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 $ac_includes_default
5508 #include <$ac_header>
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5514 *) ac_try_echo
=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
5519 grep -v '^ *+' conftest.er1
>conftest.err
5521 cat conftest.err
>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.
$ac_objext; then
5527 ac_header_compiler
=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.
$ac_ext >&5
5532 ac_header_compiler
=no
5535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5537 echo "${ECHO_T}$ac_header_compiler" >&6; }
5539 # Is the header present?
5540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5542 cat >conftest.
$ac_ext <<_ACEOF
5545 cat confdefs.h
>>conftest.
$ac_ext
5546 cat >>conftest.
$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <$ac_header>
5550 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558 grep -v '^ *+' conftest.er1 >conftest.err
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } >/dev/null && {
5563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5564 test ! -s conftest.err
5566 ac_header_preproc=yes
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 ac_header_preproc=no
5574 rm -f conftest.err conftest.$ac_ext
5575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5576 echo "${ECHO_T}$ac_header_preproc" >&6; }
5578 # So? What about this header?
5579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5585 ac_header_preproc=yes
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5601 ## ------------------------------------------------ ##
5602 ## Report this to http://www.python.org/python-bugs ##
5603 ## ------------------------------------------------ ##
5605 ) | sed "s/^/$as_me: WARNING: /" >&2
5608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 eval "$as_ac_Header=\$ac_header_preproc"
5615 ac_res=`eval echo '${'$as_ac_Header'}'`
5616 { echo "$as_me:$LINENO: result: $ac_res" >&5
5617 echo "${ECHO_T}$ac_res" >&6; }
5620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5621 cat >>confdefs.h <<_ACEOF
5622 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5635 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5636 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5637 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5638 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <sys/types.h>
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5664 *) ac_try_echo
=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1
>conftest.err
5671 cat conftest.err
>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.
$ac_objext; then
5677 eval "$as_ac_Header=yes"
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5682 eval "$as_ac_Header=no"
5685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5687 ac_res
=`eval echo '${'$as_ac_Header'}'`
5688 { echo "$as_me:$LINENO: result: $ac_res" >&5
5689 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h
<<_ACEOF
5692 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5695 ac_header_dirent
=$ac_hdr; break
5699 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5700 if test $ac_header_dirent = dirent.h
; then
5701 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5702 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5703 if test "${ac_cv_search_opendir+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 ac_func_search_save_LIBS
=$LIBS
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5714 /* Override any GCC internal prototype to avoid an error.
5715 Use char because int might match the return type of a GCC
5716 builtin and then its argument prototype would still apply. */
5729 for ac_lib
in '' dir
; do
5730 if test -z "$ac_lib"; then
5731 ac_res
="none required"
5734 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5736 rm -f conftest.
$ac_objext conftest
$ac_exeext
5737 if { (ac_try
="$ac_link"
5739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_link") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest$ac_exeext &&
5753 $as_test_x conftest$ac_exeext; then
5754 ac_cv_search_opendir=$ac_res
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5764 if test "${ac_cv_search_opendir+set}" = set; then
5768 if test "${ac_cv_search_opendir+set}" = set; then
5771 ac_cv_search_opendir=no
5774 LIBS=$ac_func_search_save_LIBS
5776 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5777 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5778 ac_res=$ac_cv_search_opendir
5779 if test "$ac_res" != no; then
5780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5785 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5786 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5787 if test "${ac_cv_search_opendir+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 ac_func_search_save_LIBS=$LIBS
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5798 /* Override any GCC internal prototype to avoid an error.
5799 Use char because int might match the return type of a GCC
5800 builtin and then its argument prototype would still apply. */
5813 for ac_lib in '' x; do
5814 if test -z "$ac_lib"; then
5815 ac_res="none required"
5818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (ac_try="$ac_link"
5823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5824 *) ac_try_echo
=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_link") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1
>conftest.err
5831 cat conftest.err
>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest
$ac_exeext &&
5837 $as_test_x conftest
$ac_exeext; then
5838 ac_cv_search_opendir
=$ac_res
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.
$ac_ext >&5
5846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5848 if test "${ac_cv_search_opendir+set}" = set; then
5852 if test "${ac_cv_search_opendir+set}" = set; then
5855 ac_cv_search_opendir
=no
5858 LIBS
=$ac_func_search_save_LIBS
5860 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5861 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5862 ac_res
=$ac_cv_search_opendir
5863 if test "$ac_res" != no
; then
5864 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5870 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5871 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5872 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <sys/types.h>
5885 return makedev(0, 0);
5890 rm -f conftest.
$ac_objext conftest
$ac_exeext
5891 if { (ac_try
="$ac_link"
5893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
5908 ac_cv_header_sys_types_h_makedev=yes
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_cv_header_sys_types_h_makedev=no
5916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917 conftest$ac_exeext conftest.$ac_ext
5920 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5921 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5923 if test $ac_cv_header_sys_types_h_makedev = no; then
5924 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5925 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5926 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5927 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5931 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5933 # Is the header compilable?
5934 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5935 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 #include <sys/mkdev.h>
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5949 *) ac_try_echo
=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1
>conftest.err
5956 cat conftest.err
>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.
$ac_objext; then
5962 ac_header_compiler
=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.
$ac_ext >&5
5967 ac_header_compiler
=no
5970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5972 echo "${ECHO_T}$ac_header_compiler" >&6; }
5974 # Is the header present?
5975 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5976 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/mkdev.h>
5985 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev/null && {
5998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6001 ac_header_preproc=yes
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 ac_header_preproc=no
6009 rm -f conftest.err conftest.$ac_ext
6010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6011 echo "${ECHO_T}$ac_header_preproc" >&6; }
6013 # So? What about this header?
6014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6016 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6017 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6019 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6020 ac_header_preproc=yes
6023 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6024 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6026 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6028 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6030 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6032 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6034 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6036 ## ------------------------------------------------ ##
6037 ## Report this to http://www.python.org/python-bugs ##
6038 ## ------------------------------------------------ ##
6040 ) | sed "s/^/$as_me: WARNING: /" >&2
6043 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6044 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6045 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6050 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6051 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6054 if test $ac_cv_header_sys_mkdev_h = yes; then
6056 cat >>confdefs.h <<\_ACEOF
6057 #define MAJOR_IN_MKDEV 1
6064 if test $ac_cv_header_sys_mkdev_h = no; then
6065 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6066 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6067 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6068 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6072 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6074 # Is the header compilable?
6075 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6076 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 $ac_includes_default
6084 #include <sys/sysmacros.h>
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6090 *) ac_try_echo
=$ac_try;;
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1
>conftest.err
6097 cat conftest.err
>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.
$ac_objext; then
6103 ac_header_compiler
=yes
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.
$ac_ext >&5
6108 ac_header_compiler
=no
6111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113 echo "${ECHO_T}$ac_header_compiler" >&6; }
6115 # Is the header present?
6116 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6117 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6118 cat >conftest.
$ac_ext <<_ACEOF
6121 cat confdefs.h
>>conftest.
$ac_ext
6122 cat >>conftest.
$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <sys/sysmacros.h>
6126 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6134 grep -v '^ *+' conftest.er1 >conftest.err
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev/null && {
6139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6142 ac_header_preproc=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_header_preproc=no
6150 rm -f conftest.err conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6152 echo "${ECHO_T}$ac_header_preproc" >&6; }
6154 # So? What about this header?
6155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6158 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6160 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6161 ac_header_preproc=yes
6164 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6165 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6166 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6167 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6169 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6171 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6173 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6174 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6175 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6177 ## ------------------------------------------------ ##
6178 ## Report this to http://www.python.org/python-bugs ##
6179 ## ------------------------------------------------ ##
6181 ) | sed "s/^/$as_me: WARNING: /" >&2
6184 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6185 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6186 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6192 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6195 if test $ac_cv_header_sys_sysmacros_h = yes; then
6197 cat >>confdefs.h <<\_ACEOF
6198 #define MAJOR_IN_SYSMACROS 1
6208 # On Solaris, term.h requires curses.h
6210 for ac_header in term.h
6212 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6225 #ifdef HAVE_CURSES_H
6230 #include <$ac_header>
6232 rm -f conftest.$ac_objext
6233 if { (ac_try="$ac_compile"
6235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6236 *) ac_try_echo
=$ac_try;;
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6241 grep -v '^ *+' conftest.er1
>conftest.err
6243 cat conftest.err
>&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.
$ac_objext; then
6249 eval "$as_ac_Header=yes"
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.
$ac_ext >&5
6254 eval "$as_ac_Header=no"
6257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6259 ac_res
=`eval echo '${'$as_ac_Header'}'`
6260 { echo "$as_me:$LINENO: result: $ac_res" >&5
6261 echo "${ECHO_T}$ac_res" >&6; }
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h
<<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272 # On Linux, netlink.h requires asm/types.h
6274 for ac_header
in linux
/netlink.h
6276 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6279 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat >conftest.
$ac_ext <<_ACEOF
6285 cat confdefs.h
>>conftest.
$ac_ext
6286 cat >>conftest.
$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6289 #ifdef HAVE_ASM_TYPES_H
6290 #include <asm/types.h>
6292 #ifdef HAVE_SYS_SOCKET_H
6293 #include <sys/socket.h>
6297 #include <$ac_header>
6299 rm -f conftest.
$ac_objext
6300 if { (ac_try
="$ac_compile"
6302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
6316 eval "$as_ac_Header=yes"
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 eval "$as_ac_Header=no"
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_res=`eval echo '${'$as_ac_Header'}'`
6327 { echo "$as_me:$LINENO: result: $ac_res" >&5
6328 echo "${ECHO_T}$ac_res" >&6; }
6329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6330 cat >>confdefs.h <<_ACEOF
6331 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6339 # checks for typedefs
6341 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6342 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 $EGREP "clock_t" >/dev/null 2>&1; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define clock_t long
6366 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6367 echo "${ECHO_T}$was_it_defined" >&6; }
6369 # Check whether using makedev requires defining _OSF_SOURCE
6370 { echo "$as_me:$LINENO: checking for makedev" >&5
6371 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378 #include <sys/types.h>
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (ac_try="$ac_link"
6390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6391 *) ac_try_echo
=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_link") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest
$ac_exeext &&
6404 $as_test_x conftest
$ac_exeext; then
6405 ac_cv_has_makedev
=yes
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.
$ac_ext >&5
6410 ac_cv_has_makedev
=no
6413 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6414 conftest
$ac_exeext conftest.
$ac_ext
6415 if test "$ac_cv_has_makedev" = "no"; then
6416 # we didn't link, try if _OSF_SOURCE will allow us to link
6417 cat >conftest.
$ac_ext <<_ACEOF
6420 cat confdefs.h
>>conftest.
$ac_ext
6421 cat >>conftest.
$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6424 #define _OSF_SOURCE 1
6425 #include <sys/types.h>
6435 rm -f conftest.
$ac_objext conftest
$ac_exeext
6436 if { (ac_try
="$ac_link"
6438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_link") 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest$ac_exeext &&
6452 $as_test_x conftest$ac_exeext; then
6453 ac_cv_has_makedev=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_cv_has_makedev=no
6461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6462 conftest$ac_exeext conftest.$ac_ext
6463 if test "$ac_cv_has_makedev" = "yes"; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define _OSF_SOURCE 1
6471 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6472 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6473 if test "$ac_cv_has_makedev" = "yes"; then
6475 cat >>confdefs.h <<\_ACEOF
6476 #define HAVE_MAKEDEV 1
6481 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6482 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6483 # defined, but the compiler does not support pragma redefine_extname,
6484 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6485 # structures (such as rlimit64) without declaring them. As a
6486 # work-around, disable LFS on such configurations
6489 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6490 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6498 #define _LARGEFILE_SOURCE 1
6499 #define _FILE_OFFSET_BITS 64
6500 #include <sys/resource.h>
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6514 *) ac_try_echo
=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compile") 2>conftest.er1
6519 grep -v '^ *+' conftest.er1
>conftest.err
6521 cat conftest.err
>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } && {
6524 test -z "$ac_c_werror_flag" ||
6525 test ! -s conftest.err
6526 } && test -s conftest.
$ac_objext; then
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.
$ac_ext >&5
6535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6537 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6538 if test "$sol_lfs_bug" = "yes"; then
6542 if test "$use_lfs" = "yes"; then
6543 # Two defines needed to enable largefile support on various platforms
6544 # These may affect some typedefs
6546 cat >>confdefs.h
<<\_ACEOF
6547 #define _LARGEFILE_SOURCE 1
6551 cat >>confdefs.h
<<\_ACEOF
6552 #define _FILE_OFFSET_BITS 64
6557 # Add some code to confdefs.h so that the test for off_t works on SCO
6558 cat >> confdefs.h
<<\EOF
6564 # Type availability checks
6565 { echo "$as_me:$LINENO: checking for mode_t" >&5
6566 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6567 if test "${ac_cv_type_mode_t+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 cat >conftest.
$ac_ext <<_ACEOF
6573 cat confdefs.h
>>conftest.
$ac_ext
6574 cat >>conftest.
$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 $ac_includes_default
6577 typedef mode_t ac__type_new_;
6581 if ((ac__type_new_ *) 0)
6583 if (sizeof (ac__type_new_))
6589 rm -f conftest.
$ac_objext
6590 if { (ac_try
="$ac_compile"
6592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6598 grep -v '^ *+' conftest.er1 >conftest.err
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.$ac_objext; then
6606 ac_cv_type_mode_t=yes
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6611 ac_cv_type_mode_t=no
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6617 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6618 if test $ac_cv_type_mode_t = yes; then
6622 cat >>confdefs.h <<_ACEOF
6628 { echo "$as_me:$LINENO: checking for off_t" >&5
6629 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6630 if test "${ac_cv_type_off_t+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 cat >conftest.$ac_ext <<_ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 typedef off_t ac__type_new_;
6644 if ((ac__type_new_ *) 0)
6646 if (sizeof (ac__type_new_))
6652 rm -f conftest.$ac_objext
6653 if { (ac_try="$ac_compile"
6655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6656 *) ac_try_echo
=$ac_try;;
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_compile") 2>conftest.er1
6661 grep -v '^ *+' conftest.er1
>conftest.err
6663 cat conftest.err
>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest.
$ac_objext; then
6669 ac_cv_type_off_t
=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.
$ac_ext >&5
6677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6680 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6681 if test $ac_cv_type_off_t = yes; then
6685 cat >>confdefs.h
<<_ACEOF
6686 #define off_t long int
6691 { echo "$as_me:$LINENO: checking for pid_t" >&5
6692 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6693 if test "${ac_cv_type_pid_t+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.
$ac_ext <<_ACEOF
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6703 typedef pid_t ac__type_new_;
6707 if ((ac__type_new_ *) 0)
6709 if (sizeof (ac__type_new_))
6715 rm -f conftest.
$ac_objext
6716 if { (ac_try
="$ac_compile"
6718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_compile") 2>conftest.er1
6724 grep -v '^ *+' conftest.er1 >conftest.err
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && {
6729 test -z "$ac_c_werror_flag" ||
6730 test ! -s conftest.err
6731 } && test -s conftest.$ac_objext; then
6732 ac_cv_type_pid_t=yes
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6743 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6744 if test $ac_cv_type_pid_t = yes; then
6748 cat >>confdefs.h <<_ACEOF
6754 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6755 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6756 if test "${ac_cv_type_signal+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <sys/types.h>
6771 return *(signal (0, 0)) (0) == 1;
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6780 *) ac_try_echo
=$ac_try;;
6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6785 grep -v '^ *+' conftest.er1
>conftest.err
6787 cat conftest.err
>&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.
$ac_objext; then
6793 ac_cv_type_signal
=int
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.
$ac_ext >&5
6798 ac_cv_type_signal
=void
6801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6803 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6804 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6806 cat >>confdefs.h
<<_ACEOF
6807 #define RETSIGTYPE $ac_cv_type_signal
6811 { echo "$as_me:$LINENO: checking for size_t" >&5
6812 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6813 if test "${ac_cv_type_size_t+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.
$ac_ext <<_ACEOF
6819 cat confdefs.h
>>conftest.
$ac_ext
6820 cat >>conftest.
$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 $ac_includes_default
6823 typedef size_t ac__type_new_;
6827 if ((ac__type_new_ *) 0)
6829 if (sizeof (ac__type_new_))
6835 rm -f conftest.
$ac_objext
6836 if { (ac_try
="$ac_compile"
6838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
6852 ac_cv_type_size_t=yes
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_cv_type_size_t=no
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6863 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6864 if test $ac_cv_type_size_t = yes; then
6868 cat >>confdefs.h <<_ACEOF
6869 #define size_t unsigned int
6874 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6875 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6876 if test "${ac_cv_type_uid_t+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <sys/types.h>
6888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6889 $EGREP "uid_t" >/dev/null 2>&1; then
6890 ac_cv_type_uid_t=yes
6897 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6898 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6899 if test $ac_cv_type_uid_t = no; then
6901 cat >>confdefs.h <<\_ACEOF
6906 cat >>confdefs.h <<\_ACEOF
6912 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6913 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6914 if test "${ac_cv_type_ssize_t+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 $ac_includes_default
6924 typedef ssize_t ac__type_new_;
6928 if ((ac__type_new_ *) 0)
6930 if (sizeof (ac__type_new_))
6936 rm -f conftest.$ac_objext
6937 if { (ac_try="$ac_compile"
6939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6940 *) ac_try_echo
=$ac_try;;
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6945 grep -v '^ *+' conftest.er1
>conftest.err
6947 cat conftest.err
>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.
$ac_objext; then
6953 ac_cv_type_ssize_t
=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.
$ac_ext >&5
6958 ac_cv_type_ssize_t
=no
6961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6963 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6965 if test $ac_cv_type_ssize_t = yes; then
6967 cat >>confdefs.h
<<\_ACEOF
6968 #define HAVE_SSIZE_T 1
6974 # Sizes of various common basic types
6975 # ANSI C requires sizeof(char) == 1, so no need to check it
6976 { echo "$as_me:$LINENO: checking for int" >&5
6977 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6978 if test "${ac_cv_type_int+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 cat >conftest.
$ac_ext <<_ACEOF
6984 cat confdefs.h
>>conftest.
$ac_ext
6985 cat >>conftest.
$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6988 typedef int ac__type_new_;
6992 if ((ac__type_new_ *) 0)
6994 if (sizeof (ac__type_new_))
7000 rm -f conftest.
$ac_objext
7001 if { (ac_try
="$ac_compile"
7003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7028 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7030 # The cast to long int works around a bug in the HP C Compiler
7031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7032 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7033 # This bug is HP SR number 8606223364.
7034 { echo "$as_me:$LINENO: checking size of int" >&5
7035 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7036 if test "${ac_cv_sizeof_int+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 if test "$cross_compiling" = yes; then
7040 # Depending upon the size, compute the lo and hi bounds.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 typedef int ac__type_sizeof_;
7052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7059 rm -f conftest.$ac_objext
7060 if { (ac_try="$ac_compile"
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_compile") 2>conftest.er1
7068 grep -v '^
*+' conftest.er1 >conftest.err
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest.$ac_objext; then
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 $ac_includes_default
7085 typedef int ac__type_sizeof_;
7089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7096 rm -f conftest.$ac_objext
7097 if { (ac_try="$ac_compile"
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7105 grep -v '^
*+' conftest.er1 >conftest.err
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
7113 ac_hi=$ac_mid; break
7115 echo "$as_me: failed program was:" >&5
7116 sed 's
/^
/|
/' conftest.$ac_ext >&5
7118 ac_lo=`expr $ac_mid + 1`
7119 if test $ac_lo -le $ac_mid; then
7123 ac_mid=`expr 2 '*' $ac_mid + 1`
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 echo "$as_me: failed program was:" >&5
7130 sed 's
/^
/|
/' conftest.$ac_ext >&5
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 typedef int ac__type_sizeof_;
7143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_compile") 2>conftest.er1
7159 grep -v '^
*+' conftest.er1 >conftest.err
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && {
7164 test -z "$ac_c_werror_flag" ||
7165 test ! -s conftest.err
7166 } && test -s conftest.$ac_objext; then
7169 cat >conftest.$ac_ext <<_ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7176 typedef int ac__type_sizeof_;
7180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7196 grep -v '^
*+' conftest.er1 >conftest.err
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 ac_lo=$ac_mid; break
7206 echo "$as_me: failed program was:" >&5
7207 sed 's
/^
/|
/' conftest.$ac_ext >&5
7209 ac_hi=`expr '(' $ac_mid ')' - 1`
7210 if test $ac_mid -le $ac_hi; then
7214 ac_mid=`expr 2 '*' $ac_mid`
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 echo "$as_me: failed program was:" >&5
7221 sed 's
/^
/|
/' conftest.$ac_ext >&5
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 # Binary search between lo and hi bounds.
7231 while test "x$ac_lo" != "x$ac_hi"; do
7232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7233 cat >conftest.$ac_ext <<_ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7240 typedef int ac__type_sizeof_;
7244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7260 grep -v '^
*+' conftest.er1 >conftest.err
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.$ac_objext; then
7270 echo "$as_me: failed program was:" >&5
7271 sed 's
/^
/|
/' conftest.$ac_ext >&5
7273 ac_lo=`expr '(' $ac_mid ')' + 1`
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 ?*) ac_cv_sizeof_int=$ac_lo;;
7280 '') if test "$ac_cv_type_int" = yes; then
7281 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7282 See \`config.log' for more details.
" >&5
7283 echo "$as_me: error
: cannot compute sizeof
(int
)
7284 See \
`config.log' for more details." >&2;}
7285 { (exit 77); exit 77; }; }
7291 cat >conftest.$ac_ext <<_ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7298 typedef int ac__type_sizeof_;
7299 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7300 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7307 FILE *f = fopen ("conftest.val", "w");
7310 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7312 long int i = longval ();
7313 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7315 fprintf (f, "%ld\n", i);
7319 unsigned long int i = ulongval ();
7320 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7322 fprintf (f, "%lu\n", i);
7324 return ferror (f) || fclose (f) != 0;
7330 rm -f conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7334 *) ac_try_echo
=$ac_try;;
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7341 { (case "(($ac_try" in
7342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_try") 2>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_sizeof_int=`cat conftest.val
`
7352 echo "$as_me: program exited with status $ac_status" >&5
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7357 if test "$ac_cv_type_int" = yes; then
7358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7359 See \`config.log
' for more details." >&5
7360 echo "$as_me: error: cannot compute sizeof (int)
7361 See \`config.log' for more details.
" >&2;}
7362 { (exit 77); exit 77; }; }
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7371 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7372 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7376 cat >>confdefs.h <<_ACEOF
7377 #define SIZEOF_INT $ac_cv_sizeof_int
7381 { echo "$as_me:$LINENO: checking
for long
" >&5
7382 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7383 if test "${ac_cv_type_long+set}" = set; then
7384 echo $ECHO_N "(cached
) $ECHO_C" >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 typedef long ac__type_new_;
7397 if ((ac__type_new_ *) 0)
7399 if (sizeof (ac__type_new_))
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1 >conftest.err
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7424 echo "$as_me: failed program was
:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7433 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7435 # The cast to long int works around a bug in the HP C Compiler
7436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7438 # This bug is HP SR number 8606223364.
7439 { echo "$as_me:$LINENO: checking size of long
" >&5
7440 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7441 if test "${ac_cv_sizeof_long+set}" = set; then
7442 echo $ECHO_N "(cached
) $ECHO_C" >&6
7444 if test "$cross_compiling" = yes; then
7445 # Depending upon the size, compute the lo and hi bounds.
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 $ac_includes_default
7453 typedef long ac__type_sizeof_;
7457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7473 grep -v '^ *+' conftest.er1 >conftest.err
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7490 typedef long ac__type_sizeof_;
7494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_hi=$ac_mid; break
7520 echo "$as_me: failed program was
:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 ac_lo=`expr $ac_mid + 1`
7524 if test $ac_lo -le $ac_mid; then
7528 ac_mid=`expr 2 '*' $ac_mid + 1`
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534 echo "$as_me: failed program was
:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7544 typedef long ac__type_sizeof_;
7548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7555 rm -f conftest.$ac_objext
7556 if { (ac_try="$ac_compile"
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7564 grep -v '^ *+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7581 typedef long ac__type_sizeof_;
7585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7592 rm -f conftest.$ac_objext
7593 if { (ac_try="$ac_compile"
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 ac_lo=$ac_mid; break
7611 echo "$as_me: failed program was
:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_hi=`expr '(' $ac_mid ')' - 1`
7615 if test $ac_mid -le $ac_hi; then
7619 ac_mid=`expr 2 '*' $ac_mid`
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 echo "$as_me: failed program was
:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 # Binary search between lo and hi bounds.
7636 while test "x
$ac_lo" != "x
$ac_hi"; do
7637 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 typedef long ac__type_sizeof_;
7649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7665 grep -v '^ *+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7675 echo "$as_me: failed program was
:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_lo=`expr '(' $ac_mid ')' + 1`
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 ?*) ac_cv_sizeof_long=$ac_lo;;
7685 '') if test "$ac_cv_type_long" = yes; then
7686 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7687 See \
`config.log' for more details." >&5
7688 echo "$as_me: error: cannot compute sizeof (long)
7689 See \`config.log
' for more details." >&2;}
7690 { (exit 77); exit 77; }; }
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 typedef long ac__type_sizeof_;
7704 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7705 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7712 FILE *f = fopen ("conftest.val", "w");
7715 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7717 long int i = longval ();
7718 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7720 fprintf (f, "%ld\n", i);
7724 unsigned long int i = ulongval ();
7725 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7727 fprintf (f, "%lu\n", i);
7729 return ferror (f) || fclose (f) != 0;
7735 rm -f conftest$ac_exeext
7736 if { (ac_try="$ac_link"
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_link") 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7746 { (case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_try") 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 ac_cv_sizeof_long=`cat conftest.val`
7757 echo "$as_me: program exited with status $ac_status" >&5
7758 echo "$as_me: failed program was:" >&5
7759 sed 's
/^
/|
/' conftest.$ac_ext >&5
7762 if test "$ac_cv_type_long" = yes; then
7763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7764 See \`config.log' for more details.
" >&5
7765 echo "$as_me: error
: cannot compute sizeof
(long
)
7766 See \
`config.log' for more details." >&2;}
7767 { (exit 77); exit 77; }; }
7772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7776 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7777 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7781 cat >>confdefs.h <<_ACEOF
7782 #define SIZEOF_LONG $ac_cv_sizeof_long
7786 { echo "$as_me:$LINENO: checking for void *" >&5
7787 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7788 if test "${ac_cv_type_void_p+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7798 typedef void * ac__type_new_;
7802 if ((ac__type_new_ *) 0)
7804 if (sizeof (ac__type_new_))
7810 rm -f conftest.$ac_objext
7811 if { (ac_try="$ac_compile"
7813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7814 *) ac_try_echo
=$ac_try;;
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_compile") 2>conftest.er1
7819 grep -v '^ *+' conftest.er1
>conftest.err
7821 cat conftest.err
>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest.
$ac_objext; then
7827 ac_cv_type_void_p
=yes
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.
$ac_ext >&5
7832 ac_cv_type_void_p
=no
7835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7837 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7838 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7840 # The cast to long int works around a bug in the HP C Compiler
7841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7843 # This bug is HP SR number 8606223364.
7844 { echo "$as_me:$LINENO: checking size of void *" >&5
7845 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7846 if test "${ac_cv_sizeof_void_p+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 if test "$cross_compiling" = yes; then
7850 # Depending upon the size, compute the lo and hi bounds.
7851 cat >conftest.
$ac_ext <<_ACEOF
7854 cat confdefs.h
>>conftest.
$ac_ext
7855 cat >>conftest.
$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 typedef void * ac__type_sizeof_;
7862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7869 rm -f conftest.
$ac_objext
7870 if { (ac_try
="$ac_compile"
7872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7895 typedef void * ac__type_sizeof_;
7899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7910 *) ac_try_echo
=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1
>conftest.err
7917 cat conftest.err
>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.
$ac_objext; then
7923 ac_hi
=$ac_mid; break
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.
$ac_ext >&5
7928 ac_lo
=`expr $ac_mid + 1`
7929 if test $ac_lo -le $ac_mid; then
7933 ac_mid
=`expr 2 '*' $ac_mid + 1`
7936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.
$ac_ext >&5
7942 cat >conftest.
$ac_ext <<_ACEOF
7945 cat confdefs.h
>>conftest.
$ac_ext
7946 cat >>conftest.
$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 $ac_includes_default
7949 typedef void * ac__type_sizeof_;
7953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7960 rm -f conftest.
$ac_objext
7961 if { (ac_try
="$ac_compile"
7963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7986 typedef void * ac__type_sizeof_;
7990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7997 rm -f conftest.$ac_objext
7998 if { (ac_try="$ac_compile"
8000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8001 *) ac_try_echo
=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1
>conftest.err
8008 cat conftest.err
>&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest.
$ac_objext; then
8014 ac_lo
=$ac_mid; break
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.
$ac_ext >&5
8019 ac_hi
=`expr '(' $ac_mid ')' - 1`
8020 if test $ac_mid -le $ac_hi; then
8024 ac_mid
=`expr 2 '*' $ac_mid`
8027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.
$ac_ext >&5
8036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8040 # Binary search between lo and hi bounds.
8041 while test "x$ac_lo" != "x$ac_hi"; do
8042 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8043 cat >conftest.
$ac_ext <<_ACEOF
8046 cat confdefs.h
>>conftest.
$ac_ext
8047 cat >>conftest.
$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 typedef void * ac__type_sizeof_;
8054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8061 rm -f conftest.
$ac_objext
8062 if { (ac_try
="$ac_compile"
8064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1 >conftest.err
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_lo=`expr '(' $ac_mid ')' + 1`
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8090 '') if test "$ac_cv_type_void_p" = yes; then
8091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8092 See \`config.log
' for more details." >&5
8093 echo "$as_me: error: cannot compute sizeof (void *)
8094 See \`config.log' for more details.
" >&2;}
8095 { (exit 77); exit 77; }; }
8097 ac_cv_sizeof_void_p=0
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 $ac_includes_default
8108 typedef void * ac__type_sizeof_;
8109 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8110 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8117 FILE *f = fopen ("conftest.val
", "w
");
8120 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8122 long int i = longval ();
8123 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8125 fprintf (f, "%ld
\n", i);
8129 unsigned long int i = ulongval ();
8130 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8132 fprintf (f, "%lu
\n", i);
8134 return ferror (f) || fclose (f) != 0;
8140 rm -f conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>&5
8149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8151 { (case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_try") 2>&5
8158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_sizeof_void_p=`cat conftest.val`
8162 echo "$as_me: program exited with status
$ac_status" >&5
8163 echo "$as_me: failed program was
:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8167 if test "$ac_cv_type_void_p" = yes; then
8168 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8169 See \
`config.log' for more details." >&5
8170 echo "$as_me: error: cannot compute sizeof (void *)
8171 See \`config.log
' for more details." >&2;}
8172 { (exit 77); exit 77; }; }
8174 ac_cv_sizeof_void_p=0
8177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8181 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8182 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8186 cat >>confdefs.h <<_ACEOF
8187 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8191 { echo "$as_me:$LINENO: checking for short" >&5
8192 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8193 if test "${ac_cv_type_short+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 typedef short ac__type_new_;
8207 if ((ac__type_new_ *) 0)
8209 if (sizeof (ac__type_new_))
8215 rm -f conftest.$ac_objext
8216 if { (ac_try="$ac_compile"
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_compile") 2>conftest.er1
8224 grep -v '^
*+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest.$ac_objext; then
8232 ac_cv_type_short=yes
8234 echo "$as_me: failed program was:" >&5
8235 sed 's
/^
/|
/' conftest.$ac_ext >&5
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8243 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8245 # The cast to long int works around a bug in the HP C Compiler
8246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8248 # This bug is HP SR number 8606223364.
8249 { echo "$as_me:$LINENO: checking size of short" >&5
8250 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8251 if test "${ac_cv_sizeof_short+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 if test "$cross_compiling" = yes; then
8255 # Depending upon the size, compute the lo and hi bounds.
8256 cat >conftest.
$ac_ext <<_ACEOF
8259 cat confdefs.h
>>conftest.
$ac_ext
8260 cat >>conftest.
$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 typedef short ac__type_sizeof_;
8267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8274 rm -f conftest.
$ac_objext
8275 if { (ac_try
="$ac_compile"
8277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8300 typedef short ac__type_sizeof_;
8304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8315 *) ac_try_echo
=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1
>conftest.err
8322 cat conftest.err
>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.
$ac_objext; then
8328 ac_hi
=$ac_mid; break
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.
$ac_ext >&5
8333 ac_lo
=`expr $ac_mid + 1`
8334 if test $ac_lo -le $ac_mid; then
8338 ac_mid
=`expr 2 '*' $ac_mid + 1`
8341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.
$ac_ext >&5
8347 cat >conftest.
$ac_ext <<_ACEOF
8350 cat confdefs.h
>>conftest.
$ac_ext
8351 cat >>conftest.
$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 typedef short ac__type_sizeof_;
8358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8365 rm -f conftest.
$ac_objext
8366 if { (ac_try
="$ac_compile"
8368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_compile") 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } && {
8379 test -z "$ac_c_werror_flag" ||
8380 test ! -s conftest.err
8381 } && test -s conftest.$ac_objext; then
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 typedef short ac__type_sizeof_;
8395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8406 *) ac_try_echo
=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1
>conftest.err
8413 cat conftest.err
>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.
$ac_objext; then
8419 ac_lo
=$ac_mid; break
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.
$ac_ext >&5
8424 ac_hi
=`expr '(' $ac_mid ')' - 1`
8425 if test $ac_mid -le $ac_hi; then
8429 ac_mid
=`expr 2 '*' $ac_mid`
8432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.
$ac_ext >&5
8441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8445 # Binary search between lo and hi bounds.
8446 while test "x$ac_lo" != "x$ac_hi"; do
8447 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8448 cat >conftest.
$ac_ext <<_ACEOF
8451 cat confdefs.h
>>conftest.
$ac_ext
8452 cat >>conftest.
$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 typedef short ac__type_sizeof_;
8459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8466 rm -f conftest.
$ac_objext
8467 if { (ac_try
="$ac_compile"
8469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_compile") 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest.$ac_objext; then
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_lo=`expr '(' $ac_mid ')' + 1`
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 ?*) ac_cv_sizeof_short=$ac_lo;;
8495 '') if test "$ac_cv_type_short" = yes; then
8496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8497 See \`config.log
' for more details." >&5
8498 echo "$as_me: error: cannot compute sizeof (short)
8499 See \`config.log' for more details.
" >&2;}
8500 { (exit 77); exit 77; }; }
8502 ac_cv_sizeof_short=0
8506 cat >conftest.$ac_ext <<_ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 typedef short ac__type_sizeof_;
8514 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8515 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8522 FILE *f = fopen ("conftest.val
", "w
");
8525 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8527 long int i = longval ();
8528 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8530 fprintf (f, "%ld
\n", i);
8534 unsigned long int i = ulongval ();
8535 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8537 fprintf (f, "%lu
\n", i);
8539 return ferror (f) || fclose (f) != 0;
8545 rm -f conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_link") 2>&5
8554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_try") 2>&5
8563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_sizeof_short=`cat conftest.val`
8567 echo "$as_me: program exited with status
$ac_status" >&5
8568 echo "$as_me: failed program was
:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8572 if test "$ac_cv_type_short" = yes; then
8573 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8574 See \
`config.log' for more details." >&5
8575 echo "$as_me: error: cannot compute sizeof (short)
8576 See \`config.log
' for more details." >&2;}
8577 { (exit 77); exit 77; }; }
8579 ac_cv_sizeof_short=0
8582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8586 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8587 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8591 cat >>confdefs.h <<_ACEOF
8592 #define SIZEOF_SHORT $ac_cv_sizeof_short
8596 { echo "$as_me:$LINENO: checking for float" >&5
8597 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8598 if test "${ac_cv_type_float+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 typedef float ac__type_new_;
8612 if ((ac__type_new_ *) 0)
8614 if (sizeof (ac__type_new_))
8620 rm -f conftest.$ac_objext
8621 if { (ac_try="$ac_compile"
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8629 grep -v '^
*+' conftest.er1 >conftest.err
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && {
8634 test -z "$ac_c_werror_flag" ||
8635 test ! -s conftest.err
8636 } && test -s conftest.$ac_objext; then
8637 ac_cv_type_float=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's
/^
/|
/' conftest.$ac_ext >&5
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8648 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8650 # The cast to long int works around a bug in the HP C Compiler
8651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8653 # This bug is HP SR number 8606223364.
8654 { echo "$as_me:$LINENO: checking size of float" >&5
8655 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8656 if test "${ac_cv_sizeof_float+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 if test "$cross_compiling" = yes; then
8660 # Depending upon the size, compute the lo and hi bounds.
8661 cat >conftest.
$ac_ext <<_ACEOF
8664 cat confdefs.h
>>conftest.
$ac_ext
8665 cat >>conftest.
$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 typedef float ac__type_sizeof_;
8672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8679 rm -f conftest.
$ac_objext
8680 if { (ac_try
="$ac_compile"
8682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 typedef float ac__type_sizeof_;
8709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8716 rm -f conftest.$ac_objext
8717 if { (ac_try="$ac_compile"
8719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8720 *) ac_try_echo
=$ac_try;;
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8725 grep -v '^ *+' conftest.er1
>conftest.err
8727 cat conftest.err
>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.
$ac_objext; then
8733 ac_hi
=$ac_mid; break
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.
$ac_ext >&5
8738 ac_lo
=`expr $ac_mid + 1`
8739 if test $ac_lo -le $ac_mid; then
8743 ac_mid
=`expr 2 '*' $ac_mid + 1`
8746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.
$ac_ext >&5
8752 cat >conftest.
$ac_ext <<_ACEOF
8755 cat confdefs.h
>>conftest.
$ac_ext
8756 cat >>conftest.
$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 typedef float ac__type_sizeof_;
8763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8770 rm -f conftest.
$ac_objext
8771 if { (ac_try
="$ac_compile"
8773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8779 grep -v '^ *+' conftest.er1 >conftest.err
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_c_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8789 cat >conftest.$ac_ext <<_ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 typedef float ac__type_sizeof_;
8800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8811 *) ac_try_echo
=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_compile") 2>conftest.er1
8816 grep -v '^ *+' conftest.er1
>conftest.err
8818 cat conftest.err
>&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest.
$ac_objext; then
8824 ac_lo
=$ac_mid; break
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.
$ac_ext >&5
8829 ac_hi
=`expr '(' $ac_mid ')' - 1`
8830 if test $ac_mid -le $ac_hi; then
8834 ac_mid
=`expr 2 '*' $ac_mid`
8837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.
$ac_ext >&5
8846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 # Binary search between lo and hi bounds.
8851 while test "x$ac_lo" != "x$ac_hi"; do
8852 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8853 cat >conftest.
$ac_ext <<_ACEOF
8856 cat confdefs.h
>>conftest.
$ac_ext
8857 cat >>conftest.
$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 typedef float ac__type_sizeof_;
8864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8871 rm -f conftest.
$ac_objext
8872 if { (ac_try
="$ac_compile"
8874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_compile") 2>conftest.er1
8880 grep -v '^ *+' conftest.er1 >conftest.err
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } && {
8885 test -z "$ac_c_werror_flag" ||
8886 test ! -s conftest.err
8887 } && test -s conftest.$ac_objext; then
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_lo=`expr '(' $ac_mid ')' + 1`
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 ?*) ac_cv_sizeof_float=$ac_lo;;
8900 '') if test "$ac_cv_type_float" = yes; then
8901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8902 See \`config.log
' for more details." >&5
8903 echo "$as_me: error: cannot compute sizeof (float)
8904 See \`config.log' for more details.
" >&2;}
8905 { (exit 77); exit 77; }; }
8907 ac_cv_sizeof_float=0
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8918 typedef float ac__type_sizeof_;
8919 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8920 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8927 FILE *f = fopen ("conftest.val
", "w
");
8930 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8932 long int i = longval ();
8933 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8935 fprintf (f, "%ld
\n", i);
8939 unsigned long int i = ulongval ();
8940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8942 fprintf (f, "%lu
\n", i);
8944 return ferror (f) || fclose (f) != 0;
8950 rm -f conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_link") 2>&5
8959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_cv_sizeof_float=`cat conftest.val`
8972 echo "$as_me: program exited with status
$ac_status" >&5
8973 echo "$as_me: failed program was
:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8977 if test "$ac_cv_type_float" = yes; then
8978 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8979 See \
`config.log' for more details." >&5
8980 echo "$as_me: error: cannot compute sizeof (float)
8981 See \`config.log
' for more details." >&2;}
8982 { (exit 77); exit 77; }; }
8984 ac_cv_sizeof_float=0
8987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8991 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8992 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8996 cat >>confdefs.h <<_ACEOF
8997 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9001 { echo "$as_me:$LINENO: checking for double" >&5
9002 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9003 if test "${ac_cv_type_double+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 $ac_includes_default
9013 typedef double ac__type_new_;
9017 if ((ac__type_new_ *) 0)
9019 if (sizeof (ac__type_new_))
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032 (eval "$ac_compile") 2>conftest.er1
9034 grep -v '^
*+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest.$ac_objext; then
9042 ac_cv_type_double=yes
9044 echo "$as_me: failed program was:" >&5
9045 sed 's
/^
/|
/' conftest.$ac_ext >&5
9047 ac_cv_type_double=no
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9053 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9055 # The cast to long int works around a bug in the HP C Compiler
9056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9058 # This bug is HP SR number 8606223364.
9059 { echo "$as_me:$LINENO: checking size of double" >&5
9060 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9061 if test "${ac_cv_sizeof_double+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 if test "$cross_compiling" = yes; then
9065 # Depending upon the size, compute the lo and hi bounds.
9066 cat >conftest.
$ac_ext <<_ACEOF
9069 cat confdefs.h
>>conftest.
$ac_ext
9070 cat >>conftest.
$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9072 $ac_includes_default
9073 typedef double ac__type_sizeof_;
9077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9084 rm -f conftest.
$ac_objext
9085 if { (ac_try
="$ac_compile"
9087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_compile") 2>conftest.er1
9093 grep -v '^ *+' conftest.er1 >conftest.err
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && {
9098 test -z "$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9100 } && test -s conftest.$ac_objext; then
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 $ac_includes_default
9110 typedef double ac__type_sizeof_;
9114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9125 *) ac_try_echo
=$ac_try;;
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9130 grep -v '^ *+' conftest.er1
>conftest.err
9132 cat conftest.err
>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.
$ac_objext; then
9138 ac_hi
=$ac_mid; break
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.
$ac_ext >&5
9143 ac_lo
=`expr $ac_mid + 1`
9144 if test $ac_lo -le $ac_mid; then
9148 ac_mid
=`expr 2 '*' $ac_mid + 1`
9151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.
$ac_ext >&5
9157 cat >conftest.
$ac_ext <<_ACEOF
9160 cat confdefs.h
>>conftest.
$ac_ext
9161 cat >>conftest.
$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 $ac_includes_default
9164 typedef double ac__type_sizeof_;
9168 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9175 rm -f conftest.
$ac_objext
9176 if { (ac_try
="$ac_compile"
9178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_compile") 2>conftest.er1
9184 grep -v '^ *+' conftest.er1 >conftest.err
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && {
9189 test -z "$ac_c_werror_flag" ||
9190 test ! -s conftest.err
9191 } && test -s conftest.$ac_objext; then
9194 cat >conftest.$ac_ext <<_ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 $ac_includes_default
9201 typedef double ac__type_sizeof_;
9205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9212 rm -f conftest.$ac_objext
9213 if { (ac_try="$ac_compile"
9215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9216 *) ac_try_echo
=$ac_try;;
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_compile") 2>conftest.er1
9221 grep -v '^ *+' conftest.er1
>conftest.err
9223 cat conftest.err
>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest.
$ac_objext; then
9229 ac_lo
=$ac_mid; break
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.
$ac_ext >&5
9234 ac_hi
=`expr '(' $ac_mid ')' - 1`
9235 if test $ac_mid -le $ac_hi; then
9239 ac_mid
=`expr 2 '*' $ac_mid`
9242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9255 # Binary search between lo and hi bounds.
9256 while test "x$ac_lo" != "x$ac_hi"; do
9257 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9258 cat >conftest.
$ac_ext <<_ACEOF
9261 cat confdefs.h
>>conftest.
$ac_ext
9262 cat >>conftest.
$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 $ac_includes_default
9265 typedef double ac__type_sizeof_;
9269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9276 rm -f conftest.
$ac_objext
9277 if { (ac_try
="$ac_compile"
9279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_compile") 2>conftest.er1
9285 grep -v '^ *+' conftest.er1 >conftest.err
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } && {
9290 test -z "$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9292 } && test -s conftest.$ac_objext; then
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_lo=`expr '(' $ac_mid ')' + 1`
9301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 ?*) ac_cv_sizeof_double=$ac_lo;;
9305 '') if test "$ac_cv_type_double" = yes; then
9306 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9307 See \`config.log
' for more details." >&5
9308 echo "$as_me: error: cannot compute sizeof (double)
9309 See \`config.log' for more details.
" >&2;}
9310 { (exit 77); exit 77; }; }
9312 ac_cv_sizeof_double=0
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 $ac_includes_default
9323 typedef double ac__type_sizeof_;
9324 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9325 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9332 FILE *f = fopen ("conftest.val
", "w
");
9335 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9337 long int i = longval ();
9338 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9340 fprintf (f, "%ld
\n", i);
9344 unsigned long int i = ulongval ();
9345 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9347 fprintf (f, "%lu
\n", i);
9349 return ferror (f) || fclose (f) != 0;
9355 rm -f conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_link") 2>&5
9364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9366 { (case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_try") 2>&5
9373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_cv_sizeof_double=`cat conftest.val`
9377 echo "$as_me: program exited with status
$ac_status" >&5
9378 echo "$as_me: failed program was
:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9382 if test "$ac_cv_type_double" = yes; then
9383 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9384 See \
`config.log' for more details." >&5
9385 echo "$as_me: error: cannot compute sizeof (double)
9386 See \`config.log
' for more details." >&2;}
9387 { (exit 77); exit 77; }; }
9389 ac_cv_sizeof_double=0
9392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9396 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9397 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9401 cat >>confdefs.h <<_ACEOF
9402 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9406 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9407 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9408 if test "${ac_cv_type_fpos_t+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 $ac_includes_default
9418 typedef fpos_t ac__type_new_;
9422 if ((ac__type_new_ *) 0)
9424 if (sizeof (ac__type_new_))
9430 rm -f conftest.$ac_objext
9431 if { (ac_try="$ac_compile"
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_compile") 2>conftest.er1
9439 grep -v '^
*+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_c_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest.$ac_objext; then
9447 ac_cv_type_fpos_t=yes
9449 echo "$as_me: failed program was:" >&5
9450 sed 's
/^
/|
/' conftest.$ac_ext >&5
9452 ac_cv_type_fpos_t=no
9455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9458 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9460 # The cast to long int works around a bug in the HP C Compiler
9461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9463 # This bug is HP SR number 8606223364.
9464 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9465 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9466 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 if test "$cross_compiling" = yes; then
9470 # Depending upon the size, compute the lo and hi bounds.
9471 cat >conftest.
$ac_ext <<_ACEOF
9474 cat confdefs.h
>>conftest.
$ac_ext
9475 cat >>conftest.
$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477 $ac_includes_default
9478 typedef fpos_t ac__type_sizeof_;
9482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9489 rm -f conftest.
$ac_objext
9490 if { (ac_try
="$ac_compile"
9492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_compile") 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest.$ac_objext; then
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 typedef fpos_t ac__type_sizeof_;
9519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9530 *) ac_try_echo
=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_compile") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1
>conftest.err
9537 cat conftest.err
>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest.
$ac_objext; then
9543 ac_hi
=$ac_mid; break
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.
$ac_ext >&5
9548 ac_lo
=`expr $ac_mid + 1`
9549 if test $ac_lo -le $ac_mid; then
9553 ac_mid
=`expr 2 '*' $ac_mid + 1`
9556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.
$ac_ext >&5
9562 cat >conftest.
$ac_ext <<_ACEOF
9565 cat confdefs.h
>>conftest.
$ac_ext
9566 cat >>conftest.
$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 $ac_includes_default
9569 typedef fpos_t ac__type_sizeof_;
9573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9580 rm -f conftest.
$ac_objext
9581 if { (ac_try
="$ac_compile"
9583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_compile") 2>conftest.er1
9589 grep -v '^ *+' conftest.er1 >conftest.err
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_c_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest.$ac_objext; then
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 $ac_includes_default
9606 typedef fpos_t ac__type_sizeof_;
9610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9617 rm -f conftest.$ac_objext
9618 if { (ac_try="$ac_compile"
9620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9621 *) ac_try_echo
=$ac_try;;
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_compile") 2>conftest.er1
9626 grep -v '^ *+' conftest.er1
>conftest.err
9628 cat conftest.err
>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest.
$ac_objext; then
9634 ac_lo
=$ac_mid; break
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.
$ac_ext >&5
9639 ac_hi
=`expr '(' $ac_mid ')' - 1`
9640 if test $ac_mid -le $ac_hi; then
9644 ac_mid
=`expr 2 '*' $ac_mid`
9647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.
$ac_ext >&5
9656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9660 # Binary search between lo and hi bounds.
9661 while test "x$ac_lo" != "x$ac_hi"; do
9662 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9663 cat >conftest.
$ac_ext <<_ACEOF
9666 cat confdefs.h
>>conftest.
$ac_ext
9667 cat >>conftest.
$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 $ac_includes_default
9670 typedef fpos_t ac__type_sizeof_;
9674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9681 rm -f conftest.
$ac_objext
9682 if { (ac_try
="$ac_compile"
9684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_lo=`expr '(' $ac_mid ')' + 1`
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9710 '') if test "$ac_cv_type_fpos_t" = yes; then
9711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9712 See \`config.log
' for more details." >&5
9713 echo "$as_me: error: cannot compute sizeof (fpos_t)
9714 See \`config.log' for more details.
" >&2;}
9715 { (exit 77); exit 77; }; }
9717 ac_cv_sizeof_fpos_t=0
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 $ac_includes_default
9728 typedef fpos_t ac__type_sizeof_;
9729 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9730 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9737 FILE *f = fopen ("conftest.val
", "w
");
9740 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9742 long int i = longval ();
9743 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9745 fprintf (f, "%ld
\n", i);
9749 unsigned long int i = ulongval ();
9750 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9752 fprintf (f, "%lu
\n", i);
9754 return ferror (f) || fclose (f) != 0;
9760 rm -f conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>&5
9769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_sizeof_fpos_t=`cat conftest.val`
9782 echo "$as_me: program exited with status
$ac_status" >&5
9783 echo "$as_me: failed program was
:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9787 if test "$ac_cv_type_fpos_t" = yes; then
9788 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9789 See \
`config.log' for more details." >&5
9790 echo "$as_me: error: cannot compute sizeof (fpos_t)
9791 See \`config.log
' for more details." >&2;}
9792 { (exit 77); exit 77; }; }
9794 ac_cv_sizeof_fpos_t=0
9797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9801 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9802 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9806 cat >>confdefs.h <<_ACEOF
9807 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9811 { echo "$as_me:$LINENO: checking for size_t" >&5
9812 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9813 if test "${ac_cv_type_size_t+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 typedef size_t ac__type_new_;
9827 if ((ac__type_new_ *) 0)
9829 if (sizeof (ac__type_new_))
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9844 grep -v '^
*+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9852 ac_cv_type_size_t=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's
/^
/|
/' conftest.$ac_ext >&5
9857 ac_cv_type_size_t=no
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9863 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9865 # The cast to long int works around a bug in the HP C Compiler
9866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9868 # This bug is HP SR number 8606223364.
9869 { echo "$as_me:$LINENO: checking size of size_t" >&5
9870 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9871 if test "${ac_cv_sizeof_size_t+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 if test "$cross_compiling" = yes; then
9875 # Depending upon the size, compute the lo and hi bounds.
9876 cat >conftest.
$ac_ext <<_ACEOF
9879 cat confdefs.h
>>conftest.
$ac_ext
9880 cat >>conftest.
$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 $ac_includes_default
9883 typedef size_t ac__type_sizeof_;
9887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9894 rm -f conftest.
$ac_objext
9895 if { (ac_try
="$ac_compile"
9897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_compile") 2>conftest.er1
9903 grep -v '^ *+' conftest.er1 >conftest.err
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && {
9908 test -z "$ac_c_werror_flag" ||
9909 test ! -s conftest.err
9910 } && test -s conftest.$ac_objext; then
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9919 $ac_includes_default
9920 typedef size_t ac__type_sizeof_;
9924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9935 *) ac_try_echo
=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_compile") 2>conftest.er1
9940 grep -v '^ *+' conftest.er1
>conftest.err
9942 cat conftest.err
>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest.
$ac_objext; then
9948 ac_hi
=$ac_mid; break
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.
$ac_ext >&5
9953 ac_lo
=`expr $ac_mid + 1`
9954 if test $ac_lo -le $ac_mid; then
9958 ac_mid
=`expr 2 '*' $ac_mid + 1`
9961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.
$ac_ext >&5
9967 cat >conftest.
$ac_ext <<_ACEOF
9970 cat confdefs.h
>>conftest.
$ac_ext
9971 cat >>conftest.
$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 $ac_includes_default
9974 typedef size_t ac__type_sizeof_;
9978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9985 rm -f conftest.
$ac_objext
9986 if { (ac_try
="$ac_compile"
9988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9994 grep -v '^ *+' conftest.er1 >conftest.err
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10004 cat >conftest.$ac_ext <<_ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 $ac_includes_default
10011 typedef size_t ac__type_sizeof_;
10015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10022 rm -f conftest.$ac_objext
10023 if { (ac_try="$ac_compile"
10024 case "(($ac_try" in
10025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10026 *) ac_try_echo
=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_compile") 2>conftest.er1
10031 grep -v '^ *+' conftest.er1
>conftest.err
10033 cat conftest.err
>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest.
$ac_objext; then
10039 ac_lo
=$ac_mid; break
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.
$ac_ext >&5
10044 ac_hi
=`expr '(' $ac_mid ')' - 1`
10045 if test $ac_mid -le $ac_hi; then
10049 ac_mid
=`expr 2 '*' $ac_mid`
10052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10065 # Binary search between lo and hi bounds.
10066 while test "x$ac_lo" != "x$ac_hi"; do
10067 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10068 cat >conftest.
$ac_ext <<_ACEOF
10071 cat confdefs.h
>>conftest.
$ac_ext
10072 cat >>conftest.
$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 typedef size_t ac__type_sizeof_;
10079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10086 rm -f conftest.
$ac_objext
10087 if { (ac_try
="$ac_compile"
10088 case "(($ac_try" in
10089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_compile") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.$ac_objext; then
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_lo=`expr '(' $ac_mid ')' + 1`
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10115 '') if test "$ac_cv_type_size_t" = yes; then
10116 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10117 See \`config.log
' for more details." >&5
10118 echo "$as_me: error: cannot compute sizeof (size_t)
10119 See \`config.log' for more details.
" >&2;}
10120 { (exit 77); exit 77; }; }
10122 ac_cv_sizeof_size_t=0
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 $ac_includes_default
10133 typedef size_t ac__type_sizeof_;
10134 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10135 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10137 #include <stdlib.h>
10142 FILE *f = fopen ("conftest.val
", "w
");
10145 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10147 long int i = longval ();
10148 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10150 fprintf (f, "%ld
\n", i);
10154 unsigned long int i = ulongval ();
10155 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10157 fprintf (f, "%lu
\n", i);
10159 return ferror (f) || fclose (f) != 0;
10165 rm -f conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>&5
10174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10176 { (case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_try") 2>&5
10183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 ac_cv_sizeof_size_t=`cat conftest.val`
10187 echo "$as_me: program exited with status
$ac_status" >&5
10188 echo "$as_me: failed program was
:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ( exit $ac_status )
10192 if test "$ac_cv_type_size_t" = yes; then
10193 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10194 See \
`config.log' for more details." >&5
10195 echo "$as_me: error: cannot compute sizeof (size_t)
10196 See \`config.log
' for more details." >&2;}
10197 { (exit 77); exit 77; }; }
10199 ac_cv_sizeof_size_t=0
10202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10206 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10207 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10211 cat >>confdefs.h <<_ACEOF
10212 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10216 { echo "$as_me:$LINENO: checking for pid_t" >&5
10217 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10218 if test "${ac_cv_type_pid_t+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 typedef pid_t ac__type_new_;
10232 if ((ac__type_new_ *) 0)
10234 if (sizeof (ac__type_new_))
10240 rm -f conftest.$ac_objext
10241 if { (ac_try="$ac_compile"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_compile") 2>conftest.er1
10249 grep -v '^
*+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && {
10254 test -z "$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 } && test -s conftest.$ac_objext; then
10257 ac_cv_type_pid_t=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's
/^
/|
/' conftest.$ac_ext >&5
10262 ac_cv_type_pid_t=no
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10268 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10270 # The cast to long int works around a bug in the HP C Compiler
10271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10273 # This bug is HP SR number 8606223364.
10274 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10275 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10276 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 if test "$cross_compiling" = yes; then
10280 # Depending upon the size, compute the lo and hi bounds.
10281 cat >conftest.
$ac_ext <<_ACEOF
10284 cat confdefs.h
>>conftest.
$ac_ext
10285 cat >>conftest.
$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 $ac_includes_default
10288 typedef pid_t ac__type_sizeof_;
10292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10299 rm -f conftest.
$ac_objext
10300 if { (ac_try
="$ac_compile"
10301 case "(($ac_try" in
10302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_compile") 2>conftest.er1
10308 grep -v '^ *+' conftest.er1 >conftest.err
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest.$ac_objext; then
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 typedef pid_t ac__type_sizeof_;
10329 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10336 rm -f conftest.$ac_objext
10337 if { (ac_try="$ac_compile"
10338 case "(($ac_try" in
10339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10340 *) ac_try_echo
=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_compile") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1
>conftest.err
10347 cat conftest.err
>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest.
$ac_objext; then
10353 ac_hi
=$ac_mid; break
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.
$ac_ext >&5
10358 ac_lo
=`expr $ac_mid + 1`
10359 if test $ac_lo -le $ac_mid; then
10363 ac_mid
=`expr 2 '*' $ac_mid + 1`
10366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.
$ac_ext >&5
10372 cat >conftest.
$ac_ext <<_ACEOF
10375 cat confdefs.h
>>conftest.
$ac_ext
10376 cat >>conftest.
$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10379 typedef pid_t ac__type_sizeof_;
10383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10390 rm -f conftest.
$ac_objext
10391 if { (ac_try
="$ac_compile"
10392 case "(($ac_try" in
10393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_compile") 2>conftest.er1
10399 grep -v '^ *+' conftest.er1 >conftest.err
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest.$ac_objext; then
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 $ac_includes_default
10416 typedef pid_t ac__type_sizeof_;
10420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10427 rm -f conftest.$ac_objext
10428 if { (ac_try="$ac_compile"
10429 case "(($ac_try" in
10430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10431 *) ac_try_echo
=$ac_try;;
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10436 grep -v '^ *+' conftest.er1
>conftest.err
10438 cat conftest.err
>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.
$ac_objext; then
10444 ac_lo
=$ac_mid; break
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.
$ac_ext >&5
10449 ac_hi
=`expr '(' $ac_mid ')' - 1`
10450 if test $ac_mid -le $ac_hi; then
10454 ac_mid
=`expr 2 '*' $ac_mid`
10457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.
$ac_ext >&5
10466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10470 # Binary search between lo and hi bounds.
10471 while test "x$ac_lo" != "x$ac_hi"; do
10472 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10473 cat >conftest.
$ac_ext <<_ACEOF
10476 cat confdefs.h
>>conftest.
$ac_ext
10477 cat >>conftest.
$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 $ac_includes_default
10480 typedef pid_t ac__type_sizeof_;
10484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10491 rm -f conftest.
$ac_objext
10492 if { (ac_try
="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10500 grep -v '^ *+' conftest.er1 >conftest.err
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && {
10505 test -z "$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10507 } && test -s conftest.$ac_objext; then
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_lo=`expr '(' $ac_mid ')' + 1`
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10520 '') if test "$ac_cv_type_pid_t" = yes; then
10521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10522 See \`config.log
' for more details." >&5
10523 echo "$as_me: error: cannot compute sizeof (pid_t)
10524 See \`config.log' for more details.
" >&2;}
10525 { (exit 77); exit 77; }; }
10527 ac_cv_sizeof_pid_t=0
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 $ac_includes_default
10538 typedef pid_t ac__type_sizeof_;
10539 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10540 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10542 #include <stdlib.h>
10547 FILE *f = fopen ("conftest.val
", "w
");
10550 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10552 long int i = longval ();
10553 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10555 fprintf (f, "%ld
\n", i);
10559 unsigned long int i = ulongval ();
10560 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10562 fprintf (f, "%lu
\n", i);
10564 return ferror (f) || fclose (f) != 0;
10570 rm -f conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_link") 2>&5
10579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_sizeof_pid_t=`cat conftest.val`
10592 echo "$as_me: program exited with status
$ac_status" >&5
10593 echo "$as_me: failed program was
:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ( exit $ac_status )
10597 if test "$ac_cv_type_pid_t" = yes; then
10598 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10599 See \
`config.log' for more details." >&5
10600 echo "$as_me: error: cannot compute sizeof (pid_t)
10601 See \`config.log
' for more details." >&2;}
10602 { (exit 77); exit 77; }; }
10604 ac_cv_sizeof_pid_t=0
10607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10611 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10612 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10616 cat >>confdefs.h <<_ACEOF
10617 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10622 { echo "$as_me:$LINENO: checking for long long support" >&5
10623 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10625 cat >conftest.$ac_ext <<_ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10635 long long x; x = (long long)0;
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_compile") 2>conftest.er1
10649 grep -v '^
*+' conftest.er1 >conftest.err
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && {
10654 test -z "$ac_c_werror_flag" ||
10655 test ! -s conftest.err
10656 } && test -s conftest.$ac_objext; then
10659 cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_LONG_LONG 1
10666 echo "$as_me: failed program was:" >&5
10667 sed 's
/^
/|
/' conftest.$ac_ext >&5
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10674 echo "${ECHO_T}$have_long_long" >&6; }
10675 if test "$have_long_long" = yes ; then
10676 { echo "$as_me:$LINENO: checking for long long" >&5
10677 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10678 if test "${ac_cv_type_long_long+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 $ac_includes_default
10688 typedef long long ac__type_new_;
10692 if ((ac__type_new_ *) 0)
10694 if (sizeof (ac__type_new_))
10700 rm -f conftest.$ac_objext
10701 if { (ac_try="$ac_compile"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_compile") 2>conftest.er1
10709 grep -v '^
*+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest.$ac_objext; then
10717 ac_cv_type_long_long=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's
/^
/|
/' conftest.$ac_ext >&5
10722 ac_cv_type_long_long=no
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10728 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10730 # The cast to long int works around a bug in the HP C Compiler
10731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10733 # This bug is HP SR number 8606223364.
10734 { echo "$as_me:$LINENO: checking size of long long" >&5
10735 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10736 if test "${ac_cv_sizeof_long_long+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 if test "$cross_compiling" = yes; then
10740 # Depending upon the size, compute the lo and hi bounds.
10741 cat >conftest.
$ac_ext <<_ACEOF
10744 cat confdefs.h
>>conftest.
$ac_ext
10745 cat >>conftest.
$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 $ac_includes_default
10748 typedef long long ac__type_sizeof_;
10752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10759 rm -f conftest.
$ac_objext
10760 if { (ac_try
="$ac_compile"
10761 case "(($ac_try" in
10762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest.$ac_objext; then
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 $ac_includes_default
10785 typedef long long ac__type_sizeof_;
10789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10796 rm -f conftest.$ac_objext
10797 if { (ac_try="$ac_compile"
10798 case "(($ac_try" in
10799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10800 *) ac_try_echo
=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10805 grep -v '^ *+' conftest.er1
>conftest.err
10807 cat conftest.err
>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest.
$ac_objext; then
10813 ac_hi
=$ac_mid; break
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.
$ac_ext >&5
10818 ac_lo
=`expr $ac_mid + 1`
10819 if test $ac_lo -le $ac_mid; then
10823 ac_mid
=`expr 2 '*' $ac_mid + 1`
10826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.
$ac_ext >&5
10832 cat >conftest.
$ac_ext <<_ACEOF
10835 cat confdefs.h
>>conftest.
$ac_ext
10836 cat >>conftest.
$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 $ac_includes_default
10839 typedef long long ac__type_sizeof_;
10843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10850 rm -f conftest.
$ac_objext
10851 if { (ac_try
="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest.$ac_objext; then
10869 cat >conftest.$ac_ext <<_ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 typedef long long ac__type_sizeof_;
10880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10891 *) ac_try_echo
=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1
>conftest.err
10898 cat conftest.err
>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest.
$ac_objext; then
10904 ac_lo
=$ac_mid; break
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.
$ac_ext >&5
10909 ac_hi
=`expr '(' $ac_mid ')' - 1`
10910 if test $ac_mid -le $ac_hi; then
10914 ac_mid
=`expr 2 '*' $ac_mid`
10917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.
$ac_ext >&5
10926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10930 # Binary search between lo and hi bounds.
10931 while test "x$ac_lo" != "x$ac_hi"; do
10932 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10933 cat >conftest.
$ac_ext <<_ACEOF
10936 cat confdefs.h
>>conftest.
$ac_ext
10937 cat >>conftest.
$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 $ac_includes_default
10940 typedef long long ac__type_sizeof_;
10944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10951 rm -f conftest.
$ac_objext
10952 if { (ac_try
="$ac_compile"
10953 case "(($ac_try" in
10954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_compile") 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } && {
10965 test -z "$ac_c_werror_flag" ||
10966 test ! -s conftest.err
10967 } && test -s conftest.$ac_objext; then
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_lo=`expr '(' $ac_mid ')' + 1`
10976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10980 '') if test "$ac_cv_type_long_long" = yes; then
10981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10982 See \`config.log
' for more details." >&5
10983 echo "$as_me: error: cannot compute sizeof (long long)
10984 See \`config.log' for more details.
" >&2;}
10985 { (exit 77); exit 77; }; }
10987 ac_cv_sizeof_long_long=0
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 $ac_includes_default
10998 typedef long long ac__type_sizeof_;
10999 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11000 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11002 #include <stdlib.h>
11007 FILE *f = fopen ("conftest.val
", "w
");
11010 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11012 long int i = longval ();
11013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11015 fprintf (f, "%ld
\n", i);
11019 unsigned long int i = ulongval ();
11020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11022 fprintf (f, "%lu
\n", i);
11024 return ferror (f) || fclose (f) != 0;
11030 rm -f conftest$ac_exeext
11031 if { (ac_try="$ac_link"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_link") 2>&5
11039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_cv_sizeof_long_long=`cat conftest.val`
11052 echo "$as_me: program exited with status
$ac_status" >&5
11053 echo "$as_me: failed program was
:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ( exit $ac_status )
11057 if test "$ac_cv_type_long_long" = yes; then
11058 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11059 See \
`config.log' for more details." >&5
11060 echo "$as_me: error: cannot compute sizeof (long long)
11061 See \`config.log
' for more details." >&2;}
11062 { (exit 77); exit 77; }; }
11064 ac_cv_sizeof_long_long=0
11067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11072 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11076 cat >>confdefs.h <<_ACEOF
11077 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11083 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11084 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11096 _Bool x; x = (_Bool)0;
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_compile") 2>conftest.er1
11110 grep -v '^
*+' conftest.er1 >conftest.err
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest.$ac_objext; then
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_C99_BOOL 1
11127 echo "$as_me: failed program was:" >&5
11128 sed 's
/^
/|
/' conftest.$ac_ext >&5
11133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11135 echo "${ECHO_T}$have_c99_bool" >&6; }
11136 if test "$have_c99_bool" = yes ; then
11137 { echo "$as_me:$LINENO: checking for _Bool" >&5
11138 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11139 if test "${ac_cv_type__Bool+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 $ac_includes_default
11149 typedef _Bool ac__type_new_;
11153 if ((ac__type_new_ *) 0)
11155 if (sizeof (ac__type_new_))
11161 rm -f conftest.$ac_objext
11162 if { (ac_try="$ac_compile"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_compile") 2>conftest.er1
11170 grep -v '^
*+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } && {
11175 test -z "$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11177 } && test -s conftest.$ac_objext; then
11178 ac_cv_type__Bool=yes
11180 echo "$as_me: failed program was:" >&5
11181 sed 's
/^
/|
/' conftest.$ac_ext >&5
11183 ac_cv_type__Bool=no
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11189 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11191 # The cast to long int works around a bug in the HP C Compiler
11192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11194 # This bug is HP SR number 8606223364.
11195 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11196 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11197 if test "${ac_cv_sizeof__Bool+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 if test "$cross_compiling" = yes; then
11201 # Depending upon the size, compute the lo and hi bounds.
11202 cat >conftest.
$ac_ext <<_ACEOF
11205 cat confdefs.h
>>conftest.
$ac_ext
11206 cat >>conftest.
$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 $ac_includes_default
11209 typedef _Bool ac__type_sizeof_;
11213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11220 rm -f conftest.
$ac_objext
11221 if { (ac_try
="$ac_compile"
11222 case "(($ac_try" in
11223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_compile") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1 >conftest.err
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest.$ac_objext; then
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11246 typedef _Bool ac__type_sizeof_;
11250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11257 rm -f conftest.$ac_objext
11258 if { (ac_try="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11261 *) ac_try_echo
=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1
>conftest.err
11268 cat conftest.err
>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.
$ac_objext; then
11274 ac_hi
=$ac_mid; break
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.
$ac_ext >&5
11279 ac_lo
=`expr $ac_mid + 1`
11280 if test $ac_lo -le $ac_mid; then
11284 ac_mid
=`expr 2 '*' $ac_mid + 1`
11287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.
$ac_ext >&5
11293 cat >conftest.
$ac_ext <<_ACEOF
11296 cat confdefs.h
>>conftest.
$ac_ext
11297 cat >>conftest.
$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 $ac_includes_default
11300 typedef _Bool ac__type_sizeof_;
11304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11311 rm -f conftest.
$ac_objext
11312 if { (ac_try
="$ac_compile"
11313 case "(($ac_try" in
11314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest.$ac_objext; then
11330 cat >conftest.$ac_ext <<_ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 typedef _Bool ac__type_sizeof_;
11341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11352 *) ac_try_echo
=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11357 grep -v '^ *+' conftest.er1
>conftest.err
11359 cat conftest.err
>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest.
$ac_objext; then
11365 ac_lo
=$ac_mid; break
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.
$ac_ext >&5
11370 ac_hi
=`expr '(' $ac_mid ')' - 1`
11371 if test $ac_mid -le $ac_hi; then
11375 ac_mid
=`expr 2 '*' $ac_mid`
11378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.
$ac_ext >&5
11387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11391 # Binary search between lo and hi bounds.
11392 while test "x$ac_lo" != "x$ac_hi"; do
11393 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11394 cat >conftest.
$ac_ext <<_ACEOF
11397 cat confdefs.h
>>conftest.
$ac_ext
11398 cat >>conftest.
$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 $ac_includes_default
11401 typedef _Bool ac__type_sizeof_;
11405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11412 rm -f conftest.
$ac_objext
11413 if { (ac_try
="$ac_compile"
11414 case "(($ac_try" in
11415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_compile") 2>conftest.er1
11421 grep -v '^ *+' conftest.er1 >conftest.err
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } && {
11426 test -z "$ac_c_werror_flag" ||
11427 test ! -s conftest.err
11428 } && test -s conftest.$ac_objext; then
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11434 ac_lo=`expr '(' $ac_mid ')' + 1`
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11441 '') if test "$ac_cv_type__Bool" = yes; then
11442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11443 See \`config.log
' for more details." >&5
11444 echo "$as_me: error: cannot compute sizeof (_Bool)
11445 See \`config.log' for more details.
" >&2;}
11446 { (exit 77); exit 77; }; }
11448 ac_cv_sizeof__Bool=0
11452 cat >conftest.$ac_ext <<_ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 typedef _Bool ac__type_sizeof_;
11460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11463 #include <stdlib.h>
11468 FILE *f = fopen ("conftest.val
", "w
");
11471 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11473 long int i = longval ();
11474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11476 fprintf (f, "%ld
\n", i);
11480 unsigned long int i = ulongval ();
11481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11483 fprintf (f, "%lu
\n", i);
11485 return ferror (f) || fclose (f) != 0;
11491 rm -f conftest$ac_exeext
11492 if { (ac_try="$ac_link"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_link") 2>&5
11500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
11509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_sizeof__Bool=`cat conftest.val`
11513 echo "$as_me: program exited with status
$ac_status" >&5
11514 echo "$as_me: failed program was
:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ( exit $ac_status )
11518 if test "$ac_cv_type__Bool" = yes; then
11519 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11520 See \
`config.log' for more details." >&5
11521 echo "$as_me: error: cannot compute sizeof (_Bool)
11522 See \`config.log
' for more details." >&2;}
11523 { (exit 77); exit 77; }; }
11525 ac_cv_sizeof__Bool=0
11528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11533 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11537 cat >>confdefs.h <<_ACEOF
11538 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11544 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11545 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11546 if test "${ac_cv_type_uintptr_t+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 cat >conftest.$ac_ext <<_ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 #ifdef HAVE_STDINT_H
11556 #include <stdint.h>
11559 typedef uintptr_t ac__type_new_;
11563 if ((ac__type_new_ *) 0)
11565 if (sizeof (ac__type_new_))
11571 rm -f conftest.$ac_objext
11572 if { (ac_try="$ac_compile"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_compile") 2>conftest.er1
11580 grep -v '^
*+' conftest.er1 >conftest.err
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && {
11585 test -z "$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 } && test -s conftest.$ac_objext; then
11588 ac_cv_type_uintptr_t=yes
11590 echo "$as_me: failed program was:" >&5
11591 sed 's
/^
/|
/' conftest.$ac_ext >&5
11593 ac_cv_type_uintptr_t=no
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11599 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11600 if test $ac_cv_type_uintptr_t = yes; then
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_UINTPTR_T 1
11606 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11607 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11608 if test "${ac_cv_type_uintptr_t+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 cat >conftest.$ac_ext <<_ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11617 $ac_includes_default
11618 typedef uintptr_t ac__type_new_;
11622 if ((ac__type_new_ *) 0)
11624 if (sizeof (ac__type_new_))
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_compile") 2>conftest.er1
11639 grep -v '^
*+' conftest.er1 >conftest.err
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } && {
11644 test -z "$ac_c_werror_flag" ||
11645 test ! -s conftest.err
11646 } && test -s conftest.$ac_objext; then
11647 ac_cv_type_uintptr_t=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's
/^
/|
/' conftest.$ac_ext >&5
11652 ac_cv_type_uintptr_t=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11658 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11660 # The cast to long int works around a bug in the HP C Compiler
11661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11663 # This bug is HP SR number 8606223364.
11664 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11665 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11666 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 if test "$cross_compiling" = yes; then
11670 # Depending upon the size, compute the lo and hi bounds.
11671 cat >conftest.
$ac_ext <<_ACEOF
11674 cat confdefs.h
>>conftest.
$ac_ext
11675 cat >>conftest.
$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 $ac_includes_default
11678 typedef uintptr_t ac__type_sizeof_;
11682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11689 rm -f conftest.
$ac_objext
11690 if { (ac_try
="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest.$ac_objext; then
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11715 typedef uintptr_t ac__type_sizeof_;
11719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11726 rm -f conftest.$ac_objext
11727 if { (ac_try="$ac_compile"
11728 case "(($ac_try" in
11729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11730 *) ac_try_echo
=$ac_try;;
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_compile") 2>conftest.er1
11735 grep -v '^ *+' conftest.er1
>conftest.err
11737 cat conftest.err
>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } && {
11740 test -z "$ac_c_werror_flag" ||
11741 test ! -s conftest.err
11742 } && test -s conftest.
$ac_objext; then
11743 ac_hi
=$ac_mid; break
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.
$ac_ext >&5
11748 ac_lo
=`expr $ac_mid + 1`
11749 if test $ac_lo -le $ac_mid; then
11753 ac_mid
=`expr 2 '*' $ac_mid + 1`
11756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.
$ac_ext >&5
11762 cat >conftest.
$ac_ext <<_ACEOF
11765 cat confdefs.h
>>conftest.
$ac_ext
11766 cat >>conftest.
$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 typedef uintptr_t ac__type_sizeof_;
11773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11780 rm -f conftest.
$ac_objext
11781 if { (ac_try
="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11799 cat >conftest.$ac_ext <<_ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 $ac_includes_default
11806 typedef uintptr_t ac__type_sizeof_;
11810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11821 *) ac_try_echo
=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest.
$ac_objext; then
11834 ac_lo
=$ac_mid; break
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.
$ac_ext >&5
11839 ac_hi
=`expr '(' $ac_mid ')' - 1`
11840 if test $ac_mid -le $ac_hi; then
11844 ac_mid
=`expr 2 '*' $ac_mid`
11847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.
$ac_ext >&5
11856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11860 # Binary search between lo and hi bounds.
11861 while test "x$ac_lo" != "x$ac_hi"; do
11862 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11863 cat >conftest.
$ac_ext <<_ACEOF
11866 cat confdefs.h
>>conftest.
$ac_ext
11867 cat >>conftest.
$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11870 typedef uintptr_t ac__type_sizeof_;
11874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11881 rm -f conftest.
$ac_objext
11882 if { (ac_try
="$ac_compile"
11883 case "(($ac_try" in
11884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_compile") 2>conftest.er1
11890 grep -v '^ *+' conftest.er1 >conftest.err
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest.$ac_objext; then
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11903 ac_lo=`expr '(' $ac_mid ')' + 1`
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11910 '') if test "$ac_cv_type_uintptr_t" = yes; then
11911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11912 See \`config.log
' for more details." >&5
11913 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11914 See \`config.log' for more details.
" >&2;}
11915 { (exit 77); exit 77; }; }
11917 ac_cv_sizeof_uintptr_t=0
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 $ac_includes_default
11928 typedef uintptr_t ac__type_sizeof_;
11929 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11930 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11932 #include <stdlib.h>
11937 FILE *f = fopen ("conftest.val
", "w
");
11940 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11942 long int i = longval ();
11943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11945 fprintf (f, "%ld
\n", i);
11949 unsigned long int i = ulongval ();
11950 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11952 fprintf (f, "%lu
\n", i);
11954 return ferror (f) || fclose (f) != 0;
11960 rm -f conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>&5
11969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11971 { (case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_try") 2>&5
11978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11982 echo "$as_me: program exited with status
$ac_status" >&5
11983 echo "$as_me: failed program was
:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ( exit $ac_status )
11987 if test "$ac_cv_type_uintptr_t" = yes; then
11988 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
11989 See \
`config.log' for more details." >&5
11990 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11991 See \`config.log
' for more details." >&2;}
11992 { (exit 77); exit 77; }; }
11994 ac_cv_sizeof_uintptr_t=0
11997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12002 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12006 cat >>confdefs.h <<_ACEOF
12007 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12015 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12016 { echo "$as_me:$LINENO: checking size of off_t" >&5
12017 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12018 if test "${ac_cv_sizeof_off_t+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 if test "$cross_compiling" = yes; then
12022 ac_cv_sizeof_off_t
=4
12024 cat >conftest.
$ac_ext <<_ACEOF
12027 cat confdefs.h
>>conftest.
$ac_ext
12028 cat >>conftest.
$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12031 #include <sys/types.h>
12034 FILE *f=fopen("conftestval", "w");
12036 fprintf(f, "%d\n", sizeof(off_t));
12040 rm -f conftest
$ac_exeext
12041 if { (ac_try
="$ac_link"
12042 case "(($ac_try" in
12043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12051 { (case "(($ac_try" in
12052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12053 *) ac_try_echo
=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_try") 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_sizeof_off_t
=`cat conftestval`
12062 echo "$as_me: program exited with status $ac_status" >&5
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.
$ac_ext >&5
12066 ( exit $ac_status )
12067 ac_cv_sizeof_off_t
=0
12069 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12076 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12077 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12079 cat >>confdefs.h
<<_ACEOF
12080 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12084 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12085 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12086 if test "$have_long_long" = yes -a \
12087 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12088 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12090 cat >>confdefs.h
<<\_ACEOF
12091 #define HAVE_LARGEFILE_SUPPORT 1
12094 { echo "$as_me:$LINENO: result: yes" >&5
12095 echo "${ECHO_T}yes" >&6; }
12097 { echo "$as_me:$LINENO: result: no" >&5
12098 echo "${ECHO_T}no" >&6; }
12101 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12102 { echo "$as_me:$LINENO: checking size of time_t" >&5
12103 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12104 if test "${ac_cv_sizeof_time_t+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 if test "$cross_compiling" = yes; then
12108 ac_cv_sizeof_time_t
=4
12110 cat >conftest.
$ac_ext <<_ACEOF
12113 cat confdefs.h
>>conftest.
$ac_ext
12114 cat >>conftest.
$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12120 FILE *f=fopen("conftestval", "w");
12122 fprintf(f, "%d\n", sizeof(time_t));
12126 rm -f conftest
$ac_exeext
12127 if { (ac_try
="$ac_link"
12128 case "(($ac_try" in
12129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_link") 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12139 *) ac_try_echo
=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_sizeof_time_t
=`cat conftestval`
12148 echo "$as_me: program exited with status $ac_status" >&5
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.
$ac_ext >&5
12152 ( exit $ac_status )
12153 ac_cv_sizeof_time_t
=0
12155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12163 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12165 cat >>confdefs.h
<<_ACEOF
12166 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12171 # if have pthread_t then define SIZEOF_PTHREAD_T
12173 if test "$ac_cv_kpthread" = "yes"
12174 then CC
="$CC -Kpthread"
12175 elif test "$ac_cv_kthread" = "yes"
12176 then CC
="$CC -Kthread"
12177 elif test "$ac_cv_pthread" = "yes"
12178 then CC
="$CC -pthread"
12180 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12181 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12183 cat >conftest.
$ac_ext <<_ACEOF
12186 cat confdefs.h
>>conftest.
$ac_ext
12187 cat >>conftest.
$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <pthread.h>
12193 pthread_t x; x = *(pthread_t*)0;
12198 rm -f conftest.
$ac_objext
12199 if { (ac_try
="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12207 grep -v '^ *+' conftest.er1 >conftest.err
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest.$ac_objext; then
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12225 echo "${ECHO_T}$have_pthread_t" >&6; }
12226 if test "$have_pthread_t" = yes ; then
12227 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12228 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12229 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12230 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 if test "$cross_compiling" = yes; then
12234 ac_cv_sizeof_pthread_t=4
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12243 #include <pthread.h>
12246 FILE *f=fopen("conftestval", "w");
12248 fprintf(f, "%d\n", sizeof(pthread_t));
12252 rm -f conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12256 *) ac_try_echo
=$ac_try;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12263 { (case "(($ac_try" in
12264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_try") 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 ac_cv_sizeof_pthread_t=`cat conftestval
`
12274 echo "$as_me: program exited with status $ac_status" >&5
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ( exit $ac_status )
12279 ac_cv_sizeof_pthread_t=0
12281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12288 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12289 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12291 cat >>confdefs.h <<_ACEOF
12292 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12298 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12299 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12300 # Check whether --enable-toolbox-glue was given.
12301 if test "${enable_toolbox_glue+set}" = set; then
12302 enableval=$enable_toolbox_glue;
12306 if test -z "$enable_toolbox_glue"
12308 case $ac_sys_system/$ac_sys_release in
12310 enable_toolbox_glue="yes";;
12312 enable_toolbox_glue="no";;
12315 case "$enable_toolbox_glue" in
12317 extra_machdep_objs="Python/mactoolboxglue.o"
12318 extra_undefs="-u _PyMac_Error"
12320 cat >>confdefs.h <<\_ACEOF
12321 #define USE_TOOLBOX_OBJECT_GLUE 1
12326 extra_machdep_objs=""
12330 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12331 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12334 case $ac_sys_system/$ac_sys_release in
12335 Darwin/[01567]\..*)
12336 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12339 OTHER_LIBTOOL_OPT=""
12344 case $ac_sys_system/$ac_sys_release in
12345 Darwin/[01567]\..*)
12346 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12347 if test "${enable_universalsdk}"; then
12350 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12352 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12353 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12355 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12356 if test ${gcc_version} '<' 4.0
12358 LIBTOOL_CRUFT="-lcc_dynamic"
12362 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12363 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12364 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12367 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12368 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12369 if test "$enable_framework"
12371 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12372 # -F. is needed to allow linking to the framework while
12373 # in the build location.
12375 cat >>confdefs.h <<\_ACEOF
12376 #define WITH_NEXT_FRAMEWORK 1
12379 { echo "$as_me:$LINENO: result: yes" >&5
12380 echo "${ECHO_T}yes" >&6; }
12382 { echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6; }
12386 { echo "$as_me:$LINENO: checking for dyld" >&5
12387 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12388 case $ac_sys_system/$ac_sys_release in
12391 cat >>confdefs.h <<\_ACEOF
12392 #define WITH_DYLD 1
12395 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12396 echo "${ECHO_T}always on for Darwin" >&6; }
12399 { echo "$as_me:$LINENO: result: no" >&5
12400 echo "${ECHO_T}no" >&6; }
12404 # Set info about shared libraries.
12410 # SO is the extension of shared libraries `(including the dot
!)
12411 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12412 { echo "$as_me:$LINENO: checking SO" >&5
12413 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12416 case $ac_sys_system in
12427 # this might also be a termcap variable, see #610332
12429 echo '====================================================================='
12431 echo '+ WARNING: You have set SO in your environment. +'
12432 echo '+ Do you really mean to change the extension for shared libraries? +'
12433 echo '+ Continuing in 10 seconds to let you to ponder. +'
12435 echo '====================================================================='
12438 { echo "$as_me:$LINENO: result: $SO" >&5
12439 echo "${ECHO_T}$SO" >&6; }
12441 cat >>confdefs.h
<<_ACEOF
12442 #define SHLIB_EXT "$SO"
12445 # LDSHARED is the ld *command* used to create shared library
12446 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12447 # (Shared libraries in this instance are shared modules to be loaded into
12448 # Python, as opposed to building Python itself as a shared library.)
12449 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12450 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12451 if test -z "$LDSHARED"
12453 case $ac_sys_system/$ac_sys_release in
12455 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12456 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12459 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12460 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12462 IRIX
/5*) LDSHARED
="ld -shared";;
12463 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12465 if test "$GCC" = "yes"
12466 then LDSHARED
='$(CC) -shared'
12467 else LDSHARED
='$(CC) -G';
12470 if test "$GCC" = "yes"
12471 then LDSHARED
='$(CC) -shared'
12472 else LDSHARED
='ld -b';
12474 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
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. Ignore undefined symbols, assuming they come from Python
12483 LDSHARED
="$LDSHARED -undefined suppress"
12485 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12486 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12487 if test "$enable_framework" ; then
12488 # Link against the framework. All externals should be defined.
12489 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12490 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12492 # No framework, use the Python app as bundle-loader
12493 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12494 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12497 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12498 # This allows an extension to be used in any Python
12499 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12500 if test ${cur_target} '>' 10.2; then
12503 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12505 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12506 # environment with a value that is the same as what we'll use
12507 # in the Makefile to ensure that we'll get the same compiler
12508 # environment during configure and build time.
12509 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12510 export MACOSX_DEPLOYMENT_TARGET
12512 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12513 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12515 if test "${enable_universalsdk}"; then
12516 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12518 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12519 BLDSHARED
="$LDSHARED"
12521 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12522 if test "$enable_framework" ; then
12523 # Link against the framework. All externals should be defined.
12524 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12525 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12527 # No framework, use the Python app as bundle-loader
12528 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12529 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12533 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
12534 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12536 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12538 LDSHARED
="$CC -shared ${LDFLAGS}"
12540 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12543 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12545 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12548 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12549 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12552 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12556 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12557 OpenUNIX
*|UnixWare
*)
12558 if test "$GCC" = "yes"
12559 then LDSHARED
='$(CC) -shared'
12560 else LDSHARED
='$(CC) -G'
12562 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12563 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12564 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12565 atheos
*) LDSHARED
="gcc -shared";;
12569 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12570 echo "${ECHO_T}$LDSHARED" >&6; }
12571 BLDSHARED
=${BLDSHARED-$LDSHARED}
12572 # CCSHARED are the C *flags* used to create objects to go into a shared
12573 # library (module) -- this is only needed for a few systems
12574 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12575 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12576 if test -z "$CCSHARED"
12578 case $ac_sys_system/$ac_sys_release in
12579 SunOS
*) if test "$GCC" = yes;
12580 then CCSHARED
="-fPIC";
12581 elif test `uname -p` = sparc
;
12582 then CCSHARED
="-xcode=pic32";
12583 else CCSHARED
="-Kpic";
12585 hp
*|HP
*) if test "$GCC" = yes;
12586 then CCSHARED
="-fPIC";
12587 else CCSHARED
="+z";
12589 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12590 BSD
/OS
*/4*) CCSHARED
="-fpic";;
12591 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12592 OpenUNIX
*|UnixWare
*)
12593 if test "$GCC" = "yes"
12594 then CCSHARED
="-fPIC"
12595 else CCSHARED
="-KPIC"
12598 if test "$GCC" = "yes"
12599 then CCSHARED
="-fPIC"
12600 else CCSHARED
="-Kpic -belf"
12602 Monterey
*) CCSHARED
="-G";;
12603 IRIX
*/6*) case $CC in
12604 *gcc
*) CCSHARED
="-shared";;
12607 atheos
*) CCSHARED
="-fPIC";;
12610 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12611 echo "${ECHO_T}$CCSHARED" >&6; }
12612 # LINKFORSHARED are the flags passed to the $(CC) command that links
12613 # the python executable -- this is only needed for a few systems
12614 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12615 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12616 if test -z "$LINKFORSHARED"
12618 case $ac_sys_system/$ac_sys_release in
12619 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
12621 LINKFORSHARED
="-Wl,-E -Wl,+s";;
12622 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12623 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12624 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12625 # -u libsys_s pulls in all symbols in libsys
12627 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12629 # not used by the core itself but which needs to be in the core so
12630 # that dynamically loaded extension modules have access to it.
12631 # -prebind is no longer used, because it actually seems to give a
12632 # slowdown in stead of a speedup, maybe due to the large number of
12633 # dynamic loads Python does.
12635 LINKFORSHARED
="$extra_undefs"
12636 if test "$enable_framework"
12638 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12640 LINKFORSHARED
="$LINKFORSHARED";;
12641 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
12642 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
12643 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
12644 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
12645 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12647 LINKFORSHARED
="-Wl,--export-dynamic"
12649 SunOS
/5*) case $CC in
12651 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
12653 LINKFORSHARED
="-Xlinker --export-dynamic"
12657 if test $enable_shared = "no"
12659 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
12662 # -Wl,-E causes the symbols to be added to the dynamic
12663 # symbol table so that they can be found when a module
12664 # is loaded. -N 2048K causes the stack size to be set
12665 # to 2048 kilobytes so that the stack doesn't overflow
12666 # when running test_compile.py.
12667 LINKFORSHARED
='-Wl,-E -N 2048K';;
12670 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12671 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12674 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12675 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12676 if test ! "$LIBRARY" = "$LDLIBRARY"
12678 case $ac_sys_system in
12680 # Cygwin needs CCSHARED when building extension DLLs
12681 # but not when building the interpreter DLL.
12682 CFLAGSFORSHARED
='';;
12684 CFLAGSFORSHARED
='$(CCSHARED)'
12687 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12688 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12690 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12691 # library (with --enable-shared).
12692 # For platforms on which shared libraries are not allowed to have unresolved
12693 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12694 # if it is not required, since it creates a dependency of the shared library
12695 # to LIBS. This, in turn, means that applications linking the shared libpython
12696 # don't need to link LIBS explicitly. The default should be only changed
12697 # on systems where this approach causes problems.
12699 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12700 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12701 case "$ac_sys_system" in
12705 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12706 echo "${ECHO_T}$SHLIBS" >&6; }
12709 # checks for libraries
12711 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12712 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 ac_check_lib_save_LIBS
=$LIBS
12718 cat >conftest.
$ac_ext <<_ACEOF
12721 cat confdefs.h
>>conftest.
$ac_ext
12722 cat >>conftest.
$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12725 /* Override any GCC internal prototype to avoid an error.
12726 Use char because int might match the return type of a GCC
12727 builtin and then its argument prototype would still apply. */
12740 rm -f conftest.
$ac_objext conftest
$ac_exeext
12741 if { (ac_try
="$ac_link"
12742 case "(($ac_try" in
12743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_link") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest$ac_exeext &&
12757 $as_test_x conftest$ac_exeext; then
12758 ac_cv_lib_dl_dlopen=yes
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_cv_lib_dl_dlopen=no
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12772 if test $ac_cv_lib_dl_dlopen = yes; then
12773 cat >>confdefs.h <<_ACEOF
12774 #define HAVE_LIBDL 1
12780 # Dynamic linking for SunOS/Solaris and SYSV
12782 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 ac_check_lib_save_LIBS=$LIBS
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12806 return shl_load ();
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (ac_try="$ac_link"
12813 case "(($ac_try" in
12814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12815 *) ac_try_echo
=$ac_try;;
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_link") 2>conftest.er1
12820 grep -v '^ *+' conftest.er1
>conftest.err
12822 cat conftest.err
>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } && {
12825 test -z "$ac_c_werror_flag" ||
12826 test ! -s conftest.err
12827 } && test -s conftest
$ac_exeext &&
12828 $as_test_x conftest
$ac_exeext; then
12829 ac_cv_lib_dld_shl_load
=yes
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.
$ac_ext >&5
12834 ac_cv_lib_dld_shl_load
=no
12837 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12838 conftest
$ac_exeext conftest.
$ac_ext
12839 LIBS
=$ac_check_lib_save_LIBS
12841 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12842 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12843 if test $ac_cv_lib_dld_shl_load = yes; then
12844 cat >>confdefs.h
<<_ACEOF
12845 #define HAVE_LIBDLD 1
12851 # Dynamic linking for HP-UX
12853 # only check for sem_ini if thread support is requested
12854 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12855 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12856 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12857 if test "${ac_cv_search_sem_init+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 ac_func_search_save_LIBS
=$LIBS
12861 cat >conftest.
$ac_ext <<_ACEOF
12864 cat confdefs.h
>>conftest.
$ac_ext
12865 cat >>conftest.
$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12878 return sem_init ();
12883 for ac_lib
in '' pthread rt posix4
; do
12884 if test -z "$ac_lib"; then
12885 ac_res
="none required"
12888 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12890 rm -f conftest.
$ac_objext conftest
$ac_exeext
12891 if { (ac_try
="$ac_link"
12892 case "(($ac_try" in
12893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_link") 2>conftest.er1
12899 grep -v '^ *+' conftest.er1 >conftest.err
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && {
12904 test -z "$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12906 } && test -s conftest$ac_exeext &&
12907 $as_test_x conftest$ac_exeext; then
12908 ac_cv_search_sem_init=$ac_res
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12918 if test "${ac_cv_search_sem_init+set}" = set; then
12922 if test "${ac_cv_search_sem_init+set}" = set; then
12925 ac_cv_search_sem_init=no
12927 rm conftest.$ac_ext
12928 LIBS=$ac_func_search_save_LIBS
12930 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12931 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12932 ac_res=$ac_cv_search_sem_init
12933 if test "$ac_res" != no; then
12934 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12937 # 'Real Time' functions on Solaris
12938 # posix4 on Solaris 2.6
12939 # pthread (first!) on Linux
12942 # check if we need libintl for locale functions
12943 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12944 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12945 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 ac_check_lib_save_LIBS=$LIBS
12949 LIBS="-lintl $LIBS"
12950 cat >conftest.$ac_ext <<_ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12963 char textdomain ();
12967 return textdomain ();
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12976 *) ac_try_echo
=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1
>conftest.err
12983 cat conftest.err
>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest
$ac_exeext &&
12989 $as_test_x conftest
$ac_exeext; then
12990 ac_cv_lib_intl_textdomain
=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.
$ac_ext >&5
12995 ac_cv_lib_intl_textdomain
=no
12998 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12999 conftest
$ac_exeext conftest.
$ac_ext
13000 LIBS
=$ac_check_lib_save_LIBS
13002 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13003 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13004 if test $ac_cv_lib_intl_textdomain = yes; then
13006 cat >>confdefs.h
<<\_ACEOF
13007 #define WITH_LIBINTL 1
13013 # checks for system dependent C++ extensions support
13014 case "$ac_sys_system" in
13015 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13016 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13017 cat >conftest.
$ac_ext <<_ACEOF
13020 cat confdefs.h
>>conftest.
$ac_ext
13021 cat >>conftest.
$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 #include "/usr/lpp/xlC/include/load.h"
13027 loadAndInit("", 0, "")
13032 rm -f conftest.
$ac_objext conftest
$ac_exeext
13033 if { (ac_try
="$ac_link"
13034 case "(($ac_try" in
13035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_link") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest$ac_exeext &&
13049 $as_test_x conftest$ac_exeext; then
13051 cat >>confdefs.h <<\_ACEOF
13052 #define AIX_GENUINE_CPLUSPLUS 1
13055 { echo "$as_me:$LINENO: result: yes" >&5
13056 echo "${ECHO_T}yes" >&6; }
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13066 conftest$ac_exeext conftest.$ac_ext;;
13070 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13071 # BeOS' sockets are stashed in libnet.
13072 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13073 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13074 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 ac_check_lib_save_LIBS=$LIBS
13079 cat >conftest.$ac_ext <<_ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13105 *) ac_try_echo
=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_link") 2>conftest.er1
13110 grep -v '^ *+' conftest.er1
>conftest.err
13112 cat conftest.err
>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } && {
13115 test -z "$ac_c_werror_flag" ||
13116 test ! -s conftest.err
13117 } && test -s conftest
$ac_exeext &&
13118 $as_test_x conftest
$ac_exeext; then
13119 ac_cv_lib_nsl_t_open
=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.
$ac_ext >&5
13124 ac_cv_lib_nsl_t_open
=no
13127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13128 conftest
$ac_exeext conftest.
$ac_ext
13129 LIBS
=$ac_check_lib_save_LIBS
13131 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13132 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13133 if test $ac_cv_lib_nsl_t_open = yes; then
13137 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13138 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13139 if test "${ac_cv_lib_socket_socket+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 ac_check_lib_save_LIBS
=$LIBS
13143 LIBS
="-lsocket $LIBS $LIBS"
13144 cat >conftest.
$ac_ext <<_ACEOF
13147 cat confdefs.h
>>conftest.
$ac_ext
13148 cat >>conftest.
$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13151 /* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13166 rm -f conftest.
$ac_objext conftest
$ac_exeext
13167 if { (ac_try
="$ac_link"
13168 case "(($ac_try" in
13169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13175 grep -v '^ *+' conftest.er1 >conftest.err
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } && {
13180 test -z "$ac_c_werror_flag" ||
13181 test ! -s conftest.err
13182 } && test -s conftest$ac_exeext &&
13183 $as_test_x conftest$ac_exeext; then
13184 ac_cv_lib_socket_socket=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_cv_lib_socket_socket=no
13192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13193 conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13196 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13197 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13198 if test $ac_cv_lib_socket_socket = yes; then
13199 LIBS="-lsocket $LIBS"
13203 case "$ac_sys_system" in
13205 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13206 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13207 if test "${ac_cv_lib_net_socket+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 ac_check_lib_save_LIBS=$LIBS
13211 LIBS="-lnet $LIBS $LIBS"
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13238 *) ac_try_echo
=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1
>conftest.err
13245 cat conftest.err
>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest
$ac_exeext &&
13251 $as_test_x conftest
$ac_exeext; then
13252 ac_cv_lib_net_socket
=yes
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.
$ac_ext >&5
13257 ac_cv_lib_net_socket
=no
13260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13261 conftest
$ac_exeext conftest.
$ac_ext
13262 LIBS
=$ac_check_lib_save_LIBS
13264 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13265 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13266 if test $ac_cv_lib_net_socket = yes; then
13273 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13274 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13276 # Check whether --with-libs was given.
13277 if test "${with_libs+set}" = set; then
13278 withval
=$with_libs;
13279 { echo "$as_me:$LINENO: result: $withval" >&5
13280 echo "${ECHO_T}$withval" >&6; }
13281 LIBS
="$withval $LIBS"
13284 { echo "$as_me:$LINENO: result: no" >&5
13285 echo "${ECHO_T}no" >&6; }
13289 # Check for use of the system libffi library
13290 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13291 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13293 # Check whether --with-system_ffi was given.
13294 if test "${with_system_ffi+set}" = set; then
13295 withval
=$with_system_ffi;
13299 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13300 echo "${ECHO_T}$with_system_ffi" >&6; }
13302 # Determine if signalmodule should be used.
13305 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13306 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13308 # Check whether --with-signal-module was given.
13309 if test "${with_signal_module+set}" = set; then
13310 withval
=$with_signal_module;
13314 if test -z "$with_signal_module"
13315 then with_signal_module
="yes"
13317 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13318 echo "${ECHO_T}$with_signal_module" >&6; }
13320 if test "${with_signal_module}" = "yes"; then
13321 USE_SIGNAL_MODULE
=""
13324 USE_SIGNAL_MODULE
="#"
13325 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13328 # This is used to generate Setup.config
13330 USE_THREAD_MODULE
=""
13332 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13333 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13336 # Check whether --with-dec-threads was given.
13337 if test "${with_dec_threads+set}" = set; then
13338 withval
=$with_dec_threads;
13339 { echo "$as_me:$LINENO: result: $withval" >&5
13340 echo "${ECHO_T}$withval" >&6; }
13342 if test "${with_thread+set}" != set; then
13343 with_thread
="$withval";
13346 { echo "$as_me:$LINENO: result: no" >&5
13347 echo "${ECHO_T}no" >&6; }
13351 # Templates for things AC_DEFINEd more than once.
13352 # For a single AC_DEFINE, no template is needed.
13360 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13361 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13363 # Check whether --with-threads was given.
13364 if test "${with_threads+set}" = set; then
13365 withval
=$with_threads;
13369 # --with-thread is deprecated, but check for it anyway
13371 # Check whether --with-thread was given.
13372 if test "${with_thread+set}" = set; then
13373 withval
=$with_thread; with_threads
=$with_thread
13377 if test -z "$with_threads"
13378 then with_threads
="yes"
13380 { echo "$as_me:$LINENO: result: $with_threads" >&5
13381 echo "${ECHO_T}$with_threads" >&6; }
13384 if test "$with_threads" = "no"
13386 USE_THREAD_MODULE
="#"
13387 elif test "$ac_cv_pthread_is_default" = yes
13389 cat >>confdefs.h
<<\_ACEOF
13390 #define WITH_THREAD 1
13393 # Defining _REENTRANT on system with POSIX threads should not hurt.
13394 cat >>confdefs.h
<<\_ACEOF
13395 #define _REENTRANT 1
13399 THREADOBJ
="Python/thread.o"
13400 elif test "$ac_cv_kpthread" = "yes"
13403 if test "$ac_cv_cxx_thread" = "yes"; then
13404 CXX
="$CXX -Kpthread"
13406 cat >>confdefs.h
<<\_ACEOF
13407 #define WITH_THREAD 1
13411 THREADOBJ
="Python/thread.o"
13412 elif test "$ac_cv_kthread" = "yes"
13415 if test "$ac_cv_cxx_thread" = "yes"; then
13416 CXX
="$CXX -Kthread"
13418 cat >>confdefs.h
<<\_ACEOF
13419 #define WITH_THREAD 1
13423 THREADOBJ
="Python/thread.o"
13424 elif test "$ac_cv_pthread" = "yes"
13427 if test "$ac_cv_cxx_thread" = "yes"; then
13428 CXX
="$CXX -pthread"
13430 cat >>confdefs.h
<<\_ACEOF
13431 #define WITH_THREAD 1
13435 THREADOBJ
="Python/thread.o"
13437 if test ! -z "$with_threads" -a -d "$with_threads"
13438 then LDFLAGS
="$LDFLAGS -L$with_threads"
13440 if test ! -z "$withval" -a -d "$withval"
13441 then LDFLAGS
="$LDFLAGS -L$withval"
13444 # According to the POSIX spec, a pthreads implementation must
13445 # define _POSIX_THREADS in unistd.h. Some apparently don't
13446 # (e.g. gnu pth with pthread emulation)
13447 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13448 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13449 cat >conftest.
$ac_ext <<_ACEOF
13452 cat confdefs.h
>>conftest.
$ac_ext
13453 cat >>conftest.
$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13456 #include <unistd.h>
13457 #ifdef _POSIX_THREADS
13462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13463 $EGREP "yes" >/dev
/null
2>&1; then
13464 unistd_defines_pthreads
=yes
13466 unistd_defines_pthreads
=no
13470 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13471 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13473 cat >>confdefs.h
<<\_ACEOF
13474 #define _REENTRANT 1
13477 if test "${ac_cv_header_cthreads_h+set}" = set; then
13478 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13479 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13480 if test "${ac_cv_header_cthreads_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13484 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13486 # Is the header compilable?
13487 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13488 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13489 cat >conftest.
$ac_ext <<_ACEOF
13492 cat confdefs.h
>>conftest.
$ac_ext
13493 cat >>conftest.
$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 $ac_includes_default
13496 #include <cthreads.h>
13498 rm -f conftest.
$ac_objext
13499 if { (ac_try
="$ac_compile"
13500 case "(($ac_try" in
13501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_compile") 2>conftest.er1
13507 grep -v '^ *+' conftest.er1 >conftest.err
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && {
13512 test -z "$ac_c_werror_flag" ||
13513 test ! -s conftest.err
13514 } && test -s conftest.$ac_objext; then
13515 ac_header_compiler=yes
13517 echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13520 ac_header_compiler=no
13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13525 echo "${ECHO_T}$ac_header_compiler" >&6; }
13527 # Is the header present?
13528 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13529 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13530 cat >conftest.$ac_ext <<_ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 #include <cthreads.h>
13538 if { (ac_try="$ac_cpp conftest.$ac_ext"
13539 case "(($ac_try" in
13540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13541 *) ac_try_echo
=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13546 grep -v '^ *+' conftest.er1
>conftest.err
13548 cat conftest.err
>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } >/dev
/null
&& {
13551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13552 test ! -s conftest.err
13554 ac_header_preproc
=yes
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.
$ac_ext >&5
13559 ac_header_preproc
=no
13562 rm -f conftest.err conftest.
$ac_ext
13563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13564 echo "${ECHO_T}$ac_header_preproc" >&6; }
13566 # So? What about this header?
13567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13569 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13570 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13572 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13573 ac_header_preproc
=yes
13576 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13577 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13579 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13581 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13583 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13584 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13585 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13587 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13589 ## ------------------------------------------------ ##
13590 ## Report this to http://www.python.org/python-bugs ##
13591 ## ------------------------------------------------ ##
13593 ) |
sed "s/^/$as_me: WARNING: /" >&2
13596 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13597 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13598 if test "${ac_cv_header_cthreads_h+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 ac_cv_header_cthreads_h
=$ac_header_preproc
13603 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13604 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13607 if test $ac_cv_header_cthreads_h = yes; then
13608 cat >>confdefs.h
<<\_ACEOF
13609 #define WITH_THREAD 1
13612 cat >>confdefs.h
<<\_ACEOF
13613 #define C_THREADS 1
13617 cat >>confdefs.h
<<\_ACEOF
13618 #define HURD_C_THREADS 1
13621 LIBS
="$LIBS -lthreads"
13622 THREADOBJ
="Python/thread.o"
13625 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13626 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13627 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13628 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13632 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13634 # Is the header compilable?
13635 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13636 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13637 cat >conftest.
$ac_ext <<_ACEOF
13640 cat confdefs.h
>>conftest.
$ac_ext
13641 cat >>conftest.
$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 $ac_includes_default
13644 #include <mach/cthreads.h>
13646 rm -f conftest.
$ac_objext
13647 if { (ac_try
="$ac_compile"
13648 case "(($ac_try" in
13649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_compile") 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } && {
13660 test -z "$ac_c_werror_flag" ||
13661 test ! -s conftest.err
13662 } && test -s conftest.$ac_objext; then
13663 ac_header_compiler=yes
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 ac_header_compiler=no
13671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13673 echo "${ECHO_T}$ac_header_compiler" >&6; }
13675 # Is the header present?
13676 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13677 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13678 cat >conftest.$ac_ext <<_ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 #include <mach/cthreads.h>
13686 if { (ac_try="$ac_cpp conftest.$ac_ext"
13687 case "(($ac_try" in
13688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13689 *) ac_try_echo
=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1
>conftest.err
13696 cat conftest.err
>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } >/dev
/null
&& {
13699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13702 ac_header_preproc
=yes
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.
$ac_ext >&5
13707 ac_header_preproc
=no
13710 rm -f conftest.err conftest.
$ac_ext
13711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13712 echo "${ECHO_T}$ac_header_preproc" >&6; }
13714 # So? What about this header?
13715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13717 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13718 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13720 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13721 ac_header_preproc
=yes
13724 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13725 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13727 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13729 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13731 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13732 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13733 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13734 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13735 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13737 ## ------------------------------------------------ ##
13738 ## Report this to http://www.python.org/python-bugs ##
13739 ## ------------------------------------------------ ##
13741 ) |
sed "s/^/$as_me: WARNING: /" >&2
13744 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13745 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13746 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
13751 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13752 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13755 if test $ac_cv_header_mach_cthreads_h = yes; then
13756 cat >>confdefs.h
<<\_ACEOF
13757 #define WITH_THREAD 1
13760 cat >>confdefs.h
<<\_ACEOF
13761 #define C_THREADS 1
13765 cat >>confdefs.h
<<\_ACEOF
13766 #define MACH_C_THREADS 1
13769 THREADOBJ
="Python/thread.o"
13772 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13773 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13775 # Check whether --with-pth was given.
13776 if test "${with_pth+set}" = set; then
13777 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13778 echo "${ECHO_T}$withval" >&6; }
13779 cat >>confdefs.h
<<\_ACEOF
13780 #define WITH_THREAD 1
13784 cat >>confdefs.h
<<\_ACEOF
13789 THREADOBJ
="Python/thread.o"
13791 { echo "$as_me:$LINENO: result: no" >&5
13792 echo "${ECHO_T}no" >&6; }
13794 # Just looking for pthread_create in libpthread is not enough:
13795 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13796 # So we really have to include pthread.h, and then link.
13798 LIBS
="$LIBS -lpthread"
13799 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13800 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13801 cat >conftest.
$ac_ext <<_ACEOF
13804 cat confdefs.h
>>conftest.
$ac_ext
13805 cat >>conftest.
$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #include <pthread.h>
13809 void * start_routine (void *arg) { exit (0); }
13814 pthread_create (NULL, NULL, start_routine, NULL)
13819 rm -f conftest.
$ac_objext conftest
$ac_exeext
13820 if { (ac_try
="$ac_link"
13821 case "(($ac_try" in
13822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest$ac_exeext &&
13836 $as_test_x conftest$ac_exeext; then
13838 { echo "$as_me:$LINENO: result: yes" >&5
13839 echo "${ECHO_T}yes" >&6; }
13840 cat >>confdefs.h <<\_ACEOF
13841 #define WITH_THREAD 1
13845 THREADOBJ="Python/thread.o"
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13852 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13853 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13854 if test "${ac_cv_func_pthread_detach+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13865 #define pthread_detach innocuous_pthread_detach
13867 /* System header to define __stub macros and hopefully few prototypes,
13868 which can conflict with char pthread_detach (); below.
13869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13870 <limits.h> exists even on freestanding compilers. */
13873 # include <limits.h>
13875 # include <assert.h>
13878 #undef pthread_detach
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13886 char pthread_detach ();
13887 /* The GNU C library defines this for functions which it implements
13888 to always fail with ENOSYS. Some functions are actually named
13889 something starting with __ and the normal name is an alias. */
13890 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13897 return pthread_detach ();
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (ac_try="$ac_link"
13904 case "(($ac_try" in
13905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13906 *) ac_try_echo
=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_link") 2>conftest.er1
13911 grep -v '^ *+' conftest.er1
>conftest.err
13913 cat conftest.err
>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } && {
13916 test -z "$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 } && test -s conftest
$ac_exeext &&
13919 $as_test_x conftest
$ac_exeext; then
13920 ac_cv_func_pthread_detach
=yes
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.
$ac_ext >&5
13925 ac_cv_func_pthread_detach
=no
13928 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13929 conftest
$ac_exeext conftest.
$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13932 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13933 if test $ac_cv_func_pthread_detach = yes; then
13934 cat >>confdefs.h
<<\_ACEOF
13935 #define WITH_THREAD 1
13939 THREADOBJ
="Python/thread.o"
13942 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13943 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13944 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13945 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13949 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13951 # Is the header compilable?
13952 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13953 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13954 cat >conftest.
$ac_ext <<_ACEOF
13957 cat confdefs.h
>>conftest.
$ac_ext
13958 cat >>conftest.
$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 $ac_includes_default
13961 #include <atheos/threads.h>
13963 rm -f conftest.
$ac_objext
13964 if { (ac_try
="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_header_compiler=yes
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_header_compiler=no
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 echo "${ECHO_T}$ac_header_compiler" >&6; }
13992 # Is the header present?
13993 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13994 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <atheos/threads.h>
14003 if { (ac_try="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14006 *) ac_try_echo
=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14011 grep -v '^ *+' conftest.er1
>conftest.err
14013 cat conftest.err
>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } >/dev
/null
&& {
14016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14019 ac_header_preproc
=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.
$ac_ext >&5
14024 ac_header_preproc
=no
14027 rm -f conftest.err conftest.
$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6; }
14031 # So? What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14038 ac_header_preproc
=yes
14041 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14054 ## ------------------------------------------------ ##
14055 ## Report this to http://www.python.org/python-bugs ##
14056 ## ------------------------------------------------ ##
14058 ) |
sed "s/^/$as_me: WARNING: /" >&2
14061 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14062 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14063 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14068 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14069 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14072 if test $ac_cv_header_atheos_threads_h = yes; then
14073 cat >>confdefs.h
<<\_ACEOF
14074 #define WITH_THREAD 1
14078 cat >>confdefs.h
<<\_ACEOF
14079 #define ATHEOS_THREADS 1
14082 THREADOBJ
="Python/thread.o"
14085 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14086 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14087 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14088 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14092 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14094 # Is the header compilable?
14095 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14096 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14097 cat >conftest.
$ac_ext <<_ACEOF
14100 cat confdefs.h
>>conftest.
$ac_ext
14101 cat >>conftest.
$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14103 $ac_includes_default
14104 #include <kernel/OS.h>
14106 rm -f conftest.
$ac_objext
14107 if { (ac_try
="$ac_compile"
14108 case "(($ac_try" in
14109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest.$ac_objext; then
14123 ac_header_compiler=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_header_compiler=no
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133 echo "${ECHO_T}$ac_header_compiler" >&6; }
14135 # Is the header present?
14136 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14137 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 #include <kernel/OS.h>
14146 if { (ac_try="$ac_cpp conftest.$ac_ext"
14147 case "(($ac_try" in
14148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14149 *) ac_try_echo
=$ac_try;;
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14154 grep -v '^ *+' conftest.er1
>conftest.err
14156 cat conftest.err
>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } >/dev
/null
&& {
14159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14160 test ! -s conftest.err
14162 ac_header_preproc
=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.
$ac_ext >&5
14167 ac_header_preproc
=no
14170 rm -f conftest.err conftest.
$ac_ext
14171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172 echo "${ECHO_T}$ac_header_preproc" >&6; }
14174 # So? What about this header?
14175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14177 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14178 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14180 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14181 ac_header_preproc
=yes
14184 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14189 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14191 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14193 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14195 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14197 ## ------------------------------------------------ ##
14198 ## Report this to http://www.python.org/python-bugs ##
14199 ## ------------------------------------------------ ##
14201 ) |
sed "s/^/$as_me: WARNING: /" >&2
14204 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14205 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14206 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14211 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14212 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14215 if test $ac_cv_header_kernel_OS_h = yes; then
14216 cat >>confdefs.h
<<\_ACEOF
14217 #define WITH_THREAD 1
14221 cat >>confdefs.h
<<\_ACEOF
14222 #define BEOS_THREADS 1
14225 THREADOBJ
="Python/thread.o"
14228 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14229 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14230 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 ac_check_lib_save_LIBS
=$LIBS
14234 LIBS
="-lpthreads $LIBS"
14235 cat >conftest.
$ac_ext <<_ACEOF
14238 cat confdefs.h
>>conftest.
$ac_ext
14239 cat >>conftest.
$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14248 char pthread_create ();
14252 return pthread_create ();
14257 rm -f conftest.
$ac_objext conftest
$ac_exeext
14258 if { (ac_try
="$ac_link"
14259 case "(($ac_try" in
14260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_link") 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } && {
14271 test -z "$ac_c_werror_flag" ||
14272 test ! -s conftest.err
14273 } && test -s conftest$ac_exeext &&
14274 $as_test_x conftest$ac_exeext; then
14275 ac_cv_lib_pthreads_pthread_create=yes
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_cv_lib_pthreads_pthread_create=no
14283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14284 conftest$ac_exeext conftest.$ac_ext
14285 LIBS=$ac_check_lib_save_LIBS
14287 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14288 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14289 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14290 cat >>confdefs.h <<\_ACEOF
14291 #define WITH_THREAD 1
14295 LIBS="$LIBS -lpthreads"
14296 THREADOBJ="Python/thread.o"
14299 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14300 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14301 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 ac_check_lib_save_LIBS=$LIBS
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14319 char pthread_create ();
14323 return pthread_create ();
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14332 *) ac_try_echo
=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_link") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1
>conftest.err
14339 cat conftest.err
>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest
$ac_exeext &&
14345 $as_test_x conftest
$ac_exeext; then
14346 ac_cv_lib_c_r_pthread_create
=yes
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.
$ac_ext >&5
14351 ac_cv_lib_c_r_pthread_create
=no
14354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14355 conftest
$ac_exeext conftest.
$ac_ext
14356 LIBS
=$ac_check_lib_save_LIBS
14358 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14359 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14360 if test $ac_cv_lib_c_r_pthread_create = yes; then
14361 cat >>confdefs.h
<<\_ACEOF
14362 #define WITH_THREAD 1
14367 THREADOBJ
="Python/thread.o"
14370 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14371 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14372 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 ac_check_lib_save_LIBS
=$LIBS
14376 LIBS
="-lpthread $LIBS"
14377 cat >conftest.
$ac_ext <<_ACEOF
14380 cat confdefs.h
>>conftest.
$ac_ext
14381 cat >>conftest.
$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14384 /* Override any GCC internal prototype to avoid an error.
14385 Use char because int might match the return type of a GCC
14386 builtin and then its argument prototype would still apply. */
14390 char __pthread_create_system ();
14394 return __pthread_create_system ();
14399 rm -f conftest.
$ac_objext conftest
$ac_exeext
14400 if { (ac_try
="$ac_link"
14401 case "(($ac_try" in
14402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_link") 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && {
14413 test -z "$ac_c_werror_flag" ||
14414 test ! -s conftest.err
14415 } && test -s conftest$ac_exeext &&
14416 $as_test_x conftest$ac_exeext; then
14417 ac_cv_lib_pthread___pthread_create_system=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_lib_pthread___pthread_create_system=no
14425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14429 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14430 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14431 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define WITH_THREAD 1
14437 LIBS="$LIBS -lpthread"
14438 THREADOBJ="Python/thread.o"
14441 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14442 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14443 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 ac_check_lib_save_LIBS=$LIBS
14448 cat >conftest.$ac_ext <<_ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14455 /* Override any GCC internal prototype to avoid an error.
14456 Use char because int might match the return type of a GCC
14457 builtin and then its argument prototype would still apply. */
14461 char pthread_create ();
14465 return pthread_create ();
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14474 *) ac_try_echo
=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>conftest.er1
14479 grep -v '^ *+' conftest.er1
>conftest.err
14481 cat conftest.err
>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_c_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest
$ac_exeext &&
14487 $as_test_x conftest
$ac_exeext; then
14488 ac_cv_lib_cma_pthread_create
=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.
$ac_ext >&5
14493 ac_cv_lib_cma_pthread_create
=no
14496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14497 conftest
$ac_exeext conftest.
$ac_ext
14498 LIBS
=$ac_check_lib_save_LIBS
14500 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14501 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14502 if test $ac_cv_lib_cma_pthread_create = yes; then
14503 cat >>confdefs.h
<<\_ACEOF
14504 #define WITH_THREAD 1
14509 THREADOBJ
="Python/thread.o"
14512 USE_THREAD_MODULE
="#"
14532 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14533 conftest
$ac_exeext conftest.
$ac_ext
14543 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14544 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14545 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 ac_check_lib_save_LIBS
=$LIBS
14550 cat >conftest.
$ac_ext <<_ACEOF
14553 cat confdefs.h
>>conftest.
$ac_ext
14554 cat >>conftest.
$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14557 /* Override any GCC internal prototype to avoid an error.
14558 Use char because int might match the return type of a GCC
14559 builtin and then its argument prototype would still apply. */
14567 return usconfig ();
14572 rm -f conftest.
$ac_objext conftest
$ac_exeext
14573 if { (ac_try
="$ac_link"
14574 case "(($ac_try" in
14575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_link") 2>conftest.er1
14581 grep -v '^ *+' conftest.er1 >conftest.err
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } && {
14586 test -z "$ac_c_werror_flag" ||
14587 test ! -s conftest.err
14588 } && test -s conftest$ac_exeext &&
14589 $as_test_x conftest$ac_exeext; then
14590 ac_cv_lib_mpc_usconfig=yes
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_cv_lib_mpc_usconfig=no
14598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14599 conftest$ac_exeext conftest.$ac_ext
14600 LIBS=$ac_check_lib_save_LIBS
14602 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14603 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14604 if test $ac_cv_lib_mpc_usconfig = yes; then
14605 cat >>confdefs.h <<\_ACEOF
14606 #define WITH_THREAD 1
14610 THREADOBJ="Python/thread.o"
14611 USE_THREAD_MODULE=""
14615 if test "$posix_threads" != "yes"; then
14616 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14617 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14618 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-lthread $LIBS"
14623 cat >conftest.$ac_ext <<_ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14630 /* Override any GCC internal prototype to avoid an error.
14631 Use char because int might match the return type of a GCC
14632 builtin and then its argument prototype would still apply. */
14636 char thr_create ();
14640 return thr_create ();
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14649 *) ac_try_echo
=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1
>conftest.err
14656 cat conftest.err
>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest
$ac_exeext &&
14662 $as_test_x conftest
$ac_exeext; then
14663 ac_cv_lib_thread_thr_create
=yes
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.
$ac_ext >&5
14668 ac_cv_lib_thread_thr_create
=no
14671 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14672 conftest
$ac_exeext conftest.
$ac_ext
14673 LIBS
=$ac_check_lib_save_LIBS
14675 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14676 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14677 if test $ac_cv_lib_thread_thr_create = yes; then
14678 cat >>confdefs.h
<<\_ACEOF
14679 #define WITH_THREAD 1
14682 LIBS
="$LIBS -lthread"
14683 THREADOBJ
="Python/thread.o"
14684 USE_THREAD_MODULE
=""
14689 if test "$USE_THREAD_MODULE" != "#"
14691 # If the above checks didn't disable threads, (at least) OSF1
14692 # needs this '-threads' argument during linking.
14693 case $ac_sys_system in
14694 OSF1
) LDLAST
=-threads;;
14699 if test "$posix_threads" = "yes"; then
14700 if test "$unistd_defines_pthreads" = "no"; then
14702 cat >>confdefs.h
<<\_ACEOF
14703 #define _POSIX_THREADS 1
14708 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14709 case $ac_sys_system/$ac_sys_release in
14711 cat >>confdefs.h
<<\_ACEOF
14712 #define HAVE_PTHREAD_DESTRUCTOR 1
14717 cat >>confdefs.h
<<\_ACEOF
14718 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14723 cat >>confdefs.h
<<\_ACEOF
14724 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14730 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14731 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14732 if test "${ac_cv_pthread_system_supported+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 if test "$cross_compiling" = yes; then
14736 ac_cv_pthread_system_supported
=no
14738 cat >conftest.
$ac_ext <<_ACEOF
14741 cat confdefs.h
>>conftest.
$ac_ext
14742 cat >>conftest.
$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #include <pthread.h>
14745 void *foo(void *parm) {
14749 pthread_attr_t attr;
14751 if (pthread_attr_init(&attr)) exit(-1);
14752 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14753 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14757 rm -f conftest
$ac_exeext
14758 if { (ac_try
="$ac_link"
14759 case "(($ac_try" in
14760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_link") 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14768 { (case "(($ac_try" in
14769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14770 *) ac_try_echo
=$ac_try;;
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_try") 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_cv_pthread_system_supported
=yes
14779 echo "$as_me: program exited with status $ac_status" >&5
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.
$ac_ext >&5
14783 ( exit $ac_status )
14784 ac_cv_pthread_system_supported
=no
14786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14793 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14794 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14795 if test "$ac_cv_pthread_system_supported" = "yes"; then
14797 cat >>confdefs.h
<<\_ACEOF
14798 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14803 for ac_func
in pthread_sigmask
14805 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14808 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 cat >conftest.
$ac_ext <<_ACEOF
14814 cat confdefs.h
>>conftest.
$ac_ext
14815 cat >>conftest.
$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14819 #define $ac_func innocuous_$ac_func
14821 /* System header to define __stub macros and hopefully few prototypes,
14822 which can conflict with char $ac_func (); below.
14823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14824 <limits.h> exists even on freestanding compilers. */
14827 # include <limits.h>
14829 # include <assert.h>
14834 /* Override any GCC internal prototype to avoid an error.
14835 Use char because int might match the return type of a GCC
14836 builtin and then its argument prototype would still apply. */
14841 /* The GNU C library defines this for functions which it implements
14842 to always fail with ENOSYS. Some functions are actually named
14843 something starting with __ and the normal name is an alias. */
14844 #if defined __stub_$ac_func || defined __stub___$ac_func
14851 return $ac_func ();
14856 rm -f conftest.
$ac_objext conftest
$ac_exeext
14857 if { (ac_try
="$ac_link"
14858 case "(($ac_try" in
14859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_link") 2>conftest.er1
14865 grep -v '^ *+' conftest.er1 >conftest.err
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } && {
14870 test -z "$ac_c_werror_flag" ||
14871 test ! -s conftest.err
14872 } && test -s conftest$ac_exeext &&
14873 $as_test_x conftest$ac_exeext; then
14874 eval "$as_ac_var=yes"
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 eval "$as_ac_var=no"
14882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14883 conftest$ac_exeext conftest.$ac_ext
14885 ac_res=`eval echo '${'$as_ac_var'}'`
14886 { echo "$as_me:$LINENO: result: $ac_res" >&5
14887 echo "${ECHO_T}$ac_res" >&6; }
14888 if test `eval echo '${'$as_ac_var'}'` = yes; then
14889 cat >>confdefs.h <<_ACEOF
14890 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14892 case $ac_sys_system in
14895 cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14907 # Check for enable-ipv6
14910 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14911 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14912 # Check whether --enable-ipv6 was given.
14913 if test "${enable_ipv6+set}" = set; then
14914 enableval=$enable_ipv6; case "$enableval" in
14916 { echo "$as_me:$LINENO: result: no" >&5
14917 echo "${ECHO_T}no" >&6; }
14920 *) { echo "$as_me:$LINENO: result: yes" >&5
14921 echo "${ECHO_T}yes" >&6; }
14922 cat >>confdefs.h <<\_ACEOF
14923 #define ENABLE_IPV6 1
14931 if test "$cross_compiling" = yes; then
14932 { echo "$as_me:$LINENO: result: no" >&5
14933 echo "${ECHO_T}no" >&6; }
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 /* AF_INET6 available check */
14944 #include <sys/types.h>
14945 #include <sys/socket.h>
14948 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14955 rm -f conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14959 *) ac_try_echo
=$ac_try;;
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_link") 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14966 { (case "(($ac_try" in
14967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_try") 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 { echo "$as_me:$LINENO: result: yes" >&5
14976 echo "${ECHO_T}yes" >&6; }
14979 echo "$as_me: program exited with status $ac_status" >&5
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ( exit $ac_status )
14984 { echo "$as_me:$LINENO: result: no" >&5
14985 echo "${ECHO_T}no" >&6; }
14988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14993 if test "$ipv6" = "yes"; then
14994 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14995 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14996 cat >conftest.$ac_ext <<_ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <sys/types.h>
15003 #include <netinet/in.h>
15007 struct sockaddr_in6 x;
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15017 *) ac_try_echo
=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15022 grep -v '^ *+' conftest.er1
>conftest.err
15024 cat conftest.err
>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } && {
15027 test -z "$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 } && test -s conftest.
$ac_objext; then
15030 { echo "$as_me:$LINENO: result: yes" >&5
15031 echo "${ECHO_T}yes" >&6; }
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.
$ac_ext >&5
15037 { echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6; }
15042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15045 if test "$ipv6" = "yes"; then
15046 cat >>confdefs.h
<<\_ACEOF
15047 #define ENABLE_IPV6 1
15059 if test "$ipv6" = "yes"; then
15060 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15061 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15062 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15066 cat >conftest.
$ac_ext <<_ACEOF
15069 cat confdefs.h
>>conftest.
$ac_ext
15070 cat >>conftest.
$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15073 #include <netinet/in.h>
15074 #ifdef IPV6_INRIA_VERSION
15078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15079 $EGREP "yes" >/dev
/null
2>&1; then
15086 cat >conftest.
$ac_ext <<_ACEOF
15089 cat confdefs.h
>>conftest.
$ac_ext
15090 cat >>conftest.
$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 #include <netinet/in.h>
15098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15099 $EGREP "yes" >/dev
/null
2>&1; then
15102 ipv6libdir
=/usr
/local
/v
6/lib
15109 cat >conftest.
$ac_ext <<_ACEOF
15112 cat confdefs.h
>>conftest.
$ac_ext
15113 cat >>conftest.
$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15116 #include <features.h>
15117 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15122 $EGREP "yes" >/dev
/null
2>&1; then
15130 if test -d /usr
/inet6
; then
15133 ipv6libdir
=/usr
/inet
6/lib
15134 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15138 if test -f /etc
/netconfig
; then
15139 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15146 cat >conftest.
$ac_ext <<_ACEOF
15149 cat confdefs.h
>>conftest.
$ac_ext
15150 cat >>conftest.
$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15153 #include <sys/param.h>
15154 #ifdef _TOSHIBA_INET6
15158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15159 $EGREP "yes" >/dev
/null
2>&1; then
15162 ipv6libdir
=/usr
/local
/v
6/lib
15168 cat >conftest.
$ac_ext <<_ACEOF
15171 cat confdefs.h
>>conftest.
$ac_ext
15172 cat >>conftest.
$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15175 #include </usr/local/v6/include/sys/v6config.h>
15180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15181 $EGREP "yes" >/dev
/null
2>&1; then
15184 ipv6libdir
=/usr
/local
/v
6/lib
;
15185 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15191 cat >conftest.
$ac_ext <<_ACEOF
15194 cat confdefs.h
>>conftest.
$ac_ext
15195 cat >>conftest.
$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15198 #include <sys/param.h>
15199 #ifdef _ZETA_MINAMI_INET6
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "yes" >/dev
/null
2>&1; then
15207 ipv6libdir
=/usr
/local
/v
6/lib
15213 if test "$ipv6type" != "unknown"; then
15217 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15218 echo "${ECHO_T}$ipv6type" >&6; }
15221 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15222 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15223 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15224 echo "using lib$ipv6lib"
15226 if test $ipv6trylibc = "yes"; then
15229 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15230 echo "You need to fetch lib$ipv6lib.a from appropriate"
15231 echo 'ipv6 kit and compile beforehand.'
15237 # Check for --with-doc-strings
15238 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15239 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15241 # Check whether --with-doc-strings was given.
15242 if test "${with_doc_strings+set}" = set; then
15243 withval
=$with_doc_strings;
15247 if test -z "$with_doc_strings"
15248 then with_doc_strings
="yes"
15250 if test "$with_doc_strings" != "no"
15253 cat >>confdefs.h
<<\_ACEOF
15254 #define WITH_DOC_STRINGS 1
15258 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15259 echo "${ECHO_T}$with_doc_strings" >&6; }
15261 # Check for Python-specific malloc support
15262 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15263 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15265 # Check whether --with-tsc was given.
15266 if test "${with_tsc+set}" = set; then
15268 if test "$withval" != no
15271 cat >>confdefs.h
<<\_ACEOF
15275 { echo "$as_me:$LINENO: result: yes" >&5
15276 echo "${ECHO_T}yes" >&6; }
15277 else { echo "$as_me:$LINENO: result: no" >&5
15278 echo "${ECHO_T}no" >&6; }
15281 { echo "$as_me:$LINENO: result: no" >&5
15282 echo "${ECHO_T}no" >&6; }
15286 # Check for Python-specific malloc support
15287 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15288 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15290 # Check whether --with-pymalloc was given.
15291 if test "${with_pymalloc+set}" = set; then
15292 withval
=$with_pymalloc;
15296 if test -z "$with_pymalloc"
15297 then with_pymalloc
="yes"
15299 if test "$with_pymalloc" != "no"
15302 cat >>confdefs.h
<<\_ACEOF
15303 #define WITH_PYMALLOC 1
15307 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15308 echo "${ECHO_T}$with_pymalloc" >&6; }
15310 # Check for --with-wctype-functions
15311 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15312 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15314 # Check whether --with-wctype-functions was given.
15315 if test "${with_wctype_functions+set}" = set; then
15316 withval
=$with_wctype_functions;
15317 if test "$withval" != no
15320 cat >>confdefs.h
<<\_ACEOF
15321 #define WANT_WCTYPE_FUNCTIONS 1
15324 { echo "$as_me:$LINENO: result: yes" >&5
15325 echo "${ECHO_T}yes" >&6; }
15326 else { echo "$as_me:$LINENO: result: no" >&5
15327 echo "${ECHO_T}no" >&6; }
15330 { echo "$as_me:$LINENO: result: no" >&5
15331 echo "${ECHO_T}no" >&6; }
15335 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15339 # the dlopen() function means we might want to use dynload_shlib.o. some
15340 # platforms, such as AIX, have dlopen(), but don't want to use it.
15342 for ac_func
in dlopen
15344 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15347 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 cat >conftest.
$ac_ext <<_ACEOF
15353 cat confdefs.h
>>conftest.
$ac_ext
15354 cat >>conftest.
$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15358 #define $ac_func innocuous_$ac_func
15360 /* System header to define __stub macros and hopefully few prototypes,
15361 which can conflict with char $ac_func (); below.
15362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15363 <limits.h> exists even on freestanding compilers. */
15366 # include <limits.h>
15368 # include <assert.h>
15373 /* Override any GCC internal prototype to avoid an error.
15374 Use char because int might match the return type of a GCC
15375 builtin and then its argument prototype would still apply. */
15380 /* The GNU C library defines this for functions which it implements
15381 to always fail with ENOSYS. Some functions are actually named
15382 something starting with __ and the normal name is an alias. */
15383 #if defined __stub_$ac_func || defined __stub___$ac_func
15390 return $ac_func ();
15395 rm -f conftest.
$ac_objext conftest
$ac_exeext
15396 if { (ac_try
="$ac_link"
15397 case "(($ac_try" in
15398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15404 grep -v '^ *+' conftest.er1 >conftest.err
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 eval "$as_ac_var=yes"
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 eval "$as_ac_var=no"
15421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15422 conftest$ac_exeext conftest.$ac_ext
15424 ac_res=`eval echo '${'$as_ac_var'}'`
15425 { echo "$as_me:$LINENO: result: $ac_res" >&5
15426 echo "${ECHO_T}$ac_res" >&6; }
15427 if test `eval echo '${'$as_ac_var'}'` = yes; then
15428 cat >>confdefs.h <<_ACEOF
15429 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15436 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15437 # loading of modules.
15439 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15440 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15441 if test -z "$DYNLOADFILE"
15443 case $ac_sys_system/$ac_sys_release in
15444 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15445 if test "$ac_cv_func_dlopen" = yes
15446 then DYNLOADFILE="dynload_shlib.o"
15447 else DYNLOADFILE="dynload_aix.o"
15450 BeOS*) DYNLOADFILE="dynload_beos.o";;
15451 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15452 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15453 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15454 atheos*) DYNLOADFILE="dynload_atheos.o";;
15456 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15457 # out any dynamic loading
15458 if test "$ac_cv_func_dlopen" = yes
15459 then DYNLOADFILE="dynload_shlib.o"
15460 else DYNLOADFILE="dynload_stub.o"
15465 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15466 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15467 if test "$DYNLOADFILE" != "dynload_stub.o"
15470 cat >>confdefs.h <<\_ACEOF
15471 #define HAVE_DYNAMIC_LOADING 1
15476 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15479 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15480 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15481 if test -z "$MACHDEP_OBJS"
15483 MACHDEP_OBJS=$extra_machdep_objs
15485 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15487 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15488 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15490 # checks for library functions
15572 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15573 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15574 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15575 getpriority getpwent getspnam getspent getsid getwd \
15576 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15577 mremap nice pathconf pause plock poll pthread_init \
15578 putenv readlink realpath \
15579 select setegid seteuid setgid \
15580 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15581 sigaction siginterrupt sigrelse strftime \
15582 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15583 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15585 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15599 #define $ac_func innocuous_$ac_func
15601 /* System header to define __stub macros and hopefully few prototypes,
15602 which can conflict with char $ac_func (); below.
15603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15604 <limits.h> exists even on freestanding compilers. */
15607 # include <limits.h>
15609 # include <assert.h>
15614 /* Override any GCC internal prototype to avoid an error.
15615 Use char because int might match the return type of a GCC
15616 builtin and then its argument prototype would still apply. */
15621 /* The GNU C library defines this for functions which it implements
15622 to always fail with ENOSYS. Some functions are actually named
15623 something starting with __ and the normal name is an alias. */
15624 #if defined __stub_$ac_func || defined __stub___$ac_func
15631 return $ac_func ();
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (ac_try="$ac_link"
15638 case "(($ac_try" in
15639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15640 *) ac_try_echo
=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_link") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1
>conftest.err
15647 cat conftest.err
>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && {
15650 test -z "$ac_c_werror_flag" ||
15651 test ! -s conftest.err
15652 } && test -s conftest
$ac_exeext &&
15653 $as_test_x conftest
$ac_exeext; then
15654 eval "$as_ac_var=yes"
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.
$ac_ext >&5
15659 eval "$as_ac_var=no"
15662 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15663 conftest
$ac_exeext conftest.
$ac_ext
15665 ac_res
=`eval echo '${'$as_ac_var'}'`
15666 { echo "$as_me:$LINENO: result: $ac_res" >&5
15667 echo "${ECHO_T}$ac_res" >&6; }
15668 if test `eval echo '${'$as_ac_var'}'` = yes; then
15669 cat >>confdefs.h
<<_ACEOF
15670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15677 # For some functions, having a definition is not sufficient, since
15678 # we want to take their address.
15679 { echo "$as_me:$LINENO: checking for chroot" >&5
15680 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15681 cat >conftest.
$ac_ext <<_ACEOF
15684 cat confdefs.h
>>conftest.
$ac_ext
15685 cat >>conftest.
$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <unistd.h>
15696 rm -f conftest.
$ac_objext
15697 if { (ac_try
="$ac_compile"
15698 case "(($ac_try" in
15699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_compile") 2>conftest.er1
15705 grep -v '^ *+' conftest.er1 >conftest.err
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && {
15710 test -z "$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 } && test -s conftest.$ac_objext; then
15714 cat >>confdefs.h <<\_ACEOF
15715 #define HAVE_CHROOT 1
15718 { echo "$as_me:$LINENO: result: yes" >&5
15719 echo "${ECHO_T}yes" >&6; }
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 { echo "$as_me:$LINENO: result: no" >&5
15725 echo "${ECHO_T}no" >&6; }
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { echo "$as_me:$LINENO: checking for link" >&5
15731 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <unistd.h>
15747 rm -f conftest.$ac_objext
15748 if { (ac_try="$ac_compile"
15749 case "(($ac_try" in
15750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15751 *) ac_try_echo
=$ac_try;;
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_compile") 2>conftest.er1
15756 grep -v '^ *+' conftest.er1
>conftest.err
15758 cat conftest.err
>&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } && {
15761 test -z "$ac_c_werror_flag" ||
15762 test ! -s conftest.err
15763 } && test -s conftest.
$ac_objext; then
15765 cat >>confdefs.h
<<\_ACEOF
15766 #define HAVE_LINK 1
15769 { echo "$as_me:$LINENO: result: yes" >&5
15770 echo "${ECHO_T}yes" >&6; }
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.
$ac_ext >&5
15775 { echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6; }
15780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15781 { echo "$as_me:$LINENO: checking for symlink" >&5
15782 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15783 cat >conftest.
$ac_ext <<_ACEOF
15786 cat confdefs.h
>>conftest.
$ac_ext
15787 cat >>conftest.
$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 #include <unistd.h>
15798 rm -f conftest.
$ac_objext
15799 if { (ac_try
="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_SYMLINK 1
15820 { echo "$as_me:$LINENO: result: yes" >&5
15821 echo "${ECHO_T}yes" >&6; }
15823 echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.$ac_ext >&5
15826 { echo "$as_me:$LINENO: result: no" >&5
15827 echo "${ECHO_T}no" >&6; }
15831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 { echo "$as_me:$LINENO: checking for fchdir" >&5
15833 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <unistd.h>
15849 rm -f conftest.$ac_objext
15850 if { (ac_try="$ac_compile"
15851 case "(($ac_try" in
15852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15853 *) ac_try_echo
=$ac_try;;
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_compile") 2>conftest.er1
15858 grep -v '^ *+' conftest.er1
>conftest.err
15860 cat conftest.err
>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest.
$ac_objext; then
15867 cat >>confdefs.h
<<\_ACEOF
15868 #define HAVE_FCHDIR 1
15871 { echo "$as_me:$LINENO: result: yes" >&5
15872 echo "${ECHO_T}yes" >&6; }
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.
$ac_ext >&5
15877 { echo "$as_me:$LINENO: result: no" >&5
15878 echo "${ECHO_T}no" >&6; }
15882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15883 { echo "$as_me:$LINENO: checking for fsync" >&5
15884 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15885 cat >conftest.
$ac_ext <<_ACEOF
15888 cat confdefs.h
>>conftest.
$ac_ext
15889 cat >>conftest.
$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 #include <unistd.h>
15900 rm -f conftest.
$ac_objext
15901 if { (ac_try
="$ac_compile"
15902 case "(($ac_try" in
15903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_compile") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest.$ac_objext; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_FSYNC 1
15922 { echo "$as_me:$LINENO: result: yes" >&5
15923 echo "${ECHO_T}yes" >&6; }
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 { echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6; }
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15935 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <unistd.h>
15951 rm -f conftest.$ac_objext
15952 if { (ac_try="$ac_compile"
15953 case "(($ac_try" in
15954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15955 *) ac_try_echo
=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
15960 grep -v '^ *+' conftest.er1
>conftest.err
15962 cat conftest.err
>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } && {
15965 test -z "$ac_c_werror_flag" ||
15966 test ! -s conftest.err
15967 } && test -s conftest.
$ac_objext; then
15969 cat >>confdefs.h
<<\_ACEOF
15970 #define HAVE_FDATASYNC 1
15973 { echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6; }
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.
$ac_ext >&5
15979 { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15985 { echo "$as_me:$LINENO: checking for epoll" >&5
15986 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
15987 cat >conftest.
$ac_ext <<_ACEOF
15990 cat confdefs.h
>>conftest.
$ac_ext
15991 cat >>conftest.
$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 #include <sys/epoll.h>
15997 void *x=epoll_create
16002 rm -f conftest.
$ac_objext
16003 if { (ac_try
="$ac_compile"
16004 case "(($ac_try" in
16005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_compile") 2>conftest.er1
16011 grep -v '^ *+' conftest.er1 >conftest.err
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } && {
16016 test -z "$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 } && test -s conftest.$ac_objext; then
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE_EPOLL 1
16024 { echo "$as_me:$LINENO: result: yes" >&5
16025 echo "${ECHO_T}yes" >&6; }
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 { echo "$as_me:$LINENO: result: no" >&5
16031 echo "${ECHO_T}no" >&6; }
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036 { echo "$as_me:$LINENO: checking for kqueue" >&5
16037 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16045 #include <sys/types.h>
16046 #include <sys/event.h>
16056 rm -f conftest.$ac_objext
16057 if { (ac_try="$ac_compile"
16058 case "(($ac_try" in
16059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16060 *) ac_try_echo
=$ac_try;;
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16065 grep -v '^ *+' conftest.er1
>conftest.err
16067 cat conftest.err
>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.
$ac_objext; then
16074 cat >>confdefs.h
<<\_ACEOF
16075 #define HAVE_KQUEUE 1
16078 { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.
$ac_ext >&5
16084 { echo "$as_me:$LINENO: result: no" >&5
16085 echo "${ECHO_T}no" >&6; }
16089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16090 # On some systems (eg. FreeBSD 5), we would find a definition of the
16091 # functions ctermid_r, setgroups in the library, but no prototype
16092 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16093 # address to avoid compiler warnings and potential miscompilations
16094 # because of the missing prototypes.
16096 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16097 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16098 cat >conftest.
$ac_ext <<_ACEOF
16101 cat confdefs.h
>>conftest.
$ac_ext
16102 cat >>conftest.
$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16105 #include "confdefs.h"
16111 void* p = ctermid_r
16116 rm -f conftest.
$ac_objext
16117 if { (ac_try
="$ac_compile"
16118 case "(($ac_try" in
16119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_compile") 2>conftest.er1
16125 grep -v '^ *+' conftest.er1 >conftest.err
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } && {
16130 test -z "$ac_c_werror_flag" ||
16131 test ! -s conftest.err
16132 } && test -s conftest.$ac_objext; then
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE_CTERMID_R 1
16138 { echo "$as_me:$LINENO: result: yes" >&5
16139 echo "${ECHO_T}yes" >&6; }
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 { echo "$as_me:$LINENO: result: no" >&5
16145 echo "${ECHO_T}no" >&6; }
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 { echo "$as_me:$LINENO: checking for flock" >&5
16152 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16153 cat >conftest.$ac_ext <<_ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16160 #include "confdefs.h"
16161 #include <sys/file.h>
16171 rm -f conftest.$ac_objext
16172 if { (ac_try="$ac_compile"
16173 case "(($ac_try" in
16174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16175 *) ac_try_echo
=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_compile") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1
>conftest.err
16182 cat conftest.err
>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest.
$ac_objext; then
16189 cat >>confdefs.h
<<\_ACEOF
16190 #define HAVE_FLOCK 1
16193 { echo "$as_me:$LINENO: result: yes" >&5
16194 echo "${ECHO_T}yes" >&6; }
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.
$ac_ext >&5
16199 { echo "$as_me:$LINENO: result: no" >&5
16200 echo "${ECHO_T}no" >&6; }
16204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16206 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16207 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16208 cat >conftest.
$ac_ext <<_ACEOF
16211 cat confdefs.h
>>conftest.
$ac_ext
16212 cat >>conftest.
$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16215 #include "confdefs.h"
16216 #include <unistd.h>
16221 void* p = getpagesize
16226 rm -f conftest.
$ac_objext
16227 if { (ac_try
="$ac_compile"
16228 case "(($ac_try" in
16229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_compile") 2>conftest.er1
16235 grep -v '^ *+' conftest.er1 >conftest.err
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } && {
16240 test -z "$ac_c_werror_flag" ||
16241 test ! -s conftest.err
16242 } && test -s conftest.$ac_objext; then
16244 cat >>confdefs.h <<\_ACEOF
16245 #define HAVE_GETPAGESIZE 1
16248 { echo "$as_me:$LINENO: result: yes" >&5
16249 echo "${ECHO_T}yes" >&6; }
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 { echo "$as_me:$LINENO: result: no" >&5
16255 echo "${ECHO_T}no" >&6; }
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 for ac_prog in true
16263 # Extract the first word of "$ac_prog", so it can be a program name with args.
16264 set dummy $ac_prog; ac_word=$2
16265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16267 if test "${ac_cv_prog_TRUE+set}" = set; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16270 if test -n "$TRUE"; then
16271 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274 for as_dir in $PATH
16277 test -z "$as_dir" && as_dir=.
16278 for ac_exec_ext in '' $ac_executable_extensions; do
16279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16280 ac_cv_prog_TRUE="$ac_prog"
16281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16290 TRUE=$ac_cv_prog_TRUE
16291 if test -n "$TRUE"; then
16292 { echo "$as_me:$LINENO: result: $TRUE" >&5
16293 echo "${ECHO_T}$TRUE" >&6; }
16295 { echo "$as_me:$LINENO: result: no" >&5
16296 echo "${ECHO_T}no" >&6; }
16300 test -n "$TRUE" && break
16302 test -n "$TRUE" || TRUE="/bin/true"
16305 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16306 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16307 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 ac_check_lib_save_LIBS=$LIBS
16312 cat >conftest.$ac_ext <<_ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h. */
16319 /* Override any GCC internal prototype to avoid an error.
16320 Use char because int might match the return type of a GCC
16321 builtin and then its argument prototype would still apply. */
16329 return inet_aton ();
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (ac_try="$ac_link"
16336 case "(($ac_try" in
16337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16338 *) ac_try_echo
=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_link") 2>conftest.er1
16343 grep -v '^ *+' conftest.er1
>conftest.err
16345 cat conftest.err
>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } && {
16348 test -z "$ac_c_werror_flag" ||
16349 test ! -s conftest.err
16350 } && test -s conftest
$ac_exeext &&
16351 $as_test_x conftest
$ac_exeext; then
16352 ac_cv_lib_c_inet_aton
=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.
$ac_ext >&5
16357 ac_cv_lib_c_inet_aton
=no
16360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16361 conftest
$ac_exeext conftest.
$ac_ext
16362 LIBS
=$ac_check_lib_save_LIBS
16364 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16365 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16366 if test $ac_cv_lib_c_inet_aton = yes; then
16370 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16371 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16372 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 ac_check_lib_save_LIBS
=$LIBS
16376 LIBS
="-lresolv $LIBS"
16377 cat >conftest.
$ac_ext <<_ACEOF
16380 cat confdefs.h
>>conftest.
$ac_ext
16381 cat >>conftest.
$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16384 /* Override any GCC internal prototype to avoid an error.
16385 Use char because int might match the return type of a GCC
16386 builtin and then its argument prototype would still apply. */
16394 return inet_aton ();
16399 rm -f conftest.
$ac_objext conftest
$ac_exeext
16400 if { (ac_try
="$ac_link"
16401 case "(($ac_try" in
16402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_link") 2>conftest.er1
16408 grep -v '^ *+' conftest.er1 >conftest.err
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest$ac_exeext &&
16416 $as_test_x conftest$ac_exeext; then
16417 ac_cv_lib_resolv_inet_aton=yes
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_cv_lib_resolv_inet_aton=no
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS
16429 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16430 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16431 if test $ac_cv_lib_resolv_inet_aton = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define HAVE_LIBRESOLV 1
16436 LIBS="-lresolv $LIBS"
16444 # On Tru64, chflags seems to be present, but calling it will
16446 { echo "$as_me:$LINENO: checking for chflags" >&5
16447 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16448 if test "$cross_compiling" = yes; then
16449 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16450 See \`config.log
' for more details." >&5
16451 echo "$as_me: error: cannot run test program while cross compiling
16452 See \`config.log' for more details.
" >&2;}
16453 { (exit 1); exit 1; }; }
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16462 #include <sys/stat.h>
16463 #include <unistd.h>
16464 int main(int argc, char*argv[])
16466 if(chflags(argv[0], 0) != 0)
16472 rm -f conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>&5
16481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16483 { (case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_try") 2>&5
16490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16491 (exit $ac_status); }; }; then
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_CHFLAGS 1
16497 { echo "$as_me:$LINENO: result
: yes" >&5
16498 echo "${ECHO_T}yes" >&6; }
16500 echo "$as_me: program exited with status
$ac_status" >&5
16501 echo "$as_me: failed program was
:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ( exit $ac_status )
16505 { echo "$as_me:$LINENO: result
: no
" >&5
16506 echo "${ECHO_T}no
" >&6; }
16509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16514 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
16515 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
16516 if test "$cross_compiling" = yes; then
16517 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
16518 See \
`config.log' for more details." >&5
16519 echo "$as_me: error: cannot run test program while cross compiling
16520 See \`config.log
' for more details." >&2;}
16521 { (exit 1); exit 1; }; }
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16530 #include <sys/stat.h>
16531 #include <unistd.h>
16532 int main(int argc, char*argv[])
16534 if(lchflags(argv[0], 0) != 0)
16540 rm -f conftest$ac_exeext
16541 if { (ac_try="$ac_link"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_link") 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE_LCHFLAGS 1
16565 { echo "$as_me:$LINENO: result: yes" >&5
16566 echo "${ECHO_T}yes" >&6; }
16568 echo "$as_me: program exited with status $ac_status" >&5
16569 echo "$as_me: failed program was:" >&5
16570 sed 's
/^
/|
/' conftest.$ac_ext >&5
16572 ( exit $ac_status )
16573 { echo "$as_me:$LINENO: result: no" >&5
16574 echo "${ECHO_T}no" >&6; }
16577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16582 case $ac_sys_system/$ac_sys_release in
16584 _CUR_CFLAGS="${CFLAGS}"
16585 _CUR_LDFLAGS="${LDFLAGS}"
16586 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16587 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16591 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16592 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16593 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 ac_check_lib_save_LIBS=$LIBS
16598 cat >conftest.$ac_ext <<_ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16605 /* Override any GCC internal prototype to avoid an error.
16606 Use char because int might match the return type of a GCC
16607 builtin and then its argument prototype would still apply. */
16611 char inflateCopy ();
16615 return inflateCopy ();
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_link") 2>conftest.er1
16629 grep -v '^
*+' conftest.er1 >conftest.err
16631 cat conftest.err >&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } && {
16634 test -z "$ac_c_werror_flag" ||
16635 test ! -s conftest.err
16636 } && test -s conftest$ac_exeext &&
16637 $as_test_x conftest$ac_exeext; then
16638 ac_cv_lib_z_inflateCopy=yes
16640 echo "$as_me: failed program was:" >&5
16641 sed 's
/^
/|
/' conftest.$ac_ext >&5
16643 ac_cv_lib_z_inflateCopy=no
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16648 LIBS=$ac_check_lib_save_LIBS
16650 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16651 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16652 if test $ac_cv_lib_z_inflateCopy = yes; then
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_ZLIB_COPY 1
16661 case $ac_sys_system/$ac_sys_release in
16663 CFLAGS="${_CUR_CFLAGS}"
16664 LDFLAGS="${_CUR_LDFLAGS}"
16668 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16669 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16670 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16677 #include "confdefs.h"
16683 void* p = hstrerror; hstrerror(0)
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_link") 2>conftest.er1
16697 grep -v '^
*+' conftest.er1 >conftest.err
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } && {
16702 test -z "$ac_c_werror_flag" ||
16703 test ! -s conftest.err
16704 } && test -s conftest$ac_exeext &&
16705 $as_test_x conftest$ac_exeext; then
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_HSTRERROR 1
16711 { echo "$as_me:$LINENO: result: yes" >&5
16712 echo "${ECHO_T}yes" >&6; }
16714 echo "$as_me: failed program was:" >&5
16715 sed 's
/^
/|
/' conftest.$ac_ext >&5
16717 { echo "$as_me:$LINENO: result: no" >&5
16718 echo "${ECHO_T}no" >&6; }
16722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16723 conftest$ac_exeext conftest.$ac_ext
16725 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16726 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16734 #include "confdefs.h"
16735 #include <sys/types.h>
16736 #include <sys/socket.h>
16737 #include <netinet/in.h>
16738 #include <arpa/inet.h>
16743 void* p = inet_aton;inet_aton(0,0)
16748 rm -f conftest.$ac_objext conftest$ac_exeext
16749 if { (ac_try="$ac_link"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_link") 2>conftest.er1
16757 grep -v '^
*+' conftest.er1 >conftest.err
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest$ac_exeext &&
16765 $as_test_x conftest$ac_exeext; then
16767 cat >>confdefs.h <<\_ACEOF
16768 #define HAVE_INET_ATON 1
16771 { echo "$as_me:$LINENO: result: yes" >&5
16772 echo "${ECHO_T}yes" >&6; }
16774 echo "$as_me: failed program was:" >&5
16775 sed 's
/^
/|
/' conftest.$ac_ext >&5
16777 { echo "$as_me:$LINENO: result: no" >&5
16778 echo "${ECHO_T}no" >&6; }
16782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16783 conftest$ac_exeext conftest.$ac_ext
16785 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16786 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16787 cat >conftest.$ac_ext <<_ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16794 #include "confdefs.h"
16795 #include <sys/types.h>
16796 #include <sys/socket.h>
16797 #include <netinet/in.h>
16798 #include <arpa/inet.h>
16803 void* p = inet_pton
16808 rm -f conftest.$ac_objext
16809 if { (ac_try="$ac_compile"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_compile") 2>conftest.er1
16817 grep -v '^
*+' conftest.er1 >conftest.err
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } && {
16822 test -z "$ac_c_werror_flag" ||
16823 test ! -s conftest.err
16824 } && test -s conftest.$ac_objext; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_INET_PTON 1
16830 { echo "$as_me:$LINENO: result: yes" >&5
16831 echo "${ECHO_T}yes" >&6; }
16833 echo "$as_me: failed program was:" >&5
16834 sed 's
/^
/|
/' conftest.$ac_ext >&5
16836 { echo "$as_me:$LINENO: result: no" >&5
16837 echo "${ECHO_T}no" >&6; }
16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 # On some systems, setgroups is in unistd.h, on others, in grp.h
16844 { echo "$as_me:$LINENO: checking for setgroups" >&5
16845 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16846 cat >conftest.$ac_ext <<_ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16853 #include "confdefs.h"
16854 #include <unistd.h>
16862 void* p = setgroups
16867 rm -f conftest.$ac_objext
16868 if { (ac_try="$ac_compile"
16869 case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_compile") 2>conftest.er1
16876 grep -v '^
*+' conftest.er1 >conftest.err
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } && {
16881 test -z "$ac_c_werror_flag" ||
16882 test ! -s conftest.err
16883 } && test -s conftest.$ac_objext; then
16885 cat >>confdefs.h <<\_ACEOF
16886 #define HAVE_SETGROUPS 1
16889 { echo "$as_me:$LINENO: result: yes" >&5
16890 echo "${ECHO_T}yes" >&6; }
16892 echo "$as_me: failed program was:" >&5
16893 sed 's
/^
/|
/' conftest.$ac_ext >&5
16895 { echo "$as_me:$LINENO: result: no" >&5
16896 echo "${ECHO_T}no" >&6; }
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902 # check for openpty and forkpty
16905 for ac_func in openpty
16907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 cat >conftest.$ac_ext <<_ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16921 #define $ac_func innocuous_$ac_func
16923 /* System header to define __stub macros and hopefully few prototypes,
16924 which can conflict with char $ac_func (); below.
16925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16926 <limits.h> exists even on freestanding compilers. */
16929 # include <limits.h>
16931 # include <assert.h>
16936 /* Override any GCC internal prototype to avoid an error.
16937 Use char because int might match the return type of a GCC
16938 builtin and then its argument prototype would still apply. */
16943 /* The GNU C library defines this for functions which it implements
16944 to always fail with ENOSYS. Some functions are actually named
16945 something starting with __ and the normal name is an alias. */
16946 #if defined __stub_$ac_func || defined __stub___$ac_func
16953 return $ac_func ();
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (ac_try="$ac_link"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_link") 2>conftest.er1
16967 grep -v '^
*+' conftest.er1 >conftest.err
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest$ac_exeext &&
16975 $as_test_x conftest$ac_exeext; then
16976 eval "$as_ac_var=yes"
16978 echo "$as_me: failed program was:" >&5
16979 sed 's
/^
/|
/' conftest.$ac_ext >&5
16981 eval "$as_ac_var=no"
16984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16985 conftest$ac_exeext conftest.$ac_ext
16987 ac_res=`eval echo '${'$as_ac_var'}'`
16988 { echo "$as_me:$LINENO: result: $ac_res" >&5
16989 echo "${ECHO_T}$ac_res" >&6; }
16990 if test `eval echo '${'$as_ac_var'}'` = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16996 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16997 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16998 if test "${ac_cv_lib_util_openpty+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 ac_check_lib_save_LIBS=$LIBS
17002 LIBS="-lutil $LIBS"
17003 cat >conftest.$ac_ext <<_ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17010 /* Override any GCC internal prototype to avoid an error.
17011 Use char because int might match the return type of a GCC
17012 builtin and then its argument prototype would still apply. */
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17034 grep -v '^
*+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest$ac_exeext &&
17042 $as_test_x conftest$ac_exeext; then
17043 ac_cv_lib_util_openpty=yes
17045 echo "$as_me: failed program was:" >&5
17046 sed 's
/^
/|
/' conftest.$ac_ext >&5
17048 ac_cv_lib_util_openpty=no
17051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17056 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17057 if test $ac_cv_lib_util_openpty = yes; then
17058 cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_OPENPTY 1
17061 LIBS="$LIBS -lutil"
17063 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17064 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17065 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 ac_check_lib_save_LIBS=$LIBS
17070 cat >conftest.$ac_ext <<_ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^
*+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 ac_cv_lib_bsd_openpty=yes
17112 echo "$as_me: failed program was:" >&5
17113 sed 's
/^
/|
/' conftest.$ac_ext >&5
17115 ac_cv_lib_bsd_openpty=no
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17122 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17123 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17124 if test $ac_cv_lib_bsd_openpty = yes; then
17125 cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_OPENPTY 1
17139 for ac_func in forkpty
17141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 cat >conftest.$ac_ext <<_ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17155 #define $ac_func innocuous_$ac_func
17157 /* System header to define __stub macros and hopefully few prototypes,
17158 which can conflict with char $ac_func (); below.
17159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17160 <limits.h> exists even on freestanding compilers. */
17163 # include <limits.h>
17165 # include <assert.h>
17170 /* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17177 /* The GNU C library defines this for functions which it implements
17178 to always fail with ENOSYS. Some functions are actually named
17179 something starting with __ and the normal name is an alias. */
17180 #if defined __stub_$ac_func || defined __stub___$ac_func
17187 return $ac_func ();
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (ac_try="$ac_link"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_link") 2>conftest.er1
17201 grep -v '^
*+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest$ac_exeext &&
17209 $as_test_x conftest$ac_exeext; then
17210 eval "$as_ac_var=yes"
17212 echo "$as_me: failed program was:" >&5
17213 sed 's
/^
/|
/' conftest.$ac_ext >&5
17215 eval "$as_ac_var=no"
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219 conftest$ac_exeext conftest.$ac_ext
17221 ac_res=`eval echo '${'$as_ac_var'}'`
17222 { echo "$as_me:$LINENO: result: $ac_res" >&5
17223 echo "${ECHO_T}$ac_res" >&6; }
17224 if test `eval echo '${'$as_ac_var'}'` = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17230 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17231 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17232 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lutil $LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17268 grep -v '^
*+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } && {
17273 test -z "$ac_c_werror_flag" ||
17274 test ! -s conftest.err
17275 } && test -s conftest$ac_exeext &&
17276 $as_test_x conftest$ac_exeext; then
17277 ac_cv_lib_util_forkpty=yes
17279 echo "$as_me: failed program was:" >&5
17280 sed 's
/^
/|
/' conftest.$ac_ext >&5
17282 ac_cv_lib_util_forkpty=no
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286 conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17289 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17290 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17291 if test $ac_cv_lib_util_forkpty = yes; then
17292 cat >>confdefs.h <<\_ACEOF
17293 #define HAVE_FORKPTY 1
17295 LIBS="$LIBS -lutil"
17297 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17298 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17299 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 ac_check_lib_save_LIBS=$LIBS
17304 cat >conftest.$ac_ext <<_ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17311 /* Override any GCC internal prototype to avoid an error.
17312 Use char because int might match the return type of a GCC
17313 builtin and then its argument prototype would still apply. */
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17335 grep -v '^
*+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17344 ac_cv_lib_bsd_forkpty=yes
17346 echo "$as_me: failed program was:" >&5
17347 sed 's
/^
/|
/' conftest.$ac_ext >&5
17349 ac_cv_lib_bsd_forkpty=no
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17354 LIBS=$ac_check_lib_save_LIBS
17356 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17357 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17358 if test $ac_cv_lib_bsd_forkpty = yes; then
17359 cat >>confdefs.h <<\_ACEOF
17360 #define HAVE_FORKPTY 1
17375 for ac_func in memmove
17377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17391 #define $ac_func innocuous_$ac_func
17393 /* System header to define __stub macros and hopefully few prototypes,
17394 which can conflict with char $ac_func (); below.
17395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17396 <limits.h> exists even on freestanding compilers. */
17399 # include <limits.h>
17401 # include <assert.h>
17406 /* Override any GCC internal prototype to avoid an error.
17407 Use char because int might match the return type of a GCC
17408 builtin and then its argument prototype would still apply. */
17413 /* The GNU C library defines this for functions which it implements
17414 to always fail with ENOSYS. Some functions are actually named
17415 something starting with __ and the normal name is an alias. */
17416 #if defined __stub_$ac_func || defined __stub___$ac_func
17423 return $ac_func ();
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (ac_try="$ac_link"
17430 case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_link") 2>conftest.er1
17437 grep -v '^
*+' conftest.er1 >conftest.err
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } && {
17442 test -z "$ac_c_werror_flag" ||
17443 test ! -s conftest.err
17444 } && test -s conftest$ac_exeext &&
17445 $as_test_x conftest$ac_exeext; then
17446 eval "$as_ac_var=yes"
17448 echo "$as_me: failed program was:" >&5
17449 sed 's
/^
/|
/' conftest.$ac_ext >&5
17451 eval "$as_ac_var=no"
17454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17455 conftest$ac_exeext conftest.$ac_ext
17457 ac_res=`eval echo '${'$as_ac_var'}'`
17458 { echo "$as_me:$LINENO: result: $ac_res" >&5
17459 echo "${ECHO_T}$ac_res" >&6; }
17460 if test `eval echo '${'$as_ac_var'}'` = yes; then
17461 cat >>confdefs.h <<_ACEOF
17462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17469 # check for long file support functions
17476 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 cat >conftest.$ac_ext <<_ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17492 #define $ac_func innocuous_$ac_func
17494 /* System header to define __stub macros and hopefully few prototypes,
17495 which can conflict with char $ac_func (); below.
17496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17497 <limits.h> exists even on freestanding compilers. */
17500 # include <limits.h>
17502 # include <assert.h>
17507 /* Override any GCC internal prototype to avoid an error.
17508 Use char because int might match the return type of a GCC
17509 builtin and then its argument prototype would still apply. */
17514 /* The GNU C library defines this for functions which it implements
17515 to always fail with ENOSYS. Some functions are actually named
17516 something starting with __ and the normal name is an alias. */
17517 #if defined __stub_$ac_func || defined __stub___$ac_func
17524 return $ac_func ();
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (ac_try="$ac_link"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>conftest.er1
17538 grep -v '^
*+' conftest.er1 >conftest.err
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && {
17543 test -z "$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 } && test -s conftest$ac_exeext &&
17546 $as_test_x conftest$ac_exeext; then
17547 eval "$as_ac_var=yes"
17549 echo "$as_me: failed program was:" >&5
17550 sed 's
/^
/|
/' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556 conftest$ac_exeext conftest.$ac_ext
17558 ac_res=`eval echo '${'$as_ac_var'}'`
17559 { echo "$as_me:$LINENO: result: $ac_res" >&5
17560 echo "${ECHO_T}$ac_res" >&6; }
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17573 for ac_func in dup2 getcwd strdup
17575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 cat >conftest.$ac_ext <<_ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17589 #define $ac_func innocuous_$ac_func
17591 /* System header to define __stub macros and hopefully few prototypes,
17592 which can conflict with char $ac_func (); below.
17593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17594 <limits.h> exists even on freestanding compilers. */
17597 # include <limits.h>
17599 # include <assert.h>
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17611 /* The GNU C library defines this for functions which it implements
17612 to always fail with ENOSYS. Some functions are actually named
17613 something starting with __ and the normal name is an alias. */
17614 #if defined __stub_$ac_func || defined __stub___$ac_func
17621 return $ac_func ();
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>conftest.er1
17635 grep -v '^
*+' conftest.er1 >conftest.err
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest$ac_exeext &&
17643 $as_test_x conftest$ac_exeext; then
17644 eval "$as_ac_var=yes"
17646 echo "$as_me: failed program was:" >&5
17647 sed 's
/^
/|
/' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17653 conftest$ac_exeext conftest.$ac_ext
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 case " $LIBOBJS " in
17665 *" $ac_func.$ac_objext "* ) ;;
17666 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17675 for ac_func in getpgrp
17677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17691 #define $ac_func innocuous_$ac_func
17693 /* System header to define __stub macros and hopefully few prototypes,
17694 which can conflict with char $ac_func (); below.
17695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696 <limits.h> exists even on freestanding compilers. */
17699 # include <limits.h>
17701 # include <assert.h>
17706 /* Override any GCC internal prototype to avoid an error.
17707 Use char because int might match the return type of a GCC
17708 builtin and then its argument prototype would still apply. */
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined __stub_$ac_func || defined __stub___$ac_func
17723 return $ac_func ();
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (ac_try="$ac_link"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
17737 grep -v '^
*+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && {
17742 test -z "$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest$ac_exeext &&
17745 $as_test_x conftest$ac_exeext; then
17746 eval "$as_ac_var=yes"
17748 echo "$as_me: failed program was:" >&5
17749 sed 's
/^
/|
/' conftest.$ac_ext >&5
17751 eval "$as_ac_var=no"
17754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17755 conftest$ac_exeext conftest.$ac_ext
17757 ac_res=`eval echo '${'$as_ac_var'}'`
17758 { echo "$as_me:$LINENO: result: $ac_res" >&5
17759 echo "${ECHO_T}$ac_res" >&6; }
17760 if test `eval echo '${'$as_ac_var'}'` = yes; then
17761 cat >>confdefs.h <<_ACEOF
17762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 #include <unistd.h>
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_compile") 2>conftest.er1
17788 grep -v '^
*+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest.$ac_objext; then
17797 cat >>confdefs.h <<\_ACEOF
17798 #define GETPGRP_HAVE_ARG 1
17803 echo "$as_me: failed program was:" >&5
17804 sed 's
/^
/|
/' conftest.$ac_ext >&5
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17815 for ac_func in setpgrp
17817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831 #define $ac_func innocuous_$ac_func
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char $ac_func (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17839 # include <limits.h>
17841 # include <assert.h>
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17853 /* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856 #if defined __stub_$ac_func || defined __stub___$ac_func
17863 return $ac_func ();
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_link") 2>conftest.er1
17877 grep -v '^
*+' conftest.er1 >conftest.err
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest$ac_exeext &&
17885 $as_test_x conftest$ac_exeext; then
17886 eval "$as_ac_var=yes"
17888 echo "$as_me: failed program was:" >&5
17889 sed 's
/^
/|
/' conftest.$ac_ext >&5
17891 eval "$as_ac_var=no"
17894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17895 conftest$ac_exeext conftest.$ac_ext
17897 ac_res=`eval echo '${'$as_ac_var'}'`
17898 { echo "$as_me:$LINENO: result: $ac_res" >&5
17899 echo "${ECHO_T}$ac_res" >&6; }
17900 if test `eval echo '${'$as_ac_var'}'` = yes; then
17901 cat >>confdefs.h <<_ACEOF
17902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 #include <unistd.h>
17919 rm -f conftest.$ac_objext
17920 if { (ac_try="$ac_compile"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_compile") 2>conftest.er1
17928 grep -v '^
*+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest.$ac_objext; then
17937 cat >>confdefs.h <<\_ACEOF
17938 #define SETPGRP_HAVE_ARG 1
17943 echo "$as_me: failed program was:" >&5
17944 sed 's
/^
/|
/' conftest.$ac_ext >&5
17949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17955 for ac_func in gettimeofday
17957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971 #define $ac_func innocuous_$ac_func
17973 /* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char $ac_func (); below.
17975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976 <limits.h> exists even on freestanding compilers. */
17979 # include <limits.h>
17981 # include <assert.h>
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17993 /* The GNU C library defines this for functions which it implements
17994 to always fail with ENOSYS. Some functions are actually named
17995 something starting with __ and the normal name is an alias. */
17996 #if defined __stub_$ac_func || defined __stub___$ac_func
18003 return $ac_func ();
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_link") 2>conftest.er1
18017 grep -v '^
*+' conftest.er1 >conftest.err
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } && {
18022 test -z "$ac_c_werror_flag" ||
18023 test ! -s conftest.err
18024 } && test -s conftest$ac_exeext &&
18025 $as_test_x conftest$ac_exeext; then
18026 eval "$as_ac_var=yes"
18028 echo "$as_me: failed program was:" >&5
18029 sed 's
/^
/|
/' conftest.$ac_ext >&5
18031 eval "$as_ac_var=no"
18034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18035 conftest$ac_exeext conftest.$ac_ext
18037 ac_res=`eval echo '${'$as_ac_var'}'`
18038 { echo "$as_me:$LINENO: result: $ac_res" >&5
18039 echo "${ECHO_T}$ac_res" >&6; }
18040 if test `eval echo '${'$as_ac_var'}'` = yes; then
18041 cat >>confdefs.h <<_ACEOF
18042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <sys/time.h>
18054 gettimeofday((struct timeval*)0,(struct timezone*)0);
18059 rm -f conftest.$ac_objext
18060 if { (ac_try="$ac_compile"
18061 case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_compile") 2>conftest.er1
18068 grep -v '^
*+' conftest.er1 >conftest.err
18070 cat conftest.err >&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); } && {
18073 test -z "$ac_c_werror_flag" ||
18074 test ! -s conftest.err
18075 } && test -s conftest.$ac_objext; then
18078 echo "$as_me: failed program was:" >&5
18079 sed 's
/^
/|
/' conftest.$ac_ext >&5
18082 cat >>confdefs.h <<\_ACEOF
18083 #define GETTIMEOFDAY_NO_TZ 1
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 { echo "$as_me:$LINENO: checking for major" >&5
18096 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18097 cat >conftest.$ac_ext <<_ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18104 #if defined(MAJOR_IN_MKDEV)
18105 #include <sys/mkdev.h>
18106 #elif defined(MAJOR_IN_SYSMACROS)
18107 #include <sys/sysmacros.h>
18109 #include <sys/types.h>
18116 makedev(major(0),minor(0));
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_link") 2>conftest.er1
18131 grep -v '^
*+' conftest.er1 >conftest.err
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } && {
18136 test -z "$ac_c_werror_flag" ||
18137 test ! -s conftest.err
18138 } && test -s conftest$ac_exeext &&
18139 $as_test_x conftest$ac_exeext; then
18142 cat >>confdefs.h <<\_ACEOF
18143 #define HAVE_DEVICE_MACROS 1
18146 { echo "$as_me:$LINENO: result: yes" >&5
18147 echo "${ECHO_T}yes" >&6; }
18150 echo "$as_me: failed program was:" >&5
18151 sed 's
/^
/|
/' conftest.$ac_ext >&5
18154 { echo "$as_me:$LINENO: result: no" >&5
18155 echo "${ECHO_T}no" >&6; }
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18162 # On OSF/1 V5.1, getaddrinfo is available, but a define
18163 # for [no]getaddrinfo in netdb.h.
18164 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18165 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18166 cat >conftest.$ac_ext <<_ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18173 #include <sys/types.h>
18174 #include <sys/socket.h>
18182 getaddrinfo(NULL, NULL, NULL, NULL);
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (ac_try="$ac_link"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_link") 2>conftest.er1
18197 grep -v '^
*+' conftest.er1 >conftest.err
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } && {
18202 test -z "$ac_c_werror_flag" ||
18203 test ! -s conftest.err
18204 } && test -s conftest$ac_exeext &&
18205 $as_test_x conftest$ac_exeext; then
18207 { echo "$as_me:$LINENO: result: yes" >&5
18208 echo "${ECHO_T}yes" >&6; }
18209 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18210 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18211 if test "$cross_compiling" = yes; then
18212 { echo "$as_me:$LINENO: result: buggy" >&5
18213 echo "${ECHO_T}buggy" >&6; }
18214 buggygetaddrinfo=yes
18216 cat >conftest.$ac_ext <<_ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18223 #include <sys/types.h>
18225 #include <string.h>
18226 #include <sys/socket.h>
18227 #include <netinet/in.h>
18231 int passive, gaierr, inet4 = 0, inet6 = 0;
18232 struct addrinfo hints, *ai, *aitop;
18233 char straddr[INET6_ADDRSTRLEN], strport[16];
18235 for (passive = 0; passive <= 1; passive++) {
18236 memset(&hints, 0, sizeof(hints));
18237 hints.ai_family = AF_UNSPEC;
18238 hints.ai_flags = passive ? AI_PASSIVE : 0;
18239 hints.ai_socktype = SOCK_STREAM;
18240 hints.ai_protocol = IPPROTO_TCP;
18241 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18242 (void)gai_strerror(gaierr);
18245 for (ai = aitop; ai; ai = ai->ai_next) {
18246 if (ai->ai_addr == NULL ||
18247 ai->ai_addrlen == 0 ||
18248 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18249 straddr, sizeof(straddr), strport, sizeof(strport),
18250 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18253 switch (ai->ai_family) {
18255 if (strcmp(strport, "54321") != 0) {
18259 if (strcmp(straddr, "0.0.0.0") != 0) {
18263 if (strcmp(straddr, "127.0.0.1") != 0) {
18270 if (strcmp(strport, "54321") != 0) {
18274 if (strcmp(straddr, "::") != 0) {
18278 if (strcmp(straddr, "::1") != 0) {
18288 /* another family support? */
18294 if (!(inet4 == 0 || inet4 == 2))
18296 if (!(inet6 == 0 || inet6 == 2))
18300 freeaddrinfo(aitop);
18305 freeaddrinfo(aitop);
18310 rm -f conftest$ac_exeext
18311 if { (ac_try="$ac_link"
18312 case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_link") 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
18321 { (case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_try") 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 { echo "$as_me:$LINENO: result: good" >&5
18331 echo "${ECHO_T}good" >&6; }
18332 buggygetaddrinfo=no
18334 echo "$as_me: program exited with status $ac_status" >&5
18335 echo "$as_me: failed program was:" >&5
18336 sed 's
/^
/|
/' conftest.$ac_ext >&5
18338 ( exit $ac_status )
18339 { echo "$as_me:$LINENO: result: buggy" >&5
18340 echo "${ECHO_T}buggy" >&6; }
18341 buggygetaddrinfo=yes
18343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18348 echo "$as_me: failed program was:" >&5
18349 sed 's
/^
/|
/' conftest.$ac_ext >&5
18352 { echo "$as_me:$LINENO: result: no" >&5
18353 echo "${ECHO_T}no" >&6; }
18354 buggygetaddrinfo=yes
18358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18359 conftest$ac_exeext conftest.$ac_ext
18361 if test "$buggygetaddrinfo" = "yes"; then
18362 if test "$ipv6" = "yes"; then
18363 echo 'Fatal
: You must get working getaddrinfo
() function.
'
18364 echo ' or you can specify
"--disable-ipv6"'.
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE_GETADDRINFO 1
18375 for ac_func in getnameinfo
18377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18391 #define $ac_func innocuous_$ac_func
18393 /* System header to define __stub macros and hopefully few prototypes,
18394 which can conflict with char $ac_func (); below.
18395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18396 <limits.h> exists even on freestanding compilers. */
18399 # include <limits.h>
18401 # include <assert.h>
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18413 /* The GNU C library defines this for functions which it implements
18414 to always fail with ENOSYS. Some functions are actually named
18415 something starting with __ and the normal name is an alias. */
18416 #if defined __stub_$ac_func || defined __stub___$ac_func
18423 return $ac_func ();
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (ac_try="$ac_link"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_link") 2>conftest.er1
18437 grep -v '^
*+' conftest.er1 >conftest.err
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && {
18442 test -z "$ac_c_werror_flag" ||
18443 test ! -s conftest.err
18444 } && test -s conftest$ac_exeext &&
18445 $as_test_x conftest$ac_exeext; then
18446 eval "$as_ac_var=yes"
18448 echo "$as_me: failed program was:" >&5
18449 sed 's
/^
/|
/' conftest.$ac_ext >&5
18451 eval "$as_ac_var=no"
18454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18455 conftest$ac_exeext conftest.$ac_ext
18457 ac_res=`eval echo '${'$as_ac_var'}'`
18458 { echo "$as_me:$LINENO: result: $ac_res" >&5
18459 echo "${ECHO_T}$ac_res" >&6; }
18460 if test `eval echo '${'$as_ac_var'}'` = yes; then
18461 cat >>confdefs.h <<_ACEOF
18462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18469 # checks for structures
18470 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18471 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18472 if test "${ac_cv_header_time+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 cat >conftest.$ac_ext <<_ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 #include <sys/types.h>
18482 #include <sys/time.h>
18488 if ((struct tm *) 0)
18494 rm -f conftest.$ac_objext
18495 if { (ac_try="$ac_compile"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_compile") 2>conftest.er1
18503 grep -v '^
*+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest.$ac_objext; then
18511 ac_cv_header_time=yes
18513 echo "$as_me: failed program was:" >&5
18514 sed 's
/^
/|
/' conftest.$ac_ext >&5
18516 ac_cv_header_time=no
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18522 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18523 if test $ac_cv_header_time = yes; then
18525 cat >>confdefs.h <<\_ACEOF
18526 #define TIME_WITH_SYS_TIME 1
18531 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18532 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18533 if test "${ac_cv_struct_tm+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 #include <sys/types.h>
18549 int *p = &tm.tm_sec;
18555 rm -f conftest.$ac_objext
18556 if { (ac_try="$ac_compile"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_compile") 2>conftest.er1
18564 grep -v '^
*+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest.$ac_objext; then
18572 ac_cv_struct_tm=time.h
18574 echo "$as_me: failed program was:" >&5
18575 sed 's
/^
/|
/' conftest.$ac_ext >&5
18577 ac_cv_struct_tm=sys/time.h
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18583 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18584 if test $ac_cv_struct_tm = sys/time.h; then
18586 cat >>confdefs.h <<\_ACEOF
18587 #define TM_IN_SYS_TIME 1
18592 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18593 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18594 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 #include <sys/types.h>
18604 #include <$ac_cv_struct_tm>
18610 static struct tm ac_aggr;
18611 if (ac_aggr.tm_zone)
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18626 grep -v '^
*+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest.$ac_objext; then
18634 ac_cv_member_struct_tm_tm_zone=yes
18636 echo "$as_me: failed program was:" >&5
18637 sed 's
/^
/|
/' conftest.$ac_ext >&5
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 #include <sys/types.h>
18646 #include <$ac_cv_struct_tm>
18652 static struct tm ac_aggr;
18653 if (sizeof ac_aggr.tm_zone)
18659 rm -f conftest.$ac_objext
18660 if { (ac_try="$ac_compile"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_compile") 2>conftest.er1
18668 grep -v '^
*+' conftest.er1 >conftest.err
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest.$ac_objext; then
18676 ac_cv_member_struct_tm_tm_zone=yes
18678 echo "$as_me: failed program was:" >&5
18679 sed 's
/^
/|
/' conftest.$ac_ext >&5
18681 ac_cv_member_struct_tm_tm_zone=no
18684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18689 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18690 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18691 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18693 cat >>confdefs.h <<_ACEOF
18694 #define HAVE_STRUCT_TM_TM_ZONE 1
18700 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_TM_ZONE 1
18707 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18708 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18709 if test "${ac_cv_have_decl_tzname+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 cat >conftest.$ac_ext <<_ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18731 rm -f conftest.$ac_objext
18732 if { (ac_try="$ac_compile"
18733 case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_compile") 2>conftest.er1
18740 grep -v '^
*+' conftest.er1 >conftest.err
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest.$ac_objext; then
18748 ac_cv_have_decl_tzname=yes
18750 echo "$as_me: failed program was:" >&5
18751 sed 's
/^
/|
/' conftest.$ac_ext >&5
18753 ac_cv_have_decl_tzname=no
18756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18759 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18760 if test $ac_cv_have_decl_tzname = yes; then
18762 cat >>confdefs.h <<_ACEOF
18763 #define HAVE_DECL_TZNAME 1
18768 cat >>confdefs.h <<_ACEOF
18769 #define HAVE_DECL_TZNAME 0
18776 { echo "$as_me:$LINENO: checking for tzname" >&5
18777 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18778 if test "${ac_cv_var_tzname+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18788 #if !HAVE_DECL_TZNAME
18789 extern char *tzname[];
18795 return tzname[0][0];
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (ac_try="$ac_link"
18802 case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
18809 grep -v '^
*+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest$ac_exeext &&
18817 $as_test_x conftest$ac_exeext; then
18818 ac_cv_var_tzname=yes
18820 echo "$as_me: failed program was:" >&5
18821 sed 's
/^
/|
/' conftest.$ac_ext >&5
18823 ac_cv_var_tzname=no
18826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18827 conftest$ac_exeext conftest.$ac_ext
18829 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18830 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18831 if test $ac_cv_var_tzname = yes; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE_TZNAME 1
18840 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18841 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18842 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 $ac_includes_default
18855 static struct stat ac_aggr;
18856 if (ac_aggr.st_rdev)
18862 rm -f conftest.$ac_objext
18863 if { (ac_try="$ac_compile"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_compile") 2>conftest.er1
18871 grep -v '^
*+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest.$ac_objext; then
18879 ac_cv_member_struct_stat_st_rdev=yes
18881 echo "$as_me: failed program was:" >&5
18882 sed 's
/^
/|
/' conftest.$ac_ext >&5
18884 cat >conftest.$ac_ext <<_ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 $ac_includes_default
18894 static struct stat ac_aggr;
18895 if (sizeof ac_aggr.st_rdev)
18901 rm -f conftest.$ac_objext
18902 if { (ac_try="$ac_compile"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_compile") 2>conftest.er1
18910 grep -v '^
*+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest.$ac_objext; then
18918 ac_cv_member_struct_stat_st_rdev=yes
18920 echo "$as_me: failed program was:" >&5
18921 sed 's
/^
/|
/' conftest.$ac_ext >&5
18923 ac_cv_member_struct_stat_st_rdev=no
18926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18932 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18933 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_STRUCT_STAT_ST_RDEV 1
18942 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18943 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18944 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 $ac_includes_default
18957 static struct stat ac_aggr;
18958 if (ac_aggr.st_blksize)
18964 rm -f conftest.$ac_objext
18965 if { (ac_try="$ac_compile"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_compile") 2>conftest.er1
18973 grep -v '^
*+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest.$ac_objext; then
18981 ac_cv_member_struct_stat_st_blksize=yes
18983 echo "$as_me: failed program was:" >&5
18984 sed 's
/^
/|
/' conftest.$ac_ext >&5
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 $ac_includes_default
18996 static struct stat ac_aggr;
18997 if (sizeof ac_aggr.st_blksize)
19003 rm -f conftest.$ac_objext
19004 if { (ac_try="$ac_compile"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_compile") 2>conftest.er1
19012 grep -v '^
*+' conftest.er1 >conftest.err
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } && {
19017 test -z "$ac_c_werror_flag" ||
19018 test ! -s conftest.err
19019 } && test -s conftest.$ac_objext; then
19020 ac_cv_member_struct_stat_st_blksize=yes
19022 echo "$as_me: failed program was:" >&5
19023 sed 's
/^
/|
/' conftest.$ac_ext >&5
19025 ac_cv_member_struct_stat_st_blksize=no
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19034 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19035 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19037 cat >>confdefs.h <<_ACEOF
19038 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19044 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19045 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19046 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 cat >conftest.$ac_ext <<_ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 $ac_includes_default
19059 static struct stat ac_aggr;
19060 if (ac_aggr.st_flags)
19066 rm -f conftest.$ac_objext
19067 if { (ac_try="$ac_compile"
19068 case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_compile") 2>conftest.er1
19075 grep -v '^
*+' conftest.er1 >conftest.err
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } && {
19080 test -z "$ac_c_werror_flag" ||
19081 test ! -s conftest.err
19082 } && test -s conftest.$ac_objext; then
19083 ac_cv_member_struct_stat_st_flags=yes
19085 echo "$as_me: failed program was:" >&5
19086 sed 's
/^
/|
/' conftest.$ac_ext >&5
19088 cat >conftest.$ac_ext <<_ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19094 $ac_includes_default
19098 static struct stat ac_aggr;
19099 if (sizeof ac_aggr.st_flags)
19105 rm -f conftest.$ac_objext
19106 if { (ac_try="$ac_compile"
19107 case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_compile") 2>conftest.er1
19114 grep -v '^
*+' conftest.er1 >conftest.err
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } && {
19119 test -z "$ac_c_werror_flag" ||
19120 test ! -s conftest.err
19121 } && test -s conftest.$ac_objext; then
19122 ac_cv_member_struct_stat_st_flags=yes
19124 echo "$as_me: failed program was:" >&5
19125 sed 's
/^
/|
/' conftest.$ac_ext >&5
19127 ac_cv_member_struct_stat_st_flags=no
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19136 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19137 if test $ac_cv_member_struct_stat_st_flags = yes; then
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19146 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19147 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19148 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 $ac_includes_default
19161 static struct stat ac_aggr;
19162 if (ac_aggr.st_gen)
19168 rm -f conftest.$ac_objext
19169 if { (ac_try="$ac_compile"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19177 grep -v '^
*+' conftest.er1 >conftest.err
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest.$ac_objext; then
19185 ac_cv_member_struct_stat_st_gen=yes
19187 echo "$as_me: failed program was:" >&5
19188 sed 's
/^
/|
/' conftest.$ac_ext >&5
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 $ac_includes_default
19200 static struct stat ac_aggr;
19201 if (sizeof ac_aggr.st_gen)
19207 rm -f conftest.$ac_objext
19208 if { (ac_try="$ac_compile"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_compile") 2>conftest.er1
19216 grep -v '^
*+' conftest.er1 >conftest.err
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && {
19221 test -z "$ac_c_werror_flag" ||
19222 test ! -s conftest.err
19223 } && test -s conftest.$ac_objext; then
19224 ac_cv_member_struct_stat_st_gen=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's
/^
/|
/' conftest.$ac_ext >&5
19229 ac_cv_member_struct_stat_st_gen=no
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19238 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19239 if test $ac_cv_member_struct_stat_st_gen = yes; then
19241 cat >>confdefs.h <<_ACEOF
19242 #define HAVE_STRUCT_STAT_ST_GEN 1
19248 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19249 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19250 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 $ac_includes_default
19263 static struct stat ac_aggr;
19264 if (ac_aggr.st_birthtime)
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19279 grep -v '^
*+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } && {
19284 test -z "$ac_c_werror_flag" ||
19285 test ! -s conftest.err
19286 } && test -s conftest.$ac_objext; then
19287 ac_cv_member_struct_stat_st_birthtime=yes
19289 echo "$as_me: failed program was:" >&5
19290 sed 's
/^
/|
/' conftest.$ac_ext >&5
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 $ac_includes_default
19302 static struct stat ac_aggr;
19303 if (sizeof ac_aggr.st_birthtime)
19309 rm -f conftest.$ac_objext
19310 if { (ac_try="$ac_compile"
19311 case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_compile") 2>conftest.er1
19318 grep -v '^
*+' conftest.er1 >conftest.err
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } && {
19323 test -z "$ac_c_werror_flag" ||
19324 test ! -s conftest.err
19325 } && test -s conftest.$ac_objext; then
19326 ac_cv_member_struct_stat_st_birthtime=yes
19328 echo "$as_me: failed program was:" >&5
19329 sed 's
/^
/|
/' conftest.$ac_ext >&5
19331 ac_cv_member_struct_stat_st_birthtime=no
19334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19340 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19341 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19343 cat >>confdefs.h <<_ACEOF
19344 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19350 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19351 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19352 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 cat >conftest.$ac_ext <<_ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 $ac_includes_default
19365 static struct stat ac_aggr;
19366 if (ac_aggr.st_blocks)
19372 rm -f conftest.$ac_objext
19373 if { (ac_try="$ac_compile"
19374 case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_compile") 2>conftest.er1
19381 grep -v '^
*+' conftest.er1 >conftest.err
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest.$ac_objext; then
19389 ac_cv_member_struct_stat_st_blocks=yes
19391 echo "$as_me: failed program was:" >&5
19392 sed 's
/^
/|
/' conftest.$ac_ext >&5
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 $ac_includes_default
19404 static struct stat ac_aggr;
19405 if (sizeof ac_aggr.st_blocks)
19411 rm -f conftest.$ac_objext
19412 if { (ac_try="$ac_compile"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19420 grep -v '^
*+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest.$ac_objext; then
19428 ac_cv_member_struct_stat_st_blocks=yes
19430 echo "$as_me: failed program was:" >&5
19431 sed 's
/^
/|
/' conftest.$ac_ext >&5
19433 ac_cv_member_struct_stat_st_blocks=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19442 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19443 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_ST_BLOCKS 1
19455 case " $LIBOBJS " in
19456 *" fileblocks.$ac_objext "* ) ;;
19457 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19465 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19466 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19467 if test "${ac_cv_header_time_altzone+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19494 grep -v '^
*+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest.$ac_objext; then
19502 ac_cv_header_time_altzone=yes
19504 echo "$as_me: failed program was:" >&5
19505 sed 's
/^
/|
/' conftest.$ac_ext >&5
19507 ac_cv_header_time_altzone=no
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19514 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19515 if test $ac_cv_header_time_altzone = yes; then
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_ALTZONE 1
19524 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19525 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 #include <sys/types.h>
19534 #include <sys/select.h>
19535 #include <sys/time.h>
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19554 grep -v '^
*+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest.$ac_objext; then
19564 cat >>confdefs.h <<\_ACEOF
19565 #define SYS_SELECT_WITH_SYS_TIME 1
19571 echo "$as_me: failed program was:" >&5
19572 sed 's
/^
/|
/' conftest.$ac_ext >&5
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19579 echo "${ECHO_T}$was_it_defined" >&6; }
19581 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19582 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19583 if test "${ac_cv_struct_addrinfo+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19593 # include <netdb.h>
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19611 grep -v '^
*+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest.$ac_objext; then
19619 ac_cv_struct_addrinfo=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's
/^
/|
/' conftest.$ac_ext >&5
19624 ac_cv_struct_addrinfo=no
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19631 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19632 if test $ac_cv_struct_addrinfo = yes; then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_ADDRINFO 1
19640 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19641 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19642 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19652 # include <sys/types.h>
19653 # include <sys/socket.h>
19657 struct sockaddr_storage s
19662 rm -f conftest.$ac_objext
19663 if { (ac_try="$ac_compile"
19664 case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_compile") 2>conftest.er1
19671 grep -v '^
*+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } && {
19676 test -z "$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19678 } && test -s conftest.$ac_objext; then
19679 ac_cv_struct_sockaddr_storage=yes
19681 echo "$as_me: failed program was:" >&5
19682 sed 's
/^
/|
/' conftest.$ac_ext >&5
19684 ac_cv_struct_sockaddr_storage=no
19687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19691 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19692 if test $ac_cv_struct_sockaddr_storage = yes; then
19694 cat >>confdefs.h <<\_ACEOF
19695 #define HAVE_SOCKADDR_STORAGE 1
19700 # checks for compiler characteristics
19703 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19704 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19705 if test "${ac_cv_c_char_unsigned+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 cat >conftest.$ac_ext <<_ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 $ac_includes_default
19718 static int test_array [1 - 2 * !(((char) -1) < 0)];
19725 rm -f conftest.$ac_objext
19726 if { (ac_try="$ac_compile"
19727 case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_compile") 2>conftest.er1
19734 grep -v '^
*+' conftest.er1 >conftest.err
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } && {
19739 test -z "$ac_c_werror_flag" ||
19740 test ! -s conftest.err
19741 } && test -s conftest.$ac_objext; then
19742 ac_cv_c_char_unsigned=no
19744 echo "$as_me: failed program was:" >&5
19745 sed 's
/^
/|
/' conftest.$ac_ext >&5
19747 ac_cv_c_char_unsigned=yes
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19753 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19754 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19755 cat >>confdefs.h <<\_ACEOF
19756 #define __CHAR_UNSIGNED__ 1
19761 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19762 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19763 if test "${ac_cv_c_const+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19776 /* FIXME: Include the comments suggested by Paul. */
19777 #ifndef __cplusplus
19778 /* Ultrix mips cc rejects this. */
19779 typedef int charset[2];
19781 /* SunOS 4.1.1 cc rejects this. */
19782 char const *const *pcpcc;
19784 /* NEC SVR4.0.2 mips cc rejects this. */
19785 struct point {int x, y;};
19786 static struct point const zero = {0,0};
19787 /* AIX XL C 1.02.0.0 rejects this.
19788 It does not let you subtract one const X* pointer from another in
19789 an arm of an if-expression whose if-part is not a constant
19791 const char *g = "string";
19792 pcpcc = &g + (g ? g-g : 0);
19793 /* HPUX 7.0 cc rejects these. */
19795 ppc = (char**) pcpcc;
19796 pcpcc = (char const *const *) ppc;
19797 { /* SCO 3.2v4 cc rejects this. */
19799 char const *s = 0 ? (char *) 0 : (char const *) 0;
19804 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19805 int x[] = {25, 17};
19806 const int *foo = &x[0];
19809 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19810 typedef const int *iptr;
19814 { /* AIX XL C 1.02.0.0 rejects this saying
19815 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19816 struct s { int j; const int *ap[3]; };
19817 struct s *b; b->j = 5;
19819 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19820 const int foo = 10;
19821 if (!foo) return 0;
19823 return !cs[0] && !zero.x;
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19839 grep -v '^
*+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest.$ac_objext; then
19849 echo "$as_me: failed program was:" >&5
19850 sed 's
/^
/|
/' conftest.$ac_ext >&5
19855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19858 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19859 if test $ac_cv_c_const = no; then
19861 cat >>confdefs.h <<\_ACEOF
19869 { echo "$as_me:$LINENO: checking for working volatile" >&5
19870 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19881 volatile int x; x = 0;
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19895 grep -v '^
*+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest.$ac_objext; then
19905 echo "$as_me: failed program was:" >&5
19906 sed 's
/^
/|
/' conftest.$ac_ext >&5
19909 cat >>confdefs.h <<\_ACEOF
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result: $works" >&5
19918 echo "${ECHO_T}$works" >&6; }
19921 { echo "$as_me:$LINENO: checking for working signed char" >&5
19922 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19938 rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_compile") 2>conftest.er1
19947 grep -v '^
*+' conftest.er1 >conftest.err
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest.$ac_objext; then
19957 echo "$as_me: failed program was:" >&5
19958 sed 's
/^
/|
/' conftest.$ac_ext >&5
19961 cat >>confdefs.h <<\_ACEOF
19968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19969 { echo "$as_me:$LINENO: result: $works" >&5
19970 echo "${ECHO_T}$works" >&6; }
19973 { echo "$as_me:$LINENO: checking for prototypes" >&5
19974 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 int foo(int x) { return 0; }
19990 rm -f conftest.$ac_objext
19991 if { (ac_try="$ac_compile"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_compile") 2>conftest.er1
19999 grep -v '^
*+' conftest.er1 >conftest.err
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && {
20004 test -z "$ac_c_werror_flag" ||
20005 test ! -s conftest.err
20006 } && test -s conftest.$ac_objext; then
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_PROTOTYPES 1
20013 have_prototypes=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's
/^
/|
/' conftest.$ac_ext >&5
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20024 echo "${ECHO_T}$have_prototypes" >&6; }
20027 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20028 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20036 #include <stdarg.h>
20037 int foo(int x, ...) {
20041 va_arg(va, char *);
20042 va_arg(va, double);
20049 return foo(10, "", 3.14);
20054 rm -f conftest.$ac_objext
20055 if { (ac_try="$ac_compile"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_compile") 2>conftest.er1
20063 grep -v '^
*+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest.$ac_objext; then
20073 cat >>confdefs.h <<\_ACEOF
20074 #define HAVE_STDARG_PROTOTYPES 1
20080 echo "$as_me: failed program was:" >&5
20081 sed 's
/^
/|
/' conftest.$ac_ext >&5
20086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20087 { echo "$as_me:$LINENO: result: $works" >&5
20088 echo "${ECHO_T}$works" >&6; }
20090 # check for socketpair
20091 { echo "$as_me:$LINENO: checking for socketpair" >&5
20092 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20100 #include <sys/types.h>
20101 #include <sys/socket.h>
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20120 grep -v '^
*+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest.$ac_objext; then
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_SOCKETPAIR 1
20133 { echo "$as_me:$LINENO: result: yes" >&5
20134 echo "${ECHO_T}yes" >&6; }
20136 echo "$as_me: failed program was:" >&5
20137 sed 's
/^
/|
/' conftest.$ac_ext >&5
20139 { echo "$as_me:$LINENO: result: no" >&5
20140 echo "${ECHO_T}no" >&6; }
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 # check if sockaddr has sa_len member
20147 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20148 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <sys/types.h>
20156 #include <sys/socket.h>
20166 rm -f conftest.$ac_objext
20167 if { (ac_try="$ac_compile"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_compile") 2>conftest.er1
20175 grep -v '^
*+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest.$ac_objext; then
20183 { echo "$as_me:$LINENO: result: yes" >&5
20184 echo "${ECHO_T}yes" >&6; }
20186 cat >>confdefs.h <<\_ACEOF
20187 #define HAVE_SOCKADDR_SA_LEN 1
20191 echo "$as_me: failed program was:" >&5
20192 sed 's
/^
/|
/' conftest.$ac_ext >&5
20194 { echo "$as_me:$LINENO: result: no" >&5
20195 echo "${ECHO_T}no" >&6; }
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 va_list_is_array=no
20201 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20202 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20203 cat >conftest.$ac_ext <<_ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20210 #ifdef HAVE_STDARG_PROTOTYPES
20211 #include <stdarg.h>
20213 #include <varargs.h>
20219 va_list list1, list2; list1 = list2;
20224 rm -f conftest.$ac_objext
20225 if { (ac_try="$ac_compile"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_compile") 2>conftest.er1
20233 grep -v '^
*+' conftest.er1 >conftest.err
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } && {
20238 test -z "$ac_c_werror_flag" ||
20239 test ! -s conftest.err
20240 } && test -s conftest.$ac_objext; then
20243 echo "$as_me: failed program was:" >&5
20244 sed 's
/^
/|
/' conftest.$ac_ext >&5
20248 cat >>confdefs.h <<\_ACEOF
20249 #define VA_LIST_IS_ARRAY 1
20252 va_list_is_array=yes
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20258 echo "${ECHO_T}$va_list_is_array" >&6; }
20260 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20264 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20265 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20266 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20277 #define gethostbyname_r innocuous_gethostbyname_r
20279 /* System header to define __stub macros and hopefully few prototypes,
20280 which can conflict with char gethostbyname_r (); below.
20281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20282 <limits.h> exists even on freestanding compilers. */
20285 # include <limits.h>
20287 # include <assert.h>
20290 #undef gethostbyname_r
20292 /* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20298 char gethostbyname_r ();
20299 /* The GNU C library defines this for functions which it implements
20300 to always fail with ENOSYS. Some functions are actually named
20301 something starting with __ and the normal name is an alias. */
20302 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20309 return gethostbyname_r ();
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (ac_try="$ac_link"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_link") 2>conftest.er1
20323 grep -v '^
*+' conftest.er1 >conftest.err
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest$ac_exeext &&
20331 $as_test_x conftest$ac_exeext; then
20332 ac_cv_func_gethostbyname_r=yes
20334 echo "$as_me: failed program was:" >&5
20335 sed 's
/^
/|
/' conftest.$ac_ext >&5
20337 ac_cv_func_gethostbyname_r=no
20340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20341 conftest$ac_exeext conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20344 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20345 if test $ac_cv_func_gethostbyname_r = yes; then
20347 cat >>confdefs.h <<\_ACEOF
20348 #define HAVE_GETHOSTBYNAME_R 1
20351 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20352 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20354 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20355 cat >conftest.$ac_ext <<_ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20362 # include <netdb.h>
20369 struct hostent *he, *res;
20374 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20380 rm -f conftest.$ac_objext
20381 if { (ac_try="$ac_compile"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20389 grep -v '^
*+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest.$ac_objext; then
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_GETHOSTBYNAME_R 1
20403 cat >>confdefs.h <<\_ACEOF
20404 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20407 { echo "$as_me:$LINENO: result: yes" >&5
20408 echo "${ECHO_T}yes" >&6; }
20411 echo "$as_me: failed program was:" >&5
20412 sed 's
/^
/|
/' conftest.$ac_ext >&5
20415 { echo "$as_me:$LINENO: result: no" >&5
20416 echo "${ECHO_T}no" >&6; }
20417 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20418 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20426 # include <netdb.h>
20433 struct hostent *he;
20438 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20444 rm -f conftest.$ac_objext
20445 if { (ac_try="$ac_compile"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_compile") 2>conftest.er1
20453 grep -v '^
*+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && {
20458 test -z "$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 } && test -s conftest.$ac_objext; then
20462 cat >>confdefs.h <<\_ACEOF
20463 #define HAVE_GETHOSTBYNAME_R 1
20467 cat >>confdefs.h <<\_ACEOF
20468 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20471 { echo "$as_me:$LINENO: result: yes" >&5
20472 echo "${ECHO_T}yes" >&6; }
20475 echo "$as_me: failed program was:" >&5
20476 sed 's
/^
/|
/' conftest.$ac_ext >&5
20479 { echo "$as_me:$LINENO: result: no" >&5
20480 echo "${ECHO_T}no" >&6; }
20481 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20482 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20490 # include <netdb.h>
20497 struct hostent *he;
20498 struct hostent_data data;
20500 (void) gethostbyname_r(name, he, &data);
20506 rm -f conftest.$ac_objext
20507 if { (ac_try="$ac_compile"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_compile") 2>conftest.er1
20515 grep -v '^
*+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && {
20520 test -z "$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 } && test -s conftest.$ac_objext; then
20524 cat >>confdefs.h <<\_ACEOF
20525 #define HAVE_GETHOSTBYNAME_R 1
20529 cat >>confdefs.h <<\_ACEOF
20530 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20533 { echo "$as_me:$LINENO: result: yes" >&5
20534 echo "${ECHO_T}yes" >&6; }
20537 echo "$as_me: failed program was:" >&5
20538 sed 's
/^
/|
/' conftest.$ac_ext >&5
20541 { echo "$as_me:$LINENO: result: no" >&5
20542 echo "${ECHO_T}no" >&6; }
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560 for ac_func in gethostbyname
20562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20576 #define $ac_func innocuous_$ac_func
20578 /* System header to define __stub macros and hopefully few prototypes,
20579 which can conflict with char $ac_func (); below.
20580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581 <limits.h> exists even on freestanding compilers. */
20584 # include <limits.h>
20586 # include <assert.h>
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20598 /* The GNU C library defines this for functions which it implements
20599 to always fail with ENOSYS. Some functions are actually named
20600 something starting with __ and the normal name is an alias. */
20601 #if defined __stub_$ac_func || defined __stub___$ac_func
20608 return $ac_func ();
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_link") 2>conftest.er1
20622 grep -v '^
*+' conftest.er1 >conftest.err
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && {
20627 test -z "$ac_c_werror_flag" ||
20628 test ! -s conftest.err
20629 } && test -s conftest$ac_exeext &&
20630 $as_test_x conftest$ac_exeext; then
20631 eval "$as_ac_var=yes"
20633 echo "$as_me: failed program was:" >&5
20634 sed 's
/^
/|
/' conftest.$ac_ext >&5
20636 eval "$as_ac_var=no"
20639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20640 conftest$ac_exeext conftest.$ac_ext
20642 ac_res=`eval echo '${'$as_ac_var'}'`
20643 { echo "$as_me:$LINENO: result: $ac_res" >&5
20644 echo "${ECHO_T}$ac_res" >&6; }
20645 if test `eval echo '${'$as_ac_var'}'` = yes; then
20646 cat >>confdefs.h <<_ACEOF
20647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20662 # checks for system services
20665 # Linux requires this for correct f.p. operations
20666 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20667 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20668 if test "${ac_cv_func___fpu_control+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20679 #define __fpu_control innocuous___fpu_control
20681 /* System header to define __stub macros and hopefully few prototypes,
20682 which can conflict with char __fpu_control (); below.
20683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20684 <limits.h> exists even on freestanding compilers. */
20687 # include <limits.h>
20689 # include <assert.h>
20692 #undef __fpu_control
20694 /* Override any GCC internal prototype to avoid an error.
20695 Use char because int might match the return type of a GCC
20696 builtin and then its argument prototype would still apply. */
20700 char __fpu_control ();
20701 /* The GNU C library defines this for functions which it implements
20702 to always fail with ENOSYS. Some functions are actually named
20703 something starting with __ and the normal name is an alias. */
20704 #if defined __stub___fpu_control || defined __stub_____fpu_control
20711 return __fpu_control ();
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_link") 2>conftest.er1
20725 grep -v '^
*+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest$ac_exeext &&
20733 $as_test_x conftest$ac_exeext; then
20734 ac_cv_func___fpu_control=yes
20736 echo "$as_me: failed program was:" >&5
20737 sed 's
/^
/|
/' conftest.$ac_ext >&5
20739 ac_cv_func___fpu_control=no
20742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20743 conftest$ac_exeext conftest.$ac_ext
20745 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20746 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20747 if test $ac_cv_func___fpu_control = yes; then
20751 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20752 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20753 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 ac_check_lib_save_LIBS=$LIBS
20757 LIBS="-lieee $LIBS"
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20765 /* Override any GCC internal prototype to avoid an error.
20766 Use char because int might match the return type of a GCC
20767 builtin and then its argument prototype would still apply. */
20771 char __fpu_control ();
20775 return __fpu_control ();
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (ac_try="$ac_link"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_link") 2>conftest.er1
20789 grep -v '^
*+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext &&
20797 $as_test_x conftest$ac_exeext; then
20798 ac_cv_lib_ieee___fpu_control=yes
20800 echo "$as_me: failed program was:" >&5
20801 sed 's
/^
/|
/' conftest.$ac_ext >&5
20803 ac_cv_lib_ieee___fpu_control=no
20806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20810 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20811 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20812 if test $ac_cv_lib_ieee___fpu_control = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define HAVE_LIBIEEE 1
20817 LIBS="-lieee $LIBS"
20825 # Check for --with-fpectl
20826 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20827 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20829 # Check whether --with-fpectl was given.
20830 if test "${with_fpectl+set}" = set; then
20831 withval=$with_fpectl;
20832 if test "$withval" != no
20835 cat >>confdefs.h <<\_ACEOF
20836 #define WANT_SIGFPE_HANDLER 1
20839 { echo "$as_me:$LINENO: result: yes" >&5
20840 echo "${ECHO_T}yes" >&6; }
20841 else { echo "$as_me:$LINENO: result: no" >&5
20842 echo "${ECHO_T}no" >&6; }
20845 { echo "$as_me:$LINENO: result: no" >&5
20846 echo "${ECHO_T}no" >&6; }
20850 # check for --with-libm=...
20852 case $ac_sys_system in
20857 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20858 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20860 # Check whether --with-libm was given.
20861 if test "${with_libm+set}" = set; then
20862 withval=$with_libm;
20863 if test "$withval" = no
20865 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20866 echo "${ECHO_T}force LIBM empty" >&6; }
20867 elif test "$withval" != yes
20869 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20870 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20871 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20872 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20873 { (exit 1); exit 1; }; }
20876 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20877 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20881 # check for --with-libc=...
20883 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20884 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20886 # Check whether --with-libc was given.
20887 if test "${with_libc+set}" = set; then
20888 withval=$with_libc;
20889 if test "$withval" = no
20891 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20892 echo "${ECHO_T}force LIBC empty" >&6; }
20893 elif test "$withval" != yes
20895 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20896 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20897 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20898 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20899 { (exit 1); exit 1; }; }
20902 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20903 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20907 # ************************************
20908 # * Check for mathematical functions *
20909 # ************************************
20914 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
20915 # -0. on some architectures.
20916 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
20917 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
20918 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20922 if test "$cross_compiling" = yes; then
20923 ac_cv_tanh_preserves_zero_sign=no
20925 cat >conftest.$ac_ext <<_ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20933 #include <stdlib.h>
20935 /* return 0 if either negative zeros don't exist
20936 on this platform or
if negative zeros exist
20937 and tanh
(-0.
) == -0.
*/
20938 if (atan2
(0.
, -1.
) == atan2
(-0.
, -1.
) ||
20939 atan2
(tanh
(-0.
), -1.
) == atan2
(-0.
, -1.
)) exit(0);
20944 rm -f conftest
$ac_exeext
20945 if { (ac_try
="$ac_link"
20946 case "(($ac_try" in
20947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_link") 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20955 { (case "(($ac_try" in
20956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20957 *) ac_try_echo
=$ac_try;;
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_try") 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 ac_cv_tanh_preserves_zero_sign
=yes
20966 echo "$as_me: program exited with status $ac_status" >&5
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.
$ac_ext >&5
20970 ( exit $ac_status )
20971 ac_cv_tanh_preserves_zero_sign
=no
20973 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20979 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
20980 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
20981 if test "$ac_cv_tanh_preserves_zero_sign" = yes
20984 cat >>confdefs.h
<<\_ACEOF
20985 #define TANH_PRESERVES_ZERO_SIGN 1
20991 for ac_func
in hypot
20993 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20996 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 cat >conftest.
$ac_ext <<_ACEOF
21002 cat confdefs.h
>>conftest.
$ac_ext
21003 cat >>conftest.
$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21007 #define $ac_func innocuous_$ac_func
21009 /* System header to define __stub macros and hopefully few prototypes,
21010 which can conflict with char $ac_func (); below.
21011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21012 <limits.h> exists even on freestanding compilers. */
21015 # include <limits.h>
21017 # include <assert.h>
21022 /* Override any GCC internal prototype to avoid an error.
21023 Use char because int might match the return type of a GCC
21024 builtin and then its argument prototype would still apply. */
21029 /* The GNU C library defines this for functions which it implements
21030 to always fail with ENOSYS. Some functions are actually named
21031 something starting with __ and the normal name is an alias. */
21032 #if defined __stub_$ac_func || defined __stub___$ac_func
21039 return $ac_func ();
21044 rm -f conftest.
$ac_objext conftest
$ac_exeext
21045 if { (ac_try
="$ac_link"
21046 case "(($ac_try" in
21047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_link") 2>conftest.er1
21053 grep -v '^ *+' conftest.er1 >conftest.err
21055 cat conftest.err >&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } && {
21058 test -z "$ac_c_werror_flag" ||
21059 test ! -s conftest.err
21060 } && test -s conftest$ac_exeext &&
21061 $as_test_x conftest$ac_exeext; then
21062 eval "$as_ac_var=yes"
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 eval "$as_ac_var=no"
21070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21071 conftest$ac_exeext conftest.$ac_ext
21073 ac_res=`eval echo '${'$as_ac_var'}'`
21074 { echo "$as_me:$LINENO: result: $ac_res" >&5
21075 echo "${ECHO_T}$ac_res" >&6; }
21076 if test `eval echo '${'$as_ac_var'}'` = yes; then
21077 cat >>confdefs.h <<_ACEOF
21078 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21082 case " $LIBOBJS " in
21083 *" $ac_func.$ac_objext "* ) ;;
21084 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21102 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
21104 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 cat >conftest.$ac_ext <<_ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21118 #define $ac_func innocuous_$ac_func
21120 /* System header to define __stub macros and hopefully few prototypes,
21121 which can conflict with char $ac_func (); below.
21122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21123 <limits.h> exists even on freestanding compilers. */
21126 # include <limits.h>
21128 # include <assert.h>
21133 /* Override any GCC internal prototype to avoid an error.
21134 Use char because int might match the return type of a GCC
21135 builtin and then its argument prototype would still apply. */
21140 /* The GNU C library defines this for functions which it implements
21141 to always fail with ENOSYS. Some functions are actually named
21142 something starting with __ and the normal name is an alias. */
21143 #if defined __stub_$ac_func || defined __stub___$ac_func
21150 return $ac_func ();
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (ac_try="$ac_link"
21157 case "(($ac_try" in
21158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21159 *) ac_try_echo
=$ac_try;;
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162 (eval "$ac_link") 2>conftest.er1
21164 grep -v '^ *+' conftest.er1
>conftest.err
21166 cat conftest.err
>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && {
21169 test -z "$ac_c_werror_flag" ||
21170 test ! -s conftest.err
21171 } && test -s conftest
$ac_exeext &&
21172 $as_test_x conftest
$ac_exeext; then
21173 eval "$as_ac_var=yes"
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.
$ac_ext >&5
21178 eval "$as_ac_var=no"
21181 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21182 conftest
$ac_exeext conftest.
$ac_ext
21184 ac_res
=`eval echo '${'$as_ac_var'}'`
21185 { echo "$as_me:$LINENO: result: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21187 if test `eval echo '${'$as_ac_var'}'` = yes; then
21188 cat >>confdefs.h
<<_ACEOF
21189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21198 # check for wchar.h
21199 if test "${ac_cv_header_wchar_h+set}" = set; then
21200 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21201 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21202 if test "${ac_cv_header_wchar_h+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21206 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21208 # Is the header compilable?
21209 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21210 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21211 cat >conftest.
$ac_ext <<_ACEOF
21214 cat confdefs.h
>>conftest.
$ac_ext
21215 cat >>conftest.
$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21220 rm -f conftest.
$ac_objext
21221 if { (ac_try
="$ac_compile"
21222 case "(($ac_try" in
21223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_compile") 2>conftest.er1
21229 grep -v '^ *+' conftest.er1 >conftest.err
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest.$ac_objext; then
21237 ac_header_compiler=yes
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ac_header_compiler=no
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21247 echo "${ECHO_T}$ac_header_compiler" >&6; }
21249 # Is the header present?
21250 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21251 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21252 cat >conftest.$ac_ext <<_ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21260 if { (ac_try="$ac_cpp conftest.$ac_ext"
21261 case "(($ac_try" in
21262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21263 *) ac_try_echo
=$ac_try;;
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21268 grep -v '^ *+' conftest.er1
>conftest.err
21270 cat conftest.err
>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } >/dev
/null
&& {
21273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21276 ac_header_preproc
=yes
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.
$ac_ext >&5
21281 ac_header_preproc
=no
21284 rm -f conftest.err conftest.
$ac_ext
21285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21286 echo "${ECHO_T}$ac_header_preproc" >&6; }
21288 # So? What about this header?
21289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21291 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21292 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
21294 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
21295 ac_header_preproc
=yes
21298 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21299 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21301 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21303 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21305 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
21307 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21309 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21311 ## ------------------------------------------------ ##
21312 ## Report this to http://www.python.org/python-bugs ##
21313 ## ------------------------------------------------ ##
21315 ) |
sed "s/^/$as_me: WARNING: /" >&2
21318 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21319 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21320 if test "${ac_cv_header_wchar_h+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21323 ac_cv_header_wchar_h
=$ac_header_preproc
21325 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21326 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21329 if test $ac_cv_header_wchar_h = yes; then
21332 cat >>confdefs.h
<<\_ACEOF
21333 #define HAVE_WCHAR_H 1
21345 # determine wchar_t size
21346 if test "$wchar_h" = yes
21348 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21349 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21350 if test "${ac_cv_type_wchar_t+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 cat >conftest.
$ac_ext <<_ACEOF
21356 cat confdefs.h
>>conftest.
$ac_ext
21357 cat >>conftest.
$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21361 typedef wchar_t ac__type_new_;
21365 if ((ac__type_new_ *) 0)
21367 if (sizeof (ac__type_new_))
21373 rm -f conftest.
$ac_objext
21374 if { (ac_try
="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21390 ac_cv_type_wchar_t=yes
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ac_cv_type_wchar_t=no
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21401 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21403 # The cast to long int works around a bug in the HP C Compiler
21404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21405 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21406 # This bug is HP SR number 8606223364.
21407 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21408 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21409 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 if test "$cross_compiling" = yes; then
21413 # Depending upon the size, compute the lo and hi bounds.
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21422 typedef wchar_t ac__type_sizeof_;
21426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21442 grep -v '^
*+' conftest.er1 >conftest.err
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.$ac_objext; then
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21460 typedef wchar_t ac__type_sizeof_;
21464 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21471 rm -f conftest.$ac_objext
21472 if { (ac_try="$ac_compile"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_compile") 2>conftest.er1
21480 grep -v '^
*+' conftest.er1 >conftest.err
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest.$ac_objext; then
21488 ac_hi=$ac_mid; break
21490 echo "$as_me: failed program was:" >&5
21491 sed 's
/^
/|
/' conftest.$ac_ext >&5
21493 ac_lo=`expr $ac_mid + 1`
21494 if test $ac_lo -le $ac_mid; then
21498 ac_mid=`expr 2 '*' $ac_mid + 1`
21501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 echo "$as_me: failed program was:" >&5
21505 sed 's
/^
/|
/' conftest.$ac_ext >&5
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21515 typedef wchar_t ac__type_sizeof_;
21519 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21526 rm -f conftest.$ac_objext
21527 if { (ac_try="$ac_compile"
21528 case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533 (eval "$ac_compile") 2>conftest.er1
21535 grep -v '^
*+' conftest.er1 >conftest.err
21537 cat conftest.err >&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest.$ac_objext; then
21545 cat >conftest.$ac_ext <<_ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21553 typedef wchar_t ac__type_sizeof_;
21557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_compile") 2>conftest.er1
21573 grep -v '^
*+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest.$ac_objext; then
21581 ac_lo=$ac_mid; break
21583 echo "$as_me: failed program was:" >&5
21584 sed 's
/^
/|
/' conftest.$ac_ext >&5
21586 ac_hi=`expr '(' $ac_mid ')' - 1`
21587 if test $ac_mid -le $ac_hi; then
21591 ac_mid=`expr 2 '*' $ac_mid`
21594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 echo "$as_me: failed program was:" >&5
21598 sed 's
/^
/|
/' conftest.$ac_ext >&5
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21607 # Binary search between lo and hi bounds.
21608 while test "x$ac_lo" != "x$ac_hi"; do
21609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21618 typedef wchar_t ac__type_sizeof_;
21622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21638 grep -v '^
*+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21648 echo "$as_me: failed program was:" >&5
21649 sed 's
/^
/|
/' conftest.$ac_ext >&5
21651 ac_lo=`expr '(' $ac_mid ')' + 1`
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21658 '') if test "$ac_cv_type_wchar_t" = yes; then
21659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21660 See \`config.log' for more details.
" >&5
21661 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
21662 See \
`config.log' for more details." >&2;}
21663 { (exit 77); exit 77; }; }
21665 ac_cv_sizeof_wchar_t=0
21669 cat >conftest.$ac_ext <<_ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21677 typedef wchar_t ac__type_sizeof_;
21678 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21679 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21681 #include <stdlib.h>
21686 FILE *f = fopen ("conftest.val", "w");
21689 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21691 long int i = longval ();
21692 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21694 fprintf (f, "%ld\n", i);
21698 unsigned long int i = ulongval ();
21699 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21701 fprintf (f, "%lu\n", i);
21703 return ferror (f) || fclose (f) != 0;
21709 rm -f conftest$ac_exeext
21710 if { (ac_try="$ac_link"
21711 case "(($ac_try" in
21712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21713 *) ac_try_echo
=$ac_try;;
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_link") 2>&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21720 { (case "(($ac_try" in
21721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_try") 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 ac_cv_sizeof_wchar_t=`cat conftest.val
`
21731 echo "$as_me: program exited with status $ac_status" >&5
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ( exit $ac_status )
21736 if test "$ac_cv_type_wchar_t" = yes; then
21737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21738 See \`config.log
' for more details." >&5
21739 echo "$as_me: error: cannot compute sizeof (wchar_t)
21740 See \`config.log' for more details.
" >&2;}
21741 { (exit 77); exit 77; }; }
21743 ac_cv_sizeof_wchar_t=0
21746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21750 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
21751 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21755 cat >>confdefs.h <<_ACEOF
21756 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21762 { echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
21763 echo $ECHO_N "checking
for UCS-4 tcl...
$ECHO_C" >&6; }
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21773 #if TCL_UTF_MAX != 6
21774 # error "NOT UCS4_TCL
"
21784 rm -f conftest.$ac_objext
21785 if { (ac_try="$ac_compile"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_compile") 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest.$ac_objext; then
21803 cat >>confdefs.h <<\_ACEOF
21804 #define HAVE_UCS4_TCL 1
21810 echo "$as_me: failed program was
:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
21818 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21820 # check whether wchar_t is signed or not
21821 if test "$wchar_h" = yes
21823 # check whether wchar_t is signed or not
21824 { echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
21825 echo $ECHO_N "checking whether wchar_t is signed...
$ECHO_C" >&6; }
21826 if test "${ac_cv_wchar_t_signed+set}" = set; then
21827 echo $ECHO_N "(cached
) $ECHO_C" >&6
21830 if test "$cross_compiling" = yes; then
21831 ac_cv_wchar_t_signed=yes
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21843 /* Success: exit code 0 */
21844 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21848 rm -f conftest$ac_exeext
21849 if { (ac_try="$ac_link"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_link") 2>&5
21857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21859 { (case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_try") 2>&5
21866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_cv_wchar_t_signed=yes
21870 echo "$as_me: program exited with status
$ac_status" >&5
21871 echo "$as_me: failed program was
:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 ( exit $ac_status )
21875 ac_cv_wchar_t_signed=no
21877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
21884 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21887 { echo "$as_me:$LINENO: checking what
type to use
for unicode
" >&5
21888 echo $ECHO_N "checking what
type to use
for unicode...
$ECHO_C" >&6; }
21889 # Check whether --enable-unicode was given.
21890 if test "${enable_unicode+set}" = set; then
21891 enableval=$enable_unicode;
21897 if test $enable_unicode = yes
21899 # Without any arguments, Py_UNICODE defaults to two-byte mode
21900 case "$have_ucs4_tcl" in
21901 yes) enable_unicode="ucs4
"
21903 *) enable_unicode="ucs2
"
21910 case "$enable_unicode" in
21911 ucs2) unicode_size="2"
21912 cat >>confdefs.h <<\_ACEOF
21913 #define Py_UNICODE_SIZE 2
21917 ucs4) unicode_size="4"
21918 cat >>confdefs.h <<\_ACEOF
21919 #define Py_UNICODE_SIZE 4
21929 if test "$enable_unicode" = "no
"
21932 { echo "$as_me:$LINENO: result
: not used
" >&5
21933 echo "${ECHO_T}not used
" >&6; }
21935 UNICODE_OBJS="Objects
/unicodeobject.o Objects
/unicodectype.o
"
21937 cat >>confdefs.h <<\_ACEOF
21938 #define Py_USING_UNICODE 1
21942 # wchar_t is only usable if it maps to an unsigned type
21943 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21944 -a "$ac_cv_wchar_t_signed" = "no
"
21946 PY_UNICODE_TYPE="wchar_t
"
21948 cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_USABLE_WCHAR_T 1
21952 cat >>confdefs.h <<\_ACEOF
21953 #define PY_UNICODE_TYPE wchar_t
21956 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21958 PY_UNICODE_TYPE="unsigned short
"
21959 cat >>confdefs.h <<\_ACEOF
21960 #define PY_UNICODE_TYPE unsigned short
21963 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21965 PY_UNICODE_TYPE="unsigned long
"
21966 cat >>confdefs.h <<\_ACEOF
21967 #define PY_UNICODE_TYPE unsigned long
21971 PY_UNICODE_TYPE="no
type found
"
21973 { echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
21974 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21977 # check for endianness
21978 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
21979 echo $ECHO_N "checking whether byte ordering is bigendian...
$ECHO_C" >&6; }
21980 if test "${ac_cv_c_bigendian+set}" = set; then
21981 echo $ECHO_N "(cached
) $ECHO_C" >&6
21983 # See if sys/param.h defines the BYTE_ORDER macro.
21984 cat >conftest.$ac_ext <<_ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 #include <sys/types.h>
21991 #include <sys/param.h>
21996 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21997 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21998 bogus endian macros
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_compile") 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest.$ac_objext; then
22022 # It does; now see whether it defined to BIG_ENDIAN or not.
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 #include <sys/types.h>
22030 #include <sys/param.h>
22035 #if BYTE_ORDER != BIG_ENDIAN
22043 rm -f conftest.$ac_objext
22044 if { (ac_try="$ac_compile"
22045 case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_compile") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest.$ac_objext; then
22060 ac_cv_c_bigendian=yes
22062 echo "$as_me: failed program was
:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ac_cv_c_bigendian=no
22068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22070 echo "$as_me: failed program was
:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 # It does not; compile a test program.
22074 if test "$cross_compiling" = yes; then
22075 # try to guess the endianness by grepping values into an object file
22076 ac_cv_c_bigendian=unknown
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22084 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22085 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22086 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22087 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22088 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22092 _ascii (); _ebcdic ();
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_compile") 2>conftest.er1
22106 grep -v '^ *+' conftest.er1 >conftest.err
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22110 (exit $ac_status); } && {
22111 test -z "$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 } && test -s conftest.$ac_objext; then
22114 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22115 ac_cv_c_bigendian=yes
22117 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22118 if test "$ac_cv_c_bigendian" = unknown; then
22119 ac_cv_c_bigendian=no
22121 # finding both strings is unlikely to happen, but who knows?
22122 ac_cv_c_bigendian=unknown
22126 echo "$as_me: failed program was
:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22145 /* Are we little or big endian? From Harbison&Steele. */
22149 char c[sizeof (long int)];
22152 return u.c[sizeof (long int) - 1] == 1;
22158 rm -f conftest$ac_exeext
22159 if { (ac_try="$ac_link"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_link") 2>&5
22167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22169 { (case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_try") 2>&5
22176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_cv_c_bigendian=no
22180 echo "$as_me: program exited with status
$ac_status" >&5
22181 echo "$as_me: failed program was
:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ( exit $ac_status )
22185 ac_cv_c_bigendian=yes
22187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 { echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
22196 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22197 case $ac_cv_c_bigendian in
22200 cat >>confdefs.h <<\_ACEOF
22201 #define WORDS_BIGENDIAN 1
22207 { { echo "$as_me:$LINENO: error
: unknown endianness
22208 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
22209 echo "$as_me: error
: unknown endianness
22210 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
22211 { (exit 1); exit 1; }; } ;;
22217 # Check whether right shifting a negative integer extends the sign bit
22218 # or fills with zeros (like the Cray J90, according to Tim Peters).
22219 { echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
22220 echo $ECHO_N "checking whether right
shift extends the sign bit...
$ECHO_C" >&6; }
22221 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22222 echo $ECHO_N "(cached
) $ECHO_C" >&6
22225 if test "$cross_compiling" = yes; then
22226 ac_cv_rshift_extends_sign=yes
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22237 exit(((-1)>>3 == -1) ? 0 : 1);
22241 rm -f conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>&5
22250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22252 { (case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_try") 2>&5
22259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22260 (exit $ac_status); }; }; then
22261 ac_cv_rshift_extends_sign=yes
22263 echo "$as_me: program exited with status
$ac_status" >&5
22264 echo "$as_me: failed program was
:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ( exit $ac_status )
22268 ac_cv_rshift_extends_sign=no
22270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
22277 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22278 if test "$ac_cv_rshift_extends_sign" = no
22281 cat >>confdefs.h <<\_ACEOF
22282 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22287 # check for getc_unlocked and related locking functions
22288 { echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
22289 echo $ECHO_N "checking
for getc_unlocked
() and friends...
$ECHO_C" >&6; }
22290 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22291 echo $ECHO_N "(cached
) $ECHO_C" >&6
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22305 FILE *f = fopen("/dev
/null
", "r
");
22314 rm -f conftest.$ac_objext conftest$ac_exeext
22315 if { (ac_try="$ac_link"
22316 case "(($ac_try" in
22317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318 *) ac_try_echo=$ac_try;;
22320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22321 (eval "$ac_link") 2>conftest.er1
22323 grep -v '^ *+' conftest.er1 >conftest.err
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22327 (exit $ac_status); } && {
22328 test -z "$ac_c_werror_flag" ||
22329 test ! -s conftest.err
22330 } && test -s conftest$ac_exeext &&
22331 $as_test_x conftest$ac_exeext; then
22332 ac_cv_have_getc_unlocked=yes
22334 echo "$as_me: failed program was
:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ac_cv_have_getc_unlocked=no
22340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22341 conftest$ac_exeext conftest.$ac_ext
22344 { echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
22345 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22346 if test "$ac_cv_have_getc_unlocked" = yes
22349 cat >>confdefs.h <<\_ACEOF
22350 #define HAVE_GETC_UNLOCKED 1
22355 # check where readline lives
22356 # save the value of LIBS so we don't actually link Python with readline
22357 LIBS_no_readline=$LIBS
22359 { echo "$as_me:$LINENO: checking
for readline
in -lreadline" >&5
22360 echo $ECHO_N "checking
for readline
in -lreadline...
$ECHO_C" >&6; }
22361 if test "${ac_cv_lib_readline_readline+set}" = set; then
22362 echo $ECHO_N "(cached
) $ECHO_C" >&6
22364 ac_check_lib_save_LIBS=$LIBS
22365 LIBS="-lreadline $LIBS"
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22373 /* Override any GCC internal prototype to avoid an error.
22374 Use char because int might match the return type of a GCC
22375 builtin and then its argument prototype would still apply. */
22383 return readline ();
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_link") 2>conftest.er1
22397 grep -v '^ *+' conftest.er1 >conftest.err
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22401 (exit $ac_status); } && {
22402 test -z "$ac_c_werror_flag" ||
22403 test ! -s conftest.err
22404 } && test -s conftest$ac_exeext &&
22405 $as_test_x conftest$ac_exeext; then
22406 ac_cv_lib_readline_readline=yes
22408 echo "$as_me: failed program was
:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 ac_cv_lib_readline_readline=no
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415 conftest$ac_exeext conftest.$ac_ext
22416 LIBS=$ac_check_lib_save_LIBS
22418 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_readline" >&5
22419 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22420 if test $ac_cv_lib_readline_readline = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define HAVE_LIBREADLINE 1
22425 LIBS="-lreadline $LIBS"
22429 if test "$ac_cv_have_readline_readline" = no
22432 { echo "$as_me:$LINENO: checking
for readline
in -ltermcap" >&5
22433 echo $ECHO_N "checking
for readline
in -ltermcap...
$ECHO_C" >&6; }
22434 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22435 echo $ECHO_N "(cached
) $ECHO_C" >&6
22437 ac_check_lib_save_LIBS=$LIBS
22438 LIBS="-ltermcap $LIBS"
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22446 /* Override any GCC internal prototype to avoid an error.
22447 Use char because int might match the return type of a GCC
22448 builtin and then its argument prototype would still apply. */
22456 return readline ();
22461 rm -f conftest.$ac_objext conftest$ac_exeext
22462 if { (ac_try="$ac_link"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_link") 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest$ac_exeext &&
22478 $as_test_x conftest$ac_exeext; then
22479 ac_cv_lib_termcap_readline=yes
22481 echo "$as_me: failed program was
:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_lib_termcap_readline=no
22487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22488 conftest$ac_exeext conftest.$ac_ext
22489 LIBS=$ac_check_lib_save_LIBS
22491 { echo "$as_me:$LINENO: result
: $ac_cv_lib_termcap_readline" >&5
22492 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22493 if test $ac_cv_lib_termcap_readline = yes; then
22494 cat >>confdefs.h <<_ACEOF
22495 #define HAVE_LIBTERMCAP 1
22498 LIBS="-ltermcap $LIBS"
22504 # check for readline 2.1
22505 { echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
22506 echo $ECHO_N "checking
for rl_callback_handler_install
in -lreadline...
$ECHO_C" >&6; }
22507 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22508 echo $ECHO_N "(cached
) $ECHO_C" >&6
22510 ac_check_lib_save_LIBS=$LIBS
22511 LIBS="-lreadline $LIBS"
22512 cat >conftest.$ac_ext <<_ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22525 char rl_callback_handler_install ();
22529 return rl_callback_handler_install ();
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (ac_try="$ac_link"
22536 case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_link") 2>conftest.er1
22543 grep -v '^ *+' conftest.er1 >conftest.err
22545 cat conftest.err >&5
22546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest$ac_exeext &&
22551 $as_test_x conftest$ac_exeext; then
22552 ac_cv_lib_readline_rl_callback_handler_install=yes
22554 echo "$as_me: failed program was
:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ac_cv_lib_readline_rl_callback_handler_install=no
22560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22561 conftest$ac_exeext conftest.$ac_ext
22562 LIBS=$ac_check_lib_save_LIBS
22564 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22565 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22566 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22568 cat >>confdefs.h <<\_ACEOF
22569 #define HAVE_RL_CALLBACK 1
22575 # check for readline 2.2
22576 cat >conftest.$ac_ext <<_ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22582 #include <readline/readline.h>
22584 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22592 grep -v '^ *+' conftest.er1 >conftest.err
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22596 (exit $ac_status); } >/dev/null && {
22597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22602 echo "$as_me: failed program was
:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22608 rm -f conftest.err conftest.$ac_ext
22609 if test $have_readline = yes
22611 cat >conftest.$ac_ext <<_ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 #include <readline/readline.h>
22620 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22621 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
22623 cat >>confdefs.h <<\_ACEOF
22624 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22632 # check for readline 4.0
22633 { echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
22634 echo $ECHO_N "checking
for rl_pre_input_hook
in -lreadline...
$ECHO_C" >&6; }
22635 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22636 echo $ECHO_N "(cached
) $ECHO_C" >&6
22638 ac_check_lib_save_LIBS=$LIBS
22639 LIBS="-lreadline $LIBS"
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22647 /* Override any GCC internal prototype to avoid an error.
22648 Use char because int might match the return type of a GCC
22649 builtin and then its argument prototype would still apply. */
22653 char rl_pre_input_hook ();
22657 return rl_pre_input_hook ();
22662 rm -f conftest.$ac_objext conftest$ac_exeext
22663 if { (ac_try="$ac_link"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_link") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest$ac_exeext &&
22679 $as_test_x conftest$ac_exeext; then
22680 ac_cv_lib_readline_rl_pre_input_hook=yes
22682 echo "$as_me: failed program was
:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 ac_cv_lib_readline_rl_pre_input_hook=no
22688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22689 conftest$ac_exeext conftest.$ac_ext
22690 LIBS=$ac_check_lib_save_LIBS
22692 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22693 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22694 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_RL_PRE_INPUT_HOOK 1
22704 { echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
22705 echo $ECHO_N "checking
for rl_completion_display_matches_hook
in -lreadline...
$ECHO_C" >&6; }
22706 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22707 echo $ECHO_N "(cached
) $ECHO_C" >&6
22709 ac_check_lib_save_LIBS=$LIBS
22710 LIBS="-lreadline $LIBS"
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22718 /* Override any GCC internal prototype to avoid an error.
22719 Use char because int might match the return type of a GCC
22720 builtin and then its argument prototype would still apply. */
22724 char rl_completion_display_matches_hook ();
22728 return rl_completion_display_matches_hook ();
22733 rm -f conftest.$ac_objext conftest$ac_exeext
22734 if { (ac_try="$ac_link"
22735 case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22740 (eval "$ac_link") 2>conftest.er1
22742 grep -v '^ *+' conftest.er1 >conftest.err
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22746 (exit $ac_status); } && {
22747 test -z "$ac_c_werror_flag" ||
22748 test ! -s conftest.err
22749 } && test -s conftest$ac_exeext &&
22750 $as_test_x conftest$ac_exeext; then
22751 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
22753 echo "$as_me: failed program was
:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22756 ac_cv_lib_readline_rl_completion_display_matches_hook=no
22759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22760 conftest$ac_exeext conftest.$ac_ext
22761 LIBS=$ac_check_lib_save_LIBS
22763 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22764 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22765 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22774 # check for readline 4.2
22775 { echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
22776 echo $ECHO_N "checking
for rl_completion_matches
in -lreadline...
$ECHO_C" >&6; }
22777 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22778 echo $ECHO_N "(cached
) $ECHO_C" >&6
22780 ac_check_lib_save_LIBS=$LIBS
22781 LIBS="-lreadline $LIBS"
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22789 /* Override any GCC internal prototype to avoid an error.
22790 Use char because int might match the return type of a GCC
22791 builtin and then its argument prototype would still apply. */
22795 char rl_completion_matches ();
22799 return rl_completion_matches ();
22804 rm -f conftest.$ac_objext conftest$ac_exeext
22805 if { (ac_try="$ac_link"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_link") 2>conftest.er1
22813 grep -v '^ *+' conftest.er1 >conftest.err
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest$ac_exeext &&
22821 $as_test_x conftest$ac_exeext; then
22822 ac_cv_lib_readline_rl_completion_matches=yes
22824 echo "$as_me: failed program was
:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22827 ac_cv_lib_readline_rl_completion_matches=no
22830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22831 conftest$ac_exeext conftest.$ac_ext
22832 LIBS=$ac_check_lib_save_LIBS
22834 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
22835 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22836 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22838 cat >>confdefs.h <<\_ACEOF
22839 #define HAVE_RL_COMPLETION_MATCHES 1
22845 # also in readline 4.2
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 #include <readline/readline.h>
22854 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22855 case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22862 grep -v '^ *+' conftest.er1 >conftest.err
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22866 (exit $ac_status); } >/dev/null && {
22867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22872 echo "$as_me: failed program was
:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22878 rm -f conftest.err conftest.$ac_ext
22879 if test $have_readline = yes
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 #include <readline/readline.h>
22890 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22891 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_RL_CATCH_SIGNAL 1
22902 # End of readline checks: restore LIBS
22903 LIBS=$LIBS_no_readline
22905 { echo "$as_me:$LINENO: checking
for broken nice
()" >&5
22906 echo $ECHO_N "checking
for broken nice
()...
$ECHO_C" >&6; }
22907 if test "${ac_cv_broken_nice+set}" = set; then
22908 echo $ECHO_N "(cached
) $ECHO_C" >&6
22911 if test "$cross_compiling" = yes; then
22912 ac_cv_broken_nice=no
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22923 int val1 = nice(1);
22924 if (val1 != -1 && val1 == nice(2))
22930 rm -f conftest$ac_exeext
22931 if { (ac_try="$ac_link"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_link") 2>&5
22939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22941 { (case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_try") 2>&5
22948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22949 (exit $ac_status); }; }; then
22950 ac_cv_broken_nice=yes
22952 echo "$as_me: program exited with status
$ac_status" >&5
22953 echo "$as_me: failed program was
:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956 ( exit $ac_status )
22957 ac_cv_broken_nice=no
22959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
22966 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22967 if test "$ac_cv_broken_nice" = yes
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_BROKEN_NICE 1
22976 { echo "$as_me:$LINENO: checking
for broken poll
()" >&5
22977 echo $ECHO_N "checking
for broken poll
()...
$ECHO_C" >&6; }
22978 if test "$cross_compiling" = yes; then
22979 ac_cv_broken_poll=no
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22992 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22996 int poll_test = poll (&poll_struct, 1, 0);
23002 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23013 rm -f conftest$ac_exeext
23014 if { (ac_try="$ac_link"
23015 case "(($ac_try" in
23016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017 *) ac_try_echo=$ac_try;;
23019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23020 (eval "$ac_link") 2>&5
23022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23024 { (case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_try") 2>&5
23031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_broken_poll=yes
23035 echo "$as_me: program exited with status
$ac_status" >&5
23036 echo "$as_me: failed program was
:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ( exit $ac_status )
23040 ac_cv_broken_poll=no
23042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23046 { echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
23047 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23048 if test "$ac_cv_broken_poll" = yes
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_BROKEN_POLL 1
23057 # Before we can test tzset, we need to check if struct tm has a tm_zone
23058 # (which is not required by ISO C or UNIX spec) and/or if we support
23060 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
23061 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
23062 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23063 echo $ECHO_N "(cached
) $ECHO_C" >&6
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <sys/types.h>
23072 #include <$ac_cv_struct_tm>
23078 static struct tm ac_aggr;
23079 if (ac_aggr.tm_zone)
23085 rm -f conftest.$ac_objext
23086 if { (ac_try="$ac_compile"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_compile") 2>conftest.er1
23094 grep -v '^ *+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest.$ac_objext; then
23102 ac_cv_member_struct_tm_tm_zone=yes
23104 echo "$as_me: failed program was
:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <sys/types.h>
23114 #include <$ac_cv_struct_tm>
23120 static struct tm ac_aggr;
23121 if (sizeof ac_aggr.tm_zone)
23127 rm -f conftest.$ac_objext
23128 if { (ac_try="$ac_compile"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_compile") 2>conftest.er1
23136 grep -v '^ *+' conftest.er1 >conftest.err
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23140 (exit $ac_status); } && {
23141 test -z "$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 } && test -s conftest.$ac_objext; then
23144 ac_cv_member_struct_tm_tm_zone=yes
23146 echo "$as_me: failed program was
:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 ac_cv_member_struct_tm_tm_zone=no
23152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
23158 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23159 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23161 cat >>confdefs.h <<_ACEOF
23162 #define HAVE_STRUCT_TM_TM_ZONE 1
23168 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23170 cat >>confdefs.h <<\_ACEOF
23171 #define HAVE_TM_ZONE 1
23175 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
23176 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
23177 if test "${ac_cv_have_decl_tzname+set}" = set; then
23178 echo $ECHO_N "(cached
) $ECHO_C" >&6
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23199 rm -f conftest.$ac_objext
23200 if { (ac_try="$ac_compile"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_compile") 2>conftest.er1
23208 grep -v '^ *+' conftest.er1 >conftest.err
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest.$ac_objext; then
23216 ac_cv_have_decl_tzname=yes
23218 echo "$as_me: failed program was
:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_cv_have_decl_tzname=no
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
23227 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23228 if test $ac_cv_have_decl_tzname = yes; then
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_DECL_TZNAME 1
23236 cat >>confdefs.h <<_ACEOF
23237 #define HAVE_DECL_TZNAME 0
23244 { echo "$as_me:$LINENO: checking
for tzname
" >&5
23245 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
23246 if test "${ac_cv_var_tzname+set}" = set; then
23247 echo $ECHO_N "(cached
) $ECHO_C" >&6
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23256 #if !HAVE_DECL_TZNAME
23257 extern char *tzname[];
23263 return tzname[0][0];
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_link") 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest$ac_exeext &&
23285 $as_test_x conftest$ac_exeext; then
23286 ac_cv_var_tzname=yes
23288 echo "$as_me: failed program was
:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_cv_var_tzname=no
23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23295 conftest$ac_exeext conftest.$ac_ext
23297 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
23298 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23299 if test $ac_cv_var_tzname = yes; then
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_TZNAME 1
23309 # check tzset(3) exists and works like we expect it to
23310 { echo "$as_me:$LINENO: checking
for working tzset
()" >&5
23311 echo $ECHO_N "checking
for working tzset
()...
$ECHO_C" >&6; }
23312 if test "${ac_cv_working_tzset+set}" = set; then
23313 echo $ECHO_N "(cached
) $ECHO_C" >&6
23316 if test "$cross_compiling" = yes; then
23317 ac_cv_working_tzset=no
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23326 #include <stdlib.h>
23328 #include <string.h>
23331 extern char *tzname[];
23336 /* Note that we need to ensure that not only does tzset(3)
23337 do 'something' with localtime, but it works as documented
23338 in the library reference and as expected by the test suite.
23339 This includes making sure that tzname is set properly if
23340 tm->tm_zone does not exist since it is the alternative way
23341 of getting timezone info.
23343 Red Hat 6.2 doesn't understand the southern hemisphere
23344 after New Year's Day.
23347 time_t groundhogday = 1044144000; /* GMT-based */
23348 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23350 putenv("TZ
=UTC
+0");
23352 if (localtime(&groundhogday)->tm_hour != 0)
23355 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23356 if (strcmp(tzname[0], "UTC
") ||
23357 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23361 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
23363 if (localtime(&groundhogday)->tm_hour != 19)
23366 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
23370 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
23372 if (localtime(&groundhogday)->tm_hour != 11)
23375 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
23379 #if HAVE_STRUCT_TM_TM_ZONE
23380 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
23382 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
23390 rm -f conftest$ac_exeext
23391 if { (ac_try="$ac_link"
23392 case "(($ac_try" in
23393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394 *) ac_try_echo=$ac_try;;
23396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23397 (eval "$ac_link") 2>&5
23399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23401 { (case "(($ac_try" in
23402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403 *) ac_try_echo=$ac_try;;
23405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23406 (eval "$ac_try") 2>&5
23408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23409 (exit $ac_status); }; }; then
23410 ac_cv_working_tzset=yes
23412 echo "$as_me: program exited with status
$ac_status" >&5
23413 echo "$as_me: failed program was
:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 ( exit $ac_status )
23417 ac_cv_working_tzset=no
23419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23425 { echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
23426 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23427 if test "$ac_cv_working_tzset" = yes
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_WORKING_TZSET 1
23436 # Look for subsecond timestamps in struct stat
23437 { echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
23438 echo $ECHO_N "checking
for tv_nsec
in struct stat...
$ECHO_C" >&6; }
23439 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23440 echo $ECHO_N "(cached
) $ECHO_C" >&6
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 #include <sys/stat.h>
23454 st.st_mtim.tv_nsec = 1;
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_cv_stat_tv_nsec=yes
23479 echo "$as_me: failed program was
:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_cv_stat_tv_nsec=no
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
23489 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23490 if test "$ac_cv_stat_tv_nsec" = yes
23493 cat >>confdefs.h <<\_ACEOF
23494 #define HAVE_STAT_TV_NSEC 1
23499 # Look for BSD style subsecond timestamps in struct stat
23500 { echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
23501 echo $ECHO_N "checking
for tv_nsec2
in struct stat...
$ECHO_C" >&6; }
23502 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23503 echo $ECHO_N "(cached
) $ECHO_C" >&6
23505 cat >conftest.$ac_ext <<_ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 #include <sys/stat.h>
23517 st.st_mtimespec.tv_nsec = 1;
23523 rm -f conftest.$ac_objext
23524 if { (ac_try="$ac_compile"
23525 case "(($ac_try" in
23526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527 *) ac_try_echo=$ac_try;;
23529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23530 (eval "$ac_compile") 2>conftest.er1
23532 grep -v '^ *+' conftest.er1 >conftest.err
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23536 (exit $ac_status); } && {
23537 test -z "$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23539 } && test -s conftest.$ac_objext; then
23540 ac_cv_stat_tv_nsec2=yes
23542 echo "$as_me: failed program was
:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ac_cv_stat_tv_nsec2=no
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
23552 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23553 if test "$ac_cv_stat_tv_nsec2" = yes
23556 cat >>confdefs.h <<\_ACEOF
23557 #define HAVE_STAT_TV_NSEC2 1
23562 # On HP/UX 11.0, mvwdelch is a block with a return statement
23563 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
23564 echo $ECHO_N "checking whether mvwdelch is an expression...
$ECHO_C" >&6; }
23565 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23566 echo $ECHO_N "(cached
) $ECHO_C" >&6
23568 cat >conftest.$ac_ext <<_ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 #include <curses.h>
23580 rtn = mvwdelch(0,0,0);
23586 rm -f conftest.$ac_objext
23587 if { (ac_try="$ac_compile"
23588 case "(($ac_try" in
23589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590 *) ac_try_echo=$ac_try;;
23592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23593 (eval "$ac_compile") 2>conftest.er1
23595 grep -v '^ *+' conftest.er1 >conftest.err
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23599 (exit $ac_status); } && {
23600 test -z "$ac_c_werror_flag" ||
23601 test ! -s conftest.err
23602 } && test -s conftest.$ac_objext; then
23603 ac_cv_mvwdelch_is_expression=yes
23605 echo "$as_me: failed program was
:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23608 ac_cv_mvwdelch_is_expression=no
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614 { echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
23615 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23617 if test "$ac_cv_mvwdelch_is_expression" = yes
23620 cat >>confdefs.h <<\_ACEOF
23621 #define MVWDELCH_IS_EXPRESSION 1
23626 { echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
23627 echo $ECHO_N "checking whether WINDOW has _flags...
$ECHO_C" >&6; }
23628 if test "${ac_cv_window_has_flags+set}" = set; then
23629 echo $ECHO_N "(cached
) $ECHO_C" >&6
23631 cat >conftest.$ac_ext <<_ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h. */
23637 #include <curses.h>
23649 rm -f conftest.$ac_objext
23650 if { (ac_try="$ac_compile"
23651 case "(($ac_try" in
23652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653 *) ac_try_echo=$ac_try;;
23655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23656 (eval "$ac_compile") 2>conftest.er1
23658 grep -v '^ *+' conftest.er1 >conftest.err
23660 cat conftest.err >&5
23661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest.$ac_objext; then
23666 ac_cv_window_has_flags=yes
23668 echo "$as_me: failed program was
:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ac_cv_window_has_flags=no
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677 { echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
23678 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23681 if test "$ac_cv_window_has_flags" = yes
23684 cat >>confdefs.h <<\_ACEOF
23685 #define WINDOW_HAS_FLAGS 1
23690 { echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
23691 echo $ECHO_N "checking
for is_term_resized...
$ECHO_C" >&6; }
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #include <curses.h>
23702 void *x=is_term_resized
23707 rm -f conftest.$ac_objext
23708 if { (ac_try="$ac_compile"
23709 case "(($ac_try" in
23710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23711 *) ac_try_echo=$ac_try;;
23713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23714 (eval "$ac_compile") 2>conftest.er1
23716 grep -v '^ *+' conftest.er1 >conftest.err
23718 cat conftest.err >&5
23719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23720 (exit $ac_status); } && {
23721 test -z "$ac_c_werror_flag" ||
23722 test ! -s conftest.err
23723 } && test -s conftest.$ac_objext; then
23725 cat >>confdefs.h <<\_ACEOF
23726 #define HAVE_CURSES_IS_TERM_RESIZED 1
23729 { echo "$as_me:$LINENO: result
: yes" >&5
23730 echo "${ECHO_T}yes" >&6; }
23732 echo "$as_me: failed program was
:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 { echo "$as_me:$LINENO: result
: no
" >&5
23736 echo "${ECHO_T}no
" >&6; }
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 { echo "$as_me:$LINENO: checking
for resize_term
" >&5
23743 echo $ECHO_N "checking
for resize_term...
$ECHO_C" >&6; }
23744 cat >conftest.$ac_ext <<_ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h. */
23750 #include <curses.h>
23754 void *x=resize_term
23759 rm -f conftest.$ac_objext
23760 if { (ac_try="$ac_compile"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_compile") 2>conftest.er1
23768 grep -v '^ *+' conftest.er1 >conftest.err
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23772 (exit $ac_status); } && {
23773 test -z "$ac_c_werror_flag" ||
23774 test ! -s conftest.err
23775 } && test -s conftest.$ac_objext; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_CURSES_RESIZE_TERM 1
23781 { echo "$as_me:$LINENO: result
: yes" >&5
23782 echo "${ECHO_T}yes" >&6; }
23784 echo "$as_me: failed program was
:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 { echo "$as_me:$LINENO: result
: no
" >&5
23788 echo "${ECHO_T}no
" >&6; }
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 { echo "$as_me:$LINENO: checking
for resizeterm
" >&5
23795 echo $ECHO_N "checking
for resizeterm...
$ECHO_C" >&6; }
23796 cat >conftest.$ac_ext <<_ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 #include <curses.h>
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_compile") 2>conftest.er1
23820 grep -v '^ *+' conftest.er1 >conftest.err
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest.$ac_objext; then
23829 cat >>confdefs.h <<\_ACEOF
23830 #define HAVE_CURSES_RESIZETERM 1
23833 { echo "$as_me:$LINENO: result
: yes" >&5
23834 echo "${ECHO_T}yes" >&6; }
23836 echo "$as_me: failed program was
:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23839 { echo "$as_me:$LINENO: result
: no
" >&5
23840 echo "${ECHO_T}no
" >&6; }
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846 { echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
23847 echo $ECHO_N "checking
for /dev
/ptmx...
$ECHO_C" >&6; }
23849 if test -r /dev/ptmx
23851 { echo "$as_me:$LINENO: result
: yes" >&5
23852 echo "${ECHO_T}yes" >&6; }
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_DEV_PTMX 1
23859 { echo "$as_me:$LINENO: result
: no
" >&5
23860 echo "${ECHO_T}no
" >&6; }
23863 { echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
23864 echo $ECHO_N "checking
for /dev
/ptc...
$ECHO_C" >&6; }
23866 if test -r /dev/ptc
23868 { echo "$as_me:$LINENO: result
: yes" >&5
23869 echo "${ECHO_T}yes" >&6; }
23871 cat >>confdefs.h <<\_ACEOF
23872 #define HAVE_DEV_PTC 1
23876 { echo "$as_me:$LINENO: result
: no
" >&5
23877 echo "${ECHO_T}no
" >&6; }
23880 { echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
23881 echo $ECHO_N "checking
for %zd
printf() format support...
$ECHO_C" >&6; }
23882 if test "$cross_compiling" = yes; then
23883 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
23884 See \
`config.log' for more details." >&5
23885 echo "$as_me: error: cannot run test program while cross compiling
23886 See \`config.log
' for more details." >&2;}
23887 { (exit 1); exit 1; }; }
23889 cat >conftest.$ac_ext <<_ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23896 #include <stddef.h>
23897 #include <string.h>
23899 #ifdef HAVE_SYS_TYPES_H
23900 #include <sys/types.h>
23903 #ifdef HAVE_SSIZE_T
23904 typedef ssize_t Py_ssize_t;
23905 #elif SIZEOF_VOID_P == SIZEOF_LONG
23906 typedef long Py_ssize_t;
23908 typedef int Py_ssize_t;
23915 if(sprintf(buffer, "%zd", (size_t)123) < 0)
23918 if (strcmp(buffer, "123"))
23921 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
23924 if (strcmp(buffer, "-123"))
23930 rm -f conftest$ac_exeext
23931 if { (ac_try="$ac_link"
23932 case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_link") 2>&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23941 { (case "(($ac_try" in
23942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23943 *) ac_try_echo=$ac_try;;
23945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23946 (eval "$ac_try") 2>&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 { echo "$as_me:$LINENO: result: yes" >&5
23951 echo "${ECHO_T}yes" >&6; }
23953 cat >>confdefs.h <<\_ACEOF
23954 #define PY_FORMAT_SIZE_T "z"
23958 echo "$as_me: program exited with status $ac_status" >&5
23959 echo "$as_me: failed program was:" >&5
23960 sed 's
/^
/|
/' conftest.$ac_ext >&5
23962 ( exit $ac_status )
23963 { echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6; }
23966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23971 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23972 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23973 if test "${ac_cv_type_socklen_t+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23983 #ifdef HAVE_SYS_TYPES_H
23984 #include <sys/types.h>
23986 #ifdef HAVE_SYS_SOCKET_H
23987 #include <sys/socket.h>
23991 typedef socklen_t ac__type_new_;
23995 if ((ac__type_new_ *) 0)
23997 if (sizeof (ac__type_new_))
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_compile") 2>conftest.er1
24012 grep -v '^
*+' conftest.er1 >conftest.err
24014 cat conftest.err >&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } && {
24017 test -z "$ac_c_werror_flag" ||
24018 test ! -s conftest.err
24019 } && test -s conftest.$ac_objext; then
24020 ac_cv_type_socklen_t=yes
24022 echo "$as_me: failed program was:" >&5
24023 sed 's
/^
/|
/' conftest.$ac_ext >&5
24025 ac_cv_type_socklen_t=no
24028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24031 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24032 if test $ac_cv_type_socklen_t = yes; then
24036 cat >>confdefs.h <<\_ACEOF
24037 #define socklen_t int
24045 for h in `(cd $srcdir;echo Python/thread_*.h)`
24047 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24051 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24052 { echo "$as_me:$LINENO: checking for build directories" >&5
24053 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24054 for dir in $SRCDIRS; do
24055 if test ! -d $dir; then
24059 { echo "$as_me:$LINENO: result: done" >&5
24060 echo "${ECHO_T}done" >&6; }
24062 # generate output files
24063 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24065 cat >confcache <<\_ACEOF
24066 # This file is a shell script that caches the results of configure
24067 # tests run on this system so they can be shared between configure
24068 # scripts and configure runs, see configure's option
--config-cache.
24069 # It is not useful on other systems. If it contains results you don't
24070 # want to keep, you may remove or edit it.
24072 # config.status only pays attention to the cache file if you give it
24073 # the --recheck option to rerun configure.
24075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24077 # following values.
24081 # The following way of writing the cache mishandles newlines in values,
24082 # but we know of no workaround that is simple, portable, and efficient.
24083 # So, we kill variables containing newlines.
24084 # Ultrix sh set writes to stderr and can't be redirected directly,
24085 # and sets the high bit in the cache file unless we assign to the vars.
24087 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24088 eval ac_val
=\$
$ac_var
24092 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24093 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24096 _ | IFS | as_nl
) ;; #(
24097 *) $as_unset $ac_var ;;
24103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24104 *${as_nl}ac_space
=\
*)
24105 # `set' does not quote correctly, so add quotes (double-quote
24106 # substitution turns \\\\ into \\, and sed turns \\ into \).
24109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24112 # `set' quotes correctly as required by POSIX, so do not add quotes.
24113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24126 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24127 if test -w "$cache_file"; then
24128 test "x$cache_file" != "x/dev/null" &&
24129 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24130 echo "$as_me: updating cache $cache_file" >&6;}
24131 cat confcache
>$cache_file
24133 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24134 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24139 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24140 # Let make expand exec_prefix.
24141 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24143 DEFS
=-DHAVE_CONFIG_H
24147 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24148 # 1. Remove the extension, and $U if already installed.
24149 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24150 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24152 # will be set to the directory where LIBOBJS objects are built.
24153 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24154 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24156 LIBOBJS
=$ac_libobjs
24158 LTLIBOBJS
=$ac_ltlibobjs
24162 : ${CONFIG_STATUS=./config.status}
24163 ac_clean_files_save
=$ac_clean_files
24164 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24165 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24166 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24167 cat >$CONFIG_STATUS <<_ACEOF
24169 # Generated by $as_me.
24170 # Run this file to recreate the current configuration.
24171 # Compiler output produced by configure, useful for debugging
24172 # configure, is in config.log if it exists.
24175 ac_cs_recheck=false
24177 SHELL=\${CONFIG_SHELL-$SHELL}
24180 cat >>$CONFIG_STATUS <<\_ACEOF
24181 ## --------------------- ##
24182 ## M4sh Initialization. ##
24183 ## --------------------- ##
24185 # Be more Bourne compatible
24186 DUALCASE
=1; export DUALCASE
# for MKS sh
24187 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24191 # is contrary to our usage. Disable this feature.
24192 alias -g '${1+"$@"}'='"$@"'
24193 setopt NO_GLOB_SUBST
24195 case `(set -o) 2>/dev/null` in
24196 *posix
*) set -o posix
;;
24205 # Avoid depending upon Character Ranges.
24206 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24207 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24208 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24209 as_cr_digits
='0123456789'
24210 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24212 # The user is always right.
24213 if test "${PATH_SEPARATOR+set}" != set; then
24214 echo "#! /bin/sh" >conf$$.sh
24215 echo "exit 0" >>conf$$.sh
24217 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24225 # Support unset when possible.
24226 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24234 # We need space, tab and new line, in precisely that order. Quoting is
24235 # there to prevent editors from complaining about space-tab.
24236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24237 # splitting by setting IFS to empty value.)
24242 # Find who we are. Look in the path if we contain no directory separator.
24244 *[\\/]* ) as_myself
=$0 ;;
24245 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24246 for as_dir
in $PATH
24249 test -z "$as_dir" && as_dir
=.
24250 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24256 # We did not find ourselves, most probably we were run as `sh COMMAND'
24257 # in which case we are not to be found in the path.
24258 if test "x$as_myself" = x
; then
24261 if test ! -f "$as_myself"; then
24262 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24263 { (exit 1); exit 1; }
24266 # Work around bugs in pre-3.0 UWIN ksh.
24267 for as_var
in ENV MAIL MAILPATH
24268 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24278 LC_TELEPHONE LC_TIME
24280 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24281 eval $as_var=C
; export $as_var
24283 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24287 # Required to use basename.
24288 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24289 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24295 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24296 as_basename
=basename
24302 # Name of the executable.
24303 as_me
=`$as_basename -- "$0" ||
24304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24305 X"$0" : 'X\(//\)$' \| \
24306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24308 sed '/^.*\/\([^/][^/]*\)\/*$/{
24327 as_lineno_1
=$LINENO
24328 as_lineno_2
=$LINENO
24329 test "x$as_lineno_1" != "x$as_lineno_2" &&
24330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24333 # uniformly replaced by the line number. The first 'sed' inserts a
24334 # line-number line after each line using $LINENO; the second 'sed'
24335 # does the real work. The second script uses 'N' to pair each
24336 # line-number line with the line containing $LINENO, and appends
24337 # trailing '-' during substitution so that $LINENO is not a special
24338 # case at line end.
24339 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24340 # scripts with optimization help from Paolo Bonzini. Blame Lee
24341 # E. McMahon (1931-1989) for sed's syntax. :-)
24353 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24356 ' >$as_me.lineno
&&
24357 chmod +x
"$as_me.lineno" ||
24358 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24359 { (exit 1); exit 1; }; }
24361 # Don't try to exec as it changes $[0], causing all sort of problems
24362 # (the dirname of $[0] is not the place where we might find the
24363 # original and so on. Autoconf is especially sensitive to this).
24364 .
"./$as_me.lineno"
24365 # Exit status is that of the last command.
24370 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24376 ECHO_C
= ECHO_N
= ECHO_T
=
24377 case `echo -n x` in
24379 case `echo 'x\c'` in
24380 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24387 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24388 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24394 rm -f conf$$ conf$$.exe conf$$.
file
24395 if test -d conf$$.dir
; then
24396 rm -f conf$$.dir
/conf$$.
file
24402 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24404 # ... but there are two gotchas:
24405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24407 # In both cases, we have to default to `cp -p'.
24408 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24410 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24415 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24416 rmdir conf$$.dir
2>/dev
/null
24418 if mkdir
-p .
2>/dev
/null
; then
24421 test -d .
/-p && rmdir .
/-p
24425 if test -x / >/dev
/null
2>&1; then
24426 as_test_x
='test -x'
24428 if ls -dL / >/dev
/null
2>&1; then
24435 if test -d "$1"; then
24441 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24442 ???[sx]*):;;*)false;;esac;fi
24446 as_executable_p
=$as_test_x
24448 # Sed expression to map a string onto a valid CPP name.
24449 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24451 # Sed expression to map a string onto a valid variable name.
24452 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24457 # Save the log message, to keep $[0] and so on meaningful, and to
24458 # report actual input values of CONFIG_FILES etc. instead of their
24459 # values after options handling.
24461 This file was extended by python $as_me 2.6, which was
24462 generated by GNU Autoconf 2.61. Invocation command line was
24464 CONFIG_FILES = $CONFIG_FILES
24465 CONFIG_HEADERS = $CONFIG_HEADERS
24466 CONFIG_LINKS = $CONFIG_LINKS
24467 CONFIG_COMMANDS = $CONFIG_COMMANDS
24470 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24475 cat >>$CONFIG_STATUS <<_ACEOF
24476 # Files that config.status was made for.
24477 config_files="$ac_config_files"
24478 config_headers="$ac_config_headers"
24482 cat >>$CONFIG_STATUS <<\_ACEOF
24484 \`$as_me' instantiates files from templates according to the
24485 current configuration.
24487 Usage: $0 [OPTIONS] [FILE]...
24489 -h, --help print this help, then exit
24490 -V, --version print version number and configuration settings, then exit
24491 -q, --quiet do not print progress messages
24492 -d, --debug don't remove temporary files
24493 --recheck update $as_me by reconfiguring in the same conditions
24494 --file=FILE[:TEMPLATE]
24495 instantiate the configuration file FILE
24496 --header=FILE[:TEMPLATE]
24497 instantiate the configuration header FILE
24499 Configuration files:
24502 Configuration headers:
24505 Report bugs to <bug-autoconf@gnu.org>."
24508 cat >>$CONFIG_STATUS <<_ACEOF
24510 python config.status 2.6
24511 configured by $0, generated by GNU Autoconf 2.61,
24512 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24514 Copyright (C) 2006 Free Software Foundation, Inc.
24515 This config.status script is free software; the Free Software Foundation
24516 gives unlimited permission to copy, distribute and modify it."
24523 cat >>$CONFIG_STATUS <<\_ACEOF
24524 # If no file are specified by the user, then we need to provide default
24525 # value. By we need to know if files were specified by the user.
24531 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24532 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24543 # Handling of the options.
24544 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24546 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24547 echo "$ac_cs_version"; exit ;;
24548 --debug |
--debu |
--deb |
--de |
--d |
-d )
24550 --file |
--fil |
--fi |
--f )
24552 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24553 ac_need_defaults
=false
;;
24554 --header |
--heade |
--head |
--hea )
24556 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24557 ac_need_defaults
=false
;;
24559 # Conflict between --help and --header
24560 { echo "$as_me: error: ambiguous option: $1
24561 Try \`$0 --help' for more information." >&2
24562 { (exit 1); exit 1; }; };;
24563 --help |
--hel |
-h )
24564 echo "$ac_cs_usage"; exit ;;
24565 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24566 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24569 # This is an error.
24570 -*) { echo "$as_me: error: unrecognized option: $1
24571 Try \`$0 --help' for more information." >&2
24572 { (exit 1); exit 1; }; } ;;
24574 *) ac_config_targets
="$ac_config_targets $1"
24575 ac_need_defaults
=false
;;
24581 ac_configure_extra_args
=
24583 if $ac_cs_silent; then
24585 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24589 cat >>$CONFIG_STATUS <<_ACEOF
24590 if \$ac_cs_recheck; then
24591 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24592 CONFIG_SHELL=$SHELL
24593 export CONFIG_SHELL
24594 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24598 cat >>$CONFIG_STATUS <<\_ACEOF
24602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24603 ## Running $as_me. ##
24609 cat >>$CONFIG_STATUS <<_ACEOF
24612 cat >>$CONFIG_STATUS <<\_ACEOF
24614 # Handling of arguments.
24615 for ac_config_target
in $ac_config_targets
24617 case $ac_config_target in
24618 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
24619 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
24620 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24621 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24622 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
24623 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
24624 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
24625 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
24627 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24628 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24629 { (exit 1); exit 1; }; };;
24634 # If the user did not use the arguments to specify the items to instantiate,
24635 # then the envvar interface is used. Set only those that are not.
24636 # We use the long form for the default assignment because of an extremely
24637 # bizarre bug on SunOS 4.1.3.
24638 if $ac_need_defaults; then
24639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24640 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24643 # Have a temporary directory for convenience. Make it in the build tree
24644 # simply because there is no reason against having it here, and in addition,
24645 # creating and moving files from /tmp can sometimes cause problems.
24646 # Hook for its removal unless debugging.
24647 # Note that there is a small window in which the directory will not be cleaned:
24648 # after its creation but before its name has been assigned to `$tmp'.
24652 trap 'exit_status=$?
24653 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24655 trap '{ (exit 1); exit 1; }' 1 2 13 15
24657 # Create a (secure) tmp directory for tmp files.
24660 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24661 test -n "$tmp" && test -d "$tmp"
24664 tmp
=.
/conf$$
-$RANDOM
24665 (umask 077 && mkdir
"$tmp")
24668 echo "$me: cannot create a temporary directory in ." >&2
24669 { (exit 1); exit 1; }
24673 # Set up the sed scripts for CONFIG_FILES section.
24676 # No need to generate the scripts if there are no CONFIG_FILES.
24677 # This happens for instance when ./config.status config.h
24678 if test -n "$CONFIG_FILES"; then
24685 for ac_last_try
in false false false false false
:; do
24686 cat >conf$
$subs.
sed <<_ACEOF
24687 SHELL!$SHELL$ac_delim
24688 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24689 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24690 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24691 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24692 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24693 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24694 exec_prefix!$exec_prefix$ac_delim
24695 prefix!$prefix$ac_delim
24696 program_transform_name!$program_transform_name$ac_delim
24697 bindir!$bindir$ac_delim
24698 sbindir!$sbindir$ac_delim
24699 libexecdir!$libexecdir$ac_delim
24700 datarootdir!$datarootdir$ac_delim
24701 datadir!$datadir$ac_delim
24702 sysconfdir!$sysconfdir$ac_delim
24703 sharedstatedir!$sharedstatedir$ac_delim
24704 localstatedir!$localstatedir$ac_delim
24705 includedir!$includedir$ac_delim
24706 oldincludedir!$oldincludedir$ac_delim
24707 docdir!$docdir$ac_delim
24708 infodir!$infodir$ac_delim
24709 htmldir!$htmldir$ac_delim
24710 dvidir!$dvidir$ac_delim
24711 pdfdir!$pdfdir$ac_delim
24712 psdir!$psdir$ac_delim
24713 libdir!$libdir$ac_delim
24714 localedir!$localedir$ac_delim
24715 mandir!$mandir$ac_delim
24716 DEFS!$DEFS$ac_delim
24717 ECHO_C!$ECHO_C$ac_delim
24718 ECHO_N!$ECHO_N$ac_delim
24719 ECHO_T!$ECHO_T$ac_delim
24720 LIBS!$LIBS$ac_delim
24721 build_alias!$build_alias$ac_delim
24722 host_alias!$host_alias$ac_delim
24723 target_alias!$target_alias$ac_delim
24724 VERSION!$VERSION$ac_delim
24725 SOVERSION!$SOVERSION$ac_delim
24726 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24727 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24728 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24729 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
24730 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24731 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24732 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24733 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24734 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24735 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24736 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24737 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24738 MACHDEP!$MACHDEP$ac_delim
24739 SGI_ABI!$SGI_ABI$ac_delim
24740 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24741 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24742 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24743 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24745 CFLAGS!$CFLAGS$ac_delim
24746 LDFLAGS!$LDFLAGS$ac_delim
24747 CPPFLAGS!$CPPFLAGS$ac_delim
24748 ac_ct_CC!$ac_ct_CC$ac_delim
24749 EXEEXT!$EXEEXT$ac_delim
24750 OBJEXT!$OBJEXT$ac_delim
24752 MAINCC!$MAINCC$ac_delim
24754 GREP!$GREP$ac_delim
24755 EGREP!$EGREP$ac_delim
24756 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24757 LIBRARY!$LIBRARY$ac_delim
24758 LDLIBRARY!$LDLIBRARY$ac_delim
24759 DLLLIBRARY!$DLLLIBRARY$ac_delim
24760 BLDLIBRARY!$BLDLIBRARY$ac_delim
24761 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24762 INSTSONAME!$INSTSONAME$ac_delim
24763 RUNSHARED!$RUNSHARED$ac_delim
24764 LINKCC!$LINKCC$ac_delim
24765 RANLIB!$RANLIB$ac_delim
24767 SVNVERSION!$SVNVERSION$ac_delim
24768 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24769 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24770 INSTALL_DATA!$INSTALL_DATA$ac_delim
24773 BASECFLAGS!$BASECFLAGS$ac_delim
24774 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24775 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24777 LDSHARED!$LDSHARED$ac_delim
24778 BLDSHARED!$BLDSHARED$ac_delim
24779 CCSHARED!$CCSHARED$ac_delim
24780 LINKFORSHARED!$LINKFORSHARED$ac_delim
24781 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24782 SHLIBS!$SHLIBS$ac_delim
24783 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24786 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24788 elif $ac_last_try; then
24789 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24790 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24791 { (exit 1); exit 1; }; }
24793 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24797 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24798 if test -n "$ac_eof"; then
24799 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24800 ac_eof
=`expr $ac_eof + 1`
24803 cat >>$CONFIG_STATUS <<_ACEOF
24804 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24808 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24809 s/^/s,@/; s/!/@,|#_!!_#|/
24812 s/'"$ac_delim"'$/,g/; t
24814 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24815 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24816 rm -f conf$
$subs.
sed
24817 cat >>$CONFIG_STATUS <<_ACEOF
24823 for ac_last_try
in false false false false false
:; do
24824 cat >conf$
$subs.
sed <<_ACEOF
24825 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24826 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24827 LDLAST!$LDLAST$ac_delim
24828 THREADOBJ!$THREADOBJ$ac_delim
24829 DLINCLDIR!$DLINCLDIR$ac_delim
24830 DYNLOADFILE!$DYNLOADFILE$ac_delim
24831 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24832 TRUE!$TRUE$ac_delim
24833 LIBOBJS!$LIBOBJS$ac_delim
24834 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24835 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24836 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24837 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24838 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24839 LIBM!$LIBM$ac_delim
24840 LIBC!$LIBC$ac_delim
24841 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24842 THREADHEADERS!$THREADHEADERS$ac_delim
24843 SRCDIRS!$SRCDIRS$ac_delim
24844 LTLIBOBJS!$LTLIBOBJS$ac_delim
24847 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
24849 elif $ac_last_try; then
24850 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24851 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24852 { (exit 1); exit 1; }; }
24854 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24858 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24859 if test -n "$ac_eof"; then
24860 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24861 ac_eof
=`expr $ac_eof + 1`
24864 cat >>$CONFIG_STATUS <<_ACEOF
24865 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24869 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24870 s/^/s,@/; s/!/@,|#_!!_#|/
24873 s/'"$ac_delim"'$/,g/; t
24875 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24876 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24877 rm -f conf$
$subs.
sed
24878 cat >>$CONFIG_STATUS <<_ACEOF
24885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24887 # trailing colons and then remove the whole line if VPATH becomes empty
24888 # (actually we leave an empty line to preserve line numbers).
24889 if test "x$srcdir" = x.
; then
24890 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24891 s/:*\$(srcdir):*/:/
24892 s/:*\${srcdir}:*/:/
24894 s/^\([^=]*=[ ]*\):*/\1/
24900 cat >>$CONFIG_STATUS <<\_ACEOF
24901 fi # test -n "$CONFIG_FILES"
24904 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
24907 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24909 case $ac_mode$ac_tag in
24911 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24912 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24913 { (exit 1); exit 1; }; };;
24914 :[FH
]-) ac_tag
=-:-;;
24915 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24932 -) ac_f
="$tmp/stdin";;
24933 *) # Look for the file first in the build tree, then in the source tree
24934 # (if the path is not absolute). The absolute path cannot be DOS-style,
24935 # because $ac_f cannot contain `:'.
24939 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24941 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24942 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24943 { (exit 1); exit 1; }; };;
24945 ac_file_inputs
="$ac_file_inputs $ac_f"
24948 # Let's still pretend it is `configure' which instantiates (i.e., don't
24949 # use $as_me), people would be surprised to read:
24950 # /* config.h. Generated by config.status. */
24951 configure_input
="Generated from "`IFS=:
24952 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24953 if test x
"$ac_file" != x-
; then
24954 configure_input
="$ac_file. $configure_input"
24955 { echo "$as_me:$LINENO: creating $ac_file" >&5
24956 echo "$as_me: creating $ac_file" >&6;}
24960 *:-:* |
*:-) cat >"$tmp/stdin";;
24965 ac_dir
=`$as_dirname -- "$ac_file" ||
24966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24967 X"$ac_file" : 'X\(//\)[^/]' \| \
24968 X"$ac_file" : 'X\(//\)$' \| \
24969 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24975 /^X\(\/\/\)[^/].*/{
24990 -*) as_dir
=.
/$as_dir;;
24992 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24996 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24997 *) as_qdir
=$as_dir;;
24999 as_dirs
="'$as_qdir' $as_dirs"
25000 as_dir
=`$as_dirname -- "$as_dir" ||
25001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25002 X"$as_dir" : 'X\(//\)[^/]' \| \
25003 X"$as_dir" : 'X\(//\)$' \| \
25004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25010 /^X\(\/\/\)[^/].*/{
25023 test -d "$as_dir" && break
25025 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25026 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25027 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25028 { (exit 1); exit 1; }; }; }
25032 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25034 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25035 # A ".." for each directory in $ac_dir_suffix.
25036 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25037 case $ac_top_builddir_sub in
25038 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25039 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25042 ac_abs_top_builddir
=$ac_pwd
25043 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25044 # for backward compatibility:
25045 ac_top_builddir
=$ac_top_build_prefix
25048 .
) # We are building in place.
25050 ac_top_srcdir
=$ac_top_builddir_sub
25051 ac_abs_top_srcdir
=$ac_pwd ;;
25052 [\\/]* | ?
:[\\/]* ) # Absolute name.
25053 ac_srcdir
=$srcdir$ac_dir_suffix;
25054 ac_top_srcdir
=$srcdir
25055 ac_abs_top_srcdir
=$srcdir ;;
25056 *) # Relative name.
25057 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25058 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25059 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25061 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25071 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25072 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25076 cat >>$CONFIG_STATUS <<\_ACEOF
25077 # If the template does not know about datarootdir, expand it.
25078 # FIXME: This hack should be removed a few years after 2.60.
25079 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25081 case `sed -n '/datarootdir/ {
25090 ' $ac_file_inputs` in
25091 *datarootdir
*) ac_datarootdir_seen
=yes;;
25092 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25093 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25094 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25096 cat >>$CONFIG_STATUS <<_ACEOF
25097 ac_datarootdir_hack='
25098 s&@datadir@&$datadir&g
25099 s&@docdir@&$docdir&g
25100 s&@infodir@&$infodir&g
25101 s&@localedir@&$localedir&g
25102 s&@mandir@&$mandir&g
25103 s&\\\${datarootdir}&$datarootdir&g' ;;
25107 # Neutralize VPATH when `$srcdir' = `.'.
25108 # Shell code in configure.ac might set extrasub.
25109 # FIXME: do we really want to maintain this feature?
25110 cat >>$CONFIG_STATUS <<_ACEOF
25114 cat >>$CONFIG_STATUS <<\_ACEOF
25116 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25117 s
&@configure_input@
&$configure_input&;t t
25118 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25119 s
&@srcdir@
&$ac_srcdir&;t t
25120 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25121 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25122 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25123 s
&@builddir@
&$ac_builddir&;t t
25124 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25125 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25126 s
&@INSTALL@
&$ac_INSTALL&;t t
25127 $ac_datarootdir_hack
25128 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25131 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25133 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25134 which seems to be undefined. Please make sure it is defined." >&5
25135 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25136 which seems to be undefined. Please make sure it is defined." >&2;}
25140 -) cat "$tmp/out"; rm -f "$tmp/out";;
25141 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25150 # Transform confdefs.h into a sed script `conftest.defines', that
25151 # substitutes the proper values into config.h.in to produce config.h.
25152 rm -f conftest.defines conftest.
tail
25153 # First, append a space to every undef/define line, to ease matching.
25154 echo 's/$/ /' >conftest.defines
25155 # Then, protect against being on the right side of a sed subst, or in
25156 # an unquoted here document, in config.status. If some macros were
25157 # called several times there might be several #defines for the same
25158 # symbol, which is useless. But do not sort them, since the last
25159 # AC_DEFINE must be honored.
25160 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25161 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25162 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25163 # PARAMS is the parameter list in the macro definition--in most cases, it's
25164 # just an empty string.
25165 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25166 ac_dB
='\\)[ (].*,\\1define\\2'
25174 s/^[ ]*#[ ]*define[ ][ ]*//
25179 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25180 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25181 ' >>conftest.defines
25183 # Remove the space that was appended to ease matching.
25184 # Then replace #undef with comments. This is necessary, for
25185 # example, in the case of _POSIX_SOURCE, which is predefined and required
25186 # on some systems where configure will not decide to define it.
25187 # (The regexp can be short, since the line contains either #define or #undef.)
25189 s,^[ #]*u.*,/* & */,' >>conftest.defines
25191 # Break up conftest.defines:
25192 ac_max_sed_lines
=50
25194 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25195 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25196 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25198 ac_in
='$ac_file_inputs'
25199 ac_out
='"$tmp/out1"'
25200 ac_nxt
='"$tmp/out2"'
25204 # Write a here document:
25205 cat >>$CONFIG_STATUS <<_ACEOF
25206 # First, check the format of the line:
25207 cat >"\$tmp/defines.sed" <<\\CEOF
25208 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25209 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25213 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25215 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25216 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25217 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25218 grep . conftest.
tail >/dev
/null ||
break
25219 rm -f conftest.defines
25220 mv conftest.
tail conftest.defines
25222 rm -f conftest.defines conftest.
tail
25224 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25225 cat >>$CONFIG_STATUS <<\_ACEOF
25226 if test x
"$ac_file" != x-
; then
25227 echo "/* $configure_input */" >"$tmp/config.h"
25228 cat "$ac_result" >>"$tmp/config.h"
25229 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25230 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25231 echo "$as_me: $ac_file is unchanged" >&6;}
25234 mv "$tmp/config.h" $ac_file
25237 echo "/* $configure_input */"
25249 { (exit 0); exit 0; }
25251 chmod +x
$CONFIG_STATUS
25252 ac_clean_files
=$ac_clean_files_save
25255 # configure is writing to config.log, and then calls config.status.
25256 # config.status does its own redirection, appending to config.log.
25257 # Unfortunately, on DOS this fails, as config.log is still kept open
25258 # by configure, so config.status won't be able to write to it; its
25259 # output is simply discarded. So we exec the FD to /dev/null,
25260 # effectively closing config.log, so it can be properly (re)opened and
25261 # appended to by config.status. When coming back to configure, we
25262 # need to make the FD available again.
25263 if test "$no_create" != yes; then
25265 ac_config_status_args
=
25266 test "$silent" = yes &&
25267 ac_config_status_args
="$ac_config_status_args --quiet"
25269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25272 # would make configure fail if this is the last instruction.
25273 $ac_cs_success ||
{ (exit 1); exit 1; }
25277 echo "creating Modules/Setup"
25278 if test ! -f Modules
/Setup
25280 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25283 echo "creating Modules/Setup.local"
25284 if test ! -f Modules
/Setup.
local
25286 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25289 echo "creating Makefile"
25290 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25291 -s Modules Modules
/Setup.config \
25292 Modules
/Setup.
local Modules
/Setup
25294 case $ac_sys_system in
25296 { echo "$as_me:$LINENO: WARNING:
25298 Support for BeOS is deprecated as of Python 2.6.
25299 See PEP 11 for the gory details.
25301 echo "$as_me: WARNING:
25303 Support for BeOS is deprecated as of Python 2.6.
25304 See PEP 11 for the gory details.
25310 mv config.c Modules